PDA

View Full Version : Need advice using console commands (to combat the Natural Disaster Bug)



ataribaby
03-07-2008, 03:09
Does anyone know how to use the console to trigger a natural disaster?

I've been hit by the Natural Disaster bug once too many times and I'd really like to find a workable fix. The only theory around seems to be to trigger another disaster in the affected region, cancelling out the previous one.

I found a console command to trigger events listed here: http://www.cheatscodesguides.com/pc-cheats/medieval-2-total-war/

But I can't work out the syntax. The listing reads:

event <start_year[:end_year]> <category[:type]> [<x,y> <scale>] : creates an event

The region I'm going to use is Tunis:

pos 136,63, region id 103 (Tunis Region)

Can anyone tell me what to type into the console please?

ataribaby
03-10-2008, 04:28
No one?

Ok then... does anyone know where I might find a console command expert to ask?

AussieGiant
03-14-2008, 16:59
FactionHeir is your man.

He has knowledge that makes Yoda look dumb.

Monsieur Alphonse
03-14-2008, 17:50
The only solution I know is to delete all disasters (at least the bugged ones) in descr_disasters which can be found in C:\Program Files\SEGA\Medieval II Total War\data\world\maps\base. I don't know if this is working with saved games.

TinCow
03-17-2008, 13:52
I don't think it's possible to trigger disasters with the console. You would have to use scripting.

FactionHeir
03-17-2008, 17:07
I do not believe you can trigger disasters via console. You can pregenerate disasters via campaign_script however, but that isn't of much use if it will trigger regardless of whether there has been a distaster there before or not (the former fixing it, the latter breaking what was working).

You can however deactivate certain disasters that are known to cause issues (and that are generally not announced and silently cause problems)

To do so, find descr_disasters.txt (data\world\base\).
Earthquakes and floods usually cause the issue to some extent (i.e. not each disaster of these types will always break your region, just sometimes).
Earthquakes are more likely to cause the problem.

Now, you can either make earthquakes less common (change the number behind frequency) or you can deactivate them entirely, which you can do by commenting out (;) the lines of code.

Note that doing this will only deactivate the random disaster occurences but not the scripted ones (in descr_events) which generally are harmless.

Once you made the change, save the file and delete map.rwm. Then start a new campaign and you are set.

ataribaby
03-18-2008, 18:01
Okay, thanks for that FH (and everyone else). I really should have edited those files before I began the half dozen or so campaigns I've already got going.

I was really hoping for an on-the-fly fix as I've put many hours into those games already.

:thumbsdown: This is the worst bug in the game for me; nothing else bothers me but this one. Ah well, you live and learn.

ataribaby
03-18-2008, 21:01
Once you made the change, save the file and delete map.rwm. Then start a new campaign and you are set.By the way FH, what is the map.rwm file and what does it do?