Here, let me tell you how exactly to do this. If you are replacing the building, leave commandbutton.ini alone. Go to factionbuilding.ini and change the side, time, blah blah blah, to how you want it. Then go to commandset.ini and hit CTRL+F and look for either...
CommandSet AmericaDozerCommandSet
CommandSet GLAWorkerCommandSet
or
CommandSet ChinaDozerCommandSet
If you looked for AmericaDozer, you will see...
CommandSet AmericaDozerCommandSet
1 = Command_ConstructAmericaPowerPlant
2 = Command_ConstructAmericaStrategyCenter
3 = Command_ConstructAmericaBarracks
4 = Command_ConstructAmericaSupplyDropZone
5 = Command_ConstructAmericaSupplyCenter
6 = Command_ConstructAmericaDetentionCamp
7 = Command_ConstructAmericaPatriotBattery
8 = Command_ConstructAmericaParticleCannonUplink
9 = Command_ConstructAmericaWarFactory
10 = Command_ConstructAmericaCommandCenter
11 = Command_ConstructAmericaAirfield
12 = Command_DisarmMinesAtPosition
End
The numbers refer to where the icon is on the command bar when you click it. You may only go 1-12 AND as you see... its full. A good idea would be to make a copy of the dozer and name it differently, and add entirely different buildings. SO the command "Command_ConstructAmericaWarFactory" refers to what the command is in CommandButton.ini
EX:
CommandButton
Command_ConstructAmericaWarFactory
Command = DOZER_CONSTRUCT
Object = AmericaWarFactory
TextLabel = CONTROLBAR:ConstructAmericaWarFactory
ButtonImage = SACWeaponsfact
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUSABuildWarFactory
End
It is refering to all of this. If you are taking a building and duplicating it, you must copy and edit to your pleasure.
SO... basically, commandset.ini tells what unit to use what line(s) from commandbutton.ini, which takes the object from factionbuilding.ini, EX: all of the lines from "Object AmericaWarFactory" all the way to the very las "End".
In conclusion. factionbuilding.ini is used by commandbutton.ini to tell commandset.ini to use the codes from factionbuilding.ini when the button from commandbutton.ini is pushed, which tells the game to create the building...
Sorry for all the confusion I may have just caused. If you would like a better tutorial, I'll teach you via e-mail.
mtdfreak09@aol.com, or by AIM.