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

Writing My Code Using Different Programs

Started by Mr_Programmer, 07 February 2014 - 07:57 AM
Mr_Programmer #1
Posted 07 February 2014 - 08:57 AM
I am wondering what is the best thing i can use to write my code

1. In-Game using Computers
or
2. Using Notepadd++ and setting the language to Lua

I am currently working on login system for multiple users, that will have different access to things,
i started in Notepad++ and i like using it but i have my own server so i have to drag and drop all the time where as if i do it In-Game then i have a smaller screen and a slowwer scroll time….

just wanted to know what you guys used the most for writing your code
and how well these other programs for writing Lua code work…. Maybe i will use one

Thanks, Mr_Programmer.
Edited on 07 February 2014 - 08:00 AM
CometWolf #2
Posted 07 February 2014 - 10:09 AM
If it's your own server, like you said, you can just edit the file with notepad++ directly.
Personally i just edit on pastebin and download it whenever i need to test.
6677 #3
Posted 07 February 2014 - 10:17 AM
You dont have to drag and drop, you can edit it directly in the game save folder from notepad++ even if its a remote server. WinSCP can open files from an FTP as a temporary file in an editor of your choice and then any changes made to the temporary file automatically get uploaded to the FTP again, tl;dr: can use notepad++ on server regardless of if you are sitting infront of it or its via FTP without any drag and drop
awsmazinggenius #4
Posted 07 February 2014 - 10:29 AM
You can edit your code directly in Sublime Text (and get ComputerCraft syntax thanks to GravityScore's awesome package) and save it in your <worldsave>/computer/<computer id> folder and have it appear on the computer in game. If you don't have Sublime, I highly recommend getting it (free trial to see it's awesomeness), but it works with Notepad++ too. I don't know if there is a N++ plugin for CC, however. There is also LuaIDE which you can use in-game.

EDIT: Before someone complains about advertising, I just talked about Sublime as he said "just wanted to know what you guys used the most for writing your code" and I want to tell him that Sublime works great, especially with CC syntax.
Edited on 07 February 2014 - 09:32 AM
Mr_Programmer #5
Posted 07 February 2014 - 11:38 AM
You can edit your code directly in Sublime Text (and get ComputerCraft syntax thanks to GravityScore's awesome package) and save it in your <worldsave>/computer/<computer id> folder and have it appear on the computer in game. If you don't have Sublime, I highly recommend getting it (free trial to see it's awesomeness), but it works with Notepad++ too. I don't know if there is a N++ plugin for CC, however. There is also LuaIDE which you can use in-game.

EDIT: Before someone complains about advertising, I just talked about Sublime as he said "just wanted to know what you guys used the most for writing your code" and I want to tell him that Sublime works great, especially with CC syntax.
i am using "LuaIDE" as my program that runs if the username and password is correct, so i supose thats a plus for the people using my code on my server and possiable soon ill be putting it on the forums :P/>
Edited on 07 February 2014 - 10:40 AM
TheOddByte #6
Posted 07 February 2014 - 01:43 PM
I would suggest Notepad++ but that's just my personal opinion, I know a lot of people are using sublime text 2 if you would prefeer that.
But I would not suggest the in-game computers since it's more annoying in some ways, But if you're going todo some in-game coding it would ofcourse be best to use
LuaIDE as suggested above since it's such a great editor in ComputerCraft and the only one I can think of really.
awsmazinggenius #7
Posted 07 February 2014 - 01:46 PM
Somebody made an editor inspired by LuaIDE called NovaCode, too. It's near the top of the Programs subforum.
6677 #8
Posted 07 February 2014 - 03:43 PM
. I don't know if there is a N++ plugin for CC, however.
Don't need one. Has native lua syntax highlighting which does the job perfectly.


My preferred editor for lua is SciTE.
Where possible I use visual studio 2012. Tbh if I could be bothered to look there is probably a lua extension for that.
When I really cba to load up visual studio though or it doesnt support the language I am after I use GEdit.

If sublime was actually free I would look into it. Don't want no stinking evaluation copies. The same does apply to visual studio but microsoft dreamspark does wonders so I get that for free anyway.

On linux I use nano. Which is another thing, SSH into the server (if possible) and use Nano? That is assuming the server offers SSH (if its dedicated).



I definitely prefer editing scripts outside of computercraft.
awsmazinggenius #9
Posted 07 February 2014 - 04:44 PM
Sublime is free if you want it to be and don't mind closing a dialog box every 100 saves, but I bought a copy both because you are supposed to and to support those awesome devs.
Dog #10
Posted 08 February 2014 - 02:40 AM
For the small stuff I use ConText and for the larger projects I use SynWrite. Both have a Lua highlighter and both are free.
awsmazinggenius #11
Posted 08 February 2014 - 09:57 AM
About CC syntax: No, you can live without it, but it is nice to have your CC stuff highlighted and auto completed.