8 posts
Posted 13 April 2014 - 08:30 AM
Hey there pros!
I got a problem, Iv found a great gps system, but i cant get it to work with the CC in tekkit classic cuz the code is writen for 1.4 and tekkit classic uses 1.3.2.
So I would be really happy in some of you guys would like to help me to make the code 1.3 friendly, Iv had be doin it myself if i wasnt a totall noob on CC and programing lol
Here is the code:
http://pastebin.com/qLthLak5Iv been told by Cranium that the problem is "You can remove calls to the fuel functions" but it dosnt tell me a sh!t lol
/A
7508 posts
Location
Australia
Posted 13 April 2014 - 08:54 AM
After taking a look at the code, Cranium is indeed correct, your only problematic code in this program is the usage of
turtle.getFuelLevel due to the fact that Turtle fuel was added in ComputerCraft 1.4. As such you'd be getting an error, something along the lines of
attempt to call nil on line 209. The simplest fix to do this — based on the logic the original developer of this program used — what you want to do is trick it into thinking there is unlimited fuel, this can simply be done (for this program) by defining the
turtle.getFuelLevel function and having it return a string. So in short on, oh idk lets say, line 161 add in the following code
turtle.getFuelLevel = function()
return "nope!"
end
Edited on 13 April 2014 - 06:54 AM
8 posts
Posted 13 April 2014 - 09:13 AM
That did fix that problem but then a new one poped up:
"bios:267: attempt to write to global"
this is line 267: – base = tonumber(read())
And here you got my new modded code:
http://pastebin.com/Z0hUTq0NThx for helping me out with this!
/A
7508 posts
Location
Australia
Posted 13 April 2014 - 09:26 AM
ugh I hate those errors, give me a second to read the code a little more thoroughly.
just a quick note, bios:267 is not the same as line 267 in your program.
EDIT: Okay so the normal 'causes of that error are not present (that I can see), and short of downloading a
very old ComputerCraft version and testing it myself I'm unsure. I did however perform some cleanup and removed all the calls to fuel, so try
this and let me know of the result.
Edited on 13 April 2014 - 07:36 AM
8 posts
Posted 13 April 2014 - 09:49 AM
Yeah I know that Its a VERY old version lol
Didnt work, the turtle did go up to block 254 then put 2 computer and one modem then dropped the floppy disc to the ground.
8 minutes in is how its suposed to do:
https://www.youtube....h?v=5NlBU7MNKX8Maybe try to patch just the Computercraft mod in Tekkit Classic would be esier lol
EDIT: The error: gps-deploy:214: Attempt to index? (a nil value)
/A
Edited on 13 April 2014 - 08:13 AM
8543 posts
Posted 13 April 2014 - 11:01 AM
You will not be able to use this script with such an old version of ComputerCraft. The script relies on features that are only available from ComputerCraft 1.4 forward, such as turtles interacting with inventories directly using the suck and drop functions. You'll need to update ComputerCraft to be able to use a GPS deployment script at all.
7508 posts
Location
Australia
Posted 13 April 2014 - 11:03 AM
really, there was no suck/drop at that point?! ComputerCraft really has come a long way!
8543 posts
Posted 13 April 2014 - 11:05 AM
At that point, the drop functions existed, but didn't interact with inventories. The 1.4 update added the suck set of functions, and made the suck and drop functions interact with inventories. If I recall correctly, it also introduced the turtle fuel consumption feature.
8 posts
Posted 13 April 2014 - 11:05 AM
Well, then I better try to patch to 1.4.1 insted, thx anyways guys!
/A