Trade Routes max Capacity

NicTeos

Warlord
Joined
Oct 20, 2010
Messages
190
Hi,

is there an easy way to add another trade route slot by buildings ? I would like to add the stock exchange another route.
 
I have tried something like this

<?xml version="1.0" encoding="UTF-8"?>
<GameInfo>
<Buildings>
<Update>
<Where BuildingType="BUILDING_BANK" />
<Set ModifierId="MARKET_TRADE_ROUTE_CAPACITY"/>
</Update>
</Building>

<Modifiers>
<Row>
<ModifierId>MARKET_TRADE_ROUTE_CAPACITY</ModifierId>
<Name>Amount</Name>
<Value>2</Value>
</Row>
</Modifiers>
</GameInfo>

but it didn't work ... so how to get a BANK_TRADE_ROUTE_CAPACITY, or how to change the market trade route capacity proper ? And is there a way to remove the delete stuff from the expansion1 ? Like having 2 traderoutes, when a city has market and a lighthouse
 
now tried it to copy from another mod ( Dags Industrial Building Mod - Electronic Facotry ) and adopted it, but doesn't work ...

Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
    <BuildingModifiers>
        <Update>
            <Where BuildingType="BUILDING_BANK"</Where>
            <Set ModifierId="BANK_TRADE"></Set>
        </Update>
    </BuildingModifiers>
    <Modifiers>
        <Row>
            <ModifierId>BANK_TRADE</ModifierId>
            <ModifierType>MODIFIER_PLAYER_ADJUST_TRADE_ROUTE_CAPACITY</ModifierType>
        </Row>
    </Modifiers>
    <ModifierArguments>
        <Row>
            <ModifierId>BANK_TRADE</ModifierId>
            <Name>Amount</Name>
            <Value>1</Value>
        </Row>
    </ModifierArguments>
</GameData>
 
You've got an invalid Update statement under BuildingModifiers...you can't update an entry which does not yet exist. If you change from an Update statement to a Row statement (which inserts a new row), it should work.
Code:
<GameData>
    <BuildingModifiers>
         <Row>
            <BuildingType>BUILDING_BANK</BuildingType>
            <ModifierId>BANK_TRADE</ModifierId>
         </Row>
    </BuildingModifiers>
    <Modifiers>
        <Row>
            <ModifierId>BANK_TRADE</ModifierId>
            <ModifierType>MODIFIER_PLAYER_ADJUST_TRADE_ROUTE_CAPACITY</ModifierType>
        </Row>
    </Modifiers>
    <ModifierArguments>
        <Row>
            <ModifierId>BANK_TRADE</ModifierId>
            <Name>Amount</Name>
            <Value>1</Value>
        </Row>
    </ModifierArguments>
</GameData>
 
Many Thanks! It works, when building a new bank, and not on existing buildings.
 
Back
Top Bottom