Community Forum

Animal Husbandry

Forum Overview >> Farming Simulator 2011

CategoryFarming Simulator 2011
Created18.10.2010 01:02


Tobias F (JD6930) 18.10.2010 01:11
Hi,

I createt a new Map like the SampleModMap in the SDK in the LS11 game directory.

I also modified this:

AnimalHusbandry.initialize();
self:loadMap(Utils.getFilename("missions/CattleMeadow.i3d", self.baseDirectory));

to load my own CattleMeadow File.

Now I get:

<
>
C:/Users/TobiasLappi/Documents/My Games/FarmingSimulator2011/mods/ModdingSocietyMap/missions/CattleMeadow.i3d (0.64mb in 231.44 ms)
dataS2/character/cow/cowAnimation.i3d (16.80mb in 1321.69 ms)
Error: Getting random navmesh position
Lua: Error running function: CattleMeadow.onCreate
D:/code/lsim2011/build/finalbin/dataS/scripts/ai/animals/world/Entity.lua(20) : you didn't provide the position (x) for the entity
<
>
data/character/farmer/farmer_player.i3d (2.40mb in 207.74 ms)
Lua: Error running function: mouseEvent
D:/code/lsim2011/build/finalbin/dataS/scripts/ai/AnimalHusbandry.lua(189) : bad argument #1 to 'getn' (table expected, got nil)
<
>

The last Error appers when i click on the start button.

I hope you have a Solution for this.

I have another question:

In the trafficPaths.xml are some splines for the Milktruck. Now the milktruck needs another spline to drive to the milkTriggger.
But how can I get the:
milkTruck1Direction
milkTruck1Indices

values ?

Happy for Help :D

Cheers


Manuel Leithner - GIANTS Software 18.10.2010 16:31
It seems that the cow spawn-points are not inside the navigation mesh.

Spawn-Positions are missing in the DEMO SDK. Please use the original CattleMeadow.i3d which is stored in the installation-folder

Tobias F (JD6930) 18.10.2010 18:29
^^ thank you :D This Problem is solved.

But now my milktruck doesnt drive in correct order. So how can I get:

milkTruck1Direction
milkTruck1Indices

in the UserAttributes of the TruckSpline.

Russell Peterson (unknown) 07.11.2010 11:42
Hi,

I'm also getting the same error:

Error: Getting random navmesh position
Lua: Error running function: CattleMeadow.onCreate
D:/code/lsim2011_version5/build/finalbin/dataS/scripts/ai/animals/world/Entity.lua(20) : you didn't provide the position (x) for the entity

But, I provided the spawn positions, as you can see in this picture:
http://dl.dropbox.com/u/3661001/map/cattle.jpg

Could someone tell me what I'm doing wrong?

Regards,
Russ

Christian R. (Nismo) 04.12.2010 13:19
Hi

I have the same error too

Error: Getting random navmesh position
Lua: Error running function: CattleMeadow.onCreate
D:/code/lsim2011/build/finalbin/dataS/scripts/ai/animals/world/Entity.lua(20) : you didn't provide the position (x) for the entity

When I push the Start Button comes this error

Lua: Error running function: mouseEvent
D:/code/lsim2011/build/finalbin/dataS/scripts/ai/AnimalHusbandry.lua(281) : bad argument #1 to 'getn' (table expected, got nil)


My Spawn positions an Trigger are all over the NavMesh

I hope on an answer

Greets



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