Community Forum

Error : animation.

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created29.10.2020 10:01

Geoffrey A (geooooo51) 29.10.2020 10:01

I have a problem with animations in my maps. Suddenly, all of my animation stopped working without touching anything, just by adding more animations. Now all my animations have the same error problem in the log :

2020-10-29 09:51 Error: index 'Portail2_ferme3' not found in AnimatedObject xml 'C:/Users/***/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_***/maps/animatedObjects.xml'!
2020-10-29 09:51 Error: C:/Users/***/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_***/maps/animatedObjects.xml. animation.

I really don't know where the problem come from, the paths are good.

Thanks a lot.

Bilbo Beutlin (BBeutlin) 29.10.2020 19:56
1. Don't use OneDrive (or other cloud storage) for FS related files. This often leads to errors due to enhanced access times or connectivity.

2. Make sure the label "Portail2_ferme3" is really present in the xml and pay attention to case sensitivity.

Geoffrey A (geooooo51) 29.10.2020 22:53
Thanks for the feedback.

So I removed the OneDrive, but the problem is still there :

2020-10-29 22:47 Error: index 'Portail2_ferme3' not found in AnimatedObject xml 'C:/Users/***/Documents/My Games/FarmingSimulator2019/mods/FS19_***/maps/animatedObjects.xml'!
2020-10-29 22:47 Error: C:/Users/***/Documents/My Games/FarmingSimulator2019/mods/FS19_***/maps/animatedObjects.xml. animation.

My path for the .xml AnimatedObjetcs : maps/animatedObjects.xml

In the .xml for the "Portail2_ferme3" :

<animatedObject index="Portail2_ferme3">
<controls posAction="ACTIVATE_HANDTOOL" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" />
<moving file="$data/sounds/prefab/gate/gate_opened.wav" loops="0" volume="0.8" radius="25" innerRadius="3" fadeOu="0.25"/>
<posEnd file="$data/sounds/prefab/gate/gate_opened.wav" volume="0.8" radius="25" innerRadius="3" />
<negEnd file="$data/sounds/prefab/gate/gate_closed.wav" volume="0.8" radius="25" innerRadius="3" />
<animation initialTime="0" duration="2">
<part node="2">
<keyFrame time="0.05" rotation="0 90 0" />
<keyFrame time="1.00" rotation="0 180 0" />
<part node="3">
<keyFrame time="0.05" rotation="0 90 0" />
<keyFrame time="1.00" rotation="0 0 0" />

In the mapUS.i3D :

<UserAttribute nodeId="30137">
<Attribute name="index" type="string" value="Portail2_ferme3"/>
<Attribute name="onCreate" type="scriptCallback" value="AnimatedMapObject.onCreate"/>
<Attribute name="xmlFilename" type="string" value="maps/animatedObjects.xml"/>


Bilbo Beutlin (BBeutlin) 29.10.2020 23:58
Check your xml thoroughly for right syntax. I'd guess there's an error with closing tags or similar.
Use Notepad++ features/plugins (XML tools) or a browser with debug functions or a dedicated XML validator.

Also make sure, the indexed labels are unique and you don't have double entries (also in i3d).

Geoffrey A (geooooo51) 30.10.2020 11:25
Thanks a lot, there was a </animation> missing somewhere...

Sorry if I made you lose your time just for that.

Geoffrey A (geooooo51) 30.10.2020 11:49

Geoffrey A (geooooo51) 30.10.2020 12:08

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