Map Script Quirkiness with fewer civs

MrPopov

King
Joined
Jul 25, 2006
Messages
985
So I thought I would start a perfectworld2g map (with my own changes to increase the amount of total land area) with only 2 players on a large map thinking revolutions and barbarian civ will fill out the rest of the land over time.

A problem I run into though is that since there are only 2 players at the time of map creation, the map script places much fewer resources. Does anyone know of a way for me to force the script to place more resources? I am sure somewhere in the .py file I can edit the script to place as many resources as a default game with say 7-10 civs would have.

Thanks for your help!
 
So I found on line 4162 the following code
players = game.countCivPlayersAlive() * bonusInfo.getPercentPerPlayer()/100

so I just added an "8 + " in front of "game.count CivPlayersAlive()" to give me a satisfactory map.

I am sure a more complicated statement involving checking the size of the map and using the default player count depending on the map size would be better, but this works for me :)
 
Top Bottom