This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Awsomehawk's profile picture

turtle help

Started by Awsomehawk, 15 April 2013 - 04:46 PM
Awsomehawk #1
Posted 15 April 2013 - 06:46 PM
I am an admin on a server and sadly I caught someone griefing and they were using a turtle to bypass the Towney plugin so I had to report it. The owner was going to ban turtles from the server and i told him to wait a think about the little things turtles could do with out the turtle.api. so He thankfully went with it. so he edited the rom/startup
Spoilerlocal sPath = ".:/rom/programs"
if turtle then
sPath = sPath..":/rom/programs/turtle"
else
sPath = sPath..":/rom/programs/computer"
end
if http then
sPath = sPath..":/rom/programs/http"
end
if term.isColor() then
sPath = sPath..":/rom/programs/color"
end
shell.setPath( sPath )
help.setPath( "/rom/help" )
shell.setAlias( "ls", "list" )
shell.setAlias( "dir", "list" )
shell.setAlias( "cp", "copy" )
shell.setAlias( "mv", "move" )
shell.setAlias( "rm", "delete" )
if fs.exists( "/rom/autorun" ) and fs.isDir( "/rom/autorun" ) then
local tFiles = fs.list( "/rom/autorun" )
table.sort( tFiles )
for n, sFile in ipairs( tFiles ) do
if string.sub( sFile, 1, 1 ) ~= "." then
local sPath = "/rom/autorun/"..sFile
if not fs.isDir( sPath ) then
shell.run( sPath )
end
end
end
end
And changed it with
Spoilerlocal sPath = ".:/rom/programs"
if turtle then
sPath = sPath..":/rom/programs/turtle"
else
sPath = sPath..":/rom/programs/computer"
end
if http then
sPath = sPath..":/rom/programs/http"
end
if term.isColor() then
sPath = sPath..":/rom/programs/color"
end

turtle = {}

shell.setPath( sPath )
help.setPath( "/rom/help" )

shell.setAlias( "ls", "list" )
shell.setAlias( "dir", "list" )
shell.setAlias( "cp", "copy" )
shell.setAlias( "mv", "move" )
shell.setAlias( "rm", "delete" )

if fs.exists( "/rom/autorun" ) and fs.isDir( "/rom/autorun" ) then
local tFiles = fs.list( "/rom/autorun" )
table.sort( tFiles )
for n, sFile in ipairs( tFiles ) do
if string.sub( sFile, 1, 1 ) ~= "." then
local sPath = "/rom/autorun/"..sFile
if not fs.isDir( sPath ) then
shell.run( sPath )
end
end
end
end
The difference is that he added turtle = {}
So I asked him if I found a way to bypass this can I use it , He said yes. But the next day he made it my job so I have to find a way to bypass it. He wanted me to try not to edit the rom. and i completely stuck.
Spongy141 #2
Posted 15 April 2013 - 06:58 PM
Have the turtle use the gps API to tell if its in a town or not, and if it is, make it shutdown. Or something.
Dlcruz129 #3
Posted 15 April 2013 - 07:00 PM
Unfortunately the creators of ComputerCraft did not make the bukkit port, so it is not supported. You might be able to edit the rom and removing the turtle API, but there is no way to fix your problem without editing the rom.

Edit: Spongy's idea isn't bad if you have a small amount of towns, but this would require updating the rom every time a new town is founded.
Awsomehawk #4
Posted 15 April 2013 - 07:03 PM
well the rom is already edited and i have to try to find a way around it but if editing the rom is the only way ever then I'll do it
SuicidalSTDz #5
Posted 15 April 2013 - 07:26 PM
Ehem, I have a suggestion..

Bukkit is broken, get rid of it..

EDIT: Spongy's idea is actually good
Dlcruz129 #6
Posted 16 April 2013 - 04:02 AM
Ehem, I have a suggestion..

Bukkit is broken, get rid of it..

EDIT: Spongy's idea is actually good

But like I said, it would require updating the rom every time a new town was created.
Spongy141 #7
Posted 16 April 2013 - 11:23 AM
^
Still, its better than nothing.