Melee turtle help pls

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Neirin

New Member
Jul 29, 2019
590
0
0
Make sure "startup" isn't capitalized. I once spent 3 hours thinking I had gone crazy because I missed that.
 

baw179

New Member
Jul 29, 2019
295
0
0
RIGHT. This still doesn't work. Is there anyone on this site that actually knows about these turtles and can help please? I have done exactly as instructed on the last page and wrote set label abc in the turtle which it has set as abc. I then ran startup and nothing at all happens except another command prompt on the next line. Can someone just write the full code here that I need to put please.
 

Skirty_007

New Member
Jul 29, 2019
436
0
1
Now that you've named your turtle you need to edit the startup program to your liking, save it, then run it! :-D
 

baw179

New Member
Jul 29, 2019
295
0
0
Now that you've named your turtle you need to edit the startup program to your liking, save it, then run it! :-D

It doesn't work. The startup program is as per the pastebin link on the previous page. When I run startup nothing happens apart from a 2nd command prompt. Why isn't it working?
 

Peppe

New Member
Jul 29, 2019
836
0
1
It doesn't work. The startup program is as per the pastebin link on the previous page. When I run startup nothing happens apart from a 2nd command prompt. Why isn't it working?

The pastebin script you linked to is for an XP turtle. Is your turtle an XP turtle?

if you type:
edit startup

Does the program you entered show up?
On the very first line of the program add:
print("Hello World")

Save and exit from the edit mode and run the startup program or reboot program.

Do you see hello world?
 

baw179

New Member
Jul 29, 2019
295
0
0
The pastebin script you linked to is for an XP turtle. Is your turtle an XP turtle?

if you type:
edit startup

Does the program you entered show up?
On the very first line of the program add:
print("Hello World")

Save and exit from the edit mode and run the startup program or reboot program.

Do you see hello world?

It is an XP turtle yes, I did make that clear on the previous page.

Right, I've added the hello world line, saved, exited. Run 'startup' and Hello World appears on the next line, then returns to the command prompt again on the next line and nothing else happens. So the actual XP program isn't running. The only way I can get the program to run is by doing it manually, ie, do the pastebin get (blah) enchant, then run 'enchant'. But I have to do this every time the server starts which is annoying. Is there NO possible way to run an XP turtle program as startup then? That sucks if so.
 

Peppe

New Member
Jul 29, 2019
836
0
1
It is an XP turtle yes, I did make that clear on the previous page.

Right, I've added the hello world line, saved, exited. Run 'startup' and Hello World appears on the next line, then returns to the command prompt again on the next line and nothing else happens. So the actual XP program isn't running. The only way I can get the program to run is by doing it manually, ie, do the pastebin get (blah) enchant, then run 'enchant'. But I have to do this every time the server starts which is annoying. Is there NO possible way to run an XP turtle program as startup then? That sucks if so.

Yes turtles can save and run any program on startup. The issue is on your end.

Sounds like you are not saving the pastbin program as startup or you are not running whatever you saved the program as in startup.

Example you can do this to a freshly created XP turtle:
label set myXPturtle
pastebin get (blah) enchant
edit startup
shell.run("enchant")
save, then exit
reboot

turtle should reboot and run enchant on startup.

or
Example you can do this to a freshly created XP turtle:
label set myXPturtle
pastebin get (blah) startup
reboot

turtle should reboot and run startup.

If you ever need to troubleshoot a program it helps to toss in a print("custom message") to see how far the turtle got in its processing and if you are looking in the right area...
 
  • Like
Reactions: baw179

baw179

New Member
Jul 29, 2019
295
0
0
Yes turtles can save and run any program on startup. The issue is on your end.

Sounds like you are not saving the pastbin program as startup or you are not running whatever you saved the program as in startup.

Example you can do this to a freshly created XP turtle:
label set myXPturtle
pastebin get (blah) enchant
edit startup
shell.run("enchant")
save, then exit
reboot

turtle should reboot and run enchant on startup.

or
Example you can do this to a freshly created XP turtle:
label set myXPturtle
pastebin get (blah) startup
reboot

turtle should reboot and run startup.

If you ever need to troubleshoot a program it helps to toss in a print("custom message") to see how far the turtle got in its processing and if you are looking in the right area...

It just doesn't work man!! I'm serious. I have done exactly as you've written. Soon as I get to the pastebin get line of your bottom code, it replies with "file already exists". When I type 'reboot' on next line, it just fobs me off with "goodbye" and returns to the Turtle OS command prompt. When I then type 'startup' nothing happens and it gives me another command prompt. I have tried breaking and replacing the turtle multiple times to clear it but everytime it says that the file already exists. I'm getting seriously hacked off with this BS. :mad:
 

Guswut

New Member
Jul 29, 2019
2,152
0
0
I have tried breaking and replacing the turtle multiple times to clear it but everytime it says that the file already exists. I'm getting seriously hacked off with this BS. :mad:

Try this command:

Code:
label clear

That should remove the label from your computer, so when you break it, it'll default to a standard (nothing on it/etc) computer.
 

Skirty_007

New Member
Jul 29, 2019
436
0
1
It just doesn't work man!! I'm serious. I have done exactly as you've written. Soon as I get to the pastebin get line of your bottom code, it replies with "file already exists". When I type 'reboot' on next line, it just fobs me off with "goodbye" and returns to the Turtle OS command prompt. When I then type 'startup' nothing happens and it gives me another command prompt. I have tried breaking and replacing the turtle multiple times to clear it but everytime it says that the file already exists. I'm getting seriously hacked off with this BS. :mad:

You already have a program called "startup", and I assume there's a failsafe in the pastebin command to prevent it overwriting existing programs. I've never used pastebin myself so I'll have to bow to Peppe's experience there to how it works. (I FTP my programs directly to the server instead, because I can). So the file already existing issue is because you already have a file named "startup".

Short instructions - follow from this point (call your program something meaningful to you, ie. replace the word "enchant" in every line where it appears in the steps here with the name you want to use for the program. What you're doing is saving the code from pastebin to a program of that name, then the shell.run command in the startup program calls that program to run):

pastebin get (blah) enchant
edit startup
shell.run("enchant")
save, then exit
reboot

turtle should reboot and run enchant on startup.
[DOUBLEPOST=1364233520][/DOUBLEPOST]...Or you could do as Guswut suggests, which might be the simpler option!
 
  • Like
Reactions: baw179

crazy_fab

New Member
Jul 29, 2019
64
0
0
you can also try delete startup
or rename startup anothername
Both those command should clear startup
Then type edit startup you should get a blank page ctrl and exit without saving
Now you can the pastebin code.

Stupid question but did you check the internet option was enabled in the cfg for computercraft
 
  • Like
Reactions: baw179

Peppe

New Member
Jul 29, 2019
836
0
1
It just doesn't work man!! I'm serious. I have done exactly as you've written. Soon as I get to the pastebin get line of your bottom code, it replies with "file already exists". When I type 'reboot' on next line, it just fobs me off with "goodbye" and returns to the Turtle OS command prompt. When I then type 'startup' nothing happens and it gives me another command prompt. I have tried breaking and replacing the turtle multiple times to clear it but everytime it says that the file already exists. I'm getting seriously hacked off with this BS. :mad:

I don't think the pastebin command supports overwriting a program, so if whatever you tried to save pastebin as already exists either delete that program or save the pastebin program as something else, then continue with what i wrote.

to delete a program you can type:
delete programName
ex steps:
  1. label set myEnchanter
  2. delete startup
  3. pastebin get R1jes23i startup
  4. reboot
 
  • Like
Reactions: baw179

baw179

New Member
Jul 29, 2019
295
0
0
Thanks guys you are all so awesome. :D I just did the label clear that gus said then peepe's code worked okay after that. I now know a little bit more about turtles! :)
 

SmokeLuvr1971

New Member
Jul 29, 2019
753
0
0
anywhere i can get a list of the default commands available to turtles [ultimate pack 1.4.7 if that matters], and I don't mean the turtle api? didn't see a listing on the computercraft/ftb wiki. some examples of the info I've gleaned through forum/wiki posts that would be in this list:
mv / cp / rm comnands
shell.run("program_name")
 

NJM1564

New Member
Jul 29, 2019
2,348
-1
0
anywhere i can get a list of the default commands available to turtles [ultimate pack 1.4.7 if that matters], and I don't mean the turtle api? didn't see a listing on the computercraft/ftb wiki. some examples of the info I've gleaned through forum/wiki posts that would be in this list:
mv / cp / rm comnands
shell.run("program_name")

You don't yet know it but you just asked for something crazy.
Everything you need will probably be linked out of here.
http://computercraft.info/wiki/Category:APIs
And let me tell you it's a lot of stuff.
 

SmokeLuvr1971

New Member
Jul 29, 2019
753
0
0
hehe, really? I admit that I've been out of the programming loop for more than a decade, but back in my day languages used to be pretty well documented. And I don't think that's too much to ask. Just need to know which commands ComputerCraft ships with in the 1.4.7 ultimate pack. Actually, this looks to be exactly what I was looking for, especially the location of the apis, so I know for certain what I have to work with.

Much appreciate this link, anonymous internet persona :)
 

NJM1564

New Member
Jul 29, 2019
2,348
-1
0