Community Forum

setOverlayColor

Forum Overview >> Farming Simulator 2011

CategoryFarming Simulator 2011
Created19.11.2010 18:41


Harry Paul Jones (unknown) 19.11.2010 18:41
Hello having a problem getting a mod ingame al i get is this in the log also the game it self crashes when brought , thanks for your help Jonesy;D


Lua: Unknown entity id: 0 method name: setOverlayColor
Call Stack:
D:/code/lsim2011/build/finalbin/dataS/scripts/gui/elements/BitmapElement.lua(104) : setOverlayColor
D:/code/lsim2011/build/finalbin/dataS/scripts/gui/elements/GuiElement.lua(327) : draw
D:/code/lsim2011/build/finalbin/dataS/scripts/gui/elements/ListItemElement.lua(315) : draw
D:/code/lsim2011/build/finalbin/dataS/scripts/gui/elements/GuiElement.lua(327) : draw
D:/code/lsim2011/build/finalbin/dataS/scripts/gui/elements/ListElement.lua(402) : draw
D:/code/lsim2011/build/finalbin/dataS/scripts/gui/elements/GuiElement.lua(327) : draw
D:/code/lsim2011/build/finalbin/dataS/scripts/gui/elements/BitmapElement.lua(108) : draw
D:/code/lsim2011/build/finalbin/dataS/scripts/gui/elements/GuiElement.lua(327) : draw
D:/code/lsim2011/build/finalbin/dataS/scripts/gui/Gui.lua(305) : draw
D:/code/lsim2011/build/finalbin/dataS/scripts/main.lua(763) : draw
Lua: Unknown entity id: 0 method name: renderOverlay

Andreas GroƟschedl (unknown) 19.11.2010 21:08
You have to do something like this:

local id=createImageOverlay("Filename");
setOverlayColor(id, 1,1,1,1);
renderOverlay(id,0,0,1,1);



Torsten Pfau (unknown) 19.11.2010 21:11
Hi,
looks like a false path to iconfile in modDesc?!
Icon file and imageactive has to be the same filename.

Harry Paul Jones (unknown) 20.11.2010 00:33
thanks really stupid thing i forgot to change the t to a capital , anyway while i have managed to garb you attention would you mind explaining why a mod im making flies everywhere when brought at the store , there is no control other it its just ping and its flying across the map im not sure why though .thanks for your time

it is a trailer by the way and here is the wheels in the xml

<size width="3.5" length="9.0" lengthOffset="-1.0" />
<wheels autoRotateBackSpeed="1">
<wheel driveMode="0" repr="0" radius="0.56" deltaY="0.28" suspTravel="0.3" spring="180" damper="1" mass="0.4" />
<wheel driveMode="0" repr="1" radius="0.56" deltaY="0.28" suspTravel="0.3" spring="180" damper="1" mass="0.4" />
<wheel driveMode="0" repr="2" radius="0.56" deltaY="0.28" suspTravel="0.3" spring="180" damper="1" mass="0.4" />
<wheel driveMode="0" repr="3" radius="0.56" deltaY="0.28" suspTravel="0.3" spring="180" damper="1" mass="0.4" />
</wheels>


Torsten Pfau (unknown) 24.12.2010 15:45
Perhaps two collis are pushing together- had the same problem once a time.



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