Posted 27 November 2013 - 09:26 PM
First off I know there is a bug section. I think this is probably better since I can't confirm 100% it's computercraft.
I'm on FTB Unleashed with gregtech from FTB Unhinged.
Here is a link with a list of mods. (it's the FTB Wiki)
The issue is rather common on this server I'm playing on, and 3 turtles have had this issue (or at least they seems the same). Every now and again previously working turtles stop responding. We can't even Ctrl + t or r the program. The startup program is in a spoiler below, but I know for a fact that it doesn't have an os.pullEventRaw() in there. none of these turtles did. Even when breaking the turtle and restarting the server the problem persisted. One time (maybe 2) the turtle came up with an error. this time it was "startup:19: vm error: java.lang.ArrayIndexoutOfBoundsException: 13" I have the program in a spoiler below.
Whenever we interact with the turtle, the server cmd goes crazy with errors involving CC. (pic below)
startup for one of the turtles
This particular turtle had an XP upgrade (misc peripherals) but not all of them did.
cmd log
The owner of the server didn't add any resource packs or mod the base CC APIs. fyi
I'm on FTB Unleashed with gregtech from FTB Unhinged.
Here is a link with a list of mods. (it's the FTB Wiki)
The issue is rather common on this server I'm playing on, and 3 turtles have had this issue (or at least they seems the same). Every now and again previously working turtles stop responding. We can't even Ctrl + t or r the program. The startup program is in a spoiler below, but I know for a fact that it doesn't have an os.pullEventRaw() in there. none of these turtles did. Even when breaking the turtle and restarting the server the problem persisted. One time (maybe 2) the turtle came up with an error. this time it was "startup:19: vm error: java.lang.ArrayIndexoutOfBoundsException: 13" I have the program in a spoiler below.
Whenever we interact with the turtle, the server cmd goes crazy with errors involving CC. (pic below)
startup for one of the turtles
Spoiler
This had been working exactly as intended.This particular turtle had an XP upgrade (misc peripherals) but not all of them did.
xp = peripheral.wrap("right")
xp.setAutoCollect(true)
function clear()
term.clear()
term.setCursorPos(1, 1)
end
function clearInv()
while turtle.suck() do
end
for i = 1, 16 do
if turtle.getItemCount(i) > 0 then
turtle.select(i)
turtle.dropUp(turtle.getItemCount(i))
end
end
turtle.select(1)
end
clearInv()
timer = os.startTimer(1)
while true do
print("I have "..xp.getLevels().." levels to spend!")
for i = 1, 20 do
while turtle.attack() do
end
sleep(.5)
end
clearInv()
if turtle.getItemCount(1) > 0 then
error("Consult JJSax reguarding this issue. \n Item in inventory at wrong time.")
end
clear()
turtle.select(1)
while rs.getInput("left") == true do
print("Enchanting mode active. I have "..xp.getLevels().." xp points")
print("Put the Item into slot 1")
while turtle.getItemCount(1) == 0 do
sleep(1)
end
xp.enchant(30)
print("Please take your newly enchanted item")
while turtle.getItemCount(1) > 0 do
sleep(1)
end
clear()
print("Please turn off lever")
os.pullEvent("redstone")
clear()
end
end
cmd log
Spoiler
[attachment=1403:Untitled.png]The owner of the server didn't add any resource packs or mod the base CC APIs. fyi
Edited on 27 November 2013 - 10:57 PM