• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Need Help Wrong MAX_LOCATIONS?

Myth

Freebooter
How to calculate the number of all the locations in the game? Now MAX_LOCATIONS = 806, but in error.txt i see
RUNTIME ERROR - file: Loc_ai\LAi_location.c; line: 26 invalid index 1786082926 [size:806]

Wrong MAX_LOCATIONS?

I use Notepad ++ to work with scripts, search folder, which I have attached gives 806 results "n = n + 1;"

What have I done wrong to?
 

Attachments

  • init.zip
    167.9 KB · Views: 107
RUNTIME ERROR - file: Loc_ai\LAi_location.c; line: 26 invalid index 1786082926 [size:806]
You may want to check which line is responsible for that.
I don't imagine there can possibly be 1786082926 actual locations in the game! :shock

More likely is that there is a 'string' being used as an 'integer' in the code.
That can generate very similar errors.
 
You may want to check which line is responsible for that.
I don't imagine there can possibly be 1786082926 actual locations in the game! :shock

More likely is that there is a 'string' being used as an 'integer' in the code.
That can generate very similar errors.

LAi_LocationDisableMonstersGen("Guadeloupe_jungle_house", true); move to story_line.c - error is gone.
 
Back
Top