Where do I put lua scripts?

Where do I put lua scripts?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
imboss77
Posts: 11
Joined: 08 Apr 2014, 03:40

Where do I put lua scripts?

Post by imboss77 »

So, I followed a guide in the lua development section, but when I look for Spring/LuaUI/widgets folder to put the file in it isn't there. Do I have to go into the actual game file and put it in there? If so how do I do that?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Where do I put lua scripts?

Post by smoth »

You may be using the userland folder because you didn't install portable.

so if you are a windows user try searching your computer for the file "springsettings.cfg"

you widget needs to be in the same spring directory as the springsettings file.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Where do I put lua scripts?

Post by Silentwings »

If Spring/LuaUI/widgets doesn't exist, just create it, and then put your widget in there. (The Spring/LuaUI folder should already exist.)
Do I have to go into the actual game file and put it in there?
No.
User avatar
imboss77
Posts: 11
Joined: 08 Apr 2014, 03:40

Re: Where do I put lua scripts?

Post by imboss77 »

Thank you for the responses! I got it to work.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Where do I put lua scripts?

Post by smoth »

Mind telling us what it was so future people can benefit?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Where do I put lua scripts?

Post by knorke »

spring only comes with a LuaUI\ folder but not with LuaUI\widgets\
(or at least spring_96.0_portable.7z is like that)

Which Lua guide was it?
This one is outdated anyway and should have been unstickied.
This one was wrong too, edited it now.
Post Reply

Return to “Lua Scripts”