Where did you find the guardian turret? can you post a link, or the file on here? You will need to use that file, which I assume you mean the object description of the turret. That file will have to go in a folder called Objects within a folder named INI within the Data folder of the ZH directory. It will look like this:
C:\Program Files\EA Games\Command & Conquer Generals Zero Hour\Data\INI\Object
What I suggest is to find the object file for the Tank general from the files you exported using FinalBig. It is called:
Data\INI\Object\TankGeneral.ini
Open that file up and scroll to the bottom and copy paste the desctiprtion you have for the turret at the bottom of that file. Now create that folder system like I showed above and place that TankGeneral.ini file inside that Object folder. The game will reference this folder just as it does the ZHINI.big file and it will find your updated TankGeneral.ini file. Now without seeing this turret I cannot be sure if it has a new weapon or not. So unless someone else here is familiar with it you will have to determine rather you need to copy paste something into the weapon.ini file as well. If that is the case than you will need to find the description of the weapon it uses which will be a seperate file and copy paste it into the existing weapon.ini file. This file just contains all the weapon types that each unit/structure uses. Within the object description for this turret it will list (if more than one) all of the weapon sets. I would suggest finding that section on the turret and copying that weapon type. Then go into the weapon.ini file and go to Edit > Find, and paste that weapon type there so you can see if its already an existing weapon type. If its not, then you should have another file for the weapon sommwhere inside your download. Once you have placed the object description inside the TankGeneral.ini file, as well as checked on and updated the weapon.ini file if necessary then you will need to make that turret purchasable by the tank gen. Note: you can have it purchasable by any faction, just because its in the TankGeneral.ini file doesnt mean it belongs to that general alone. Also, if you have to update the weapon.ini file, then just use the one you extracted in that .big file, and add in your section for your turret then place that file iside the INI folder that I had you create earlier.
Search for a file called CommandSet.ini, within that file search for the section that has the Tank_DozerCommandSet, it will look like this:
CommandSet Tank_ChinaDozerCommandSet
1 = Tank_Command_ConstructChinaPowerPlant
2 = Tank_Command_ConstructChinaInternetCenter
3 = Tank_Command_ConstructChinaBarracks
4 = Tank_Command_ConstructChinaAirfield
5 = Tank_Command_ConstructChinaSupplyCenter
6 = Tank_Command_ConstructChinaPropagandaCenter
7 = Tank_Command_ConstructChinaBunker
8 = Tank_Command_ConstructChinaSpeakerTower
9 = Tank_Command_ConstructChinaGattlingCannon
10 = Tank_Command_ConstructChinaNuclearMissileLauncher
11 = Tank_Command_ConstructChinaWarFactory
12 = Tank_Command_ConstructChinaCommandCenter
14 = Command_DisarmMinesAtPosition
End
CommandSet Tank_ChinaDozerCommandSet
1 = Tank_Command_ConstructChinaPowerPlant
2 = Tank_Command_ConstructChinaInternetCenter
3 = Tank_Command_ConstructChinaBarracks
4 = Tank_Command_ConstructChinaAirfield
5 = Tank_Command_ConstructChinaSupplyCenter
6 = Tank_Command_ConstructChinaPropagandaCenter
7 = Tank_Command_ConstructChinaBunker
8 = Tank_Command_ConstructChinaSpeakerTower
9 = Tank_Command_ConstructChinaGattlingCannon
10 = Tank_Command_ConstructChinaNuclearMissileLauncher
11 = Tank_Command_ConstructChinaWarFactory
12 = Tank_Command_ConstructChinaCommandCenter
13 = Tank_Command_ConstructTurret 14 = Command_DisarmMinesAtPosition
End
The number on the left corresponds to the position of the image that you click to build each item. 1 is the top left position, then 2 is below that, 3 next to one, and 4 is below 3 and so on. There is a diagram of it at the top of the CommandSet.ini file. You do not have to remove the china bunker if you dont want to since the slot for 13 is not taken. So if you want, type 13 = and then put the name of the turret after the equal sign just as the others did. It is not terribly important what you put call that line. You may call it Tank_Command_ConstructTurret if you wish. The second command set I posted there is edited the way yours should look after adding that part in.
Next you will need to edit the CommandButton.ini file. This file is referneced by the computer to explain what to do for each command in the command set file. Anywhere in the CommandButton.ini file you will need to add a section for your new turret. It will look like this:
CommandButton
Tank_Command_ConstructTurret Command = DOZER_CONSTRUCT
Object =
Tank_ChinaTurret TextLabel = CONTROLBAR:ConstructChinaCommandCenter
ButtonImage = SNComCentr
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipChinaBuildCommandCenter
The two sections in bold are very important. The first one must match the line you had in the commandset.ini file. It is what links these two together. The second must match the first line of the object description you placed in the TankGeneral.ini file. It is just the object name. Now I copied this command button section from the tank gen's command for contructing the command center. So in this example the text when hovering over the turret would read "Construct Command Center" or something to that effect. Also the image on the button will be that of the command center. If you want to know how to change the text we can explain that to you, but as for the image, without haveing an image that you want there, then there isnt much you can do about that besides just choosing an existing image and we can explain that if you know which image you want. Below I have the start to the object description for a China Helix, the part in bold is what must match up with the command line of the command button file:
Object
Tank_ChinaVehicleHelix ; *** ART Parameters ***
SelectPortrait = SNHelix_L
ButtonImage = SNHelix
UpgradeCameo2 = Upgrade_ChinaBlackNapalm
UpgradeCameo3 = Upgrade_ChinaHelixGattlingCannon
UpgradeCameo4 = Upgrade_ChinaHelixPropagandaTower
UpgradeCameo5 = Upgrade_ChinaHelixBattleBunke
In case there is any confusion about the file system I am going to try to clear it up for you here. The file you extracted, the INIZH.big file. That file is a compiled form of many other files that the game uses. While you have it open in FinalBig you can see on the left pane all the file paths that each file uses. If you wish to edit a file, and place it in the Zero Hour directory you must place it in the same loction that the .big file said it was located. For many of these files its within the Data\INI foler. Some will need to go into a sub folder of the INI folder called Object. Others will go in Textures etc etc. Just make sure you use the same file path that the oringal file inside INIZH.big had. You can extract maps as well from the MapZH.big file for editing in world builder.
Edited by user Monday, March 31, 2008 1:58:27 PM(UTC)
| Reason: Not specified