The "OMG! Look what happened in DoC!" Thread

It's 830 AD, the Persians after repelling successive attempts at invasion by upstart European powers conquered from Northwest India to Iberia, ruling over even Hrwm. Newly independent European states continue the ancient Zoroastrian traditions, the world's largest religion at 40% of the world's population. The Sassanids set their eyes on German and Russian lands in an effort to spread Zoroastrianism before Christianity takes hold in these burgeoning regions.

Accomplished by ensuring constant military build-up, spamming Magi as well as settling 7 core cities with almost entirely food improvements.
 

Attachments

  • hrwm.png
    hrwm.png
    3.1 MB · Views: 458
You might want to post that in the guide section for players instead of the "awesome AI accomplishment thread"?
 
Does Tonga normally get Old World migrants? I've never noticed that.
Yes, I was surprised too.

Looked through the code:

Consts.py:
Code:
lNewWorld = [rAustralia, rOceania, rCanada, rAlaska, rUnitedStates, rCaribbean, rMesoamerica, rBrazil, rArgentina, rPeru, rColombia]

UniquePowers.py:

Code:
...

        # get available migration and immigration cities
        lSourceCities = []
        lTargetCities = []
       
        for iPlayer in range(iNumPlayers):
            if iPlayer in lCivBioNewWorld and not utils.isReborn(iPlayer): continue # no immigration to natives
            pPlayer = gc.getPlayer(iPlayer)
            lCities = []
            bNewWorld = pPlayer.getCapitalCity().getRegionID() in lNewWorld
            for city in utils.getCityList(iPlayer):
                iFoodDifference = city.foodDifference(False)
                iHappinessDifference = city.happyLevel() - city.unhappyLevel(0)
                if city.getRegionID() in lNewWorld and bNewWorld:
                    if iFoodDifference <= 0 or iHappinessDifference <= 0: continue
                    iNorthAmericaBonus = 0
                    if city.getRegionID() in [rCanada, rUnitedStates]: iNorthAmericaBonus = 5
                    lCities.append((city, iHappinessDifference + iFoodDifference / 2 + city.getPopulation() / 2 + iNorthAmericaBonus))
                elif city.getRegionID() not in lNewWorld and not bNewWorld:
                    iValue = 0
                    if iFoodDifference < 0:
                        iValue -= iFoodDifference / 2
                    if iHappinessDifference < 0:
                        iValue -= iHappinessDifference
                    if iValue > 0:
                        lCities.append((city, iValue))
           
            if lCities:
                lCities.sort(key=itemgetter(1), reverse=True)
           
                if bNewWorld:
                    lTargetCities.append(lCities[0])
                else:
                    lSourceCities.append(lCities[0])

...

In ordinary game there are no civs that have capital in Australia/Oceania, so immigration mechanic affect only America, Canada and, to a lesser degree (due to modifier for NA civs), Mexico, Argentina, Peru, Colombia and Brazil.
But if you are playing as Polynesia, still playing after 1772 year, and acquired enough happiness to overcome USA +5 modifier, you can get immigration moments too.

Did you ever play Polynesia until 1820? My games as Polynesia usually end way before it can even occur.
Why not? Dealing with instability is pain (I can deal with overextension from Australia and Philippines, I can deal with useful but outdated Republic civic, but not both), but it is still unusual and interesting game.
(Though, it is hard not to win URV)
 
Last edited:
Yes, I was surprised too.

Looked through the code:

Consts.py:
Code:
lNewWorld = [rAustralia, rOceania, rCanada, rAlaska, rUnitedStates, rCaribbean, rMesoamerica, rBrazil, rArgentina, rPeru, rColombia]

UniquePowers.py:

Code:
...

        # get available migration and immigration cities
        lSourceCities = []
        lTargetCities = []
      
        for iPlayer in range(iNumPlayers):
            if iPlayer in lCivBioNewWorld and not utils.isReborn(iPlayer): continue # no immigration to natives
            pPlayer = gc.getPlayer(iPlayer)
            lCities = []
            bNewWorld = pPlayer.getCapitalCity().getRegionID() in lNewWorld
            for city in utils.getCityList(iPlayer):
                iFoodDifference = city.foodDifference(False)
                iHappinessDifference = city.happyLevel() - city.unhappyLevel(0)
                if city.getRegionID() in lNewWorld and bNewWorld:
                    if iFoodDifference <= 0 or iHappinessDifference <= 0: continue
                    iNorthAmericaBonus = 0
                    if city.getRegionID() in [rCanada, rUnitedStates]: iNorthAmericaBonus = 5
                    lCities.append((city, iHappinessDifference + iFoodDifference / 2 + city.getPopulation() / 2 + iNorthAmericaBonus))
                elif city.getRegionID() not in lNewWorld and not bNewWorld:
                    iValue = 0
                    if iFoodDifference < 0:
                        iValue -= iFoodDifference / 2
                    if iHappinessDifference < 0:
                        iValue -= iHappinessDifference
                    if iValue > 0:
                        lCities.append((city, iValue))
          
            if lCities:
                lCities.sort(key=itemgetter(1), reverse=True)
          
                if bNewWorld:
                    lTargetCities.append(lCities[0])
                else:
                    lSourceCities.append(lCities[0])

...

In ordinary game there are no civs that have capital in Australia/Oceania, so immigration mechanic affect only America, Canada and, to a lesser degree (due to modifier for NA civs), Mexico, Argentina, Peru, Colombia and Brazil.
But if you are playing as Polynesia, still playing after 1772 year, and acquired enough happiness to overcome USA +5 modifier, you can get immigration moments too.


Why not? Dealing with instability is pain (I can deal with overextension from Australia and Philippines, I can deal with useful but outdated Republic civic, but not both), but it is still unusual and interesting game.
(Though, it is hard not to win URV)
Wait so is it that Australia/Oceania is considered New World in the code or...?
Also, yeah it's really easy to win the URV with Polynesia if you play past a certain point. I entirely accidentally won a URV for the first time as Polynesia.
 
That probably deserves a bug report instead. Preferably with a save from before the ship appeared there.
 
How is that even possible, within one turn?
 
If you have a save from the previous turn, please report it.
 
Back
Top Bottom