Spring Build menus and how it relates to the TDF??

Spring Build menus and how it relates to the TDF??

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Buggi
Posts: 875
Joined: 29 Apr 2005, 07:46

Spring Build menus and how it relates to the TDF??

Post by Buggi »

Okay, I've battled them for a LONG time now and I finally am throwing in the towel. How the heck does Spring know what buttons to build where? Since every unit can have different commands (on/off, cloak, etc) where/how can proper build menus be made?!

I found the code that sets it... (UnitDefHandler.cpp)

Code: Select all

int num=(menu-2)*6+button+1;
builder->buildOptions[num]=un2;
So, from the first entry of the FARK...

Code: Select all

[MENUENTRY1]
{
	UNITMENU=ARMALAB;
	MENU=4;
	BUTTON=3;
	UNITNAME=ARMFARK;
}
This is telling me using that formula that it'll be given position 16...
!?!?! :shock:

Please shed some light on this... As well as what is the maximum number of menus a unit can have :-)
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

Build menues seem like a big mess and those number was something I experimented to get. If you look there is also another sort of files that give the position directly rather than as menu/pos.

Spring just start adding build menu buttons after it has added all the standard buttons so nothing magic about that.

There should be no upper limit on how many buildings spring can handle. Select one of every sort of building/factory and you will get a big build menu indeed.
User avatar
Buggi
Posts: 875
Joined: 29 Apr 2005, 07:46

Post by Buggi »

I'm getting units/buildings that are not appearing. Some may be due to button/menu conflicts... but I was told Spring ignored those :shock:

That doesn't seem to be the case ...

So how to resolve conflicts when regular TA was what? 3x3 and spring is 2x7?
User avatar
Gabba
Posts: 319
Joined: 08 Sep 2004, 22:59

Post by Gabba »

Are you missing files in your Spring directory? To make any mod work you must also have the original TA content (for example, the .ccx file that comes with the full TA Spring install), either in the same file or in a separate archive.
User avatar
Buggi
Posts: 875
Joined: 29 Apr 2005, 07:46

Post by Buggi »

If I could find my TA install cd I'd install it.

Otherwise I'm good. I'm not completely useless :)
User avatar
Gabba
Posts: 319
Joined: 08 Sep 2004, 22:59

Post by Gabba »

Buggi wrote: I'm not completely useless :)
I hope so :wink:. Anyways I suppose you already know that, butwhat I meant is that, to get any mod to work, you must have taenheter.ccx in your Spring directory.
Post Reply

Return to “Engine”