Posted by: CG Apollos - Wednesday, March 22, 2006 9:09:47 AM
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 [color=maroon]Red[/color]. If you have not, these ARE NOT optional steps. The parts that are pieces of code will be in [color=limegreen]Green[/color]. 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 [color=yellow]Yellow[/color] 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 [color=navy]Blue[/color]. [color=navy]Part 1: Extracting the INI Files.[/color] [color=maroon]1. First extract all of the files from the INIZH.big, useing a program such as FinalBIG. (What I use.) http://www.cncnz.com/files/generals/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.[/color] [color=navy]Part 2: Adding your boats.[/color] It is time to start adding your boats into the game, you can start by opening up your [color=yellow]AmericaMiscUnit.ini[/color] 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: ;------------------------------------------------------------------------------ [color=limegreen]Object CountermeasureFlare[/color] ;<--- 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 [color=yellow]BattleshipReal[/color], and then hit [color=yellow]Find Next[/color]. You should go straight to an area like this: ;------------------------------------------------------------------------------ [color=limegreen]Object AmericaVehicleBattleShipReal SelectPortrait = SABattleship_L ; *** ART Parameters *** Draw = W3DTankDraw ModuleTag_01[/color] ;<--- The first section of the battleship part. ;------------------------------------------------------------------------------ You need to copy and paste the whole section. Start at the top and drag down to [color=yellow]End[/color]: ;------------------------------------------------------------------------------ [color=limegreen]Geometry = BOX GeometryMajorRadius = 200.0 GeometryMinorRadius = 20.0 GeometryHeight = 40 GeometryIsSmall = No Shadow = SHADOW_VOLUME End[/color] ;<--- Where you should drag down to. ;------------------------------------------------------------------------------ Highlight everything includeing the [color=yellow]"End"[/color] 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 [color=yellow]AmericaVehicle.ini[/color], found in the same folder, and open it. You should see this: ;------------------------------------------------------------------------------ [color=limegreen]Object AmericaVehicleHumvee ; *** ART Parameters *** SelectPortrait = SAHummer_L ButtonImage = SAHummer[/color] ;<--- 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 [color=limegreen]AmericaVehicleBattleShipReal[/color] ;<--- The name. ;------------------------------------------------------------------------------ Rename it to something else, for this tutorial, I will go ahead and name it like this: ;------------------------------------------------------------------------------ [color=limegreen]Object AmericaVehicleBattleShipTutorial[/color] ;------------------------------------------------------------------------------ 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. [color=navy]Part 3: Your shipyard, command sets, and command buttons.[/color] Good job so far. Open your [color=yellow]CommandButton.ini[/color], 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: ;----------------------------------------------------------------- [color=limegreen]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[/color] ;----------------------------------------------------------------- Copy the [color=limegreen]Command_ConstructAmericaVehicleBattleShipTutorial[/color] part and then exit out of this file. Be sure to say yes when it prompts you to save the changes. Open up your [color=yellow]CommandSet.ini[/color] that is within the same base INI folder. Scroll to the bottom and enter in this code: ;----------------------------------------------------------------- [color=limegreen]CommandSet NeutralTutorialShipyardCommandSet 1 = Command_ConstructAmericaVehicleBattleShipTutorial End[/color] ;----------------------------------------------------------------- Copy the part that is: [color=limegreen]NeutralTutorialShipyardCommandSet[/color] and then exit out of this file. Save the changes. Go back into the Objects folder, and open [color=yellow]CivilianBuilding.ini[/color]. On your keyboard, do Ctrl+F or click on the top bar Edit/Find. Type [color=yellow]BoatDocks[/color], and then hit [color=yellow]Find Next[/color]. You should go straight to an area like this: ;------------------------------------------------------------------------------ [color=limegreen]Object BoatDocks01 ; *** ART Parameters *** Draw = W3DModelDraw ModuleTag_01 OkToChangeModelColor = Yes ; day ConditionState = NONE Model = CBNBoatDoc[/color] <--- This area of code is the civilian docks. [color=limegreen]End[/color] ;------------------------------------------------------------------------------ Scroll down until you get to the [color=yellow]; ***DESIGN parameters ***[/color]. Right underneith the [color=yellow]ArmorSet[/color], paste this single line of code: ;------------------------------------------------------------------------------ [color=limegreen]CommandSet = NeutralTutorialShipyardCommandSet[/color] ;<--- The command set. ;------------------------------------------------------------------------------ Next, you need to make it capturable. Find the line in the [color=yellow]; *** ENGINEERING Parameters ***[/color] that says: ;-------------------- [color=limegreen]KindOf = STRUCTURE SELECTABLE IMMOBILE[/color] ;-------------------- Change it to this: ;-------------------- [color=limegreen]KindOf = STRUCTURE SELECTABLE IMMOBILE CAPTURABLE[/color] ;-------------------- Run the game, and make sure that you dont have an error. Exit out of the game if you dont. [color=maroon]If you do, go to:[/color] [color=yellow]C:\Documents and Settings\AuroraAlphaHL2 (Your name.)\My Documents\Command and Conquer Generals Zero Hour Data\ReleaseCrashInfo.txt[/color] [color=maroon]-- Read the contents, and it should tell you where the problem is. When you find it, correct it, and then do the next step.[/color] [color=navy]Step 4: Finalizeing this tutorial, makeing your effort worth the work.[/color] The final step, is to open up [color=yellow]Worldbuilder[/color] and add the civilian building [color=yellow]BoatDocks01[/color] 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 [grin] [EDIT: Moved to Tutorials forum -- CommieDog]

Posted by: Flip1299 - Wednesday, March 22, 2006 9:49:53 AM
if you haven't done the part in red, i wouldn't suggest trying to put ships into the game, just download a mod with them. i knew all that, i was hoping for a tutorial on how to make buildings that can be built on water...

Posted by: CG Apollos - Wednesday, March 22, 2006 10:18:16 AM
[quote=Flip1299] 1.if you haven't done the part in red, i wouldn't suggest trying to put ships into the game, just download a mod with them. 2.i knew all that, i was hoping for a tutorial on how to make buildings that can be built on water... [/quote]1. This is if you want to do it yourself. I have not seen too much stuff on the process online. 2. Maybe later, however, just because you knew how to do it doesn't mean it would be useless for someone else. AuroraAlphaHL2 [grin]

Posted by: Blbpaws - Wednesday, March 22, 2006 12:07:15 PM
Stickied. We'll see about getting it added to the tutorial section.

Posted by: CG Apollos - Wednesday, March 22, 2006 5:13:58 PM
[quote=Blbpaws] Stickied. We'll see about getting it added to the tutorial section. [/quote]Thanks for stickying it. I dont know if I got detailed enough for it to be in the tutorials section yet... AuroraAlphaHL2 [grin]

Posted by: fervid - Wednesday, June 14, 2006 5:17:42 AM
Why is Zero Hour required. I have the Harbor Shell map that has a Naval Boat and even waves on the shore and no Zero Hour installed... How do we get boats to work at all? I add the Green Ferry and the Asian boat on my maps and they never show up in game. (Haven't tested after my water polygon problem, so may work) People don't like staying half submerged to look like they are swimming either and keep standing up. The Double wide Bridge looks funny when placed too and has really long legs that go way down below the terrain. That would be cool to have a map that only uses rails, long bridges, and/or Ferrys to connect two islands.

Posted by: CG Apollos - Thursday, June 15, 2006 4:20:58 AM
[quote=fervid] Why is Zero Hour required. I have the Harbor Shell map that has a Naval Boat and even waves on the shore and no Zero Hour installed... [/quote]This is only because Zero Hour has a USA Battleship, so I figured it would be a better combat boat than a Green Ferry. [stuck_out_tongue] AuroraAlphaHL2 [grin]

Posted by: judoka - Monday, June 19, 2006 12:06:55 PM
Would make a cool mini-mod if it included some custom Maps.

Posted by: Revan - Monday, July 10, 2006 6:25:39 PM
COOL

Posted by: wattsy87 - Sunday, September 17, 2006 1:24:47 PM
hi, i managed to do all that on the list, except the end bit, the world builder. can someone explain how i do the world builder part. does this mean i cant have boats on any level, it has to be ones i build myself? thanks in advance simon

Posted by: CommieDog - Sunday, September 17, 2006 4:40:27 PM
It looks like you need to place the shipyard on a map. Once you have that, I imagine that you could make as many boats as you want.

Posted by: CG Apollos - Monday, September 18, 2006 10:42:00 AM
Yes, you just need to open or make a map in world builder and add the object BoatDocks01 which is under civilian structures. Place it near water and where your units can capture it.

Posted by: swordxj - Saturday, March 3, 2007 3:48:34 PM
it`s very good! i want to know how download the maps!

Posted by: red leader79 - Saturday, May 12, 2007 7:56:02 AM
Are there any generals zh maps that already have boatdocks01, I really don't like worldbuilder and it doesnt like me.

Posted by: Spartan Jedi - Sunday, June 24, 2007 10:03:13 AM
I followed the tutorial step by step, but when I test after finishing, I get an error, and ReleaseCrashInfo.txt gives this message [code]Release Crash at Sun Jun 24 13:59:24 2007 ; Reason Error parsing INI file 'Data\INI\Object\CivilianBuilding.ini' (Line: 'Object BoatDocks01 ') Last error: Current stack: [/code] How would I fix this?

Posted by: CommieDog - Sunday, June 24, 2007 1:05:03 PM
Looks like there is a problem with BoatDocks01. Check the code again to make sure that everything is in place. If that fails, try running WorldBuilder.

Posted by: Spartan Jedi - Sunday, June 24, 2007 5:21:50 PM
When I opened WorldBuilder, I got the following error: [code] ASSERTION FAILURE: [LINE: 11505 - FILE:'Data\INI\Object\CivilianBuilding.ini'] Unknown feld 'CommandSet' in block 'Object' Abort->exception; Retry->debugger; Ignore->continue[/code] The section in CivilianBuilding.ini reads as follows [code] ; ***DESIGN parameters *** DisplayName = OBJECT:Docks EditorSorting = STRUCTURE ArmorSet Conditions = None Armor = StructureArmor DamageFX = StructureDamageFXNoShake CommandSet = NeutralTutorialShipyardCommandSet End ; *** AUDIO Parameters *** SoundAmbient = DocksVillageWaterLapping ; *** ENGINEERING Parameters *** KindOf = STRUCTURE SELECTABLE IMMOBILE CAPTURABLE Body = StructureBody ModuleTag_02 MaxHealth = 200.0 InitialHealth = 200.0 End [/code]

Posted by: CommieDog - Monday, June 25, 2007 5:53:06 PM
Ah, I see the problem. The CommandSet line needs to go down one line so that it is below the "End" statement.

Posted by: Spartan Jedi - Tuesday, June 26, 2007 1:50:36 PM
Alright, fixed the problem. Thanks for the help :)

Posted by: paimail - Sunday, March 2, 2008 5:35:08 AM
i know how to build buildins on water make a map with the start position in the water then you will be able to build buildings in the water...

Posted by: realmnevermore - Thursday, February 24, 2011 8:43:42 AM
im still learning how to edit this game and created new faction for my C&C data,from the previous forum. but, i want a new command center for my new faction.i hope anyone can help me with this problem.

Posted by: ebwarrior - Saturday, November 19, 2011 2:26:53 PM
hi, did all with no error, but when i capture it, instead of calling it battleship, it says humvee but with the battleship pic, but thats not the real issue, when i click on it, it doesnt build or anything, wot could be the problem? thanks....