Jump to content




Writing My Code Using Different Programs


  • You cannot reply to this topic
10 replies to this topic

#1 Mr_Programmer

  • Members
  • 95 posts
  • LocationA CPU some where in Bolton, UK

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 by Mr_Programmer, 07 February 2014 - 09:00 AM.


#2 CometWolf

  • Members
  • 1,283 posts

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.

#3 6677

  • Members
  • 197 posts
  • LocationCambridgeshire, England

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

#4 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

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 by awsmazinggenius, 07 February 2014 - 10:32 AM.


#5 Mr_Programmer

  • Members
  • 95 posts
  • LocationA CPU some where in Bolton, UK

Posted 07 February 2014 - 11:38 AM

View Postawsmazinggenius, on 07 February 2014 - 10:29 AM, said:

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 by Mr_Programmer, 07 February 2014 - 11:40 AM.


#6 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

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.

#7 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

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.

#8 6677

  • Members
  • 197 posts
  • LocationCambridgeshire, England

Posted 07 February 2014 - 03:43 PM

View Postawsmazinggenius, on 07 February 2014 - 10:29 AM, said:

. 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.

#9 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

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.

#10 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

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.

#11 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users