Author Topic: DD System V2.65 - Chat and Place types - ?RIP LOL?  (Read 21879 times)

That's because of the master server.
It has nothing to do with DD System nor Hostname GUI.

For example, take a look at Naughty Bear's server.
Notice how it says "wblock City RP (Worki"
With both DD System AND Hostname GUI scripts removed, it still gets cut off like so:
"Naughty Bear's wblock City RP (Worki"

Yay, it's not my fault!

Also, I find it interesting how I can run the chat server with at least 50 individuals on it a day, often more, and have the server stay up flawlessly for days on end, mean while I try to start an actual Blockland Dedicated server on the same VPS it will have crashed and the server will have shut down whiten a few hours. Often setting the player limit lower helps it a bit, but I still don't know exactly why that happens.

A chat server sends a bit of text and Blockland sends thousands of datablocks and position updates?

A chat server sends a bit of text and Blockland sends thousands of datablocks and position updates?
Yeah, I suppose it's along the lines of that.
I mean my VPS only has about 384MB of RAM, and the chat server uses about 800kb or 0.8MB of it, and Blockland uses over 120MB when I first start it up.

Would anyone be interested if I added a feature which basically let you do this:



(Create and display multiple variables of your own instead of the one 'score' default variable)

the download link is broken

New link added.

Edit: I made it so you can't repeat the same thing over and over again in chat.

Edit edit: Server will be down for a few hours because it keeps crashing and I have to go somewhere IRL till noonish, when I get back I should be able to fix the problem.
« Last Edit: July 22, 2010, 07:03:26 AM by DrenDran »


This is the current code for the ScoreVar part of the mod:

Code: [Select]
$SSDD::var::isusingcustompoints = false;
$SSDD::var::numberofchars = 0;
$SSDD::var::charnamearray[0] = "";
$SSDD::var::varrefreshrate = 10000;
$SSDD::var::varrelay = false;

function serverCmdDDIsUsingCustomPoints(%client)
{
if($SSDD::var::isusingcustompoints)
commandtoclient(%client,'DDCustomPointsCheck',1);
}

function serverCmdDDWhatPointVarsAreUsed(%client)
{
if($SSDD::var::isusingcustompoints)
{
commandtoclient(%client,'DDCharQueryReply',$SSDD::var::numberofchars,$SSDD::var::charnamearray[0],$SSDD::var::charnamearray[1],$SSDD::var::charnamearray[2],$SSDD::var::charnamearray[3],$SSDD::var::charnamearray[4]);
}
}

function DDClearVarAss()
{
$SSDD::var::charnamearray[0] = "";
$SSDD::var::charnamearray[1] = "";
$SSDD::var::charnamearray[2] = "";
$SSDD::var::charnamearray[3] = "";
$SSDD::var::charnamearray[4] = "";
$SSDD::var::numberofchars = 0;
}

function DDCreateNewChar(%name)
{
if($SSDD::var::numberofchars < 5)
{
$SSDD::var::charnamearray[$SSDD::var::numberofchars] = %name;
$SSDD::var::numberofchars++;
}
}

function DDRetriveClientVarByName(%client,%varn)
{
%name = %client.name;
$thestor = ".";
%query = "$thestor = findclientbyname("@%name@")."@%varn@";";
eval(%query);
return $thestor;
}

function DDUpdateClientChars()
{
for(%q = 0; %q<$SSDD::var::numberofchars; %q++)
{
for(%i = 0;%i < ClientGroup.getCount();%i++)
{
%client = ClientGroup.getObject(%i);
%sendout = DDRetriveClientVarByName(%client,$SSDD::var::charnamearray[q]);
for(%v = 0;%v < ClientGroup.getCount();%v++)
{
commandtoclient(ClientGroup.getObject(%v),'DDVarUpdate',$SSDD::var::charnamearray[q],%sentout);
}

}
}
}

function DDUpdateCharRelay()
{
if($SSDD::var::varrelay)
{
DDUpdateClientChars();
schedule($SSDD::var::varrefreshrate,0,DDUpdateCharRelay);
}
}

function DDVarRelayStart()
{
$SSDD::var::varrelay = true;
DDUpdateCharRelay();
}

function DDVarRelayStop()
{
$SSDD::var::varrelay = false;
}

I've just started but as you might be able to tell you can set up to five variables to display in the score menu instead of just 'score'.
« Last Edit: July 22, 2010, 02:48:22 PM by DrenDran »

This is the current code for the ScoreVar part of the mod:

Code: [Select]
$SSDD::var::isusingcustompoints = false;
$SSDD::var::numberofchars = 0;
$SSDD::var::charnamearray[0] = "";

function serverCmdDDIsUsingCustomPoints(%client)
{
if($SSDD::var::isusingcustompoints)
commandtoclient(%client,'DDCustomPointsCheck',1);
}

function serverCmdDDWhatPointVarsAreUsed(%client)
{
if($SSDD::var::isusingcustompoints)
{
commandtoclient(%client,'DDCharQueryReply',$SSDD::var::numberofchars,$SSDD::var::charnamearray[0],$SSDD::var::charnamearray[1],$SSDD::var::charnamearray[2],$SSDD::var::charnamearray[3],$SSDD::var::charnamearray[4]);
}
}

function DDClearVarAss()
{
$SSDD::var::charnamearray[0] = "";
$SSDD::var::charnamearray[1] = "";
$SSDD::var::charnamearray[2] = "";
$SSDD::var::charnamearray[3] = "";
$SSDD::var::charnamearray[4] = "";
$SSDD::var::numberofchars = 0;
}

function DDCreateNewChar(%name)
{
if($SSDD::var::numberofchars < 5)
{
$SSDD::var::charnamearray[$SSDD::var::numberofchars] = %name;
$SSDD::var::numberofchars++;
}
}

function DDRetriveClientVarByName(%client,%varn)
{
%name = %client.name;
$thestor = ".";
%query = "$thestor = findclientbyname("@%name@")."@%varn@";";
eval(%query);
return $thestor;
}

function DDUpdateClientChars(%client)
{
for(%q = 0; %q<$SSDD::var::numberofchars; %q++)
{
for(%i = 0;%i < ClientGroup.getCount();%i++)
{
%client = ClientGroup.getObject(%i);
%sendout = DDRetriveClientVarByName(%client,$SSDD::var::charnamearray[q]);
for(%v = 0;%v < ClientGroup.getCount();%v++)
{
commandtoclient(ClientGroup.getObject(%v),'DDVarUpdate',$SSDD::var::charnamearray[q],%sentout);
}

}
}
}

I've just started but as you might be able to tell you can set up to five variables to display in the score menu instead of just 'score'.
Your epic :D

I updated the code a bit to match what I now have.
Also, it will be the job of add-on makers to set the variables to display, much like the RTB prefs system.

It could be done like this:
Code: [Select]
DDVarRelayStop();                      //Stop the current relay, stopping the updating of score-like variables.
DDClearVarAss();                          //Clear or destroy all the current variables.
DDCreateNewChar("Money");       //Make your own variable, instead of score it will say "Money" and show %client.money for example for each player.
DDVarRelayStart();                        //Start up the variable relay again.

It's making me stay in offline mode why exactly?

It's making me stay in offline mode why exactly?

Because you're not connected to the internet?

Without updates this add-on is gonna get lost and forgotten quick.
Guess I should get going on V3.

I'm sorry I couldn't understand anything over the-

If the Server Search add-on or any others have been affected by this mod...

I'm sorry I couldn't understand anything over the-

If the Server Search add-on or any others have been affected by this mod...


I've been getting a lot of idiots who say they can't use the mod at all because it overwrites the server search gui, when in reality all you have to do is click a button to turn that part of this mod off.