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.
Hiding LUA scripts in mods
Moderator: Moderators
thanks.tombom wrote:I think it will be possible next version.
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.