Blockland Forums > General Discussion
Blockoworld 2013 - CANCELED ! View OP
<< < (34/60) > >>
Nymph:
Btw munk was helping with this convention a clan thing, because if so i wasn't warned
DontCare4Free:

--- Quote from: Kalphiter on April 08, 2013, 09:32:52 PM ---How the forget was I supposed to know that chat would be spammed? It's not my fault that when discovering a bug, I triggered another bug.

You guys really have no respect for bug finders. It's disgusting.

--- End quote ---
Yes, it's a known issue since forever. No, it can't really be fixed, since the hook it uses (which is the earliest I've found so far where it's still late enough that the BL_ID has already been received) is late enough that you can't silently kick someone any more. I decided to do the next best thing.

If you have a fix (either a silent kick or an earlier hook), tell me or send a pull request. Until then, just don't do it.
Plexious:
How about instead of kicking them you ban them for 5 minutes every time they connect?
Pecon:
I know the DRPG code has a hook that is early enough for the name not to appear, I'll look around in the code and see if I find it.

EDIT: This should be useful.

--- Code: ---function GameConnection::onConnectRequest(%this,%a,%b,%c,%d,%e,%f,%g,%h,%i)
{
echo("\n" @ %c SPC "trying to connect.");
if(%f !$= "")
{
%this.hasRTB = 1;
%this.rtbVersion = %f;
}
if(getField(%h,1) $= "DRPG")
{
echo(%c SPC "trying to connect with DRPG v" @ getField(%h,2) @ ".");
if(trim(getField(%h,2)) >= trim($DRPG::ClientVersion))
{
%this.hasDRPG = 1;
%this.drpgVersion = getField(%h,2);
Parent::onConnectRequest(%this,%a,%b,%c,%d,%e,%f,%g,%h,%i);
}
else
{
echo(%C SPC "needs to download a new version of DRPG.");
%this.schedule(0,"delete","You need the latest <a:www.mediafire.com/?ifq8z91zhj4pq5i/>Client</a> (v" @ $DRPG::ClientVersion @ " ) to play on this server.");
return;
}
}
else
{
echo(%c SPC "trying to connect without DRPG.");
%this.schedule(0,"delete","You need the latest <a:www.mediafire.com/?ifq8z91zhj4pq5i/>Client</a> (v" @ $DRPG::ClientVersion @ " ) to play on this server.");
}
}
--- End code ---
DontCare4Free:

--- Quote from: Pecon on April 09, 2013, 12:31:36 AM ---I know the DRPG code has a hook that is early enough for the name not to appear, I'll look around in the code and see if I find it.

--- End quote ---
DRPG just checks if it's in a list of add-ons the client sends. There is a hook where you can get things like the name, but since this requires the BL_ID, which requires that it first sends a request to the auth server, that's not going to work.
Navigation
Message Index
Next page
Previous page

Go to full version