John Deere Combine Script Help needed !?!
flatbush71
Join Date: 2010-07-06 Member: 72275Members
in Decoda
<div class="IPBDescription">Is Decoda what I need to fix it ?</div>Fellows I already know I'm way in over my head by posting here. I'm old and retired and spend my days baby sitting my youngest granddaughter and Running a Sim called Farm Simulator Gold 2009. Well, it has a lot of home made mods (Custom combines , tractors , and such) which most of are busted. Can I use this program to scan the .lua files and in a moment of true clarity and a lot of luck, just might be able to fix one or two of the errors that prevent me from combining or baling hay ? I will patiently await your answer.
Thank You
Buck
Thank You
Buck
Comments
I feel bad telling you this, but Decoda is a tool for programmers. I'm afraid it can't automatically fix errors in the code contained within .lua files.
Your best bet would be to get in contact with the original authors of those mods and see if they have updated versions of them. Most often the author will include his or her website or email address at the top of the .lua file. You can just open them in notepad to see that information. Another option would be to see if the farm sim gold 2009 community could suggest alternative mods that add the same functionality without the bugs.
Good luck,
--Scythe--
I do this for fun ( you should see my blood pressure after the fifth crash) and to kill time, so I really wasn't planning on buying anything. What would you recommend for a old fool,that's free. Thank you for your response.
Buck
Edit : The section screen on the upper left listing the different parts is very helpful. The error code does list those parts a lot of the time.
The error Log :
Error: index out of range
Callstack:
dataS/scripts/Utils.lua@8 (printCallstack)
dataS/scripts/Utils.lua@47 (checkChildIndex)
C:/Users/Tara/Documents/My Games/FarmingSimulator2009/mods/JD9030/JD9030.lua@233 (indexToObject)
dataS/scripts/vehicles/Vehicle.lua@489 (load)
dataS/scripts/BaseMission.lua@414 (new)
dataS/missions/mission00.lua@313 (loadVehicle)
dataS/missions/mission00.lua@171 (loadVehicles)
dataS/scripts/events.lua@50 (load)
dataS/scripts/gui/LoadingScreen.lua@47 (loadFunction)
dataS/scripts/gui/menu.lua@297 (update)
dataS/scripts/main.lua@340 (update)
Index: 0|0|0|1
Error: index out of range
Callstack:
dataS/scripts/Utils.lua@8 (printCallstack)
dataS/scripts/Utils.lua@47 (checkChildIndex)
C:/Users/Tara/Documents/My Games/FarmingSimulator2009/mods/JD9030/JD9030.lua@233 (indexToObject)
dataS/scripts/vehicles/Vehicle.lua@489 (load)
dataS/scripts/BaseMission.lua@414 (new)
dataS/missions/mission00.lua@313 (loadVehicle)
dataS/missions/mission00.lua@171 (loadVehicles)
dataS/scripts/events.lua@50 (load)
dataS/scripts/gui/LoadingScreen.lua@47 (loadFunction)
dataS/scripts/gui/menu.lua@297 (update)
dataS/scripts/main.lua@340 (update)
Index: 1|0|0|1
Error: index out of range
Callstack:
dataS/scripts/Utils.lua@8 (printCallstack)
dataS/scripts/Utils.lua@47 (checkChildIndex)
C:/Users/Tara/Documents/My Games/FarmingSimulator2009/mods/JD9030/JD9030.lua@233 (indexToObject)
dataS/scripts/vehicles/Vehicle.lua@489 (load)
dataS/scripts/BaseMission.lua@414 (new)
dataS/missions/mission00.lua@313 (loadVehicle)
dataS/missions/mission00.lua@171 (loadVehicles)
dataS/scripts/events.lua@50 (load)
dataS/scripts/gui/LoadingScreen.lua@47 (loadFunction)
dataS/scripts/gui/menu.lua@297 (update)
dataS/scripts/main.lua@340 (update)
Index: 2|0|0|1
Error: index out of range
Callstack:
dataS/scripts/Utils.lua@8 (printCallstack)
dataS/scripts/Utils.lua@47 (checkChildIndex)
C:/Users/Tara/Documents/My Games/FarmingSimulator2009/mods/JD9030/JD9030.lua@233 (indexToObject)
dataS/scripts/vehicles/Vehicle.lua@489 (load)
dataS/scripts/BaseMission.lua@414 (new)
dataS/missions/mission00.lua@313 (loadVehicle)
dataS/missions/mission00.lua@171 (loadVehicles)
dataS/scripts/events.lua@50 (load)
dataS/scripts/gui/LoadingScreen.lua@47 (loadFunction)
dataS/scripts/gui/menu.lua@297 (update)
dataS/scripts/main.lua@340 (update)
Line 229-236 in lua (note 233 error)
numparts = Utils.getNoNil(getXMLInt(xmlFile, "vehicle.parts#count"), 0);
self.parts = {};
for i=1, numparts do
local partnamei = string.format("vehicle.parts.part%d", i);
self.parts[i] = Utils.indexToObject(self.components, getXMLString(xmlFile, partnamei .. "#index"));
setVisibility(self.parts[i], false);
end;
self.partsActive = false;
the parts count in the XML:
<parts count="4">
<part1 index="0|0|0|1" />
<part2 index="1|0|0|1" />
<part3 index="2|0|0|1" />
<part4 index="3|0|0|1" />
</parts>
Please give me idea what wrong, I just a old man tryin to learn a little.
Buck
Try setting a new variable to "Utils.indexToObject(self.components, getXMLString(xmlFile, partnamei .. "#index"));" and then assigning that variable to the location in the array:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->newVar = Utils.indexToObject(self.components, getXMLString(xmlFile, partnamei .. "#index"));
self.parts[i] = newVar;<!--c2--></div><!--ec2-->
That might narrow it down a bit.
--Scythe--
Buck
--Scythe--
I do this just for fun. Most of the guys can't do anything with the busted tractors and such, so I fix what I can so they can use them.
<a href="http://s690.photobucket.com/albums/vv266/flatbush71/" target="_blank">http://s690.photobucket.com/albums/vv266/flatbush71/</a>
Thank you again for all your help.
Buck