Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Riain  
#1 Posted : Monday, March 31, 2008 1:11:31 PM(UTC)
Riain
Private
Joined: 3/3/2008(UTC)
Posts: 11
Location: United Kingdom

I recently came across the "guardian turret" while searching for mods on the net and I want to add it to the China Tank General, replacing it with the 'Bunker'. My problem is, I've no idea how to.

So far, I've exported the INIZH via FinalBig into a INI folder and that's about it. I've uploaded the zip file for the turret (I think) but am unsure about where the files go

Peace & beers
R.

Edited by user Monday, March 31, 2008 1:16:11 PM(UTC)  | Reason: Not specified

When the power of love overcomes the love of power, the world will know peace
Sponsor
Offline Yoshi714  
#2 Posted : Monday, March 31, 2008 1:43:33 PM(UTC)
Yoshi714
Major
Joined: 2/13/2008(UTC)
Posts: 380

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

Turtling is not a strategy, its a weakness
Offline Riain  
#3 Posted : Tuesday, April 1, 2008 3:23:18 AM(UTC)
Riain
Private
Joined: 3/3/2008(UTC)
Posts: 11
Location: United Kingdom

I found it by pure luck searching tutorials and mods. Also found the pop-up patriot missile which is on Shockwave. I'm not 100% sure how to upload on this, so I'll use 'Megaupload'. The link should be good for up to a week.

http://www.megaupload.com/?d=Z602KL3X

The zip file contains a few W3D files, Truevision Targa image files, a CSF and the configuration file

Edited by user Tuesday, April 1, 2008 3:32:45 AM(UTC)  | Reason: Not specified

When the power of love overcomes the love of power, the world will know peace
Offline Yoshi714  
#4 Posted : Tuesday, April 1, 2008 3:30:25 AM(UTC)
Yoshi714
Major
Joined: 2/13/2008(UTC)
Posts: 380

I found your turret, I just got shockwave a couple days ago so the turret name wasnt apparent to me at first. There may be more to do than just what I listed above. Although all that must be done. Im not sure which turret that is in the game but if it uses upgrades or anything it gets a little bit more complicated. But, if you want, start with what I listed above and we'll work off the errors you recieve from there.

Also, after unzipping (since I dont have time right thsi second to get a membership for that site) what all files does this zip file contain? That should help determine what all has to be done. There should be new audio, weaponry and textures and models etc... for this turret so it will take quite a bit of fussing with to get it working.

Edited by user Tuesday, April 1, 2008 3:33:11 AM(UTC)  | Reason: Not specified

Turtling is not a strategy, its a weakness
Offline Riain  
#5 Posted : Tuesday, April 1, 2008 5:02:14 AM(UTC)
Riain
Private
Joined: 3/3/2008(UTC)
Posts: 11
Location: United Kingdom

You don't have to join. Up by the Megaupload logo, to the right, you'll see "Please enter TRW" after you do that it'll take you to the download page on which you wait 45 seconds and you can get the file

The zip file contains; ABGardTur.W3D, ABGardTur_d.W3D, ABGardTur_ds.W3D, ABGardTur_e.W3D, ABGardTur_es.W3D, ABGardTur_s.W3D.

abgunbarrel, abgunturret, abgunturret_d, abgunturret_ds, abgunturret_e, abgunturret_es, abgunturret_s, atcoreglow4, SAGuardian (All are Truevision Targa Image files)

generals. csf and the Guardianturret configuration file

Edited by user Tuesday, April 1, 2008 5:06:42 AM(UTC)  | Reason: Not specified

When the power of love overcomes the love of power, the world will know peace
Offline Yoshi714  
#6 Posted : Tuesday, April 1, 2008 11:14:20 AM(UTC)
Yoshi714
Major
Joined: 2/13/2008(UTC)
Posts: 380

Models, textures, a text file, and the object file... what I don't see is a weapon.ini file or any audio files. It could be that it just uses existing weaponry and sounds but I am going to make sure later... I have a 3 hour drive in a few minutes but tonight I'll probably see if I cant successfully add this mod on my system so its easier to explain.
Turtling is not a strategy, its a weakness
Offline randomperson  
#7 Posted : Tuesday, April 1, 2008 2:07:19 PM(UTC)
randomperson
Colonel
Joined: 12/16/2006(UTC)
Posts: 577
Location: United Kingdom

the weapon data is in the ini file. you need to cut each chunk out and put it in the respective file
UserPostedImage
Offline Riain  
#8 Posted : Tuesday, April 1, 2008 2:33:50 PM(UTC)
Riain
Private
Joined: 3/3/2008(UTC)
Posts: 11
Location: United Kingdom

randomperson wrote:
the weapon data is in the ini file. you need to cut each chunk out and put it in the respective file


I thought as much Thumb Down

My "modding" skills go as far as changing and adding new colours and even that's half assed

Edited by user Tuesday, April 1, 2008 2:53:21 PM(UTC)  | Reason: Not specified

When the power of love overcomes the love of power, the world will know peace
Offline Yoshi714  
#9 Posted : Tuesday, April 1, 2008 5:21:24 PM(UTC)
Yoshi714
Major
Joined: 2/13/2008(UTC)
Posts: 380

Ah, so you do have more INI info... you can tell at where things are split up in that INI files based off where each line starts. If it starts on the far left at the absolute edge of notepad than its a new section. I have not had time to download this yet, I will try here in a little while tonight and see what these files are made of and try to give you some descent instructions.

Was there a readme with the file??

EDIT - I downloaded this zip file. I am attempting to get it working, but I am on my Vista beast of a lap top and it does not work well with CnC so errors are hard to pinpoint on this thing since they occur randomely anyway. Most everything in this file is straight forward for me, you have data to place in:

Data\INI\CommandSet.ini
Data\INI\CommandButton.ini
Data\INI\Weapon.ini

Copy past the data you regarding each of these (they are labeled in that file). Paste them into the original file of this type just at the bottom or something. Then save that file in the locations I have listed here for you. The command set changes are different though. You will need to find the command set for the dozer that you want to be able to build this turret. I think you said you want the tank gen to be able to build it. I suggest doing a search while in the CommandSet.ini file for Tank_ChinaDozerCommandSet (I think thats what its called) and then place that turret into an open slot like I explained up top in an earlier post. As for the command button and weapon ini's you can just add it in at the bottom.

You have models that must go in:

Art\W3D (these are the ones with the .W3D file extension)
Art\Textures (these are the .tga file, or .dds files)

The models and their texturescan just be placed in these locations, that is simple.

Then there is the last section of the GuardianTurret file you have that has a sesction called Cameo. I BELIEVE these go in:

Data\INI\MappedImages\TextureSize_512\SAUserInterface512

The last one I could be mistaken on, not completely sure. There are only a few it could go in, that one seems most likely of the few.

As for the Object description, the bulk of that GuardianTurret file. That goes inside the:

Data\INI\Object\<NAME>

I think the name of the file is irrelevant here, as long as its in the Object folder. Certain other files may have irrelevant file names as well but I always put them where they go so its easy to keep track of. Also, make sure you delete the other info from this file before placing it here. All the stuff that you put into the other files that came from here does not need to remain in this file, it needs to go.

Keep in mind Art and Data are folders within the Zero Hour directory. The Data folder will already be in existence but the Art folder you will have to create on your own as well as the folders contained within obviously.

Try this and get back to us on rather it worked for you. I have trouble testing on this damn vista machine. I wont be back on my real computer for a few days.

OK, it worked for me! If you are not giving it to the regular USA general though, there is one more thing you will have to do. In that object description, the bulk of that file you have. You will need to find the section towards the bottom that says "Prerequisites = <Required stuff to build turret>" Currently the cold fussion reactor is here, but if you want the tank gen to be able to build it then eithe remove the cold fussion reactor, or replace it with the tank powerplant, which I believe is called "Tank_ChinaNuclearReactor" but I could be wrong... Also, if you want this turret avaliable for multiple factions than put a space between each item and they can build any of them to make them selves eligible to build the turret.

Also, the generals.str file, that is just a text file, it has no effect on game play but put it inside the Data folder. It just changes in game text to account for the new structure.

Does it not bother you that this turret is angled at 0 degrees to the horizantal yet the shell it fires goes up at an angle??? this makes me cringe when I see it.

Edited by user Tuesday, April 1, 2008 7:56:50 PM(UTC)  | Reason: Not specified

Turtling is not a strategy, its a weakness
Offline Riain  
#10 Posted : Wednesday, April 2, 2008 1:43:58 AM(UTC)
Riain
Private
Joined: 3/3/2008(UTC)
Posts: 11
Location: United Kingdom

Ok, thanks for the help
When the power of love overcomes the love of power, the world will know peace
Offline Riain  
#11 Posted : Wednesday, April 2, 2008 4:13:53 AM(UTC)
Riain
Private
Joined: 3/3/2008(UTC)
Posts: 11
Location: United Kingdom

All right, done everything so far, just about to check if it works.

Keep getting errors, but that's maybe due to the fact, I'm not sure where the CSF file is placed. I'll have another look later on

Edited by user Wednesday, April 2, 2008 4:22:47 AM(UTC)  | Reason: Not specified

When the power of love overcomes the love of power, the world will know peace
Offline Yoshi714  
#12 Posted : Wednesday, April 2, 2008 5:58:39 AM(UTC)
Yoshi714
Major
Joined: 2/13/2008(UTC)
Posts: 380

Dont worry about the csf, i called it a str file, which is the same thing just different file type. That file doesnt affect anything. I never even placed it when I put these files on my system. It is only a text file so it alters text so that the game knows what that new turret is when you hover your mouse over it in game, that sorta thing. Go to your my documents folder, and then click on Command and Conquer Generals then ReleaseCrashInfo. Post those contents here. If it says something like AccessViolation Game update, then try opening world bulder and if you get an error, or multiple errors then post those errors here instead.
Turtling is not a strategy, its a weakness
Offline Riain  
#13 Posted : Wednesday, April 2, 2008 6:18:52 AM(UTC)
Riain
Private
Joined: 3/3/2008(UTC)
Posts: 11
Location: United Kingdom

Anooyingly the fault for Worldbuilder was due to the Pop-up Patriot.

The RCI, however says

Release Crash at Wed Apr 02 16:16:52 2008
; Reason Error parsing INI file 'Data\INI\CommandSet.ini' (Line: 'CommandSet Tank_ChinaDozerCommandSet ')


Last error:


Current stack:

Edit; Ok, noticed my newbidity and removed the space. Now it's saying

Release Crash at Wed Apr 02 16:27:53 2008
; Reason Uncaught Exception during initialization.

Last error:


Current stack:

Edited by user Wednesday, April 2, 2008 6:28:21 AM(UTC)  | Reason: Not specified

When the power of love overcomes the love of power, the world will know peace
Offline Yoshi714  
#14 Posted : Wednesday, April 2, 2008 6:46:20 AM(UTC)
Yoshi714
Major
Joined: 2/13/2008(UTC)
Posts: 380

Ok, that is helpful. Somtimes world builder gets errors that arent realy anything, so for now I'd say igonore the pop up patriot error.

Now what you need to do is check to make sure that the command line of your dozer command set regarding the turret matches up with whats in the CommandButton.ini file. I am assuming you did not change the comamnd line that they provided which was:

10 = Command_ConstructAmericaGuardianTurret

Yours may use a different number depending on what was free in the command set. So yours probably looks like this once you added it to the tank china command set:

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 = Command_ConstructAmericaGuardianTurret
14 = Command_DisarmMinesAtPosition
End

Now that has to match up with the CommandButton.ini file. In the Commandbutton.ini file you should paste into that file somewhere at the bottom the following.


CommandButton Command_ConstructAmericaGuardianTurret
Command = DOZER_CONSTRUCT
Object = AmericaGuardianTurret
TextLabel = CONTROLBAR:ConstructAmericaGuardianTurret
ButtonImage = SAGuardian
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUSABuildGuardianTurret
End

You need to paste that entire section into the commandbutton.ini file and the part in bold MUST match up with the line you had in the command set. It does not matter that is says American in the line, just that they are the same as each other. The second part that I bolded in that command button is the object itself. This line MUST match up with the first line of your object description. That is the data that came in that large file that starts and end with the following:

Object AmericaGuardianTurret

; *** ART Parameters ***
SelectPortrait = SAGuardian_L
ButtonImage = SAGuardian
Draw = W3DModelDraw ModuleTag_01

.
.
.


Geometry = CYLINDER
GeometryMajorRadius = 12.0
GeometryMinorRadius = 1.0
GeometryHeight = 14.0
GeometryIsSmall = No
Shadow = SHADOW_VOLUME
BuildCompletion = PLACED_BY_PLAYER

End

It is a long section so I just posted the begining and end of that file but you need to leave all of whats in between obviously. The part in bold must match up with that bold line in the commmand button file.

Make sure inside the Data foler of your zero hour directory there is a folder called INI. Inside that folder you need another folder called Object. Inside the object folder is where the file goes that you have that object description. The name of that file DOES NOT MATTER. Mine is named 'GT'. This file must be of type file extension .ini On vista it is a bit of a ***** but if you are running XP then just type .ini after the name. Mine would say GT.ini The CommandButton.ini, and CommandSet.ini files are the same way, but those don't go in the object folder. They just go in the INI folder, but must be named like I stated already. With those make sure you are using the orinal files and just adding in what is needed. In the CommandSet.ini file you also have to add in the command set of the turret. That was also included in that large file you have. Just copy paste the contents of his command set at the bottom of the CommandSet.ini file. It should look like this.


CommandSet GuardianTurretCommandSet
13 = Command_StrategyCenter_Stop
14 = Command_Sell
End

Make sure you have done these things correctly. Then we can move on to see if the models and textures and weaponri where placed right.
Turtling is not a strategy, its a weakness
Offline Riain  
#15 Posted : Wednesday, April 2, 2008 11:05:18 AM(UTC)
Riain
Private
Joined: 3/3/2008(UTC)
Posts: 11
Location: United Kingdom

Ah, I had "Tank_Command_ConstructAmericaGuardianTurret"

When the power of love overcomes the love of power, the world will know peace
Offline Yoshi714  
#16 Posted : Wednesday, April 2, 2008 5:50:44 PM(UTC)
Yoshi714
Major
Joined: 2/13/2008(UTC)
Posts: 380

So did you get it to work then? FYI, that line corresponds to the line in the command button and therefore has NO OTHER PURPOSE! You could put anything there as long as it matches the command button.

If that did work for you, try opening world builder, im curious if that pop up patriot error is still around. It shouldn't be since you dont even have the patriot object description or even model files in your directory.

Edited by user Wednesday, April 2, 2008 6:26:54 PM(UTC)  | Reason: Not specified

Turtling is not a strategy, its a weakness
Offline Riain  
#17 Posted : Thursday, April 3, 2008 1:00:33 AM(UTC)
Riain
Private
Joined: 3/3/2008(UTC)
Posts: 11
Location: United Kingdom

Yeah, still getting the same error. What I'll do is, repair the game and put everything back to default. Then start from scratch. I probably just made a slight mistake somewhere that I haven't noticed.

I got it working, but stuck with USA to begin with. I can see what you mean about the way it fires upwards. The turret also seems to face in a different direction to where it's aiming at.

Cheers for your help Thumb Up

Edited by user Thursday, April 3, 2008 1:32:22 AM(UTC)  | Reason: Not specified

When the power of love overcomes the love of power, the world will know peace
Offline Yoshi714  
#18 Posted : Thursday, April 3, 2008 6:09:15 AM(UTC)
Yoshi714
Major
Joined: 2/13/2008(UTC)
Posts: 380

Yes, that is not an error of yours, I noticed both the upward fire and the slanted turret... working on why it does it though. Ill let you know when I figure it out.

EDIT - Do you remember, does the turret look like that in the mod? with the funny angle and all?

Edited by user Thursday, April 3, 2008 6:21:39 AM(UTC)  | Reason: Not specified

Turtling is not a strategy, its a weakness
Offline Riain  
#19 Posted : Thursday, April 3, 2008 9:58:24 AM(UTC)
Riain
Private
Joined: 3/3/2008(UTC)
Posts: 11
Location: United Kingdom

Yoshi714 wrote:
Yes, that is not an error of yours, I noticed both the upward fire and the slanted turret... working on why it does it though. Ill let you know when I figure it out.

EDIT - Do you remember, does the turret look like that in the mod? with the funny angle and all?


Nah, the turret on the mod works fine and it's different too. I think this is just a knock off or something. I think it would look good, if the firing was sorted

Edited by user Thursday, April 3, 2008 11:27:14 AM(UTC)  | Reason: Not specified

When the power of love overcomes the love of power, the world will know peace
Offline Yoshi714  
#20 Posted : Thursday, April 3, 2008 3:52:47 PM(UTC)
Yoshi714
Major
Joined: 2/13/2008(UTC)
Posts: 380

Yea I agree, I was just saying that it wasnt an error in placing the files. I even tried to change some of the values for the turret in both its object descriptiong and also in the weapon.ini file... I couldnt get it to look right or even look any different than it does now. I'm wondering if whoever made this model in this instance, maybe they messed up the part where the cannon must function independently from the swivel. I didn't notice but does it have recoil when it fires??

Anyhow it looks stupid, but you could easily just get the right one from the mod if you wanted. Its what I did with the mammoth tank cuz I think its awesome.
Turtling is not a strategy, its a weakness
Users browsing this topic
Guest (4)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.