GUIs and modding

GUIs and modding

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
Boogalizer
Posts: 6
Joined: 20 Apr 2007, 06:38

GUIs and modding

Post by Boogalizer »

I'm considering porting my mod (Devolution) over from TA into Spring, and porting it over in general seems like a simple, but tedious task. The only thing I'm a little confused about so far is the GUI and Lua system. In OTA it was possible to modify the GUI a fair amount and do creative things with it (IE make the D-Gun button say "Special," add in 192x128 build pics for Super Units, and generally make unit scripts do things by running off the move orders button, though changing what the button looks like to match the script's function).

First off, I can't even find where to edit what is built by what in spring. Theres no more "Downloads" folder- its it now read in sidedata.tdf?

Second, can you modify the gui? and if so, can you modify a single unit's gui? IE, making the D-Gun unit say "Special" for a unit that isn't the Commander. And if so, how :P Is it a Lua file, and are there good Lua editors?
User avatar
[XIII]Roxas
Posts: 182
Joined: 20 Jun 2007, 23:44

Post by [XIII]Roxas »

Welcome to Spring, Boogie.

First of all, the GUI here is far more pliable then OTA. I'm fairly certain that all you have established in Devolution (Great mod, by the way) can be placed into spring.

Concerning LUA, you'd have to ask people such as trepan. I'm not very familiar with it, but I can say with about 85% certainty that ANYTHING is possible in LUA.

Good luck.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

You'll have to go through Lua for GUI changes but once you do you can do anything. You can replace Spring's GUI with Starcraft's if you want.

The downloads folder is still supported but it's recommended to use sidedata.tdf.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

Or, if using raw lua unitdefs, just use the buildOptions table.

Example:
http://trepan.bzflag.bz/spring/aliencom.lua
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Post by MadRat »

With upswing the 3do --> s3o conversion is much easier now.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

But it's not a good idea anyway.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

UPSPRING *cough*

Generating a texture atlas and mapping the model to it might have been a better idea.
Post Reply

Return to “Game Development”