Ever wonder how to add boats into your mod? This is how.
Around November 2005 I found a simple way to add boats into Zero Hour with minimal bugs. I forgot to stick it on Generals World and/or upload it online. Since I want to share this around, I request that this topic be stickied. -- If this same system has already been done, thats fine. I would like people to have an actual tutorial to add boats into the game.
The parts that you might have already done will be in
Red. If you have not, these ARE NOT optional steps.
The parts that are pieces of code will be in
Green. These are just examples that you can either A. Copy and Paste or B. Look over to make sure you did it right.
The parts in
Yellow are important pieces in the steps, which you will see often.
The chapters (Known as: Part 1, Part 2, and etc.) will be highlighted in
Blue.
Part 1: Extracting the INI Files.1. First extract all of the files from the INIZH.big, useing a program such as FinalBIG. (What I use.) http://www.cncnz.com/fil...erals/utils.shtml#finalb Note: To set this up, use the readme that comes with it.
Go to your C:\Program Files\EA Games\Command & Conquer(tm) Generals Zero Hour or C:\Program Files\EA Games\Command & Conquer The First Decade\Command & Conquer(tm) Generals Zero Hour folder and open the INIZH.big file with FinalBIG. At the top bar, hit Edit, then Extract All.
Make sure the path is set like C:\Program Files\EA Games\Command & Conquer(tm) Generals Zero Hour\Data\INI or C:\Program Files\EA Games\Command & Conquer The First Decade\Command & Conquer(tm) Generals Zero Hour\Data\INI.
Once you have done this correctly, you are ready to start modding.Part 2: Adding your boats.It is time to start adding your boats into the game, you can start by opening up your
AmericaMiscUnit.ini in Notepad. These are the pathes:
(C:\Program Files\EA Games\Command & Conquer(tm) Generals Zero Hour\Data\INI\Object\AmericaMiscUnit.ini)
(C:\Program Files\EA Games\Command & Conquer The First Decade\Command & Conquer(tm) Generals Zero Hour\Data\INI\Object\AmericaMiscUnit.ini)
The first thing you should see at the top is the:
;------------------------------------------------------------------------------
Object CountermeasureFlare ;<--- The name of the object.
;------------------------------------------------------------------------------
This means you have opened the correct file.
On your keyboard, do Ctrl+F or click on the top bar Edit/Find. Type
BattleshipReal, and then hit
Find Next. You should go straight to an area like this:
;------------------------------------------------------------------------------
Object AmericaVehicleBattleShipReal
SelectPortrait = SABattleship_L
; *** ART Parameters ***
Draw = W3DTankDraw ModuleTag_01 ;<--- The first section of the battleship part.
;------------------------------------------------------------------------------
You need to copy and paste the whole section. Start at the top and drag down to
End:
;------------------------------------------------------------------------------
Geometry = BOX
GeometryMajorRadius = 200.0
GeometryMinorRadius = 20.0
GeometryHeight = 40
GeometryIsSmall = No
Shadow = SHADOW_VOLUME
End ;<--- Where you should drag down to.
;------------------------------------------------------------------------------
Highlight everything includeing the
"End" and copy it (Right-Click, Copy. -- Or you can do Ctrl+C on your keyboard.). Now hit the red X at the top and exit out.
Open your
AmericaVehicle.ini, found in the same folder, and open it. You should see this:
;------------------------------------------------------------------------------
Object AmericaVehicleHumvee
; *** ART Parameters ***
SelectPortrait = SAHummer_L
ButtonImage = SAHummer ;<--- The first part of the American Humvee, found in the file.
;------------------------------------------------------------------------------
Paste (Ctrl+V or click on the top bar and Edit/Paste.) your whole battleship section right above the humvee. Click above the ;-- area and then paste.
Go to the top area of your battleship, here:
;------------------------------------------------------------------------------
Object
AmericaVehicleBattleShipReal ;<--- The name.
;------------------------------------------------------------------------------
Rename it to something else, for this tutorial, I will go ahead and name it like this:
;------------------------------------------------------------------------------
Object AmericaVehicleBattleShipTutorial;------------------------------------------------------------------------------
Hit the red X at the top right, and it will prompt you to save changes. Hit yes and it should automatically close with the changes. If you would like to double-check, open the file again and see if the top area for your battleship is there.
After you do this, run the game to make sure the battleship was entered in right. You wont be able to see any of the changes you made, but if you dont get an error when starting up, it means you did these steps correctly so far.
Part 3: Your shipyard, command sets, and command buttons.Good job so far. Open your
CommandButton.ini, which is in the base INI folder:
C:\Program Files\EA Games\Command & Conquer(tm) Generals Zero Hour\Data\INI\CommandButton.ini
C:\Program Files\EA Games\Command & Conquer The First Decade\Command & Conquer(tm) Generals Zero Hour\Data\INI\CommandButton.ini
After you have done that, scroll down to the bottom and enter in this code. You may copy and paste if you want:
;-----------------------------------------------------------------
CommandButton Command_ConstructAmericaVehicleBattleShipTutorial
Command = UNIT_BUILD
Object = AmericaVehicleBattleShipTutorial ;<--- Whatever your unit's name was.
TextLabel = CONTROLBAR:ConstructAmericaVehicleHumvee
ButtonImage = SABattleship_L
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUSABuildHumvee
End;-----------------------------------------------------------------
Copy the
Command_ConstructAmericaVehicleBattleShipTutorial part and then exit out of this file. Be sure to say yes when it prompts you to save the changes.
Open up your
CommandSet.ini that is within the same base INI folder. Scroll to the bottom and enter in this code:
;-----------------------------------------------------------------
CommandSet NeutralTutorialShipyardCommandSet
1 = Command_ConstructAmericaVehicleBattleShipTutorial
End;-----------------------------------------------------------------
Copy the part that is:
NeutralTutorialShipyardCommandSet and then exit out of this file. Save the changes.
Go back into the Objects folder, and open
CivilianBuilding.ini. On your keyboard, do Ctrl+F or click on the top bar Edit/Find. Type
BoatDocks, and then hit
Find Next. You should go straight to an area like this:
;------------------------------------------------------------------------------
Object BoatDocks01
; *** ART Parameters ***
Draw = W3DModelDraw ModuleTag_01
OkToChangeModelColor = Yes
; day
ConditionState = NONE
Model = CBNBoatDoc <--- This area of code is the civilian docks.
End ;------------------------------------------------------------------------------
Scroll down until you get to the
; ***DESIGN parameters ***. Right underneith the
ArmorSet, paste this single line of code:
;------------------------------------------------------------------------------
CommandSet = NeutralTutorialShipyardCommandSet ;<--- The command set.
;------------------------------------------------------------------------------
Next, you need to make it capturable. Find the line in the
; *** ENGINEERING Parameters *** that says:
;--------------------
KindOf = STRUCTURE SELECTABLE IMMOBILE;--------------------
Change it to this:
;--------------------
KindOf = STRUCTURE SELECTABLE IMMOBILE CAPTURABLE;--------------------
Run the game, and make sure that you dont have an error. Exit out of the game if you dont.
If you do, go to:C:\Documents and Settings\AuroraAlphaHL2 (Your name.)\My Documents\Command and Conquer Generals Zero Hour Data\ReleaseCrashInfo.txt -- Read the contents, and it should tell you where the problem is. When you find it, correct it, and then do the next step.Step 4: Finalizeing this tutorial, makeing your effort worth the work.The final step, is to open up
Worldbuilder and add the civilian building
BoatDocks01 near a patch of water.
If you dont know how to do this, there are many world builder tutorials you could look up, or you could ask one of the members of Generals World on how to use world builder.
If you have any questions or comments, post here or contact me. If you want to get more advanced in any way, contact me and I will help you out.
Thanks again!,
AuroraAlphaHL2
[EDIT: Moved to Tutorials forum -- CommieDog]
Edited by moderator Saturday, March 29, 2008 4:50:32 PM(UTC)
| Reason: Not specified