Community Forum

SetAnimalDaytime error in log

Forum Overview >> Farming Simulator 15

CategoryFarming Simulator 15
Created18.02.2015 02:57


Rich Keller (Unknown) 18.02.2015 03:01
I made some changes to the cow zone, trying to move it closer to the central farm. I have deleted/moved some things around, this is the error I get in the log now:

C:/Users/RichardKeller/Documents/My Games/FarmingSimulator2015/mods//Bjornholm_3/map/map01.i3d (62591.49 ms)
Warning (physics): Add trigger callback failed, object cowManureHeapPlane is not a physics trigger.
Warning (physics): Add trigger callback failed, object cowManureHeap_col is not a physics trigger.
Warning (physics): Add trigger callback failed, object milkrobot is not a physics trigger.
Error: index out of range
LUA call stack:
D:/code/lsim2015/build/finalbin/dataS/scripts/Utils.lua(9) : printCallstack
D:/code/lsim2015/build/finalbin/dataS/scripts/Utils.lua(58) : checkChildIndex
D:/code/lsim2015/build/finalbin/dataS/scripts/animals/AnimalHusbandry.lua(201) : indexToObject
=C:/Users/RichardKeller/Documents/My Games/FarmingSimulator2015/mods//Bjornholm_3/WaterMod/WaterMod.lua(22) : orgload
D:/code/lsim2015/build/finalbin/dataS/scripts/animals/AnimalHusbandry.lua(25) : load
Index: 5
data/vehicles/steerable/sampoRosenlew/sampoRosenlewC6.i3d (1729.68 ms)
dataS2/character/player/player.i3d (1712.21 ms)
data/vehicles/cutters/sampoRosenlew/sampoRosenlewC6.i3d (462.62 ms)
data/vehicles/steerable/huerlimann/huerlimannH488.i3d (1292.50 ms)
data/vehicles/trailers/brantner/brantnerE8041.i3d (257.03 ms)
data/vehicles/steerable/deutz/deutzAgroStar661.i3d (1079.62 ms)
data/vehicles/tools/koeckerling/koeckerlingTrio300M.i3d (704.22 ms)
data/vehicles/particleAnimations/koeckerling/koeckerlingTrio300M.i3d (188.01 ms)
data/vehicles/tools/suer/suerSB1000.i3d (158.72 ms)
data/vehicles/tools/poettinger/poettingerVitasem302A.i3d (734.98 ms)
data/vehicles/particleAnimations/poettinger/poettingerVitasem302A.i3d (32.78 ms)
data/vehicles/tools/suer/suerSB700.i3d (21.73 ms)
data/vehicles/tools/kuhn/kuhnVariMaster153.i3d (591.41 ms)
data/vehicles/particleAnimations/kuhn/kuhnVariMaster153.i3d (27.37 ms)
dataS/character/player/playerCCT.i3d (20.89 ms)
Warning (LUA): Unknown entity id 0 in method name: setAnimalDaytime.
LUA call stack:
D:/code/lsim2015/build/finalbin/dataS/scripts/animals/AnimalHusbandry.lua(647) : setAnimalDaytime
D:/code/lsim2015/build/finalbin/dataS/scripts/network/Server.lua(56) : update
D:/code/lsim2015/build/finalbin/dataS/scripts/BaseMission.lua(1115) : update
D:/code/lsim2015/build/finalbin/dataS/scripts/FSBaseMission.lua(1510) : update
D:/code/lsim2015/build/finalbin/dataS/scripts/missions/mission00.lua(213) : update
=C:/Users/RichardKeller/Documents/My Games/FarmingSimulator2015/mods//Bjornholm_3/SampleModMap.lua(118) : update
D:/code/lsim2015/build/finalbin/dataS/scripts/main.lua(1401) : update

The log repeats the last part "Warning (LUA): Unknown entity id 0 in method name: setAnimalDaytime." endlessly.

Any ideas what exactly I am looking for in order to fix? The only thing which I actually deleted (other than some fences and trees) was the nav mesh, which I recreated for bit 0. The rest of the items were moved.

Thanks

Rich

Emil Drefers (Unknown) 18.02.2015 09:36
Hi,

if you change the hierarchy of a husbandry you also have to adjust the User Attributes.
The User attributes define for example
- where in the hierarchy a trigger is placed
- what fruitTypes can be unloaded at a trigger

The best (most secure) way to adjust an husbandry is to avoid changing the hierarchy and only move objects.

Please note:
The different husbandries should be seperated (not placed next to each other) so that one husbandry is not visible if an other is.
This is due to the fact that an husbandry consumes quit a bit of computing time (path finding and animation).
So if you place them next to each other you might lower your FPS ;)

Cheers,
Emil


Rich Keller (Unknown) 19.02.2015 02:34
I don't think that I changed the hierarchy per say, I just moved the objects in the GUI with the arrows. But, I did recreate the navmesh, so is the issue then that the navmesh is not in the same place in the hierarchy? Is this also what is causing the errors with the cowManureHeap and milkrobot? Is there an easy way to fix this? Is there specific ID's they should be set to in the User Attributes?

With regards to proximity, while the cows will be closer to the central farm, they will not be in sight of the chickens. Sheep have not yet been moved, but I will keep in mind that they should not be too close to the other animals.

Thanks

Rich

Rich Keller (Unknown) 19.02.2015 03:01
OK, so after a little investigation, I discovered that I had not put the navmesh into the cows hierarchy. I moved it there, and that still did not fix the problem. But of course, when I pasted it into the cows hierarchy, it was last. I went back into GE, cut all the other items from the cows hierarchy, and pasted them back in. This resulted in the cowsNavMesh being the first item in the hierarchy, and this seems to have fixed all the errors. So it looks like the navmesh must be the first item in the hierarchy?

Thanks

Rich


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