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

Remote Turtle - Remote Control Program

Started by daman4567, 13 September 2013 - 09:45 AM
daman4567 #1
Posted 13 September 2013 - 11:45 AM
You wanted a program to control a turtle remotely? Good! You wanted it to be updated frequently and promptly? Excellent! You wanted to be able to do more than just mircomanage your turtle's actions? Great!

This is a remote controlled turtle program client and server pair that I drew up for building quickly where I'm too lazy to. Its features are currently limited, but I will be adding many in the coming days, so keep watching!

Current features
Spoiler
  • uses rednet API, meaning that the channels opened are specific to the computers involved - no interference!
  • inventory manipulation - choose which slot to use!
  • tons of actions! (move up, down, forward, or back, break and place in front, turn right or left, refuel one charcoal at a time, move the inventory cursor, get turtle's location via gps(must have 4 servers set up or this command will break the program))
  • configurable keymapping

Features in progress (will be added with approx. 24 hours(if minor feature, if major feature the status will be updated here as frequently as I can))
Spoiler
  • more actions! (placing and breaking up and down, attacking)
  • GUI for both server and client (now entering drawing board, i'm gonna do some pencil and paper work before I actually code it in)

Planned features
Spoiler
  • more actions! (redstone stuff, and more!)
  • flexible script writing - reads it as a list of instructions and follows it
  • monitor gui for rcon (right click areas of monitor to perform functions)

Tentative features (may or may not be added, tell me what you think about these!)
Spoiler
  • proxies - extend range and portability

New pastebin links, I reposted them from my own pastebin account so I could have easier access and so that the address would stay the same.
SpoilerRTServer 1.1.0 (put on computer that will be used to control): http://pastebin.com/Ri4Rr2YP

RTClient 1.0.0 (put on turtle that will be controlled): http://pastebin.com/VU7iyTj8

Or…
Spoiler

pastebin get Ri4Rr2YP rtServer


pastebin get VU7iyTj8 rtClient

ATTENTIONS: The server and client do not refer to minecraft server or client, but instead to two parts of the Remote Turtle program. You need both parts to run this. The client program HAS to be on a turtle (must have a wireless modem) and the server can be on any

There are three types of updates: Server, Client, or both. If an update only affects the server then you only need to download the server again. If you find a bug on a half-update, first double check and re-download both server and client before posting the bug.

Changelog
SpoilerFirst update! Yay! (Affects only server) (Server 1.1.0) (1 hotfix)
  • Configurable keymap
  • changed the format of some of the parameters and stuff having to do with keys, this one was mostly so it will be easier to implement more actions over time.
  • hotfix to allow modem to be placed on any side
Initial release! Yay! (Server 1.0.0) (Client 1.0.0)
  • Posted on pastebin and on here (obviously)
  • Most of the core functions and stuff, can do most anything with the turtle.
  • Basically everything else not mentioned in the changelog happened here

Please feel free to post suggestions or bugs below, I'll get to them as soon as possible. If it does not work at all, post please. (today I realized that you can only put modem on top and I forgot to say that, but now it is fixed)

Default keymap:
z and x: left and right
q and a: up and down
w and s: forward and back
n and m: increase and decrease selected inventory slot number
r: refuel 1 unit from selected slot
j and k: break and place, respectively
l: locate using GPS (must have gps servers set up)
~ (tilde key, above tab): quits program on both server and client

I encourage that you post keymaps that work well for you.
willwac #2
Posted 13 September 2013 - 07:00 PM
Wow, that's a good idea!
I'll check it out in a bit.
gollark8 #3
Posted 15 September 2013 - 10:22 AM
It doesn't work…I can't type commands.
daman4567 #4
Posted 15 September 2013 - 04:48 PM
Sorry, I haven't yet implemented changing the keymap, it's set to a default, I'll put it in the OP.
daman4567 #5
Posted 16 September 2013 - 02:10 PM
Wow, that's a good idea! I'll check it out in a bit.
Thanks! be sure to look at the above mentioned forum post, as it has the current keymapping, I'm working on implementing keymap configuration now, though.
daman4567 #6
Posted 19 September 2013 - 12:03 PM
I have made a lot of small fixes in the last few days, if you downloaded it and had trouble, it should be easier now :3