PDA

View Full Version : New gserver + npcserver version


Admins
02-07-2011, 05:40 PM
We have uploaded new versions of gserver and npcserver (except for Graal Kingdoms). The gserver is now enabling the projectile filters as described by Tig in an earlier post. The npcserver has following changes:
- added TServerPlayer.sendtorc(message)
- fixed default: labels in switch() statements, doesn't need to be at the last position anymore
- added command /memstats malloc (can show number of free allocated blocks etc., more interesting for advanced users, see mallinfo() documentation on the web)
- optimized mysql database access

cbk1994
02-07-2011, 05:45 PM
- added TServerPlayer.sendtorc(message)

Thank you.

WhiteDragon
02-07-2011, 05:54 PM
- added command /memstats malloc (can show number of free allocated blocks etc., more interesting for advanced users, see mallinfo() documentation on the web)
Very cool, thanks for the update.

Crow
02-07-2011, 06:06 PM
Thanks. Restart Atlantis please ^^

fowlplay4
02-07-2011, 06:11 PM
Impersonating staff on RC just got a lot easier.


function secho(msg) {
for (temp.rc: findRCs()) {
temp.rc.sendtorc(msg);
}
}

function findRCs() {
for (a: allplayers) {
if (a.level == NULL) temp.rcs.add(a);
}
return temp.rcs;
}


Edit: Private debugging echo


function echo(msg) {
findRC("yourAcct").sendtorc(msg);
}

function findRC(acct) {
for (a: allplayers) if (a.account == acct) return a;
return findplayer(acct);
}

Deas_Voice
02-07-2011, 08:00 PM
nice :)

does "TServerPlayer.sendtorc(message)" mean that it only shows for player (and not to the other players on rc)?

Testbed Server(not "testbed", lol)' npcserver went kaput, cant restart it, could you restart it?

Tigairius
02-07-2011, 08:18 PM
- added TServerPlayer.sendtorc(message)


Well, this is lovely :)

nice :)

does "TServerPlayer.sendtorc(message)" mean that it only shows for player (and not to the other players on rc)?

Indeed.


Testbed Server(not "testbed", lol)' npcserver went kaput, cant restart it, could you restart it?
Fixed the name.

Matt
02-07-2011, 10:07 PM
Nice updates. ^^

Admins
02-07-2011, 10:39 PM
Fixed a problem in the script compiler so that testbed is starting again.

LoneAngelIbesu
02-08-2011, 12:26 AM
Impersonating staff on RC just got a lot easier.


Not sure why people with RC would want to impersonate other people with RC...

fowlplay4
02-08-2011, 12:38 AM
Not sure why people with RC would want to impersonate other people with RC...

Shenanigans, that's why.

Crono
02-08-2011, 01:54 AM
help fowlplay abusing me ;_;...

PowerProNL
02-12-2011, 11:21 AM
Nice:D

ffcmike
02-13-2011, 08:09 PM
Is this update supposed to be removing the need to manually update gmaps whenever a gmap level is uploaded?

This seems to be the case and :cool: if true.

ffcmike
05-17-2011, 03:16 PM
Is this update supposed to be removing the need to manually update gmaps whenever a gmap level is uploaded?

This seems to be the case and :cool: if true.

So it seems pretty definite that this is the case, and while this is a decent update I've noticed some strange behaviour regarding clientside scripts joined to gmap npcs.
Sometimes normal functions which are part of a joined sub-class, called onCreated or on the first onPlayerEnters will return the "not found" error in f2/scripts, and this starts working again when the gmap is updated by the old manual way.

For instance...

NPC script:

this.join("class1");

//#CLIENTSIDE
function onCreated(){
this.test();
}

class1 script:

this.join("class2");

//#CLIENTSIDE
function test(){
if(this.someCheck()){
this.doSomething();
}
}

class2 script:

//#CLIENTSIDE
function someCheck(){
return somecondition;
}

Would result in:

"someCheck not found in script of <some gmap npc>".