Vice Underdogs

Scripting => Script Showroom => Topic started by: stormeus on September 30, 2011, 02:08:57 am

Title: Squirrel Server, Sans Death Messages
Post by: stormeus on September 30, 2011, 02:08:57 am
Holy crap, a new version here (http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=2.msg1485#msg1485)

Quote
Boring Story
I cracked open the VC:MP Squirrel Server in a debugger and started looking through it. There was some interesting stuff (SendSpikeStrip and onPlayerCrashDump, for example) and found where the death messages are. I figured it would be useful to have a server that didn't FORCE the "X killed Y" messages.

After an hour of reading about assembly and jumping between addresses, I found the address that sent the messages (0040BAE0). I null'ed it (NOP) so it would not send a message. onPlayerDeath, onPlayerKill, and onPlayerTeamKill will work and the death will still be logged in the console.

Somewhat Tested
All messages are confirmed as nullified and will not be sent. However, the server callbacks still get thrown and the dead player will show up as dead to everyone else.

I have no idea what other effects this might have on the server, if any, so I wouldn't recommend using this on a production server just yet.

Actually Important Stuff
It's the same as the VC:MP Squirrel (http://vcmp.liberty-unleashed.co.uk) server, except it won't show the "X killed Y" or "X died" messages. Those are basically customizable by scripts now. This is not for Pawn.

Download
A Linux version is not available. Source code is not available, as it was hacked by using a debugger.
Windows server (http://www.mediafire.com/?jt7ketv1ycwkkej)
Title: Re: [WIP] Squirrel Server, Sans Death Messages
Post by: Thijn on September 30, 2011, 05:51:42 am
Looks nice, altho you could've just asked Juppi or VRocker :P
Title: Re: [WIP] Squirrel Server, Sans Death Messages
Post by: stormeus on September 30, 2011, 06:08:39 am
Looks nice, altho you could've just asked Juppi or VRocker :P

I was in a pretty DIY mood. :P
Title: Re: [WIP] Squirrel Server, Sans Death Messages
Post by: Charley on September 30, 2011, 10:13:59 am
Very naice. The only problem here is that they still haven't released the mem leak free server, so if we were to use this one the mem leak would come back.
Title: Re: [WIP] Squirrel Server, Sans Death Messages
Post by: VRocker on September 30, 2011, 10:50:38 am
Hmmm i'd be interested to know if this causes any issues. Not sure if we tried doing this before.

If it works without any problems, we could add this properly so you would just need to return under the onPlayerDeath (like in LU)

Nice work anyway :)

Very naice. The only problem here is that they still haven't released the mem leak free server, so if we were to use this one the mem leak would come back.

The mem-leak free server has been passed around a bit, but seems to fail for some people :/ it either doesn't work or it still leaks, which is very strange.
Still needs looking into.
Title: Re: [WIP] Squirrel Server, Sans Death Messages
Post by: stormeus on September 30, 2011, 04:25:54 pm
Hmmm i'd be interested to know if this causes any issues. Not sure if we tried doing this before.

If it works without any problems, we could add this properly so you would just need to return under the onPlayerDeath (like in LU)

Nice work anyway :)
Thanks. :)
I'm thinking of deploying it on Argonath's beta server to see if it works properly with kills and team-kills.
Title: Re: [WIP] Squirrel Server, Sans Death Messages
Post by: aXXo on September 30, 2011, 06:32:00 pm
Nice work mang  ;)
Title: Re: [WIP] Squirrel Server, Sans Death Messages
Post by: morphine on September 30, 2011, 06:46:18 pm
Works perfectly. I've seen it on the Argonath Beta Server just now.
Title: Re: [WIP] Squirrel Server, Sans Death Messages
Post by: stormeus on September 30, 2011, 07:07:53 pm
Uploaded a newer version which NOPs teamkills and kills as well.

EDIT: http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=2.msg1485#msg1485
Well, it was fun while it lasted.
Title: Re: Squirrel Server, Sans Death Messages
Post by: Knucis on September 30, 2011, 09:47:19 pm
Holy shit, this is awesome!