Server Help

General Questions - Server log bug

Maverick - Sun Jan 10, 2010 3:26 pm
Post subject: Server log bug
Ever since 01-01-2010 00:00 the subgame server has a log bug that makes logging appear on two lines instead of one:

Code: Show/Hide
Thu Dec 31 23:44:52:  Kickout delay exceeded: Jebass
Thu Dec 31 23:48:29:  Played kicked off for too many deaths without firing: Send
Thu Dec 31 23:49:14:  Kickout delay exceeded: Jebass
Thu Dec 31 23:52:59:  Private arena dropped: trenchwars
Thu Dec 31 23:53:47:  Ext: cheater: (Lord Lucifer) (Public 0): hatemail logging off and on to avoid mines
Thu Dec 31 23:55:13:  Ext: cheater: (phyre) (baseelim): turban<er> happy new years turban!
Fri Jan 01 00:01:50 2010
:  Kickout delay exceeded: Sugarr
Fri Jan 01 00:02:14 2010
:  Private arena dropped: #sage
Fri Jan 01 00:03:04 2010
:  Kickout delay exceeded: God Fodao
Fri Jan 01 00:03:41 2010
:  Played kicked off for too many deaths without firing: Famous Hero
Fri Jan 01 00:04:05 2010
:  Ext: help: (Jebass) (tWdD): HAPPY NEW YEAR AND THANKS TO ALL U STAFFERDS
Fri Jan 01 00:04:22 2010
:  Ext: help: (Davy) (Public 0): turretwars
Fri Jan 01 00:04:37 2010
:  Kickout delay exceeded: Hyland
Fri Jan 01 00:04:47 2010
:  Private arena dropped: #medieval
Fri Jan 01 00:05:09 2010
:  Ext: help: (Reserve) (elim): Happy new years twstaff
Fri Jan 01 00:05:19 2010
:  Private arena dropped: javs
Fri Jan 01 00:07:53 2010
:  Private arena dropped: farm
Fri Jan 01 00:08:26 2010
:  Ext: help: (riske) (baseelim): HOW ABOUT A SPAWNFEST TO START THE NEW YEAR?
Fri Jan 01 00:11:11 2010
:  Ext: Re-reading C:\Subspace\TW\baseelim.cfg
Fri Jan 01 00:11:40 2010
:  Played kicked off for too many deaths without firing: BurnDeath
Fri Jan 01 00:12:02 2010
:  Ext: help: (luc the destroyer) (baseelim): are you gay turban?
Fri Jan 01 00:12:26 2010
:  Ext: help: (mr fast) (baseelim): HAPPY NEW YEARS FROM CANADA!
Fri Jan 01 00:16:39 2010
:  Private arena dropped: BJ
Fri Jan 01 00:17:44 2010
:  Private arena dropped: extemegames
Fri Jan 01 00:17:47 2010
:  Private arena dropped: extremegames
Fri Jan 01 00:17:47 2010
:  Played kicked off for too many ship type changes: a_branch_in_mud
Fri Jan 01 00:17:56 2010
:  Private arena dropped: #twld


Unfortunately, some bots of Trench Wars depend on the *log output for correct functioning and because of this, they have been malfunctioning ever since.

This will probably never get fixed but I just want to throw this out in the open to discuss about, maybe there is something we can do?
Samapico - Sun Jan 10, 2010 6:25 pm
Post subject:
That's a lolbug
L.C. - Sun Jan 10, 2010 7:07 pm
Post subject:
lolol. Someone could try to write a plugin for subgame2.
divine.216 - Sun Jan 10, 2010 7:44 pm
Post subject:
[subgame2.exe+0x2bf63]++

that'll give a 10-year fix

also, h/t cycad, junky --
Quote:
Ratio> 1:cycad> junky, subgame was doing strstr(asctime(now), "199") and strstr(asctime(now), "200")) to find the year

divine.216 - Sun Jan 10, 2010 9:01 pm
Post subject:
In case that wasn't helpful . . .

For those with vim (I have no idea if windows offers a native way to script fiddle with bytes in a file) this should do the trick against the subgame from subspacedownloads.com's subgame14.zip:
Quote:
$ vim -c ":180068go|:s/200/201/|:wq" subgame2.exe


It's sloppy and hackish, but then, you are still using subgame . . .

Someone should update the packages at the download sites.
Samapico - Mon Jan 11, 2010 12:19 am
Post subject:
Quote:
Ratio> 1:cycad> junky, subgame was doing strstr(asctime(now), "199") and strstr(asctime(now), "200")) to find the year
What the hell? People in the 90's programmed like that?
And all that trouble to (apparently) print the full date without the year?
L.C. - Mon Jan 11, 2010 11:48 am
Post subject:
Hey, could someone upload divine's updated/hacked-edit of subgame2.exe? I would like to update the executables on BlueT and in my Server Kit.

PS. Thanks a million divine for the fix! =D
divine.216 - Mon Jan 11, 2010 1:16 pm
Post subject:
You can grab the modified exe here.

You'll note that only one byte changed between that file and the subgame2.exe inside subgame14.zip (which I got from here)

Code: Show/Hide

$ cmp -l subgame2.exe subgame2.exe.bak
180068  60  61


Hope that helps.
Maverick - Mon Jan 11, 2010 2:21 pm
Post subject:
Thanks divine. Unfortunately I don't think the subgame2.exe on Priitk's server will ever get updated.

Attached the modified .exe here for future reference.
cycad - Tue Jan 12, 2010 1:39 am
Post subject:
It amazes me that even after explaining this bug and how it's been fixed to Polix, Junky, emailing PriitK, leaving messages for Ghost Ship, etc that people are still duplicating effort and communication is lost.

This bug has been fixed, there's a patch that fixes it, along with more, at https://75rw.net/subgame2_addon.php.

Those of us on SSCU have a literally once a decade chance to get something done on the server and here we are dividing effort and failing to communicate properly. I congratulate us all.

Edited to add: To give this some context, I just found out about this thread through http://www.ssforum.net/index.php?showtopic=24254 which was just sent through zone messages by Polix.

Also edited to add: div, nice work and novel vim usage.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group