Community Forum

Joining components

Forum Overview >> Farming Simulator 2009

CategoryFarming Simulator 2009
Created27.03.2010 10:29


Bartosz Koperski (unknown) 27.03.2010 10:37
Hello!

I have problem with components. I added new dynamic object to my mod's '.i3d. file. I also added this object as component in '.xml' file and added joint. But when I try to buy this mod, it creates near shop, but i can't attach it to tractor or sell (sell button isn't highlighted).

Log.txt shows few errors but i don't know what to do with them :


...
Lua: Unknown entity id: 0 method name: setOverlayColor
Callstack:
dataS/scripts/gui/base_gui.lua@93 (setOverlayColor)
dataS/scripts/gui/StoreMenu.lua@179 (render)
dataS/scripts/gui/menu.lua@319 (render)
dataS/scripts/main.lua@326 (render)
Lua: Unknown entity id: 0 method name: renderOverlay
Callstack:
dataS/scripts/gui/base_gui.lua@94 (renderOverlay)
dataS/scripts/gui/StoreMenu.lua@179 (render)
dataS/scripts/gui/menu.lua@319 (render)
dataS/scripts/main.lua@326 (render)
Scenefile C:/Documents and Settings/Admin/Moje dokumenty/My Games/FarmingSimulator2009/mods/D50/D50.i3d loaded in 731.781 ms
Error running lua function: mouseEvent
[string "dataS/scripts/vehicles/Vehicle.lua"]:248: attempt to index field '?' (a nil value)
Error running lua function: draw
[string "dataS/scripts/MissionStats.lua"]:746: attempt to perform arithmetic on field '?' (a nil value)
...

What's the problem?

---
Sorry for my bad english :-p


Stefan Geiger - GIANTS Software 29.03.2010 12:29

The error
[string "dataS/scripts/vehicles/Vehicle.lua"]:248: attempt to index field '?' (a nil value)

means that it is trying to access a component that is not available. Either you did not list the components correctly in the xml, or the "index" attribute of the joint is wrong.

Maybe you forgot to increase the "count" attribute of the "component" node?

Bartosz Koperski (unknown) 29.03.2010 21:42
Well, now I see that I didn't change "count". Thanks for help.


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