Lua Script Editor Needed

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
SirDust
Prole
Posts: 15
Joined: Sat Feb 11, 2017 12:53 am

Lua Script Editor Needed

Post by SirDust » Sat Feb 11, 2017 2:37 am

So I downloaded LOVE for the first time and it looks amazing, but I need my own script editor or IDE for it. I am already experienced with Lua, so I know some of the features I would like:

Auto-typing "end" for every new block along with auto-indenting.
Basic syntax error detection.
Running the script in LOVE from within the editor.
Collapsible functions.

I have tried several editors, but I do not know to get all of these features onto any one of them.
Thanks

User avatar
zorg
Party member
Posts: 2733
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Lua Script Editor Needed

Post by zorg » Sat Feb 11, 2017 4:58 am

sublimetext is this (probably atom as well), except the syntax error detection... maybe zerobrane can do that too, i'm not sure.
Well, if by "running the script in löve from within the editor" you actually mean "calling löve to run the project you're editing in the editor".
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

User avatar
SirDust
Prole
Posts: 15
Joined: Sat Feb 11, 2017 12:53 am

Re: Lua Script Editor Needed

Post by SirDust » Sat Feb 11, 2017 5:17 am

Sublime is pretty good, but yeah it does not have syntax error detection, nor auto-completion with "end". I installed a plugin called Lua Love, that has something called "live_parser", which I thought would detect syntax errors, but either I set it up wrong or it does not do what I think it does.
And yeah, I do mean "calling löve to run the project you're editing in the editor".

User avatar
zorg
Party member
Posts: 2733
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Lua Script Editor Needed

Post by zorg » Sat Feb 11, 2017 7:20 am

it does have block autocompletion though; at least, if i type function and hit enter when the popup comes up (similarly with for, do, while etc...) it will insert a whole block.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

User avatar
Positive07
Party member
Posts: 1005
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Lua Script Editor Needed

Post by Positive07 » Sat Feb 11, 2017 7:36 am

I have set up Atom to do many many things, if you are interested here is a Gist of what I do with it, I get error checking while I write thanks to LuaCheck, I can run my game with F7, I get console output in the editor window, and when there is an error it points me to the line where the error ocurred thanks to Build-Lua, and I also get suggestions on LÖVE's API... So yeah look at the Gist.

It may not put an end after you type if then but if you press e that is probably the first suggestion of the autocomplete plugin. Also there are some snippets so you may be able to type "if" and get a complete if statement, I don't usually use this features
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(Github.com/Positive07)

User avatar
yetneverdone
Party member
Posts: 351
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Lua Script Editor Needed

Post by yetneverdone » Sat Feb 11, 2017 8:07 am

im using sublime text 3 with plugins like, sublime love and luadev. When you type a function and hit enter, it automatically gives the whole function block, it has syntax checking also, you can also run your project with sublime text's build tool, just hit ctrl+b

ericlong
Prole
Posts: 3
Joined: Thu Jan 12, 2017 1:03 am
Location: Guangdong, China

Re: Lua Script Editor Needed

Post by ericlong » Sun Feb 12, 2017 12:59 pm

I prefer Atom for making LÖVE games cuz somebody has already provided a convenient solution. It's a plugin called love-ide. Check this out if you're interested in it.

User avatar
Jack5500
Party member
Posts: 149
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: Lua Script Editor Needed

Post by Jack5500 » Sun Feb 12, 2017 1:15 pm

Visual Studio code is very good as well

User avatar
SirDust
Prole
Posts: 15
Joined: Sat Feb 11, 2017 12:53 am

Re: Lua Script Editor Needed

Post by SirDust » Sun Feb 12, 2017 7:11 pm

Atom with love-ide is the closest solution from here I have tried so far, it has everything I want, except for auto-typing "end" for me. I feel like this feature is possible, if anyone knows how to do it then let me know. Thanks

phobos2077
Prole
Posts: 11
Joined: Sun Feb 12, 2017 4:50 pm

Re: Lua Script Editor Needed

Post by phobos2077 » Sun Feb 12, 2017 8:26 pm

Can anyone suggest an IDE with working debugging? Tried IDEA but it's not working very good with LOVE as an interpreter and Visual Studio with a plugin, but there is no autocompletion for LOVE API that I could find.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests