Help on locating XML concerning cities

Primer: I've been balancing my game and have finally gotten to the point where I want to do a couple things with the cities.

1) Increase the min distance you can place a city from another, this will reduce city spam...

 

5,500 views 8 replies
Reply #1 Top

Hmm, I can only find references in the elemental.str file.

[CityBuildEmptyTile] Must be built on empty tile
[CityBuildCityTooClose] Too close to another settlement.  Minimum distance is %d tiles, you are only %d away.
[CityBuildSovLowEssense] Not enough essence
[CityBuildNoMoney] Need %ld gildar for the new settlement
[CityBuildImpNoMoney] There is not enough money to build this improvement.

Reply #2 Top

Yeah I didn't bother looking in the string file because I figured it would be like SOASE and just be the info type stuff.

Another idea I just thought of now is to see if the pioneer unit/ability can be modified instead of the actual city.

Reply #3 Top

I haven't gotten around to trying to mess with cities yet. It will be something we have to deal with for the Dragonlance Mod though. I recommend getting on MIRC and trying to ask one of the devs there. If I find anything I'll let you know.

Reply #4 Top

someone suggested it could be a python thing, that's bad news bears for me if it is

Reply #5 Top

What I am really looking for is to say, "cities cost 300 g to found."
End of quote

I think you want these lines in K_CityHubs.xml and F_CityHubs.xml :

 

       <!--<GameModifier>
            <ModType>ConstructionResourceCost</ModType>
            <Attribute>Gold</Attribute>
            <Value>-25</Value>
        </GameModifier>-->
End of quote


Uncomment and change the value to -300 :

       <GameModifier>
            <ModType>ConstructionResourceCost</ModType>
            <Attribute>Gold</Attribute>
            <Value>-300</Value>
        </GameModifier>
End of quote

IIUC creating a city automatically builds the "Outpost" improvement, to which you can attach improvement modifiers like build cost, capacity (10 population), etc.

Reply #6 Top

Note: It looks like there's a bug that lets your gold go negative if you can't afford the city founding cost.  I tried this with a cost of -500 and ended up with -400 gold but never saw the CityBuildNoMoney message from elemental.str.

Reply #7 Top

thank you letterboxart, that pretty much solves one portion of the problem. now to see if the AI can handle it or they lose all their armies.

Reply #8 Top

as for:

1) Increase the min distance you can place a city from another,

 

<kryo> I think that part's internal atm

 

oh well for now