Page 1 of 1

Build Trees

Posted: 18 Dec 2005, 05:25
by Maelstrom
Just wondering how all the different types of build tree options work. Like the Download.tdf's, the Sidedata.tdf, and whatever the other one is. Also, if both are present, what order they are loaded in. Im gonna try to make a tool that converts the different files from one type to another, to help people convert stuff.

Posted: 18 Dec 2005, 06:14
by Kuroneko
They both work

Posted: 18 Dec 2005, 06:29
by Maelstrom
I know that. But I want to do this anyway. So how do they work?

Posted: 18 Dec 2005, 09:08
by Gnomre
The third option is the .GUI file. I don't know their read order for the three, but I know it will use them all.

GUI files are set up like this:

Code: Select all

[GADGET4]
	{
	[COMMON]
		{
		id=1;
		assoc=77;
		name=IMPATGANT;
		xpos=0;
		ypos=27;
		width=64;
		height=64;
		attribs=32;
		colorf=15;
		colorb=0;
		texturenumber=0;
		fontnumber=0;
		active=1;
		commonattribs=4;
		}
	}
The [GADGET] part's number always increments. A unit with a lower number would be before a unit with a lower number in the menu. The name= field defines what unit is built. AFAIK the other tags are worthless in spring. Nukes/Antinukes always require GUI files even in spring, I *think* (spring just might look for stockpile=1 in the weapon TDF and go from there). If it does use the GUI files, I don't know which tags it uses for them.

Download TDFs: http://taspring.clan-sy.com/wiki/Units:Download_TDF

I summarized [CANBUILD] in FLOZi's recent topic in this forum.