Hello,
I was able to edit the code so you don't have to go stop the game to advance to the next era when it's time/when you want to.
I can't attach it because .py files extensions aren't allowed, so you'll have to copy/paste into CvGameUtils.py file provided in this mod, in the section outlined with tech limit changes. The code to copy paste is this:
iCurrentYear = gc.getGame().getGameTurnYear()
if(iCurrentYear < -2000) :
iMaxEra = 0
elif(iCurrentYear < 250) :
iMaxEra = 1
elif(iCurrentYear < 1250) :
iMaxEra = 2
elif(iCurrentYear < 1700) :
iMaxEra = 3
elif(iCurrentYear < 1905) :
iMaxEra = 4
elif(iCurrentYear < 1980) :
iMaxEra = 5
else:
iMaxEra = 6
Simply paste this code between iTechEra = gc.getTechInfo(eTech).getEra() and if( iTechEra > iMaxEra ), like so:
# <---------- begin tech limit changes ----------------->
# Change the following number to limit eras civs can tech to
# 0 = Ancient, 1 = Classical, 2 = Medieval, 3 = Renaissance, 4 = Industrial, 5 = Modern, 6 = Future
iMaxEra = 0
iTechEra = gc.getTechInfo(eTech).getEra()
iCurrentYear = gc.getGame().getGameTurnYear()
if(iCurrentYear < -2000) :
iMaxEra = 0
elif(iCurrentYear < 250) :
iMaxEra = 1
elif(iCurrentYear < 1250) :
iMaxEra = 2
elif(iCurrentYear < 1700) :
iMaxEra = 3
elif(iCurrentYear < 1905) :
iMaxEra = 4
elif(iCurrentYear < 1980) :
iMaxEra = 5
else:
iMaxEra = 6
if( iTechEra > iMaxEra ) :
# True means cannot research
return True
# <---------- end tech limit changes ----------------->
The numbers in the code represent the year you can advance to the next era, e.g. -2000 is 2000 BC, 250 is 250 AD, etc. These values are the starting dates for a game starting in each era on Marathon. So the code reads, "If the current year is before 2000 BC, limit to Ancient Era tech. Else if it is less than 250 AD, limit to Classical Era tech. Etc." So, you can change the dates if you want.