View Full Version : change navy seals to marines


ZayasOB12
Aug 06, 2008, 06:40 PM
how do i change the navy seals to marines in american civ? id rather have marines than navy seals

Ginger_Ale
Aug 06, 2008, 10:12 PM
Moved to Creation and Customization.

Welcome to CFC, ZayasOB12! :goodjob:

ZayasOB12
Aug 06, 2008, 10:39 PM
why thank you! :D

Thomas SG
Aug 07, 2008, 05:55 AM
Try to replace

<Units>
<Unit>
<UnitClassType>UNITCLASS_MARINE</UnitClassType>
<UnitType>UNIT_AMERICAN_NAVY_SEAL</UnitType>
</Unit>
</Units>
with
<Units/>

in CIV4CivilizationInfos.xml

Now there should be normal marines for America. But now America has got also no UU!!! Do you really want it?

ZayasOB12
Aug 07, 2008, 08:56 AM
ya i just want to try it to see what its like but after that ill just put the Navy Seal back

Serenity42
Aug 07, 2008, 09:13 AM
You don't need to go to so much trouble. Just fire up the world builder and place a marine unit. That's the nice thing about the builder: nothing is sacred, so you can test all of it.

ZayasOB12
Aug 07, 2008, 01:27 PM
i guess then ill have marines and navy seals!!:Dlol DUH!!

Serenity42
Aug 11, 2008, 08:53 AM
I just messed around with having marines last night - they're actually a good thing, even when you have access to the more advanced SEALs. How can the game be modified to allow construction of marines while not eliminating the ability to build SEALs?

ZayasOB12
Aug 11, 2008, 04:24 PM
ya thatd be cool to have navy seals an marines at te same time!:D

MqsTout
Aug 11, 2008, 06:13 PM
Navy SEALs are identical to the Marine except they get an extra 1-2 first strikes.

ZayasOB12
Aug 11, 2008, 11:34 PM
its the looks of the unit

zyphyr
Aug 12, 2008, 04:40 AM
If you really must have both available to you at once...

Create a new UnitClass (CIV4UnitClassInfos.xml) for the Seal.

Set the DefaultUnit for it to NONE

In CIV4UnitInfos.xml, change the UnitClass of the Navy Seal to the new value.

In CIV4CivilizationInfos.xml, change
<Units>
<Unit>
<UnitClassType>UNITCLASS_MARINE</UnitClassType>
<UnitType>UNIT_AMERICAN_NAVY_SEAL</UnitType>
</Unit>
</Units>
so the UnitClass matches the new value.

Do all of this in a mod folder or Custom Assests, and not on the original flies.

Serenity42
Aug 13, 2008, 09:10 AM
Create a new UnitClass (CIV4UnitClassInfos.xml) for the Seal.


Please bear with those of us who are still brand-new at XML: how does one do that?

And, as I think further, this will keep SEALs as a unit that only the Americans can build, correct?

zyphyr
Aug 13, 2008, 04:16 PM
You create a new UnitClass by making a copy of an existing Unitclass and then changing the name (and any other values you may want changed).

And yes, it will keep the SEAL as American only. When you set the DefaultUnit to NONE, you are telling the game that there is no 'normal' version that is available to everyone. Then, the entry in CIvilizationInfos tells the game that America has a special version it can build.

If you wanted the Seal to be available to everyone, you would set it to the Default for that unitclass and then make the change Thomas SG mentioned above for america.

Diongham
Aug 13, 2008, 04:56 PM
This is a good idea... I'm going to do this with all the UUs... Not entirely realistic but neither is Egypt creating Stonehenge...

Popcornlord
Aug 13, 2008, 06:02 PM
Probably be good to give the civs a reason to build normal units. Mayby make UUs cost more?

Diongham
Aug 16, 2008, 04:38 PM
Probably be good to give the civs a reason to build normal units. Mayby make UUs cost more?

Definitely or make each UU require a certain building to deploy? Any suggestions on which ones? Gallic units requiring a monument... Most others requiring barracks?