Modmodding Q&A Thread

I think this is the easiest way. Open RiseAndFall.py and search for this function. Then add the last part of this snapshot. (if iCiv == iXXXX: ) Replace iXXX with the civ-const. You can find the civ-const in Consts.py. (e.g. France would be iFrance, Portugal = iPortugal etc.)

Code:
    def initBirth(self, iCurrentTurn, iBirthYear, iCiv): # iBirthYear is really year now, so no conversion prior to function call - edead
        print 'init birth in: '+str(iBirthYear)
        iHuman = utils.getHumanID()
        iBirthYear = getTurnForYear(iBirthYear) # converted to turns here - edead
      
        if iCiv in lSecondaryCivs:
            if iHuman != iCiv and not data.isPlayerEnabled(iCiv):
                return
              
        if iCiv == iXXXX:
            return
 
It's in the DLL (CvPlayer::getSoundtrackEra()), but it's also largely religion based only. The exception are east Asian civs receiving Confucian music with Buddhism.
Is it difficult to make a new era in the dll?
It would just be precolombian civs without a religion.

Is it civplayer.cvv??

I see the following
Code:
        if (eCurrentEra == ERA_CLASSICAL || eCurrentEra == ERA_MEDIEVAL || eCurrentEra == ERA_RENAISSANCE)
        {
            if (getID() == CHINA || getID() == MONGOLIA || getID() == JAPAN || getID() == KOREA)
            {
                return (EraTypes)ERA_EAST_ASIA;
            }
            else
            {
                return (EraTypes)ERA_SOUTH_ASIA;
            }
        }

So If I replace the ID with Inca, Aztec, Maya, it should work?

I guess if I wanted the music would change as soon as they got a religion it would require much more coding.
But just keeping until industrial era is not the worst.

So I wrote this
Code:
if (eCurrentEra == ERA_CLASSICAL || eCurrentEra == ERA_MEDIEVAL || eCurrentEra == ERA_RENAISSANCE)
        {
            if (getID() == INCA || getID() == AZTEC || getID() == MAYA)
            {
                return (EraTypes)ERA_NEW_WORLD;
            }
            else
            {
                return (EraTypes)ERA_RENNASANICE;
            }
        }
    }

Is anything wrong here

Moderator Action: Merged your posts and moved them to this thread. Please don't double post (there is an edit button) and use this thread for modding questions. Also, your posts are a lot easier to read if you use [ code ] tags for code. -- Leoreth
 
Last edited by a moderator:
Did my pull request come through successfully? I am not sure.
 
I don't see one.
 
Well, apparently not.
 
No. For which repository are you attempting to create a PR?
 
Well as you can see on that page, there's no PR from you open.
 
Next to?
 
Not for me. Did you point the PR against your own fork instead of the original repo?
 
Not for me. Did you point the PR against your own fork instead of the original repo?
I honestly wouldn't know.
When I go to your version. I see five pull requests, and that mine is the newest is at the top.
I see 'dguems/Dawn of Civilization at the top. Is there way I could still see your name even if I was pulling against my own fork.

When I made my pull request I compared your version with my fork.

When I click on the following link I see my request
https://github.com/dguenms/Dawn-of-Civilization/pulls
 
Last edited:
I don't.
 
Back
Top Bottom