Menu

#3 Fort level mapmode crash

open
m_myers
None
3
2012-09-15
2007-09-19
m_myers
No

17blue17 said:

If I run the program on the main game - no mod - it works. However, if I run it for my handsoff mod I get the following error and the program stops prior to the map showing:

C:\Program Files\Paradox Interactive\Mods\Scenario Editor Updated\Scenario_Edito
r\Scenario_Editor>java -Xmx256m -jar EU3_Scenario_Editor.jar
Loading C:\Program Files\Paradox Interactive\Mods\Scenario Editor Updated\Scenar
io_Editor\Scenario_Editor\config.txt.
Loading took 29327795 ns.

Loading C:/Program Files/Paradox Interactive/Europa Universalis III NA\mod/hands
off.mod.
Loading took 5145127 ns.

Map file is C:/Program Files/Paradox Interactive/Europa Universalis III NA\mod/h
andsoff/map/default.map
Loading C:/Program Files/Paradox Interactive/Europa Universalis III NA\mod/hands
off/map/default.map.
Loading took 7223033 ns.

default.map:
max_provinces = 1794
sea_starts = 1302
definitions = "definition.csv"
provinces = "provinces.bmp"
positions = "positions.txt"
terrain = "terrain.bmp"
rivers = "rivers.bmp"
terrain_definition = "terrain.txt"
terrain_topology = "topology.bmp"
tree_definition = "trees.txt"
continent = "continent.txt"
adjacencies = "adjacencies.csv"
climate = "climate.txt"

Main EU3 directory is C:/Program Files/Paradox Interactive/Europa Universalis II
I NA\
Mod directory is C:/Program Files/Paradox Interactive/Europa Universalis III NA\
mod/handsoff/
Reading map...
Done.
Loading province history...
Done.
Exception in thread "main" java.lang.NumberFormatException: For input string: "0
.1"
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.valueOf(Unknown Source)
at eug.shared.GenericObject.getInt(GenericObject.java :180)
at editor.mapmode.FortMapMode.initialize(FortMapMode. java:43)
at editor.mapmode.FortMapMode.<init>(FortMapMode.java:35)
at editor.EditorUI$FortLevelFilterAction.<init>(EditorUI.java:1385)
at editor.EditorUI.addBuildingFilters(EditorUI.java:9 41)
at editor.EditorUI.addFilters(EditorUI.java:874)
at editor.EditorUI.<init>(EditorUI.java:71)
at editor.Main.main(Main.java:44)</init></init></init>

What can be causing this? My mod has a modifed map with extra provinces. The mod works fine in game but not with the editor. Any help appreciated.

Thanks

Later added:

Tracked the error down to the building.txt file in my mod. I had added the following from one of the mods (don't remember which one):

Outpost = {
prerequisites = { Legendary_Fort }
cost = 90000
time = 90000
fort_level = 0.1
}

If I change this to fort_level = 1 then everything works fine

Thanks

Discussion

  • m_myers

    m_myers - 2007-09-28

    Logged In: YES
    user_id=1887441
    Originator: YES

    Need to know whether fort_level = 0.1 actually works in the game. Can someone test this?

     
  • m_myers

    m_myers - 2007-12-18

    Logged In: YES
    user_id=1887441
    Originator: YES

    fort_level = 0.1 is read as 0 by the game, so it's not very useful. Downgraded to priority 3.

     

Log in to post a comment.