Page 1 of 1
Some people never learn
Posted: Sun Jan 12, 2014 2:35 am
by epaminondas
I've been caught again by the feature(!) that progressively shuffles treaty IDs down the list but maintains their original location for cancellation purposes. I want to cancel a treaty existing from game start but there are now so many 'un-cancellable' Casus-Belli treaties in the way that I can't use Jim's trick of temporarily 'withdrawing' intervening agreements to restore it to its original position.
I've gone to the savegame data to try to modify it directly there, but I can't for the life of me find where that info is kept. I've looked under 'treaty' and 'defensive' and 'apes' and 'ape's knees' (for any Bob Newhart fans) but no joy. Any advice on how to manage this situation would be appreciated.
Posted: Sun Jan 12, 2014 11:21 am
by Kensai
Tell me between which nations and what treaties you want to cancel and I will script it for you. Take your time and study (in F9 you can click on a flag to see their POV) clogged treaties for other nations as well. This is relatively important, especially for defensive alliances cause the AI is keen into cancelling them. I think it cannot even cancel them, so it could be a bug.
Posted: Mon Jan 13, 2014 8:12 am
by epaminondas
Thanks Kens. Ideally there are two treaties that I'd like to cancel, one between Austria and Saxony and the other between Austria and Russia. Both are Defensive Alliances. I suspect you're correct about the AI's reluctance to cancel - I've not been playing the game for more than a few months but I can't recollect having an AI nation bale on a treaty with me. If it's in fact the case that they can't cancel it makes grand strategy a piece of cake for the human player.
Posted: Mon Jan 13, 2014 11:31 am
by Kensai
Obviously back up your saves before you add this in the Plugin 1850 folder.
Code: Select all
SelectFaction = $AUS
SelectRegion = $Oesterreich
StartEvent = Canceling Bogus Defensive Treaties|1|1|NULL|NULL|$Oesterreich|NULL
Actions
SelectFaction = $AUS
AddDiploItem = SAX;$diCancelDefensiveTreaty;CURRENT
SelectFaction = $AUS
AddDiploItem = RUS;$diCancelDefensiveTreaty;CURRENT
EndEvent
PS. Have never tried it, to be honest, might not work. I guess it will need two turns to work. The first this diplomatic action will appear in the Austrian F9 and by the turn after it should go off, together with the treaties.
PPS. Disregard the previous syntax, I remembered it doesn't work. Use this:
Code: Select all
SelectFaction = $AUS
SelectRegion = $Oesterreich
StartEvent = Canceling Bogus Defensive Treaties|1|1|NULL|NULL|$Oesterreich|NULL
Actions
SelectFaction = $AUS
RemDiploItem = SAX;$diDefensiveTreaty
SelectFaction = $AUS
RemDiploItem = RUS;$diDefensiveTreaty
EndEvent
Posted: Tue Jan 14, 2014 4:55 am
by epaminondas
Thanks boss, I'm in your debt.
Posted: Tue Jan 14, 2014 8:22 am
by Christophe.Barot
I confirm it's the one I use in my script
you can find useful information here, and inspire from the scripts wirtten by Phiilthib and Pocus (and generalissimo ?)
http://www.ageod.net/agewiki/RemDiploItem
Posted: Tue Jan 14, 2014 10:59 am
by epaminondas
Thank you too, Christoph. Every addition to the knowledge base is especially welcome if it can relieve me of sponging off the good will of others.