Can anyone else play Scions in MP without a turn one OOS?

Iceciro

Special Ability: Decimate
Joined
Jul 12, 2006
Messages
1,944
Location
in ur empire, takin ur cities
I'm looking for anybody who has experience playing with the Scions in multiplayer without a desynch happening on turn one.

We've got an issue where when the Scions found their first city, the one that becomes pop 2, the game immediately goes out of synch. When the second player reconnects to the game the desynchs continue, however if the game is saved and then reloaded, no problems occur at all.

When the second player founds a scion city in SP it turns to pop 2. The only desynch in the OOS logs are the population for the Scion player and the score (which I believe to be based on population - the discrepancy is 37 to 40.)
 
Just tried it and got an OSS. It was a "survivable" OSS - it went away after going on to the next turn. But I didn't check to see if the games were really in sync.

This is what's doing it. CustomFunctions:

Spoiler :

Code:
			if pPlayer.getNumCities() == 1:
				if iTombPop == 1:			
					pTomb.setPopulation(2)
 
The Problem is that the "event" is done only for one player. One player founds his city and the population is increased. The other player still thinks that the city has only pop1. I changed the code so that the pop increase happens only after turn 2 and the OOS was gone. It's not really a fix since you could found your first city later than turn 2, I guess you can think of something better.

if pPlayer.getNumCities() == 1 and CyGame().getGameTurn()>=2:
 
Here we go.

Get rid of the code above in "doChanceAwakenedSpawn" (which invokes "ActivePlayer", so I should have known) and put this in the function above, doTurnScions.

Spoiler :

Code:
		pTomb = pPlayer.getCapitalCity()
		iTombPop = pTomb.getPopulation()
		if pPlayer.getNumCities() == 1:
			if iTombPop == 1:			
				pTomb.changePopulation(1)


It'll add the second population point on the turn after the captial is founded, whenever it's founded, but no OOS.
This'll be in the next patch.
 
Going to port this over to our version jackrabbit fast. :D Appreciate you posting the code up.
 
Back
Top Bottom