accessing and modifying widgets within game archive

accessing and modifying widgets within game archive

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

accessing and modifying widgets within game archive

Post by imboss77 »

just wondering how to edit widgets in a game archive and add or edit without having to compress it every time
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: accessing and modifying widgets within game archive

Post by Silentwings »

If you are a player wanting to write your own widgets - the widgets should go into "spring data dir"/luaui/widgets. Create it if it doesn't exist.

If you are a game dev wanting to make/edit a whole game - put the games files into a folder called MyGameName.sdd, and put that folder into your "spring data dir"/games.
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Re: accessing and modifying widgets within game archive

Post by code_man »

Can the spring VFS write function manipulate game archive files?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: accessing and modifying widgets within game archive

Post by Silentwings »

No. (VFS functions are for reading, not for writing.)
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: accessing and modifying widgets within game archive

Post by zwzsg »

The easiest way would be to switch off the widget of the game archive (by default with the F11 menu, but some games implement a custom widget list menu), and then work on a copy, with a slightly different name, unpacked in \LuaUI\Widgets\
Post Reply

Return to “Lua Scripts”