Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

How to Fix Historical Events Failing to Trigger Part II

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [Napoleonics] >> Crown of Glory: Emperor's Edition >> How to Fix Historical Events Failing to Trigger Part II Page: [1]
Login
Message << Older Topic   Newer Topic >>
How to Fix Historical Events Failing to Trigger Part II - 4/30/2017 2:13:16 PM   
lucr41

 

Posts: 28
Joined: 11/10/2016
Status: offline
UPDATE:
This topic and a few other topics have been consolidated here.

===============
How to Fix Historical Events Failing to Trigger Part II
----------

I have discovered 2 major issues with Historical Events. It is possible they were already known, but I have only seen one vague forum post detailing these issues. While working out a solution to the first issue, I discovered a second one. For clarity, I will deal with each issue in separate posts. The good news is that I was able to workaround the first issue and fix the second.

Note: Historical Events are not available in a PBEM game, so don't look for them in that situation. This is by design.

----------

Issue #2:

While formulating the workaround for problem #1 (see How to Fix Historical Events Failing to Trigger Part I), I came across a second major issue. This one is rather complicated.

I noticed that some Historical Events set to trigger on the first turn of the 1792 scenario, would never do so, even though they should trigger. One event even had 100% Chance and still would never trigger. Further testing revealed that the problem Historical Events all had a start year/month preceding the current game turn and an end year/month of 0/0. The events with a proper end year/month functioned correctly (for example, an end year/month of 1830/12 instead of 0/0).

ex: Ottoman Military_Reforms event has a 100% Chance, a start year/month of 1792/01 and an end year/month of 0/0

The first turn in the 1792 scenario is on the month of June, so 1792/06. Since the Military_Reforms event's start year/month precedes the first game turn and its end year/month is 0/0, it will never trigger.

After more testing, I was able to get this event to trigger by doing one of two things. If I set its start year/month to 1792/06 (and changed nothing else), then it would trigger on the first turn of the 1792 scenario. Also, if I set the end year/month to 1796/02 (and changed nothing else), then it would also trigger on the first turn of the 1792 scenario.

It seems these events with an end year/month of 0/0 will only successfully trigger on the turn they become active, as indicated by their start year/month. If they fail to trigger on their first active turn, then they will never trigger. This is a problem because all events with less than 100% Chance may not trigger on the first turn they become active, but should be able to trigger afterwards. Those events with an end year/month set to 0/0, can only trigger on their start year/month and never after.

It turns out, this issue negatively impacts 44 events.

I eventually fixed this issue by changing the end year/month, on those events originally set to 0/0 and also having a less than 100% Chance. For most events, I set the end year/month to the turn prior to the next scenario, although there were some exceptions.

While I was looking at the COG2Events.txt file, I made a few other modifications. Some were to fix what I thought were errors. Some were to reduce the odds on a few events, which I thought were too high. Therefore some of my changes are very much open for debate. If you disagree with some of my changes, you can edit them using Excel (just don't change the ID# of the event). Bryan Morgan's "Modder's Guide" does a fantastic job a explaining how this file works. It is most definitely recommended reading.

----------

Here is a list of my modifications (new file is attached):

Changed event description:
- changed (44) Fourth_Mysore_War event's description to append "40_colonies."
- corrected spelling on several event descriptions

Changed event Chance:
- changed (22) Assassination_of_Napoleon event's Chance value from 10 to 1 (otherwise probabilites dictate he is dead within 10 months of the start of this event)
- changed (95) Continued_Training event's Chance value from 0 to 2 (otherwise it will never trigger)
- changed (101) Crop_Failure event's Chance value from 4 to 2 (otherwise crop failures have a 48% percent of triggering every year; seems a bit high)

Changed event start year/month:
- changed (6) Inflation event's start year from 1792 to 1793 (all events are in chronological order, except this one; I figured it was an error)
- changed (38) Inspired_by_the_French_Revolution event's start month from 1 to 9 (this should only trigger AFTER the French Revolution actually occurs)

Changed event end year/month, to ensure triggering:
- changed (12) Enforced_Atheism event's end year/month from 0/0 to 1796/02
- changed (18) Abdication_of_William_V_Holland event's end year/month from 0/0 to 1796/02
- changed (22) Assassination_of_Napoleon event's end year/month from 0/0 to 1830/12
- changed (23) Papal_Concordat event's end year/month from 0/0 to 1805/08
- changed (34) Napoleon_Excommunicated event's end year/month from 0/0 to 1812/06
- changed (35) Pope_Arrested event's end year/month from 0/0 to 1812/06
- changed (37) Defection_of_Murat event's end year/month from 0/0 to 1830/12
- changed (41) Irish_Revolt event's end year/month from 0/0 to 1830/12
- changed (44) Fourth_Mysore_War event's end year/month from 0/0 to 1805/08
- changed (47) Slave_Trade_Abolished event's end year/month from 0/0 to 1812/06
- changed (48) Luddite_Unrest event's end year/month from 0/0 to 1812/06
- changed (50) Succession:_Frederick_William_III event's end year/month from 0/0 to 1805/08
- changed (52) Abolition_of_Internal_Customs event's end year/month from 0/0 to 1805/08
- changed (53) Arndt's_"Geist_der_Zeit" event's end year/month from 0/0 to 1812/06
- changed (54) Scharnhorst's_Manifesto event's end year/month from 0/0 to 1812/06
- changed (56) Founding_of_the_Gymnastics_Movement event's end year/month from 0/0 to 1812/06
- changed (57) Educational_Reforms event's end year/month from 0/0 to 1812/06
- changed (58) Military_Reforms:_Stadion event's end year/month from 0/0 to 1812/06
- changed (59) Civil_Code event's end year/month from 0/0 to 1812/06
- changed (60) Polish_Uprising event's end year/month from 0/0 to 1796/02
- changed (61) Czar_Paul_I event's end year/month from 0/0 to 1805/08
- changed (62) Assassination_of_Paul_I event's end year/month from 0/0 to 1805/08
- changed (63) Russo-Persian_War event's end year/month from 0/0 to 1812/06
- changed (64) Transfer_of_Louisiana event's end year/month from 0/0 to 1805/08
- changed (65) Massive_Colonial_Unrest event's end year/month from 0/0 to 1812/06
- changed (66) Free_Spanish_Constitution event's end year/month from 0/0 to 1812/06
- changed (68) Growth_of_Danish_Fleet event's end year/month from 0/0 to 1805/08
- changed (69) Land_Redistribution event's end year/month from 0/0 to 1812/06
- changed (70) Coup event's end year/month from 0/0 to 1812/06
- changed (71) Militray_Reforms event's end year/month from 0/0 to 1796/02
- changed (74) Revolt_in_Serbia event's end year/month from 0/0 to 1805/08
- changed (75) Janissary_Revolt event's end year/month from 0/0 to 1805/08
- changed (76) Tension_with_Russia event's end year/month from 0/0 to 1812/06
- changed (77) Coup:_Mustapha_IV event's end year/month from 0/0 to 1812/06
- changed (78) Coup:_Mahamud_II event's end year/month from 0/0 to 1812/06
- changed (79) Revolt_in_Serbia event's end year/month from 0/0 to 1830/12
- changed (80) Bernadotte:_King_of_Sweden event's end year/month from 0/0 to 1812/06
- changed (81) Assassination_of_Gustav_III event's end month from 0/0 to 1796/02
- changed (84) Act_of_Union event's end year/month from 0/0 to 1805/08
- changed (85) Occupation_of_Orissa event's end year/month from 0/0 to 1805/08
- changed (87) British_Gain_Cape_Colony event's end year/month from 0/0 to 1812/06
- changed (88) Napoleon_Marries_Marie-Louise event's end year/month from 0/0 to 1812/06
- changed (89) Stadion:_Military_Reforms event's end year/month from 0/0 to 1812/06
- changed (98) Nathan_Mayer_Rothschild event's end year/month from 0/0 to 1819/12

Attachment (1)

< Message edited by lucr41 -- 5/6/2017 7:10:03 PM >
Post #: 1
RE: How to Fix Historical Events Failing to Trigger Par... - 6/26/2017 3:39:43 PM   
Randomizer

 

Posts: 953
Joined: 6/28/2008
Status: offline
As usual I'm late to the parade but many thanks for posting your fixes and comments.

-C

(in reply to lucr41)
Post #: 2
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [Napoleonics] >> Crown of Glory: Emperor's Edition >> How to Fix Historical Events Failing to Trigger Part II Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.105