how more Iron?

Armarius

Chieftain
Joined
Oct 2, 2010
Messages
16
i want get more iron for more possible units. i dont know the right xml value to change this.

it is the <Resource_QuantityTypes> in the ressource.xml? what means this values

Spoiler :

<Resource_QuantityTypes>
<Row>
<ResourceType>RESOURCE_IRON</ResourceType>
<Quantity>6</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_IRON</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_HORSE</ResourceType>
<Quantity>4</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_HORSE</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_COAL</ResourceType>
<Quantity>6</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_OIL</ResourceType>
<Quantity>5</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_ALUMINUM</ResourceType>
<Quantity>5</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_URANIUM</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_URANIUM</ResourceType>
<Quantity>1</Quantity>
</Row>
</Resource_QuantityTypes>


if yes, why there are two integers and how do i change the right with the <update> and <set>-tags. example:

<Resource_QuantityTypes>
<Update>
<Set Quantity="4" />
<Where ResourceType="RESOURCE_IRON" />
</Update>
</Resource_QuantityTypes>

this change both values or nor?

please help!
 
My digging through AssignStartingPlots.lua has shown that the "Resource_QuantityTypes" information is not used.

In fact, just about any information about resources, features, and terrain is hard-coded into AssignStartingPlots.

If you'd like to go digging through there, you can change the values in the functions "GetMajorStrategicResourceQuantityValues" and "GetSmallStrategicResourceQuantityValues"
 
thank you JeBuS27

i´ve found an other way for me, because i use a map with pre-placed resource and there i can change the ressource amount.

to simple change an xml file, could be better
 
thank you JeBuS27

i´ve found an other way for me, because i use a map with pre-placed resource and there i can change the ressource amount.

to simple change an xml file, could be better
I agree with you, which is why I've been working on it for the past couple of days. I've already got it reading the quantity stuff from the xml, and I'm moving on to other stuff now.
 
<Resource_QuantityTypes>
<Update>
<Set Quantity="4" />
<Where ResourceType="RESOURCE_IRON" />
</Update>
</Resource_QuantityTypes>

this change both values or nor?

please help!

As I known sql it changes both.
If you need to change one use something like that:
<Where ResourceType="RESOURCE_IRON" and Quantity="2" />

or if you need to change all resources:
<Set Quantity="4" />
<Where Quantity=2 />
 
I'm working on a significant alteration of AssignStartingPlots.lua to handle all three sorts of resources and be easy to add new resources (rather than just using the XML for existing ones), which is a bit of a more complex job, and I'm doing it as time permits. There's a thread largely discussing it somewhere...
 
As I known sql it changes both.
If you need to change one use something like that:
<Where ResourceType="RESOURCE_IRON" and Quantity="2" />

or if you need to change all resources:
<Set Quantity="4" />
<Where Quantity=2 />
Once again I will state:
This will change the values in the database, but the game does not ever use those values! You must edit AssignStartingPlots.lua to have any effect.
 
That is true. However if you just want more Iron ingame, use "Advanced Settings" when starting a game and select "Abundant" under Resources. Then Iron will be 9 Units per Resource Tile instead of the usual maximum of 9.
Which is set in AssignStartingPlots.lua in the two functions I mentioned.
 
Nice you repeat yourself. You can be sure people can comprehend what you wrote in your last post. I was just being helpful pointing out how to get MORE IRON in the game. Theres no need to write a mod for it unless 9 iron per resource ain't enough for you.
 
Nice you repeat yourself. You can be sure people can comprehend what you wrote in your last post. I was just being helpful pointing out how to get MORE IRON in the game. Theres no need to write a mod for it unless 9 iron per resource ain't enough for you.
We're in the modding forum, of course we're talking about modding.:mischief:
 
You're really taking this way too seriously. The first sentence can be interpreted any way you like.
 
Back
Top Bottom