Hiding LUA scripts in mods

Hiding LUA scripts in mods

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

Moderator: Moderators

Post Reply
User avatar
Boirunner
Kernel Panic Co-Developer
Posts: 811
Joined: 05 Feb 2007, 14:24

Hiding LUA scripts in mods

Post by Boirunner »

Hello scripters!

For Kernel Panic, I made a LUA script that turns off the resource bar and sets the factories to spam automatically.

Is there a way to integrate the script into the mod file?

Also, can I change the general interface from within the mod? Kernel Panic has quite a different interface need than something like XTA, so i'd love to change it. Asking people do download a seperate script is possible, but seems a bit tedious.

I'm sure this has been answered somewhere, but search reveals nothing to me.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

I think it will be possible next version.
User avatar
Boirunner
Kernel Panic Co-Developer
Posts: 811
Joined: 05 Feb 2007, 14:24

Post by Boirunner »

tombom wrote:I think it will be possible next version.
thanks.

one more question. i want to play sounds from my script that i pack with the mod. this is how the chatterbox applet does it:

Spring.PlaySoundFile(SOUND_DIRNAME .. filename, unpack(arg))

now, how can i change the path to the zip of the mod, it at all?

edit: trepan says this is currently not possible as the LUA widgethandler does not currently support the virtual file system that is needed to access files inside an .sd7 or .sdz.
Post Reply

Return to “Lua Scripts”