25 posts
Posted 05 January 2013 - 05:24 PM
Tired of editing your code through your Turtle's screen where you can't paste?No keyword highlighting?Well here's something for you !
As someone misunderstood the goal : IT IS NOT designed to replace Notepad++ or your favourite editor, It can, but its main purpose is to interface the user with turtles/computers script without letting them have access to the server files !Here's a simple yet powerful web editor that allows you to edit your scripts :
Please tell me if I should improve something, add something or simply your feebacks, thank you !
Keys :
Spoiler
Ctrl + I – Login to pastebin service
Ctrl + P – Paste to pastebin
Ctrl + M – Save to local server (for direct use in computer/turtle)
Ctrl + L – Find a line
Ctrl + D – Remove a line
Ctrl + Z – Undo changeFeatures :
Spoiler
- Create a new script : Simply don't put an id and the name in the url, it'll be asked to you when saving.
- Edit an existing script : Put the id of the turtle and the name of the script in the url "…?id=*id_of_turtle*&name=*name_of_script*"
- Save your script : You can save your script to pastebin (Ctrl + P) or directly to your server (Ctrl + M).
- Secure editing : Put a password to your computer/turtle by creating a script named pass_*a password* then use *a password* in web editor
Changelog :
Spoiler
- 0.1 : Support syntax highlight + local saving
- 0.2 : Added Pastebin saving
- 0.3 : Now able to use own pastebin account to save
- 0.4 : Added a config file
Installation :
Spoiler
- Put all files in the same webdirectory (i.e. /var/www/)
- Set your $base_path and $api_dev_key in config.php file (/!\ $base_path value has to end with an '/')
- Set permissions for computercraft directory to let your web user (i.e. www-data) read and write files
- Make sure you have the package php5-curl to make the pastebin work
- Have fun, it's now fully installed
Wanna see how it looks?
http://puu.sh/1JIkOOr give it a try at :
http://skaraz.net/turtle-project/With a script a user made :
http://skaraz.net/tu...=00&name=substrCredits :
Spoiler
- Mikee : Telling me (and having fun) with a security breach (non escaped chars in filepath)
- TheVarmari : Gave me the idea of the pastebin save
Edited on 06 December 2013 - 02:40 PM
280 posts
Location
Earth
Posted 08 January 2013 - 12:20 PM
Nice, It even works on my galaxy tab 2 (with a replacement virtual keyboard that has modifier keys).
25 posts
Posted 08 January 2013 - 01:07 PM
Glad you like it !
I'm going to work on a way to control turtles, launch scripts, etc from outside the game
302 posts
Posted 08 January 2013 - 02:07 PM
He did it!!!!He did it!!!
Spread the word!!! :D/>
2 posts
Location
Adelaide, South Australia
Posted 08 January 2013 - 04:03 PM
This looks great, will try and get this implemented on my server. I am pretty new to minecraft so I may have some questions later. Thanks
386 posts
Location
France
Posted 09 January 2013 - 07:40 AM
Glad you like it !
I'm going to work on a way to control turtles, launch scripts, etc from outside the game
If you make it and it work on my phone, you will just become my god !!
25 posts
Posted 09 January 2013 - 06:43 PM
I see no reasong why it wouldn't work on your phone, if it doesn't please report to me
Also, you'll need to be able to use ctrl for some hotkeys, if you use Android and can't do this, I can recommend "Hacker's keyboard" for that
Edit : Misread, that part of the script isn't done yet, still thinking of the fact that Turtles are not living entity, so if their chunk aren't load by a player or a world anchor, I can't get them to execute script.
302 posts
Posted 09 January 2013 - 09:59 PM
Allowing non-player entities to be scripted and to remain in-game without a player's presence is, at the very least, controversial. Usually automatons require at least a player to be near them. Not saying there is no way it can be done fairly, just warning.
EDIT: chunk loaders seem to have evolved since the last time I looked at them, at leat those on direwolfs20 FTB modpack. They is a limit of chunkloaders per player, and they consume enderpearls to function ; if such supply isn't easily automatable, and if a chunkloader peripheral for turtles is made to work in the same way, it would be safe to give all players the right to use chunkloaders.
(To avoid lag, up until now most servers blacklisted them)
For this particular use (remotely starting up a turtle), it would be awesome to pre-program the chunkloader to load the chunk upon receiving an external signal. Not sure what would be an interesting signal in general; in your case, your script would have to interact with the minecraft side somehow, and for instance throw an event that the peripheral class would catch.
Safety constraints are similar to those restricting your web editor: delays between loading/unloading the same chunk, maximum number of chunks loading at the same time, ect.
Pretty much like simulating a new kind of player, the automaton (the turtle), which requires a pre-intervention from a real player to be able to 'play' for a limited time.
264 posts
Location
Where you aren't
Posted 16 January 2013 - 04:44 AM
You took Ace and made a small editor around it for ComputerCraft. Big whoop.
Oooh! Fancy colors and saving and coolness! I like.
25 posts
Posted 19 January 2013 - 12:58 AM
Glad the minecraft player liked it, about the web developper, I invite him to check the title of index.php
264 posts
Location
Where you aren't
Posted 19 January 2013 - 05:19 AM
So? It's still just a wrap around Ace.
25 posts
Posted 20 January 2013 - 09:50 AM
Yes it is, I didn't see the point of reinventing the wheel
730 posts
Location
London, UK
Posted 20 January 2013 - 09:53 AM
Ooh I got a mention. :)/>
93 posts
Posted 03 March 2013 - 04:37 PM
If this could work on iPod instead of just android you would be my hero!
264 posts
Location
Where you aren't
Posted 04 March 2013 - 03:07 AM
If this could work on iPod instead of just android you would be my hero!
Ace already supports iOS.
https://github.com/ajaxorg/ace/issues/37
17 posts
Posted 04 July 2013 - 11:03 PM
For linux peoples, you can just use ssh through nautilus. or ssh-fuse
$ gvfs-open ssh://minecraft.example.com/
$ cd /var/run/1000/gvfs/sftp\:host=minecraft.example.com/
$ cd ./opt/msm/servers/thaumcraft/world/computer/
$ ls
1 2 3 4 5 6 labels.txt lastid.txt
$ sublime-text-3 ./6/something.lua
25 posts
Posted 06 December 2013 - 03:12 PM
Hello people !
I just wanted to say I'm back and ready to add more features, so if you want some, please ask me below
I'll look for a mobile version if you people still want but I don't really see the point of it
Anyway, please give me some more feedbacks/advices !
Thank you
1 posts
Posted 17 December 2013 - 06:23 PM
I got the web interface to work but I could not see the other tabs. Only areas. I was wondering if someone could help me with this. Also is there a way to install the client on an android tablet ?
882 posts
Location
Behind you.
Posted 18 December 2013 - 01:18 PM
404 on demo website?
25 posts
Posted 08 January 2014 - 09:57 PM
Sorry for the late answer !
Yes, the demo website is actually down at the moment, I didn't have enough time to manage the server
Sorry about that, you can still try the ace web editor on their own website though