Altitude Game: Forums  

Go Back   Altitude Game: Forums > Altitude Support > Tech Support
FAQ Community Calendar

Tech Support Trouble running the game? Found a bug? Post here.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-04-2013, 07:58 AM
VAN1SH1NG VAN1SH1NG is offline
Senior Member
 
Join Date: May 2011
Posts: 931
Default Server: Start Tournament Failing

I am working on a new ladder and having issues where start tournament will fail.

The server will announce start tournament and it even registers in the server launcher log. However, it is not really starting. Players do not get assigned to their team and specs can join.

It seems related to the use of custom commands via custom_json_commands.txt and also affected by the number of players in the server. The more custom commands and the more players in the server, the more likely tournaments are not started properly. My custom_json_commands.txt file isn't even very long.

I believe the "tournamentStart" log entry is also not being sent to the server log when this occurs.
Reply With Quote
  #2  
Old 09-05-2013, 01:00 AM
lamster lamster is offline
Administrator
 
Join Date: May 2008
Posts: 1,655
Default

Weird -- approximately how often are you observing missing entries? (~1%, 10%, 50+%)?

Could you try clearing out your log files (everything under the log directory plus servers/log.txt and servers/command.txt), run the server, and then when a problem occurs zip up all those files (everything under log, everything under servers) and let me take a look?
Reply With Quote
  #3  
Old 09-05-2013, 03:59 AM
VAN1SH1NG VAN1SH1NG is offline
Senior Member
 
Join Date: May 2011
Posts: 931
Default

OK.. so somehow I missed some really important info in the server launcher logs that pops up when this occurs.

When startTournament is called, java is throwing an error and the log is saying the server config size exceeds max allowed size.

The problem I am running into turns out to be that the more users that are in the server, the higher the server config size is (according to serverlauncher.org). If I have a good amount of users in the server my custom_json_commands.txt file has to be very small for startTournament to succeed.

Ran a test on a somewhat lengthy custom_json_commands.txt file. StartTournament fails when 5 players are team joined (if I recall correctly the error did not happen when 4 were team joined and one was in spec). With the 5 players, I got: "Server config size (1451 bytes) exceeds max allowed size (1450 bytes)". Tried adding a 6th player to check the size difference and it was 1472.

Not sure how much map list size affects this vs custom_json_commands.txt and number of players per server. But I am guessing that as is, I would be forced to either have a small map list or a only a few custom commands.

I assume this provides all the info you need, but if logs would still help I can some logs zipped up.

As is this will severly restrict what I am able to do with the server. Any ideas to get around this error?

I do currently have maps added individually to the list. I don't really mind having all the officials on the server if adding those lists will reduce the server config size. It does reduce the launcher_config.xml size, but not sure if those lists expand later and will add to the server config size anyway. (edit: tested - and did not decease config size)

It does occur 100% of the time when these conditions exist (enough custom commands + enough players in the server to push the server config size over 1450 bytes.

Last edited by VAN1SH1NG; 09-05-2013 at 04:30 AM.
Reply With Quote
  #4  
Old 09-05-2013, 04:42 AM
lamster lamster is offline
Administrator
 
Join Date: May 2008
Posts: 1,655
Default

Ah... you've run into a very annoying limitation related to max packet sizes in the Altitude network protocol, sorry about that! The only workaround for now is to optimize the size of your server config packet (note that the config is composed mostly of strings, but is LZMA-compressed so similar/repeated strings are not necessarily major contributors). Here's stuff you need to know:

1) While a tournament is active, each player that is part of the tournament (but not spectators) will add 16-21 bytes to the server config size (on average I'd expect these to add ~18 bytes after compression, to be safe you should reserve 20 * 12 = 240 bytes for 12 man tournaments)

2) The name of each "custom" server command also consumes space in this packet. To minimize size try rolling several commands into one (e.g. "rank" --> prints both TBD and BALL rank instead of "rankBall" and "rankTbd") and reducing command name length ("rank" instead of "myRanking")

3) The most important contributor is the size of the map list. I'm pretty sure special strings like |ball| will not help here -- I believe special values are expanded and then the final list of strings is compressed. For huge map lists the only workarounds I can think of involve shutting down the server, updating the map list, and restarting with the new config (annoying to implement, annoying for players). For now the best solution is to remove maps that aren't needed and (if absolutely necessary) shorten the names of existing maps (tbd_star) instead of (tbd_stars_in_the_sky).

Hope that helps! Sorry about this annoying limitation.

Last edited by lamster; 09-05-2013 at 04:56 AM.
Reply With Quote
  #5  
Old 09-05-2013, 06:18 AM
mikesol mikesol is offline
Super Moderator
 
Join Date: Jul 2009
Location: Portland, OR
Posts: 2,183
Default

On the other hand - if you change map quickly during these situations you can sometimes spawn at the turret / get all the kills for turrets / crashes
__________________
We can has sigs?
Reply With Quote
  #6  
Old 09-05-2013, 06:34 AM
VAN1SH1NG VAN1SH1NG is offline
Senior Member
 
Join Date: May 2011
Posts: 931
Default

Quote:
Originally Posted by lamster View Post
to be safe you should reserve 20 * 12 = 240 bytes for 12 man tournaments
Is there any way to check the byte size after the server launches? I am going by the size that is in the error message. Would be difficult to try to reserve at least 240 without seeing how many bytes are there.

edit: for now adding about 240 bytes of extra custom commands and testing that it doesn't error out at launch.

Last edited by VAN1SH1NG; 09-06-2013 at 12:28 AM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Altitude server fails to start sukosevato Dedicated Server 0 07-29-2013 10:33 PM
CTD on start JLZ Tech Support 7 03-25-2010 09:13 PM
Ladder Server Errors + Tournament Matches -MH-CaptainVogez Tech Support 3 01-24-2010 04:00 AM
cant start server!!! san Tech Support 1 08-23-2009 05:31 PM
start over Spirtz Suggestions 7 05-18-2009 04:32 PM


All times are GMT. The time now is 06:04 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
2008 Nimbly Games LLC