cities

eeveebreeder

Chieftain
Joined
Jul 8, 2009
Messages
19
hey, i wanted to know, how to make it so independent cities spawn at same time ( i think its sumwhere in barbs.py?) Because whenever i put in spawn turn for independent/barb cities it always spawns the first turn, ty for ur replies :D

code:
# city coordinates, spawn 1st turn and retries
lUr = [77, 38, 0, 0] #3000BC
lJerusalem = [73, 38, 0, 0] #3000BC
lBabylon = [76, 40, 0, 0] #3000BC
lSusa = [79, 40, 0, 0] #3000BC
lTyre = [73, 40, 0, 0] #2700BC #turn10
lByzantium = [68, 45, 49, 0] #3000BC (it seems if i have 49 here, the game registers as auto game over on turn 1 :P



#self.foundCity(iIndependent, lUr, "Ur", iGameTurn, 1, con.iWarrior, 1)
#self.foundCity(iIndependent2, lTyre, "Sur", iGameTurn, 1, con.iArcher, 1)
self.foundCity(iIndependent, lJerusalem, "Yerushalayim", iGameTurn, 2, con.iArcher, 3)
self.foundCity(iIndependent, lByzantium, "Byzantium" , iGameTurn, 49, con.iGreekPhalanx, 1)
 
Maybe you should post your code so that others can see what you might have done wrong.
 
code:
# city coordinates, spawn 1st turn and retries
lUr = [77, 38, 0, 0] #3000BC
lJerusalem = [73, 38, 0, 0] #3000BC
lBabylon = [76, 40, 0, 0] #3000BC
lSusa = [79, 40, 0, 0] #3000BC
lTyre = [73, 40, 0, 0] #2700BC #turn10
lByzantium = [68, 45, 49, 0] #3000BC (it seems if i have 49 here, the game registers as auto game over on turn 1 :P



#self.foundCity(iIndependent, lUr, "Ur", iGameTurn, 1, con.iWarrior, 1)
#self.foundCity(iIndependent2, lTyre, "Sur", iGameTurn, 1, con.iArcher, 1)
self.foundCity(iIndependent, lJerusalem, "Yerushalayim", iGameTurn, 2, con.iArcher, 3)
self.foundCity(iIndependent, lByzantium, "Byzantium" , iGameTurn, 49, con.iGreekPhalanx, 1)
The value marked in red is the city size, not the spawn year. Could it be that the game ends because you tried to spawn a size 49 city?:eek:

Just change the number into something else (1, 2?) at it should work.

ps Didn't see that you updated your post, sorry for the late reply.
 
lByzantium = [68, 45, 49, 0]
Red marks the turn. What year that corresponds to can be found in the Consts.py file. (The turn 49 would then be 1650BC. You just have to figure out how many years are in a turn, and count from the nearest date way-point.)
 
Code:
lByzantium = [68, 45, [COLOR="Red"]49[/COLOR], 0] #1650BC 

. . .

                self.foundCity(iIndependent, lByzantium, "Byzantium" , [COLOR="Red"]iGameTurn[/COLOR], 2, con.iGreekPhalanx, 1)
This should work. The game turn is marked in red.

How exactly this work in practice maybe someone else can explain?:confused:
 
Back
Top Bottom