Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Server log bug

 
Post new topic   Reply to topic Printable version
 View previous topic  before i bunch a bunch of time into a ... Post :: Post cursor  View next topic  
Author Message
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Sun Jan 10, 2010 3:26 pm    Post subject: Server log bug Reply to topic Reply with quote

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?
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Sun Jan 10, 2010 6:25 pm    Post subject: Reply to topic Reply with quote

That's a lolbug
_________________
(Insert a bunch of dead links here)
Back to top
View users profile Send private message Add User to Ignore List
L.C.
Server Help Squatter


Age:34
Gender:Gender:Male
Joined: Jan 03 2003
Posts: 574
Location: Missouri, US
Offline

PostPosted: Sun Jan 10, 2010 7:07 pm    Post subject: Reply to topic Reply with quote

lolol. Someone could try to write a plugin for subgame2.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
divine.216
Newbie


Joined: Jun 12 2005
Posts: 18
Offline

PostPosted: Sun Jan 10, 2010 7:44 pm    Post subject: Reply to topic Reply with quote

[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
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
divine.216
Newbie


Joined: Jun 12 2005
Posts: 18
Offline

PostPosted: Sun Jan 10, 2010 9:01 pm    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Mon Jan 11, 2010 12:19 am    Post subject: Reply to topic Reply with quote

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?
Back to top
View users profile Send private message Add User to Ignore List
L.C.
Server Help Squatter


Age:34
Gender:Gender:Male
Joined: Jan 03 2003
Posts: 574
Location: Missouri, US
Offline

PostPosted: Mon Jan 11, 2010 11:48 am    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
divine.216
Newbie


Joined: Jun 12 2005
Posts: 18
Offline

PostPosted: Mon Jan 11, 2010 1:16 pm    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Mon Jan 11, 2010 2:21 pm    Post subject: Reply to topic Reply with quote

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.




Modified divine.216's subgame2.exe for fixing the log bug.

subgame2.zip - 96.95 KB
File downloaded or viewed 48 time(s)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
cycad
Novice


Gender:Gender:Male
Joined: Feb 12 2004
Posts: 29
Offline

PostPosted: Tue Jan 12, 2010 1:39 am    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> General Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 12 page(s) served in previous 5 minutes.

phpBB Created this page in 0.613042 seconds : 36 queries executed (89.4%): GZIP compression disabled