1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Bug Reports and Technical Issues

Discussion in 'Rhye's and Fall - Dawn of Civilization' started by Leoreth, Sep 11, 2014.

  1. merijn_v1

    merijn_v1 Black Belt

    Joined:
    Dec 29, 2008
    Messages:
    5,589
    Location:
    The city of the original vlaai
    I think I got the source of this bug. Promoting those units with that promotion will give them a withdraw chance higher than the MAX_WITHDRAWAL_PROBABILITY. The code below (CvUnit.cpp) prevents this from happening.

    Code:
    bool CvUnit::isPromotionValid(PromotionTypes ePromotion) const
    {
        [...]
    
        if (promotionInfo.getWithdrawalChange() + m_pUnitInfo->getWithdrawalProbability() + getExtraWithdrawal() > GC.getDefineINT("MAX_WITHDRAWAL_PROBABILITY"))
        {
            return false;
        }
    
        [...]
    
        return true;
    }
     
  2. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,043
    Gender:
    Male
    Location:
    Leblanc
    Okay, that makes sense I guess.
     
  3. merijn_v1

    merijn_v1 Black Belt

    Joined:
    Dec 29, 2008
    Messages:
    5,589
    Location:
    The city of the original vlaai
    I does however also prevent secondary effects of the bonus. In the case of Guerilla 3, it prevents the hill attack bonus from being obtained.

    Maybe it should only be prevented if the promotion does not have a secondary bonus.
     
  4. Alexius08

    Alexius08 Chieftain

    Joined:
    May 28, 2010
    Messages:
    1,102
    There goes my plan of raising an army that's invincible on the offensive. Longbowmen and skirmishers have 50% withdrawal rate. If they go through the Guerilla promotion line, they'll get 100% withdrawal at the end if not for this.
     
  5. Vectors

    Vectors Chieftain

    Joined:
    Jul 9, 2015
    Messages:
    491
    I am getting a CTD on the next turn
     

    Attached Files:

    Leoreth likes this.
  6. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,043
    Gender:
    Male
    Location:
    Leblanc
    No crash for me, have you updated to the fix from yesterday?
     
  7. Vectors

    Vectors Chieftain

    Joined:
    Jul 9, 2015
    Messages:
    491
    The entire game was played on the version from yesterday
     
  8. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,043
    Gender:
    Male
    Location:
    Leblanc
    The turn took a while for me to load, maybe you were out of memory?
     
  9. hnrysml

    hnrysml Chieftain

    Joined:
    May 18, 2016
    Messages:
    189
    I think the max withdrawal rate is 80 or 85%, if units would normally be able to get a promotion putting them above this, the promotion is disabled
     
  10. Vekkimaster

    Vekkimaster Chieftain

    Joined:
    Sep 6, 2014
    Messages:
    141
    Location:
    Finland
    Damn it with me :wallbash:, it has been so long since my last gaming I already forgot a half of what I was talking about :hammer2:

    So...

    This savefile shows that when completing the first satellite-project by myself, it does NOT cause anarchy to the rest of the nations working with the same project. In this case it would be USA.
     

    Attached Files:

  11. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,043
    Gender:
    Male
    Location:
    Leblanc
    This sounds like you and America both complete the project at the same time. But I'll look later what the exact situation in the save is.
     
  12. Vectors

    Vectors Chieftain

    Joined:
    Jul 9, 2015
    Messages:
    491
    Looks like since reinstalling Civ4, I forgot to patch the EXE, once I did that it stopped crashing.
     
  13. Vekkimaster

    Vekkimaster Chieftain

    Joined:
    Sep 6, 2014
    Messages:
    141
    Location:
    Finland
    That is not the case. To be sure I made a double check. This time I made it sure that I completed the project 1 turn before the USA -> NO anarchy.
     

    Attached Files:

  14. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,043
    Gender:
    Male
    Location:
    Leblanc
    Good to hear you could fix it.

    Alright.
     
  15. Enyavar

    Enyavar Chieftain

    Joined:
    May 16, 2015
    Messages:
    366
    It is so RARE that a bug pops up in v1.15, that I wanted to report it directly.

    Spoiler Bugged CvRFCEventHandler.onBeginGameTurn :
    upload_2019-2-11_10-53-9.png


    Attached is a save file from the turn right before it happens (just press Enter). If save files from previous turns are needed, I can provide them.
     

    Attached Files:

    Leoreth likes this.
  16. Vekkimaster

    Vekkimaster Chieftain

    Joined:
    Sep 6, 2014
    Messages:
    141
    Location:
    Finland
    upload_2019-2-11_15-5-31.png
    A massive world war-event happened and a ton of error popped up. The save is 2 turns away from this if needed. Mod-version is .RAR file about a month ago.
     

    Attached Files:

    Enyavar, 1SDAN and Leoreth like this.
  17. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,043
    Gender:
    Male
    Location:
    Leblanc
    Oh it's the elusive overflow bug, awesome!
     
    1SDAN likes this.
  18. ozqar

    ozqar Chieftain

    Joined:
    Jan 22, 2011
    Messages:
    677
    Gender:
    Male
    Location:
    The Netherlands
    "Wild overflow bug appeared" :lol:
     
  19. merijn_v1

    merijn_v1 Black Belt

    Joined:
    Dec 29, 2008
    Messages:
    5,589
    Location:
    The city of the original vlaai
    Leoreth uses bugfix. It's super effective! :lol:
     
    1SDAN and ozqar like this.
  20. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,043
    Gender:
    Male
    Location:
    Leblanc
    I am readying my master ball.
     
    1SDAN and ozqar like this.

Share This Page