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

[3.19] Event "Doctrine Overwhelm" option 1 not working

Discussion in 'Civ4 - Bug Reports' started by Pep, Jun 27, 2009.

  1. Pep

    Pep King

    Joined:
    May 28, 2002
    Messages:
    688
    Location:
    Spain
    With 3.17, after completing the "Doctrine Overwhelm" event (build several battleships, destroyers, carriers and fighters) I always could choose the first reward (free combat 1 promotion for battleships, destroyers, carriers and fighters). With 3.19, option 1 is grayed and can't be selected.

    I have tracked the bug and is easy fixable:

    - Open CIV4EventInfos.xml
    - Search EventInfo EVENT_OVERWHELM_DONE_1
    - Substitute the following lines:

    <PythonCallback>applyOverwhelmDone1</PythonCallback>
    <PythonExpireCheck/>
    <PythonCanDo>canApplyOverwhelmDone1</PythonCanDo>
    <PythonHelp>getHelpOverwhelmDone1</PythonHelp>


    with:

    <PythonCallback/>
    <PythonExpireCheck/>
    <PythonCanDo/>
    <PythonHelp/>


    The reason is that in CvRandomEventInterface.py those functions don't exist, and I suppose 3.19 may have introduced an additional check for non-existance.

    Funtions for reward 3, EVENT_OVERWHELM_DONE_3 (applyOverwhelmDone3, canApplyOverwhelmDone3, getHelpOverwhelmDone3), do exist and they are working properly.
     

Share This Page