This is program that should help with creating programs for ComputerCraft Mod. It contains all APIs and functions (with descriptions), that are used by this mod, and allows you easy find and insert into code every method you need. Now you don’t need to search the right name of method in the internet, or type every of them manually.
Note: All link in app redirect to ComputerCraft Wiki or official LUA sites.I know that now there should be first beta version, but the implementation of features I want to add is more complex than I expected and also I don't have much time, so for now, quick update related with new version of CC.If you find any bug or error, please report it here.
I really would like to try this tool, but I get this error:
"Could not find the main class: luawriter.LUAEditor. Program will exit."
I am able to run Minecraft, so I do have Java installed
Could you please help me?
This error is probably caused because you have wrong version of Java. This application needs Java Version 7 (1.7). Here you can test which version you have, and here you can download latest version.
Is there a way to use this on an SMP server without having to have access to the server files? It would be good if you could kind of "inject" the code from your editor to the console editor or something. I hate having to use the really bad edit program (you can't even use the home or end keys...). Thanks for this great little piece of software though
There is no way to use this on an SMP server without having to have access to the server files. Also I didn't think about any kind of integration with in-game editor or sth like that and I don't know if this is even possible or how to make that. For now I'm focusing on removing bugs and adding all functions I planned.
I didn't think so, I think the best bet I have is create my own editor in lua script that I can use to replace "edit". Luckily I do have ssh access to the server world files, just would have been easier if it were integrated with an element of automation (like when you save it saves straight to the correct file location etc).
Still, this is great. The only thing I found missing, although I haven't used it much yet as I haven't had much time, is auto-complete for the sensors API (I run tekkit) but I guess this isn't standard so I can see how it is amiss. Is there a way I can add this to the program? I know you mentioned editing an XML file to fix the colors API; can something similar be done to add a sensors API?
Yes, if you want to add another api, you should do two things:
First, you should create new file and put it into luawriter/files/sources folder in LUAEditor.jar file. It must look exactly like existing (the same xml tags and structure). The specification for methods and constants is as follows: <name></name> is used to comparing so it must contains only a name (without "( )"), <syntax></syntax> contains full declaration which is displayed on the list, and <text></text> contains version which is inserted to the code. This three tags are required, the rest can be empty.
Second, you should edit apis.xml file in luawriter/files folder and add new line with path to newly added api.
And thats all. When you run app after that, new api should be added. I hope you understood my explanation
OK, after using it a little more I have found a couple of little bugs:
Whenever I switch between tabs/files (it seems) the tab key inserts more and more spaces.
Pressing the tab key moves the line numbers out of sync with lines. Creating and deleting a new line does align them correctly again.
If I open a file and then try and close the "new file" tab it throws an error.
If I highlight many lines and press the tab key (as in to make all the lines move forward or backward a tab) this does not work.
Keeping the same tab spacing when creating a new line on an already tabbed line.
Implement an undo/redo feature
I know the last three aren't really a "bugs", but would be nice if it was fixed/implemented. Also being able to change the tab size would be good (i.e. make it 3 instead of the default 4).
So far so good though. There are a couple of other personal things that I would like to see that I don't know is in your control (i.e. when I double click the word "write" in "os.write('test')" it highlight only the word "write" stopping at the "." full stop. And the same when I hold control key and jump around, I would like the "." full stop to act as a word breaker and not part of the word like any other special character does) but nothing major.
Really has helped me a lot so far though. Keep up the good work.
Thanks for any suggestion and found bugs. I removed few of them in 0.9.5 version and I'm working on rest. Also, I implemented undo/redo feature. But i have question to 3. point. Could you explain when exactly this error are thrown? Or maybe post the error code if you can.
Does this work for linux? cause I tried downloading it and opening the jar with OpenJDK Java 7 Runtime and it doesn’t do anything.
I never tested that and I don't have possibility to check it, but this app should work for linux. I checked that some aplications didn't work with OpenJDK Java 7 Runtime, so maybe here is the point. I suggest install Oracle Java 7 JRE and check if this helps.
Edit: Next release (still not beta) related with CC update. I added new api, functions and Find/Replace feature.
The file you attempted to download is an archive that is part of a set of archives. MediaFire does not support unlimited downloads of split archives and the limit for this file has been reached. MediaFire understands the need for users to transfer very large or split archives, up to 10GB per file, and we offer this service starting at $1.50 per month.
We have informed the owner that sharing of this file has been limited and how they can resolve this issue.
Still have questions or do you think we've made an mistake? Check our knowledge base for more information or contact us about it.
The file you attempted to download is an archive that is part of a set of archives. MediaFire does not support unlimited downloads of split archives and the limit for this file has been reached. MediaFire understands the need for users to transfer very large or split archives, up to 10GB per file, and we offer this service starting at $1.50 per month.
We have informed the owner that sharing of this file has been limited and how they can resolve this issue.
Still have questions or do you think we've made an mistake? Check our knowledge base for more information or contact us about it.
"
I updated the links, so now you should be able to download this.
Oh, I totally misunderstood what this was. I thought it was maybe a different LUA complier for use while in Minecraft, like say, a Moonspeak Compiler(which would be handy for people who understand Moonspeak better then LUA). As it stands this sounds less like a actual content pack and more like a program for use outside of Minecraft, which would be more accurately placed in The Tools Section of Mapping and Modding.
EDIT: And can't one just use Notepad++ for LUA Syntax? Though the descriptions for each command might come in handy. Though some Syntax for ComputerCraft LUA is unique, such as Redpulse and Turtle Functions. Though it wouldn't surprise me if someone has made a CC Notepad++ Syntax addon.
Rollback Post to RevisionRollBack
"Minecraft is like an orgasm - even science can't describe it"
[quote=Cryptonat][quote=Snitch]Basically you're stuck in hell till you find a portal out. There are alternatives to pig, by the way, as you probably know. :> There are no alternatives to Bacon. Ever.
Oh, I totally misunderstood what this was. I thought it was maybe a different LUA complier for use while in Minecraft, like say, a Moonspeak Compiler(which would be handy for people who understand Moonspeak better then LUA). As it stands this sounds less like a actual content pack and more like a program for use outside of Minecraft, which would be more accurately placed in The Tools Section of Mapping and Modding.
EDIT: And can't one just use Notepad++ for LUA Syntax? Though the descriptions for each command might come in handy. Though some Syntax for ComputerCraft LUA is unique, such as Redpulse and Turtle Functions. Though it wouldn't surprise me if someone has made a CC Notepad++ Syntax addon.
FIrst I tried to find another solution (something like you said), but I couldn't find anything like that, so I decided to start creating own editor. Now I realise that this editor will probably never be as much useful as Notepad++ with addon could be, but now I treat this project like a good practise, and I hope that for some people this is usefull.
I'm from Spain.Today I get the same error, Split Archive Blocked and I can't download the file. I try the two links, the adfly link and the direct link whit the same result
This time I moved files to dropbox so now there shouldn't be more problems.
This is program that should help with creating programs for ComputerCraft Mod. It contains all APIs and functions (with descriptions), that are used by this mod, and allows you easy find and insert into code every method you need. Now you don’t need to search the right name of method in the internet, or type every of them manually.
Note: All link in app redirect to ComputerCraft Wiki or official LUA sites.
I know that now there should be first beta version, but the implementation of features I want to add is more complex than I expected and also I don't have much time, so for now, quick update related with new version of CC.If you find any bug or error, please report it here.
Theoretically this should work with every OS where Java can be installed, so also with mac, but the best way to find out if it will work, is to try run it.
LUA Editor Beta 1.1_2 for ComputerCraft
Link to new thread and download: click
This is program that should help with creating programs for ComputerCraft Mod. It contains all APIs and functions (with descriptions), that are used by this mod, and allows you easy find and insert into code every method you need. Now you don’t need to search the right name of method in the internet, or type every of them manually.
Note: All link in app redirect to ComputerCraft Wiki or official LUA sites.I know that now there should be first beta version, but the implementation of features I want to add is more complex than I expected and also I don't have much time, so for now, quick update related with new version of CC. If you find any bug or error, please report it here.
Download:
Alpha 0.9.8: Adf.ly, direct
Older versions:
Alpha 0.9.7: Adf.ly, direct
Alpha 0.9.5_1: Adf,ly, direct
Alpha 0.9.5: Adf.ly, direct
Alpha 0.9: Adf.ly, direct
Alpha 0.8: Adf.ly, direct
Alpha 0.7: Adf.ly, direct
Alpha 0.6: Adf.ly, direct
Alpha 0.5.1: Adf.ly, direct
Installation:
Simply unpack the archive and run LUAEditor.jar file
Important: Application requires Java 7.
How to use:The description “how to use” is available under “Help” option in app menu.
Changelog:
Alpha 0.9.8 (21.04.2013)
In near future:
This error is probably caused because you have wrong version of Java. This application needs Java Version 7 (1.7). Here you can test which version you have, and here you can download latest version.
There is no way to use this on an SMP server without having to have access to the server files. Also I didn't think about any kind of integration with in-game editor or sth like that and I don't know if this is even possible or how to make that. For now I'm focusing on removing bugs and adding all functions I planned.
Yes, if you want to add another api, you should do two things:
First, you should create new file and put it into luawriter/files/sources folder in LUAEditor.jar file. It must look exactly like existing (the same xml tags and structure). The specification for methods and constants is as follows: <name></name> is used to comparing so it must contains only a name (without "( )"), <syntax></syntax> contains full declaration which is displayed on the list, and <text></text> contains version which is inserted to the code. This three tags are required, the rest can be empty.
Second, you should edit apis.xml file in luawriter/files folder and add new line with path to newly added api.
And thats all. When you run app after that, new api should be added. I hope you understood my explanation
Thanks for any suggestion and found bugs. I removed few of them in 0.9.5 version and I'm working on rest. Also, I implemented undo/redo feature. But i have question to 3. point. Could you explain when exactly this error are thrown? Or maybe post the error code if you can.
.jar is not a 7-zip file. It must be opened using Java. Try right click on file and choose "Run as..." and select: Java Platform SE binary
"truth is a pathless land" - Jiddu Krishnamurti
I never tested that and I don't have possibility to check it, but this app should work for linux. I checked that some aplications didn't work with OpenJDK Java 7 Runtime, so maybe here is the point. I suggest install Oracle Java 7 JRE and check if this helps.
Edit: Next release (still not beta) related with CC update. I added new api, functions and Find/Replace feature.
"
Split Archive Blocked
The file you attempted to download is an archive that is part of a set of archives. MediaFire does not support unlimited downloads of split archives and the limit for this file has been reached. MediaFire understands the need for users to transfer very large or split archives, up to 10GB per file, and we offer this service starting at $1.50 per month.
We have informed the owner that sharing of this file has been limited and how they can resolve this issue.
Still have questions or do you think we've made an mistake? Check our knowledge base for more information or contact us about it.
"
I updated the links, so now you should be able to download this.
EDIT: And can't one just use Notepad++ for LUA Syntax? Though the descriptions for each command might come in handy. Though some Syntax for ComputerCraft LUA is unique, such as Redpulse and Turtle Functions. Though it wouldn't surprise me if someone has made a CC Notepad++ Syntax addon.
"Minecraft is like an orgasm - even science can't describe it"
[quote=Cryptonat][quote=Snitch]Basically you're stuck in hell till you find a portal out. There are alternatives to pig, by the way, as you probably know. :> There are no alternatives to Bacon. Ever.
FIrst I tried to find another solution (something like you said), but I couldn't find anything like that, so I decided to start creating own editor. Now I realise that this editor will probably never be as much useful as Notepad++ with addon could be, but now I treat this project like a good practise, and I hope that for some people this is usefull.
This time I moved files to dropbox so now there shouldn't be more problems.
dose this work with mac
Theoretically this should work with every OS where Java can be installed, so also with mac, but the best way to find out if it will work, is to try run it.