Scripts / looking for best LUA editor

Author
Message
MadLad Designs
GameGuru Master
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside......
Posted: 13th Mar 2014 21:26 Edited at: 13th Mar 2014 21:27
You guys are all brainy and intelligent



What is the best editor / interface to use when learning LUA on the PC? I've heard of Codea for the iPad but I'm after something equivalent on the PC, something that can test scripts there and then.





"I find your lack of grammar disturbing..."



Check out the [FPSC Reloaded FAQ]!
Avram
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Serbia
Posted: 13th Mar 2014 22:18 Edited at: 13th Mar 2014 22:20
I'm using Sublime Text for all coding, including LUA. It has built in syntax highlighter and (simple) autocomplete which is enough for me. There are a lot of plugins out there so you can configure it however you want. I have installed some of the plugins found here, and although the article is written for PHP developers, most of the plugins listed there are language independent or support multiple languages. I have also found this one, but haven't tested it yet.

MadLad Designs
GameGuru Master
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside......
Posted: 13th Mar 2014 23:06
Thanks Avram but can you test your scripts from there? I have a few 'script editors' but I'm after one like Codea from where you can develop and test from the one application.

"I find your lack of grammar disturbing..."



Check out the [FPSC Reloaded FAQ]!
Avram
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Serbia
Posted: 13th Mar 2014 23:14
The last plugin I linked in my last post can do that, I think. It just needs luac.exe (on windows at least) that I'm about to download and connect with plugin (via plugin settings)

MadLad Designs
GameGuru Master
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside......
Posted: 13th Mar 2014 23:28
Thanks, I'll look into that.

"I find your lack of grammar disturbing..."



Check out the [FPSC Reloaded FAQ]!
MadLad Designs
GameGuru Master
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside......
Posted: 14th Mar 2014 00:00
Ok, I'm having a bit of trouble. I've installed Sublime Text and installed LuaForWindows_v5.1.4-46 in both 'Program Files' and 'Program Files (x86)' [as i have a 64 bit system] but it seems not to find Lua.



I have: print("hello world") and I'm getting



lua: cannot open : Invalid argument

[Finished in 0.4s with exit code 1]




Any ideas?

"I find your lack of grammar disturbing..."



Check out the [FPSC Reloaded FAQ]!
Avram
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Serbia
Posted: 14th Mar 2014 09:19 Edited at: 14th Mar 2014 09:30
First, download and install this (ok, you have it installed, but someone else might not have it).



Then, in Sublime, go to Preferences > Package Settings > Lua Love > Settings - User; and copy/paste this:







Now, few notes:



1) You must escape backslash (\) with another backlash (so it becomes \\)

2) It seems you must use old dos 8.3 file naming convention (thus "progra~2")

3) I'm on Win7 x64 so my C:\Program Files\ is progra~1 and c:\Program Files (x86)\ is progra~2

4) It might be progra~1 on your machine

5) Or you can install Lua to c:\Lua\ and avoid this paths related mess



Works for me! But it only checks for syntax errors, even if you tried to run the script, you don't have FPSC:R specific functions (Prompt, Destroy, ...) so it would fail anyway...



p.s. This is all for Sublime 3. Lua Love supports Sublime 2, but I don't know if it's all same to configure plugin in Sublime 2

Corno_1
GameGuru Tool Maker
13
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 14th Mar 2014 10:08 Edited at: 14th Mar 2014 10:08
I created my fist lua script with http://luaedit.sourceforge.net/ It is not the best for beginners, but I like it

Make this forum to something a little bit better and release more stuff. So we can push the Request/NoobHelp threads aside.
PM
AuShadow
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd Dec 2013
Location: Australia
Posted: 14th Mar 2014 10:28
There is an online lua engine just Google test lua online and then if you are using something like notepad++ (which I like for scripting I find it good for a beginner) then just copy paste and run I know its not one program but its simple and effective

PC Specs: Windows 7 home 64-bit, Amd 7900 3gb DDR5 graphics, 8gb DDR3 Ram, Intel i7 3.4ghz

Feel free to visit and edit the public FPSCR resource wiki page: http://fpscrresource.wikispaces.com/home
MadLad Designs
GameGuru Master
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside......
Posted: 14th Mar 2014 14:49 Edited at: 14th Mar 2014 14:50
Sorry Avram, tried what you've said but it's still not happening.





"I find your lack of grammar disturbing..."



Check out the [FPSC Reloaded FAQ]!
Avram
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Serbia
Posted: 14th Mar 2014 16:34
Do not build the script (ctrl+b, or whatever), just type the code (edit any .lua file), it will report any syntax errors in the status bar of your Sublime text editor.





The Proost
17
Years of Service
User Offline
Joined: 23rd Feb 2007
Location: Belgium
Posted: 1st May 2015 22:06
http://luaedit.sourceforge.net/

Login to post a reply

Server time is: 2024-05-07 23:47:31
Your offset time is: 2024-05-07 23:47:31