Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
I forgot to mention that the plugin does wait the gal_emptyserver_wait time (15
minutes in my case) after the the server empties before changing the map...but
the server should be empty for that entire 15 minute period before changing
without a vote. Certainly it should not take this action when the server is
occupied.
Original comment by robbin...@yahoo.com
on 18 Aug 2012 at 10:53
When a user connects you ensure cvar_emptyCycle is reset but never kill the
task which will eventually change the server to the empty cycle (after time
elapsed set by cvar gal_emptyserver_wait). The task is
set_task(float(waitMinutes * 60), "srv_startEmptyCycle", TASKID_EMPTYSERVER);
This task is set by function srv_startEmptyCountdown when server becomes empty
or if its empty at map start. I added the line noted in the function below
which I believe corrects the issue. This removes the above task when a user
connects.
public client_connect(id)
{
set_pcvar_num(cvar_emptyCycle, 0);
remove_task(TASKID_EMPTYSERVER); // added to fix auto change when server not empty
vote_unrock(id);
}
Original comment by robbin...@yahoo.com
on 18 Aug 2012 at 10:59
Thank you for researching this. Your fix was pretty spot on.
While investigating, I did find another issue in that even if a single player
was connected, Galileo would still consider the server empty. This was due to
some poorly written debugging code. I went ahead and took care of that at the
same time.
Original comment by jones.p....@gmail.com
on 19 Feb 2015 at 9:52
This issue was closed by revision r111.
Original comment by jones.p....@gmail.com
on 19 Feb 2015 at 10:04
Original issue reported on code.google.com by
robbin...@yahoo.com
on 29 Jun 2012 at 7:19