Page 1 of 1

accessing and modifying widgets within game archive

Posted: 05 Nov 2015, 00:01
by imboss77
just wondering how to edit widgets in a game archive and add or edit without having to compress it every time

Re: accessing and modifying widgets within game archive

Posted: 05 Nov 2015, 00:52
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.

Re: accessing and modifying widgets within game archive

Posted: 18 Nov 2015, 17:14
by code_man
Can the spring VFS write function manipulate game archive files?

Re: accessing and modifying widgets within game archive

Posted: 18 Nov 2015, 17:31
by Silentwings
No. (VFS functions are for reading, not for writing.)

Re: accessing and modifying widgets within game archive

Posted: 18 Nov 2015, 21:19
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\