View Full Version : spawn year?


eeveebreeder
Jan 12, 2010, 05:46 PM
i've seen in sum modmods that civs have slightly different spawn years how would i do that?
ty for ur replies :D

3Miro
Jan 13, 2010, 03:42 PM
Change years in both Python Consts.py and C++ Rhye.cpp (then recompile the C++ code).

eeveebreeder
Jan 14, 2010, 07:56 PM
ty, and 1 question , where is rhye.cpp located? i cant seem to find that file :(

eeveebreeder
Jan 14, 2010, 07:57 PM
nvm i think i found it :)

3Miro
Jan 14, 2010, 08:08 PM
nvm i think i found it :)

Then you need to recompile.

http://forums.civfanatics.com/showthread.php?t=349914

Bonci
Feb 04, 2010, 08:08 AM
I changed the roman spawn year and I delayed it after 600AD
now for the 3000BC it works all fine but when I start the 600AD scenario I lose the first turn...what should I do to make it work?

Baldyr
Feb 04, 2010, 08:40 AM
I changed the roman spawn year and I delayed it after 600AD
now for the 3000BC it works all fine but when I start the 600AD scenario I lose the first turn...what should I do to make it work?
The Python code has special exceptions for the 600AD start regarding everything from starting gold and stability, to what UHVs already have failed by that date. My best guess is to look in RiseAndFall.py (look for comments on "late start condition").

edit: I think I found it: look for tIsActiveOnLateStart at the very end of Consts.py - you need to enable Rome by changing the 8th 0 (zero) to 1.

Bonci
Feb 04, 2010, 09:04 AM
edit: I think I found it: look for tIsActiveOnLateStart at the very end of Consts.py - you need to enable Rome by changing the 8th 0 (zero) to 1.

I've already tried but it doesn't work...I've changed the starting gold, the techs and anything that could be changed in the RiseAndFall.py but nothing...
(a small question: which is the difference between # and ##? Is ## a comment like #?)

Bonci
Feb 05, 2010, 06:08 PM
I think I found something in the RiseAndFall.py...
there is a function named

def create600ADstartingUnits( self ):

so I tried to add rome in there like the other civs and i wrote

if ( pRome.isHuman() ):
utils.makeUnit(iSettler, iRome, tCapitals[iRome], 1)
utils.makeUnit(iWarrior, iRome, tCapitals[iRome], 1)

but it keeps giving me errors...

Bonci
Feb 06, 2010, 04:30 PM
I just noticed that when I play the 3000BC scenario i get the "new civ popups" even during the autoplay...but the first that I get is the one for Ethiopia...could it mean that the game "thinks" that I already spawned? I'm searching in all the py files but as far as now i found nothing ):