Page 1 of 1

Hiding LUA scripts in mods

Posted: 22 Apr 2007, 20:10
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.

Posted: 22 Apr 2007, 20:25
by tombom
I think it will be possible next version.

Posted: 22 Apr 2007, 20:53
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.