Not executing server console commands when no real players.

For all the help you need with Armagetron!
Post Reply
User avatar
p4
On Lightcycle Grid
Posts: 10
Joined: Mon Jun 12, 2006 8:02 pm
Location: 50°17'50.79"N 18°41'04.70"E
Contact:

Not executing server console commands when no real players.

Post by p4 »

I'm using 0.2.8_alpha20070403 server (pigsty patched). All commands that are send through server console are executed when 1st player enters the grid (as a player). I think this is bug. When 1st player connects mass settings are sends. Why it happens? Can we expect changes? Maybe one can write a patch?
It looks like it happens only to version 0.2.8_alpha20070403 (0.2.8.2.1 dediacted is free of this bug). I'll try to find who prepared this binaries. Anyone knows where the problem can be?
Last edited by p4 on Mon Jul 09, 2007 2:00 am, edited 1 time in total.
Image
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

same happens between rounds...

p4, are you speaking of commands from stdin or from remote admin ?
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

I always get a second or so delay here before the commands are executed. It may have something to do with standard input and standard output being linked; when you read something from input, all output is flushed. A reverse link (input is only flushed when you print something) may be possible as well. Anybody know details?

Another possible cause may be the select() system call that is called while the server is in idle mode to block until there is network traffic to handle. It gets told to return after 1/10 of a second if no data comes in, so this would be a bug in either the way it is called (time format transformations) or in the select() function itself. The call is new and was introduced after 0.2.8.2.1.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

I've noticed that from when the grid is destroyed to when it's created all console input is queued, so roughly between rounds, if that helps at all. It executes afterwards though.
Image
Post Reply