quests and greater than 18civs dll

modifieda4

Chief Time Waster
Joined
Sep 3, 2006
Messages
385
Location
Gold Coast
I am using a custom gamecore dll which enables 34 civs.

So I started a new game and packed a large map with 34 civs. One unforseen side effect is that now quests are effectively broken!

Any quest which has a statement like "you must build X number of Y" is effected. It turns out that "X" is driven by the number of players in the game.

So for example the "classical literature" quest now requires me to build 35 libraries!!!

See the code in CvRandomEventInterface.py:

LibrariesRequired = gc.getWorldInfo(gc.getMap().getWorldSize()).getDefaultPlayers()

Has anyone patched events for >18 civs?
 
ok i figured it out:
# to correct quests for calculating based on number of players rather than worldsize
#replaced all: gc.getWorldInfo(gc.getMap().getWorldSize()).getDefaultPlayers()
#with: (2*(gc.getMap().getWorldSize()+1)-1)

time to update my events mod! :)
 
Top Bottom