Infinite games

Do you want to help out with Freeciv development? Then check out this forum.
elanto
Posts: 4
Joined: Mon Mar 31, 2014 3:03 pm

Infinite games

Postby elanto » Mon Mar 31, 2014 3:10 pm

Can I make infinites games in freeciv? Can I remove the limit of the turns?
Sorry for my bad inglish, I am Spanish.
thank you very much for the help.

Caedo
Elite
Posts: 439
Joined: Sun Feb 10, 2013 10:21 pm
Location: Germany

Re: Infinite games

Postby Caedo » Mon Mar 31, 2014 4:19 pm

Currently, code wise, it's not possible, since the turn number is saved as a two-byte number. However, if you know where to look, you could save the game when nearing the final turn, modify the save game to say turn 0 and load the new one.

cazfi
Elite
Posts: 1506
Joined: Tue Jan 29, 2013 6:54 pm

Re: Infinite games

Postby cazfi » Mon Mar 31, 2014 4:31 pm

Caedo wrote:Currently, code wise, it's not possible, since the turn number is saved as a two-byte number. However, if you know where to look, you could save the game when nearing the final turn, modify the save game to say turn 0 and load the new one.

...at which point you will have units with negative age etc.

Maximum number of turns is 32767 which already is almost 100 times the length of typical game. You can set that to use by typing "/set endturn 32767" to chatline.

Caedo
Elite
Posts: 439
Joined: Sun Feb 10, 2013 10:21 pm
Location: Germany

Re: Infinite games

Postby Caedo » Mon Mar 31, 2014 5:14 pm

BTW, why isn't the turn number a ushort? We'll never need negative turns, right?

elanto
Posts: 4
Joined: Mon Mar 31, 2014 3:03 pm

Re: Infinite games

Postby elanto » Mon Mar 31, 2014 7:26 pm

It should have an option for that victory was to eliminate all opponents, would give the game more playability
In Civilization is it? I read that someone had a game of 10 years!

cazfi
Elite
Posts: 1506
Joined: Tue Jan 29, 2013 6:54 pm

Re: Infinite games

Postby cazfi » Mon Mar 31, 2014 7:44 pm

elanto wrote:I read that someone had a game of 10 years!

Yes, that game was something like 4000 AC, which makes it somewhere around turn 4000 - one tenth of the freeciv maximum.

elanto
Posts: 4
Joined: Mon Mar 31, 2014 3:03 pm

Re: Infinite games

Postby elanto » Mon Mar 31, 2014 8:18 pm

I mean 10 years of real time. The game was in the year 3391. And he says that even his remaining years of play and was gonna try to change the world that had been apocalyptic. Is this possible in FreeCiv?
Thank you all for the answers and if anyone knows how to do unlimited to tell me :)

cazfi
Elite
Posts: 1506
Joined: Tue Jan 29, 2013 6:54 pm

Re: Infinite games

Postby cazfi » Mon Mar 31, 2014 9:14 pm

For most of us the current freeciv maximum of 32767 turns is practically infinite.

As I said year 3391 AD is less than turn 4000. Maximum number of turns in Freeciv is over 30000 - almost 10 times the number of turns that guy has played in 10 years.

Play the game to turn 20000 first (50 years in real time :-), and then we start worrying how to increase the limit while you play next 12000.

elanto
Posts: 4
Joined: Mon Mar 31, 2014 3:03 pm

Re: Infinite games

Postby elanto » Tue Apr 01, 2014 5:14 pm

jajaja ok
thank you very much to all for the info! :)