Help with Modding needed

Fr8monkey

Deity
Joined
Nov 24, 2001
Messages
2,531
Location
In the world of tomorrow!!
Allong with everyone else...:lol: I have checked all the tutorials, the "How to..." links and the XML editors to no avail.

I have started with something simple. Making a harbor give +4 experience to a sea unit. What I did is cut the part from the drydock as follows:

<DomainFreeExperiences>
<DomainFreeExperience>
<DomainType>DOMAIN_SEA</DomainType>
<iExperience>4</iExperience>
</DomainFreeExperience>
</DomainFreeExperiences>

I then pasted it into the same section in the Harbor code. All I get is errors out the wazzo when I restart. I just dont get it. Am I stupid or what? can someone make this XML coding easy to understand for me? It's driving me NUTS!!! :cry: :cry:

P.S. Can anyone give me a reason why they went from a simple Modding Civ III to THIS confusing pile?
 
Fr8monkey said:
Allong with everyone else...:lol: I have checked all the tutorials, the "How to..." links and the XML editors to no avail.

I have started with something simple. Making a harbor give +4 experience to a sea unit. What I did is cut the part from the drydock as follows:

<DomainFreeExperiences>
<DomainFreeExperience>
<DomainType>DOMAIN_SEA</DomainType>
<iExperience>4</iExperience>
</DomainFreeExperience>
</DomainFreeExperiences>

I then pasted it into the same section in the Harbor code. All I get is errors out the wazzo when I restart. I just dont get it. Am I stupid or what? can someone make this XML coding easy to understand for me? It's driving me NUTS!!! :cry: :cry:

Link your CIV4BuildingInfos.xml file and I will take a look.

P.S. Can anyone give me a reason why they went from a simple Modding Civ III to THIS confusing pile?

Because it has SO much more flexibility (unfortunatly flexibility usually brings its buddy complexity along with it).
 
Fr8monkey said:
Allong with everyone else...:lol: I have checked all the tutorials, the "How to..." links and the XML editors to no avail.

I have started with something simple. Making a harbor give +4 experience to a sea unit. What I did is cut the part from the drydock as follows:

<DomainFreeExperiences>
<DomainFreeExperience>
<DomainType>DOMAIN_SEA</DomainType>
<iExperience>4</iExperience>
</DomainFreeExperience>
</DomainFreeExperiences>

I then pasted it into the same section in the Harbor code. All I get is errors out the wazzo when I restart. I just dont get it. Am I stupid or what? can someone make this XML coding easy to understand for me? It's driving me NUTS!!! :cry: :cry:

P.S. Can anyone give me a reason why they went from a simple Modding Civ III to THIS confusing pile?

Make sure you 'copied' the part from the drydock and didn't actually 'cut' it. If you accidently cut those lines out of the drydock section it will certainly cause what your'e seeing.
 
Thanks for the fast post. I hate to sound like a whiner! I had to copy it as a .txt doc. and cut a little off the end so it will fit as an attachment. (Another thing I have no idea in waht I am doing!)

I fiddled with it some but it is still giing me problems. Thanks for the help!! YOU DA MAN!!
 

Attachments

@ rcuddy: I cut not coppied. I just tried to switch the time the unit gets its experience. If I coppied it, wouldn't the unit get +8 when drydock unit was made (drydock + harbor)?
 
Here is your problem, in the harbor definition you have this:
Code:
			<DomainFreeExperiences/>
			<DomainFreeExperiences>
				<DomainFreeExperience>
					<DomainType>DOMAIN_SEA</DomainType>
					<iExperience>4</iExperience>
				</DomainFreeExperience>
			</DomainFreeExperiences>
When copy/pasting the tags, you need to replace what is in there already, not add to it. In this case remove the "<DomainFreeExperiences/>" and you should be set.

EDIT: saw the crosspost, checked the drydock. You also can't remove the <DomainFreeExperiences> from the drydock definition entirely as the game needs it to be there. If you want to remove the free xp, add <DomainFreeExperiences/> right before the <DomainProductionModifiers>. (essentially replace the whole big thing that used to be there with this, which is equivalent to <DomainFreeExperiences></DomainFreeExperiences/>
 
In the following code the DomainFreeExperiences attribute has been declared twice. You have to remove one of the occurances:

Code:
[B]			<DomainFreeExperiences/>[/B]
			<DomainFreeExperiences>
				<DomainFreeExperience>
					<DomainType>DOMAIN_SEA</DomainType>
					<iExperience>4</iExperience>
				</DomainFreeExperience>
			</DomainFreeExperiences>

Change it to:

Code:
			<DomainFreeExperiences>
				<DomainFreeExperience>
					<DomainType>DOMAIN_SEA</DomainType>
					<iExperience>4</iExperience>
				</DomainFreeExperience>
			</DomainFreeExperiences>

Drat that Talchas is faster than I am!
 
Thanks. I am going to try and fix it in the morning. You guys rock!!

That is OK, Kael. We still respect you even though you can't type fast.:lol:
 
Back
Top Bottom