LUA Gui and Mods?

LUA Gui and Mods?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Neuralize
Posts: 876
Joined: 17 Aug 2004, 23:15

LUA Gui and Mods?

Post by Neuralize »

In the last version of Spring a mod creator was able to customize the GUI for his mod by including the appropiate text files, now this doesn't work. Is this intentional?

Edit: Lui -> LUA
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

1. You could not load a LUA GUI from a mod before 0.74b1
(the addition of that feature is mentionned in the changelog)

2. Renamed "ctrlpanel.lua" to "gui.lua" is also mentionned
(in case your local copies are no longer working)

https://taspring.clan-sy.com/svn/spring ... ngelog.txt
User avatar
Neuralize
Posts: 876
Joined: 17 Aug 2004, 23:15

Post by Neuralize »

Ah, if I recall, Expand and Exterminate had modified their GUI menu in the last version by using ctrlpanel.txt in their mod's sdz, but if you load that version into Spring now, the menu just reverts to default settings.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

There's a "ctrlpanel.txt" file included in the 0.74b1 installer.
If you remove that file, then the mod's version of the file will
be loaded instead.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Post by knorke »

Is there a way to get the transparent chatbox of E&E beta 4 in other mods too?
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Post by ZellSF »

Just unextract E&E's ctrlpanel.txt file?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

You could also edit the default "ctrlpanel.txt" and set it
up the way that you want it. It contains a few example
configurations for different button grids.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

trepan... why can't mods specify a gui anymore?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

Read my posts in this topic, carefully.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Post by knorke »

ok, thanks. feels like a whole different game now, I think the transparent chat should be the standard setting..
Chojin
Posts: 141
Joined: 04 Oct 2006, 11:22

Post by Chojin »

Something I have been playing with:
http://ipxserver.dyndns.org/games/spring/misc/guis/

The possibilities LuaUI gives are amazing!
User avatar
Neuralize
Posts: 876
Joined: 17 Aug 2004, 23:15

Post by Neuralize »

It sounds like this feature needs to be streamlined just a little. There should be an option in settings.exe or tasclient.exe where you can choose which gui to use. If you have the time, you guys should even go as far as to create a seperate directory for guis. Then, just implement a drop down box in either settings or tasclient that allows you to choose exactly which gui you want to use out of a bunch installed. You would choose your gui and then specific whether you want the mod gui to override that in the event that it exists.

So the option would be like..

select a gui:
customgui1
customfungui
default

mod gui overrides if present:
yes
no
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

Neuralize:
How limiting, why not allow in-game changes? ;)

P.S. There is 1 dev working on this, with X amount of
time and keystrokes available to him. All in good time.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

NEED MOAR TREPANS! :lol:
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

We need more trepans like we need holes in our skulls :D
j5mello
Posts: 1189
Joined: 26 Aug 2005, 05:40

Post by j5mello »

Someone write a trepan!!! :P
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

I'll switch my major to genetics. He can be my Graduate project.
Post Reply

Return to “Lua Scripts”