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

how to disable the automatic teams on alternate history mode?

Discussion in 'R.E.D. World War II Edition' started by ilshur, Mar 6, 2013.

  1. ilshur

    ilshur Warlord

    Joined:
    Feb 25, 2008
    Messages:
    250
    Since you seem to know your way around coding hotfixes, any idea if it'd be possible to fully disable the automatic teams on alternate history mode? I would do it manually with IGE but civ5 crashes every time whenever i try to change player in it.

    Since it's part of the script to automatic the teams, i figure it might be possible to maybe edit it out?
     
  2. Parthius

    Parthius Chieftain

    Joined:
    Aug 31, 2004
    Messages:
    97
    Try going to safe mode in IGE, then you should be able to change players without it crashing (at least that is what I have to do.)
     
  3. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,351
    Location:
    France
    or remove the line with "PEA" from the g_Major_Diplomacy table in DefinesEuro1940.lua.
     
  4. ilshur

    ilshur Warlord

    Joined:
    Feb 25, 2008
    Messages:
    250
    What would happen if i removed that entire function?

    Will it affect all games or just 1939-1945?


    e; i edited out the PEA lines, but it still cannot allow for natural declaration of war between germany/italy or france/england due to 'special rule'


    How do i edit out special rule?
     
  5. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,351
    Location:
    France
    search for "Virtual allies" in the same file. And don't use scripted events then.
     
  6. ilshur

    ilshur Warlord

    Joined:
    Feb 25, 2008
    Messages:
    250
    just straight up remove the 'virtual allies' function line from the script?
     
  7. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,351
    Location:
    France
    no, the 2 tables below.
     
  8. ilshur

    ilshur Warlord

    Joined:
    Feb 25, 2008
    Messages:
    250
    that doesn't remove the special rule non-declaration
     
  9. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,351
    Location:
    France
    check (and delete) those tables in other define files then.
     
  10. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,351
    Location:
    France
    it's in RedDefinesGlobal.lua
     
  11. ilshur

    ilshur Warlord

    Joined:
    Feb 25, 2008
    Messages:
    250
    I've tentatively gotten this to work, by deleting virtual allies in both the scenerio specific defines(1936 is my control study) and the RedDefinesGlobal.lua, but it cannot for the life of me find how to get around the 'special rule' issue. With IGE, i can set war manually for myself, but england/france/usa never go to war on each other, which diminishes the value of having permanent total war with everyone. However, if there is another specific barrier that prevents traditional allies from declaring, i.e. this 'special rule' barrier, then i think it'd all work out.


    I actually scrolled through every file in the lua, and i couldn't find anything i thought likely to change - i didn't want to screw around with too much all at once.

    is it possible its somewhere else? Some structural barrier within the diplomatic engine?

    Thanks for your forbearance
     
  12. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,351
    Location:
    France
    you can declare war ?

    if the AI doesn't, it may be because of the auto-DoF and alliances. That's in the g_Major_Diplomacy table if you've not already removed it.
     
  13. ilshur

    ilshur Warlord

    Joined:
    Feb 25, 2008
    Messages:
    250
    As Germany, im still prevented by special rule from declaring war on Italy, but Italy can declare war on me. I removed all diplomatic triggers ofr DoF's and DoD and DoW, and in alt history, Russia attacks turkey and finland and italy france england all can attack me, but i cannot declare war on italy because of special rule.

    Aside from the special rule, the problem i ran into a few months back of "Being able to take Italian tiles in wartime, but then losing them in peacetime" seems to be fixed.


    Ideally, i'd like to see a completely ahistorical map wherever everyone can declare on everyone, with two mods - peace possible, or permanent peace blocked by everyone.

    edit: i think i've figured it out. Im going to save copies of my LUAs to cross reference when it inevitably fails, but that said, i have no idea what i did, but some time after turn 45, it magically allowed me to declare war on italy.
     
  14. Shaiten

    Shaiten Chieftain

    Joined:
    Sep 15, 2008
    Messages:
    13
    I attacked Romania in my 1st game and Italy attacked me because they were allies.I'm also having event issues.I have scripted events off and they still happen it seems.
     
  15. ilshur

    ilshur Warlord

    Joined:
    Feb 25, 2008
    Messages:
    250
    What you're describing is hard coded 'auto retaliation' that is coded into the LUA. This is a separate issue outside of the virtual allies issue, but its easy to fix by taking a peak at the specific conditions that must be met for certain diplomatic triggers. they aren't all on the historical calender specifically, but are meant as retaliatory.
     
  16. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,351
    Location:
    France
    yep, see g_MinorProtector in the scenario defines files.

    (on a side note, if you play USSR and want to be at war with U.K., France and Germany at the same time, you just need to attack Sweden, see the table...)
     
  17. Shaiten

    Shaiten Chieftain

    Joined:
    Sep 15, 2008
    Messages:
    13
    Ah ty.
     
  18. ilshur

    ilshur Warlord

    Joined:
    Feb 25, 2008
    Messages:
    250
    Or you could do what i've done a few times and just delete all virtual allies, all diplomatic triggers, and all automated responses. Makes for a fun total war.

    But theres no war at the moment, because of the patch dll update :(
     

Share This Page