Community Forum

GE 7.0.3 False stationCrane.xml reference in exported map01.i3d

Forum Overview >> Editor

CategoryEditor
Created15.11.2016 18:41


Jonathan Joseph Kent (JonathanKent) 15.11.2016 19:00
I'm not sure if this is the right place to drop a (potential) bug description:

USECASE:
Create/Export the FS17 sample mod map 01 (Goldcrest Valley) in Giants Editor 7.0.3 to build my own mod map

PREC:
- install currently latest version of GE 7.0.3
- load the map01 file from directory ...Farming Simulator 17\data\maps\map01.i3d into GE
- set the games installation path in GE under "File > Preferences > Game Installation"

ACTION
A1
- use "File > New mod from game" to export the item "Map : Sample Mod Map 1" into user defined directory (not the default directory proposed by the editor)

A2
- copy the newly created mod map directoy to the mod path of FS17 and add map icon and map preview files to the directory

A3
- Try to start a new single player game with the new (so far unchanged) mod map in FS17

RESULT
R1
- Export finishes successful (no error on GE console output)

R2
- the new mod map appears in map selection of the game with the sample icon/preview pix

R3
the map loading process fails due to errors in log file:

Error: Failed to open xml file 'C:/Users/Ali/Documents/My Games/FarmingSimulator2017/mods/myMap/data/vehicles/train/stationCrane.xml'.
[...]
Error: Running LUA method 'loadSharedI3DFileFinished'.
dataS/scripts/objects/StationCrane.lua:0: attempt to index a nil value

HEALING
edit map01.i3d and add the missing $ to two appearances of the stationCrane.xml path
<UserAttribute nodeId="3889">
<Attribute name="onCreate" type="scriptCallback" value="StationCrane.onCreate"/>
<Attribute name="xmlFile" type="string" value="$data/vehicles/train/stationCrane.xml"/> <<< DOLLARSIGN MISSING BEFORE "data/"
</UserAttribute>

<UserAttribute nodeId="5694">
<Attribute name="onCreate" type="scriptCallback" value="StationCrane.onCreate"/>
<Attribute name="xmlFile" type="string" value="$data/vehicles/train/stationCrane.xml"/> <<< DOLLARSIGN MISSING BEFORE "data/"
</UserAttribute>

Do need further informations? Maybe it helps!?

Morten Samsing (MortenSam) 23.04.2017 14:06
My cranes laying on the ground and the script looks like this

<UserAttribute nodeId="5821">
<Attribute name="onCreate" type="scriptCallback" value="StationCrane.onCreate"/>
<Attribute name="xmlFile" type="string" value="$data/vehicles/train/stationCrane.xml"/>
</UserAttribute>

What else can be wrong?


Note: Log in to post. Create a new account here.