BA.lua Widget Config [Solved]

BA.lua Widget Config [Solved]

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
Buglouse
Posts: 2
Joined: 07 Jul 2010, 05:37

BA.lua Widget Config [Solved]

Post by Buglouse »

I would like to configure the widgets in BA to custom settings primarily for UI customization.

From my understanding this can be done via <install>/.spring/LuaUI/Config/<mod>.lua (where BA is the mod in this case) which is generated via widgets.lua (in /usr/share).
When I run Spring with the selected mod (BA712), the BA.lua file becomes overwritten with default values before game start.
I have both changed permissions on this file and modified the widgets.lua script so that changes are not written. The BA.lua file is then not overwritten, but the UI does not reflect appropriate changes.
I can never get widgets to reflect modifications from BA.lua.

?Is BA.lua just a reference file, not meant to control user experience?
?Who is able to adjust this file with results showing in game?

Note: I have successfully modified these setting directly from the mod, extracting, modifying and then compressing. The mod loaded in spring then shows the changes.


Example modification:
return { data = {
["Red Console"] = {
Config = {
console = {
fontsize = 9
}}}
}

Edit: Changed to [Solved].
Last edited by Buglouse on 14 Jul 2010, 22:56, edited 2 times in total.
Buglouse
Posts: 2
Joined: 07 Jul 2010, 05:37

Re: BA.lua Widget Config [Solved]

Post by Buglouse »

I was trying to modify values that were overridden by the installed Widget.

Solution: Extract Widgets from mod into local spring directory and modify values directly from within the Widget.

Status: Solved
Post Reply

Return to “Game Development”