View Full Version : Change Game Speed In-Game


Molybdeus
Mar 15, 2007, 07:00 PM
Is there any way to change the speed of the game in-game? For example, moving from normal speed to marathon speed when Liberalism is discovered and then back to normal after 30 turns? (IE, is this an engine thing or an XML thing?)

Civ4GameSpeedInfo contains the XML info for the actual game speed. What I need to know is how to change which of the options (GAMESPEED_MARATHON or GAMESPEED_NORMAL) the game is using via python.

IVZanIV
Mar 15, 2007, 07:24 PM
In CyGame there is a function to get the game speed type, (.getGameSpeedType()) but there is no way to set the game speed. I believe SDK would be necessary.

Molybdeus
Mar 15, 2007, 09:33 PM
Would I just have to add something like . . .

GameSpeedTypes CuGame :: setGameSpeedType(int iSpeed) const
{
int getGameSpeed() = iSpeed
}

You pass iSpeed something like GAMESPEED_MARATHON

My [complete lack of] programming skills are years old, and I've never used Python. But it seems like that should work. Can any experienced users tel me if that would work?

EDIT: No it won't. I am an idiot.