You must be logged in to post messages.
Please login or register

Caesar IV: Game Help
Moderated by kach, Gweilo

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Dealing with fire
posted 07-20-21 02:20 ET (US)   
I never used to have this problem, but the latest round of binging Caesar IV has seen massive waves of fire over the whole city like 6 years in. I have Hella prefects, including 4 in the little block that goes up in flames entirely. Is there a way to stop the burnination without eliminating fire entirely with cheats? Could I be doing something that makes my city more susceptible to fire?
Replies:
posted 07-20-21 16:14 ET (US)     1 / 6  
Hi PraiseBacchus

Yes fires are a pain and too many prefects often makes things worse. Have a look here
and here for some posts on the subject.

If you use the search function to find all the old posts, you'll see that fires have always been a problem.
posted 07-21-21 17:53 ET (US)     2 / 6  
I couldn't find search tbh, I didn't look at the bottom of the screen the first twelve times. But thank you. I set it at slow and it didn't work so I gave in and disabled fire. Fortunately it worked for me.
posted 08-08-21 02:50 ET (US)     3 / 6  
Hi there

I don't know what scenario you're playing, but sometimes a high unemployment might be the problem.

Generally, if you have unemployment over 3 % for the plebs and/or over 1 % for the equites citсzens might start riots and protests and decided to burn down the city.
posted 08-21-21 14:17 ET (US)     4 / 6  
I've recently been playing the game after many years of not playing. In the campaign scenarios, I wasn't having problems with fires or building collapses. But now, trying to build large cities on some of the custom scenarios, I'm having problems mostly with collapsing buildings but also with fires.

Out of disgust with the stupidity of my engineers just sitting around not repairing buildings, I did a bit of research and discovered that one can disable both fires and collapses (the "fire disable" cheat wasn't working for me).

[This message has been edited by Ilion (edited 08-21-2021 @ 02:37 PM).]

posted 08-21-21 14:25 ET (US)     5 / 6  
Here is how one can disable Fire and Collapse events [Part I] --

If the scenario one is playing already has a script file (*), just add the following lines to the "void OnScenarioLoad(IGameQueryInterface game)" method, using any text editor program --

// Deactivate Building Fire/Collapse events
bool bEnabled = false;
game.SetFireCollapse(bEnabled);


(*) The script files for the C4 scenarios are in the "[Caesar IV Installation Location]\Data\Scenarios" folder.

For example, if one is playing the "Roma modificado again" scenario, the script file would be called "Roma modificado again.CS"

As it happens, the "Roma modificado again" scenario doesn't come with a script file, but one can make one oneself.

NOTE: If the existing scenario file is already enabling/disabling the "game.SetFireCollapse" method, adding those lines will probably not eliminate fires or collapses. Two examples of such are the "Roma at Nero" and the "Thamugadi" scenarios.

[This message has been edited by Ilion (edited 08-21-2021 @ 02:45 PM).]

posted 08-21-21 14:29 ET (US)     6 / 6  
Here is how one can disable Fire and Collapse events [Part II] --

If the scenario one is playing does not already have a script file (*), create one using the following text --

using System;
using RomeScriptInterfaces;
using Scripts;

namespace Scripts
{
[Serializable]
// The main purpose of ths script is to deactivate Building Fire/Collapse events
public class [SCENARIO_NAME] : ScriptServer.IScript
// public class Romamodificadoagain : ScriptServer.IScript
{
// This is the main script loop
public void Run(object gameInterface)
{
IGameQueryInterface gameQueryInterface = (IGameQueryInterface)gameInterface;
switch(gameQueryInterface.RunReason)
{
case RunReason.kOnBeginScenario:
OnBeginScenario(gameQueryInterface);
break;

case RunReason.kOnLoadScenario:
OnScenarioLoad(gameQueryInterface);
break;
}
}

void OnBeginScenario(IGameQueryInterface game)
{

game.ScriptDone = true;
}

// Initialization needed on scenario load (from .scn and .c4s both)
// specifically, make sure the ScriptDone flag is set (for older save games)
void OnScenarioLoad(IGameQueryInterface game)
{
// Deactivate Building Fire/Collapse events
bool bEnabled = false;
game.SetFireCollapse(bEnabled);

// Set the ScriptDone flag (for older save games)
game.ScriptDone = true;
}
}
}


(*) The script files for the C4 scenarios are in the "[Caesar IV Installation Location]\Data\Scenarios" folder.

For example, if one is playing the "Roma modificado again" scenario, the script file one creates should be called "Roma modificado again.CS"

NOTE: In the above example text, replace "[SCENARIO_NAME]" with the name of the scenario, absent spaces or special characters.

For the "Roma modificado again" scenario, replace "[SCENARIO_NAME]" with "Romamodificadoagain", as seen on the commented line below that line (you can delete the commented line).

[This message has been edited by Ilion (edited 08-21-2021 @ 02:36 PM).]

Caesar IV Heaven » Forums » Caesar IV: Game Help » Dealing with fire
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Caesar IV Heaven | HeavenGames