Wonders and Global Production influence

warp_kez

Chieftain
Joined
Jan 9, 2002
Messages
51
I have been reading the CIV4BuildingInfo.xml file and using the CivWiki site to attempt to collerate some of the information.

Presently I am attempting to modify the Wonders to include global production influence, however using the tag, GlobalYeildModifier and its nested arguments, results in the XML parser throwing a tantrum about the schema.

Is there a way to make the Wonders globally influence Product/Commerce etc, or will this need to be done at the city building level?
 
you can also check this reference site:

http://modiki.apolyton.net/index.php?title=BuildingInfos


I'd also check existing wonders that have global influences and try to copy that sorts...

also possibly following similar formats...

I used a similar format for a unit on terrain/feature defense... which didnt exist originally (for terrain/feature - I forget which one) and the format worked....

can you post what you tried to use as the format..? maybe I can look it over and give some suggestions...

sorry I cant help too much... but I might have some ideas in the future...:mischief:
 
What I attempted to add:
<GlobalYieldModifiers>
<iYield>0</iYield>
<iYield>100</iYield>
<iYield>0</iYield>
</GlobalYieldModifiers>

When it loads however, the XML parser throws errors that the above block does not meet the schema requirements.

According to the schema file:
<ElementType name="GlobalYieldModifiers" content="eltOnly">
<element type="iYield" minOccurs="0" maxOccurs="*"/>
</ElementType>

What I am entering is correct - unless it is very anal over the positioning of each line.

Just had a hunch based on the last line: Oh yes, the game is *so* anal rententive about the order and required tags.

For the above XML block to work, all previous tags need to be added.
 
From the BuildingInfo element on the Schema

<element type="GlobalSeaPlotYieldChanges"/>
<element type="YieldChanges"/>
<element type="YieldModifiers" minOccurs="0"/>
<element type="PowerYieldModifiers" minOccurs="0"/>
<element type="AreaYieldModifiers" minOccurs="0"/>
<element type="GlobalYieldModifiers" minOccurs="0"/>
<element type="CommerceChanges"/>
<element type="ObsoleteSafeCommerceChanges"/>

Theirs a group of optional elements but they all still need to occur in that order, in most buildings you probably have none of these optional elements and would add after YieldChanges, if its a power plant then it will have a PowerYieldModifier so in that case be shure its between that and CommerceChanges. But I dont see any reason you would have to add any tag other then the one you want for it too work.

So what were you thinking of making, as Global modifiers their VERY strong and only apropriate for wonders.
 
warp_kez said:
What I attempted to add:
<GlobalYieldModifiers>
<iYield>0</iYield>
<iYield>100</iYield>
<iYield>0</iYield>
</GlobalYieldModifiers>

...
...

Im not exactly sure... you'd have to test it ;)

but from what Impaler[WrG] posted:

Impaler[WrG] said:
From the BuildingInfo element on the Schema

<element type="GlobalSeaPlotYieldChanges"/>
<element type="YieldChanges"/>
<element type="YieldModifiers" minOccurs="0"/>
<element type="PowerYieldModifiers" minOccurs="0"/>
<element type="AreaYieldModifiers" minOccurs="0"/>
<element type="GlobalYieldModifiers" minOccurs="0"/>
<element type="CommerceChanges"/>
<element type="ObsoleteSafeCommerceChanges"/>


...
...

you would have to add that tagline in the correct list (following above info)

as Impaler[WrG] says here:


Impaler[WrG] said:
Theirs a group of optional elements but they all still need to occur in that order, in most buildings you probably have none of these optional elements and would add after YieldChanges, if its a power plant then it will have a PowerYieldModifier so in that case be shure its between that and CommerceChanges. But I dont see any reason you would have to add any tag other then the one you want for it too work...


my theory is that your listing should look something like this:


<GlobalSeaPlotYieldChanges/>
<YieldChanges/>
<GlobalYieldModifiers>
<iYield>0</iYield>
<iYield>100</iYield>
<iYield>0</iYield>
</GlobalYieldModifiers>

<CommerceChanges/>
<ObsoleteSafeCommerceChanges/>
<CommerceChangeDoubleTimes/>
<CommerceModifiers/>


again im not sure.... but you may want to test it out :crazyeye:


NOTE: This is exactly what Impaler[WrG] (I just spelled it out more thoroughly :D ) so proper credit goes to him.... ;)


@Impaler[WrG] thx man I didnt know that the "vanilla" civ4BuildingInfos.xml left some taglines defined in the schema file :eek:

Im gonna have to review em and see what else I missed in the Buildings/unit/etc schema xml files :p

you learn something new everyday! :goodjob:


@warp_kez keep me posted... I'd like to know if it works or not! :rolleyes:


good luck! :)
 
Back
Top Bottom