epaminondas
Colonel
Posts: 362
Joined: Thu Feb 08, 2007 9:35 pm

Some people never learn

Sun Jan 12, 2014 2:35 am

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.

User avatar
Kensai
Posts: 2712
Joined: Mon Sep 19, 2011 4:54 pm
Location: Freiburg, Germany

Sun Jan 12, 2014 11:21 am

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.
Care to unify Germany as Austria? Recreate the Holy Roman Empire of the 20th Century:
Großdeutschland Mod
Are you tough enough to impersonate the Shogun and defy the Westerners? Prove it:
Shogun Defiance Mod (completed AAR)

epaminondas
Colonel
Posts: 362
Joined: Thu Feb 08, 2007 9:35 pm

Mon Jan 13, 2014 8:12 am

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.

User avatar
Kensai
Posts: 2712
Joined: Mon Sep 19, 2011 4:54 pm
Location: Freiburg, Germany

Mon Jan 13, 2014 11:31 am

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
Care to unify Germany as Austria? Recreate the Holy Roman Empire of the 20th Century:
Großdeutschland Mod
Are you tough enough to impersonate the Shogun and defy the Westerners? Prove it:
Shogun Defiance Mod (completed AAR)

epaminondas
Colonel
Posts: 362
Joined: Thu Feb 08, 2007 9:35 pm

Tue Jan 14, 2014 4:55 am

Thanks boss, I'm in your debt.

User avatar
Christophe.Barot
Posts: 1138
Joined: Fri Jan 26, 2007 10:55 pm
Location: Paris (France)

Tue Jan 14, 2014 8:22 am

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
[color="#FF0000"]- (ordnance) Your Lordship, sorry to awake you, but The french are at our door !

- Alarm, alarm, how did you let this happen and not awake me ! repel them, counterattack at once !

- err, your Lordship, ahem... French are our allies, Marshal de St Arnaud is expected to attend to a conference with you !

- ahem, well, .... very well ..let them in !

(charge of the light brigade movie)
[/color]

epaminondas
Colonel
Posts: 362
Joined: Thu Feb 08, 2007 9:35 pm

Tue Jan 14, 2014 10:59 am

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.

Return to “Pride of Nations”

Who is online

Users browsing this forum: No registered users and 47 guests