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

[SDK] Advanced Combat Odds for Rar 2.7.x

Discussion in 'Civ4Col - Religion and Revolution' started by devolution, Jun 27, 2018.

  1. devolution

    devolution Chieftain

    Joined:
    Oct 7, 2016
    Messages:
    171
    Gender:
    Male
    Location:
    Stavanger, Norway
    All,

    Many of you may be familiar with a rather popular modcomp for Civ4 BTS: PieceOfMind's Advanced Combat Odds https://forums.civfanatics.com/threads/pieceofminds-advanced-combat-odds.310415/

    This mod gives a graphical breakdown of Victory, Retreat and Defeats odds as well as other helpful info like expected HP loss etc.

    When I first started modding RaR, this was one of the first modcomps that I considered merging.
    However, it mas made complicated by a unique feature, "limited combat rounds" which was introduced several versions ago. This is essentially an upper cap on combat rounds which is currently hard-coded to equal 7. Unfortunately, like I have alluded to in the bug thread, the odds calculation was not updated and it kept assuming that combat would be carried out until either the attacker or the defender died. This is clearly not correct, since a third outcomes is possible, a draw in case the combat round limit has been reached.

    To fix this I have corrected the existing function that calculates the victory odds and added another that estimates the odds of a draw. In addition I have selectively chosen the parts of ACO that I deem suitable for inclusion in RaR. The preliminary result is demonstrated in the attached image.


    Quick Summary:
    - Fixes the wrong calculation and display of combat odds issue.
    - Displays a graphical representation of combat odds, including the odds of a draw (shown in yellow)


    Advanced Combat Odds for RaR Preview:

     
    Nightinggale, 1SDAN and Schmiddie like this.
  2. rah

    rah Warlord Supporter

    Joined:
    Sep 12, 2005
    Messages:
    4,559
    Location:
    Chicago
    That would be nice to have.
     
  3. devolution

    devolution Chieftain

    Joined:
    Oct 7, 2016
    Messages:
    171
    Gender:
    Male
    Location:
    Stavanger, Norway
  4. Hecur

    Hecur Chieftain

    Joined:
    Jun 24, 2017
    Messages:
    47
    So when will beta 3 be ready?
     
  5. devolution

    devolution Chieftain

    Joined:
    Oct 7, 2016
    Messages:
    171
    Gender:
    Male
    Location:
    Stavanger, Norway
    I need to ensure that the import/export bug that was recently discussed in the bug thread has been resolved. It would be great if you and\or other players could attempt to reproduce it in beta2 and then report back.
     
    Last edited: Jul 14, 2018
  6. Hecur

    Hecur Chieftain

    Joined:
    Jun 24, 2017
    Messages:
    47
    I will give it a try tonight, but i hardly ever used this feature. I think you mean this bug description?

    I can confirm that this still happens in 2.7.1 beta 2 downloaded today from https://forums.civfanatics.com/attachments/religion_and_revolution_2_7_1_beta2-zip.490268/

    I may add that if you enter different values to import and export (both unequal to zero) the switching never stops.
     
    Last edited: Jul 14, 2018
  7. devolution

    devolution Chieftain

    Joined:
    Oct 7, 2016
    Messages:
    171
    Gender:
    Male
    Location:
    Stavanger, Norway
    Ok, thanks. Will attempt to fix this issue once and for all...
     
    Hecur likes this.

Share This Page