Accidentally set timeout

Web version of freeciv at play.freeciv.org
drdogbot7
Posts: 22
Joined: Sun Mar 12, 2017 3:25 pm

Accidentally set timeout

Postby drdogbot7 » Tue Mar 21, 2017 12:17 pm

I was fiddling around with the options and accidentally set a timeout value in a PBEM game.

Is there any way to remove this once it's been set?

edd
Posts: 14
Joined: Wed Jun 12, 2013 6:22 am

Re: Accidentally set timeout

Postby edd » Tue Mar 21, 2017 4:34 pm

/set timeout 0 is the usual way. Does it work for you?

drdogbot7
Posts: 22
Joined: Sun Mar 12, 2017 3:25 pm

Re: Accidentally set timeout

Postby drdogbot7 » Tue Mar 21, 2017 5:35 pm

Using the UI on the options page, I can enter the "0" as the value but it doesn't take. It just retains the previously input timeout value.

Using the console and entering:

Code: Select all

/set timeout 0
I get the message "You are not allowed to set timeout values less than 30 seconds".

The best solution I've come up with is to set the timeout value to 3600 (1 hour), which is more than enough time.

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: Accidentally set timeout

Postby AndreasR » Tue Mar 21, 2017 6:03 pm

Thanks for reporting this problem. Using /set timeout 3600 should solve the problem for now.
I have made a change so that the timeout value can not be changed by accident in the UI in the options panel in PBEM games from now on.

The reason that you are not allowed to set the timeout to less than 30 seconds in Freeciv, is to prevent someone from setting the timeout to -1 (autogame) or a very low value (eg 2 seconds) to "attack" the public server by making the server run lots of turns very fast. Unfortunately, this also prevents setting the timeout value to 0. The source is here. (I consider this a bug in the Freeciv server..)

sveinung
Elite
Posts: 469
Joined: Wed Feb 20, 2013 4:50 pm

Re: Accidentally set timeout

Postby sveinung » Wed Mar 22, 2017 2:37 pm

AndreasR wrote:(I consider this a bug in the Freeciv server..)

I agree.