General_Snoopy
Private
Posts: 21
Joined: Tue Sep 12, 2017 11:33 am

TEAW Proposed Event Fixes

Sun Jan 02, 2022 3:57 am

The following suggested event fixes assume the Quick Fix (Version 1.04, Beta 1.03, 12 May 2019) has been installed. Also, assumes the DLC expansion has also been installed.

List of Proposed Changes:
(1) Commerce Raiders
(2) Sea Mines
(3) Hindenburg Arrival
(4) Hindenburg Promotion
(5) Moltke Retirement
(6) Gran Paradiso (Italy) province
(7) Rape of Belgium
(8) Occupation of Luxembourg
-------------------------------------

(1) Commerce Raiders:

Problem: German commerce raiders were having no affect in sea zones (outside of shipping boxes).
Reason: The include file for German raiders was not included in the scenario files.

Folder: Events
Files: (1) 2 – The Guns of August.sct and (2) 3 – The Great War.sct

FIX: The missing include file is WW1_GermanRaiders.sct. For both scenario files add the WW1_GermanRaiders.sct file to the list of include files. Place it between the lines “EAW_NM_Balances.sct” and “NULL = NULL”.

(2) Sea Mines:

Problem: Sea Mines are not very effective.
Reason: The number specified for ChgHealthPerc seems to have limited or no effect. Perhaps a conflict with the game engine?

Folder: Events
File: MapAleas.sct
Event: evt_nam_Seamines_Detonate

FIX: In the event under actions is listed a number after ChgHealthPerc. This number is either -25 or -33 depending on version. The number should be changed to -40. Testing indicates Sea Mines are now very effective.

(3) Hindenburg Arrival:

Problem: If the Russians never invade Germany, then Hindenburg will never be activated as a leader. While Hindenburg was retired at war start, it is likely even without a Russian invasion that he would have eventually reentered military service. He was not the only retired general to be recalled. Additionally, this event grants a cohesion bonus for German units on the Eastern Front which would otherwise never be gained if the event does not fire. It is assumed this difference is supposed to reflect the performance difference of Germany on the Eastern Front versus the Western Front, so the bonus should still be retained regardless of whether there is a Russian invasion.
Reason: The event does not consider the alternative of NO Russian invasion.

Folder: Events
File: WW1_1914Events.sct
Event: evt_nam_HindenburgArrives

FIX: An event was created that will trigger the HindenburgArrives event. It ensures that by 15 Dec 1914 the event evt_nam_HindenburgArrives is executed regardless of Russian actions. Place the trigger event in event file WW1_1914Events.sct and place the trigger event before event evt_nam_HindenburgArrives. The first line in the event file should still be NULL.

EVENT SCRIPT
----------------------------------------------------------
SelectFaction = EN1
SelectRegion = $Petrograd

SelectFaction = EN1
SelectRegion = $Petrograd

StartEvent = evt_nam_HindenburgTrigger|1|0|NULL|NULL|$Petrograd|NULL

Conditions
MinDate = 1914/12/15
EvalEvent = evt_nam_HindenburgArrives;<;1

Actions

SelectRegion = $Drewenz

SelectFaction = EN1
SelectRegion = $Drewenz
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 10
SetName = Hindenburg Fans
Apply
CreateUnit
SetType = $uni_RUS_Inf_Div_Mil
NumCreate = 1
SetLevel = 0
SetName = Hindenburg Fans
Apply

End Event

(4) Hindenburg Promotion

Problem: For those war plans where Moltke is not the GHQ leader, he is a field commander. In those war plans he is angered when Hindenburg is promoted over him to be the GHQ-Ost leader. In consequence, national morale and victory points are lost.
Reason: Moltke has the same seniority as the GHQ leader as when he has been demoted to a mere 3-star field commander. This is not reasonable as a demotion should result in a loss of seniority.

Folder: Events
File: WW1_Warplans.sct
Event: (1) evt_Warplans_GER_04 (Rupprecht) and (2) evt_Warplans_GER_03 (Kronprinz)

FIX: In the Rupprecht and Kronprinz war plans, Moltke should be removed from the game. His replacement as a field commander should be Prinz Friedrich Leopold von Preussen.

Discussion: Upon demotion from GHQ it would have been unlikely for Moltke to have been given a field command. In 1914 he was sixty-six and would have been one of the eldest 1914 commanders. Additionally, he was in poor health having suffered a stroke shortly before the outbreak of the war. In real life after he was removed as GHQ leader he held a non-field commander position and later died in 1916.

Moltke should be replaced with Prinz Friedrich Leopold von Preussen. The other two 3-star alternatives would not have been available. Leopold von Bayern retired in 1913 and would not be recalled from retirement until 1915. Erich von Falkenhayn was the Minister of War. F.L. von Preussen was on active duty in 1914.

EVENT – Additional Script
The lines below are added at the very end of the two listed events. The first group replaces Moltke with FL Preussen as the field commander. The second group removes FL Preussen from the list of general reinforcements.
------------------------------------------------------------------
SelectSubUnits = Models $ldr_GER_HLMoltke3
AlterCuSubUnit = ApplyToList;Convert $ldr_GER_FLPreussen3
ChangeUnitType = $uni_GER_HLMoltke3;$uni_GER_FLPreussen3;OnMap

SelectSubUnits = Region $F7_GER;Models $ldr_GER_FLPreussen3
MoveUnit = $Berlin;NotEnemy
SelectSubUnits = Region $Berlin;Models $ldr_GER_FLPreussen3
AlterCuSubUnit = ApplyToList;Kill

(5) Moltke Retirement

Problem: The retirement of Moltke is only appropriate for the historical German war plan.
Reason: The Moltke retirement event does not consider the impact of alternative war plans.

Folder: Events
File: WW1_1914Events.sct
Event: evt_nam_MoltkeRetires

FIX: A condition is added to the event that restricts it to firing only for the historical option.

EVENT - Additional Script
--------------------------------
Conditions
MinDate = 1914/12/15 (NOTE: this condition is already here)
EvalEvent = evt_Warplans_GER_01;=1 (NOTE: this condition is added)

Discussion: Events for the non-historical war plans have not been developed but may be developed in the future. What follows is a discussion on failure conditions for the alternative war plans.

There are four German war plans: (1) Schlieffen (West-Belgium), (2) Moltke (East), (3) Kronprinz (Defensive), and (4) Rupprecht (West-Swiss).

(1) Plan Schlieffen (West-Belgium): GHQ is Helmuth Ludwig von Moltke. This is the historical option. If the Central Powers fail to take Paris by 15 Dec 1914, then Moltke would retire, and generals Kluck and Bulow would each lose 50 points of seniority.

(2) Plan Moltke (East): GHQ is Helmuth Ludwig von Moltke. How this should be handled would be dependent on the intent of the plan. If the plan is to knock-out Russia before winter sets in, then $Petrograd should replace $Paris in the event and everything else remains the same. If the plan reflects an appraisal that victory in the east regardless of how long it takes is the only feasible course of action (Schlieffen viewed as impractical), then failure to take Minsk (Russian GHQ location) by 15 Dec 1914 could be considered to be the failure condition. Failure consequences would be the same as for the Plan Schlieffen.

(3) Plan Kronprinz (Defensive): GHQ is Kronprinz Wilhelm von Preussen. The only reason to take this plan would be because all other plans were considered to be too risky. Just because a defensive orientation was taken, does not mean that offensive actions on either front would not be undertaken; although, Eastern Front would be considered most likely. This plan assumes a negotiated end to the war and in consequence a long war. Given these assumptions then plan failure could be considered to be failure to be in control of all the plan objective cities by 15 Dec 1914. Plan objective cities are Koenigsberg, Metz, Strassburg, Posen, and Breslau. Failure would mean the Kronprinz Wilhem von Preussen loses 50 points of seniority, replaced as the GHQ leader by Falkenhayn, and becomes available as a 3-star field commander. Generals would lose 50 points of seniority if they lost the city they were assigned to protect. Assignment would be as follows: Koenigsberg (Hindenburg, Prittwitz und Gaffrun), Metz (Kluck, FL von Preussen (Moltke replacement), Albrecht von Wurttemberg), Strassburg (Rupprecht, Herringen), Posen (Bulow), and Breslau (Hausen).

(4) Rupprecht (West-Switzerland): GHQ is Rupprecht von Bayern. If the Central Powers failed to take Paris by 15 Dec 1914, then Rupprecht loses 50 points of seniority, replaced as the GHQ leader by Falkenhayn, and becomes available as a 3-star field commander. Additionally, generals Kluck and Bulow would each lose 50 points of seniority.

(6) Gran Paradiso (Italy) province

Problem: When Italy enters the war the province of Gran Paradiso is not unblocked. This is especially problematic for CP entry, since the starting units in the province are unable to move.
Reason: The province was omitted in the list of Italian provinces unblocked upon war entry.

Folder: Events
File: WW1_UnblockRegions.sct
Event: (1) evt_reg_unblock_EN_ITA and (2) evt_reg_unblock_CP_ITA

Fix: The Gran Paradiso province is added to the list of provinces unblocked upon war entry.

EVENT - Additional Script
The lines below are added to the two listed events.
--------------------------------
SelectRegion = $Gran_Paradiso
SelectRegion = $Gran_Paradiso
BlockState = 0

(7) Rape of Belgium

Problem: This event is supposed to affect the province of Malmedy, but it is not affected.
Reason: The Malmedy province was omitted from the list of affected provinces.

Folder: Events
File: WW1_DiplomaticActions.sct
Event: evt_nam_dip_RapeOfBelgium_Use

Fix: The Malmedy province was added to the list of affected provinces.

Event – Additional Script
The first two code sections affect military control. The third code section affects alignment.
-------------------------------------
(Place the code below in the block where the provinces are listed for ENT)

SelectFaction = ENT
SelectRegion = $Malmedy
SetControl = -100

(Place the code below in the block where the provinces are listed for CEN)

SelectFaction = CEN
SelectRegion = $Malmedy
SetControl = 100

(Place the code below in the block where the other provinces have their regional owner changed by the operator ChangeRgnOwner)

SelectFaction = REB

SelectFaction = CEN
SelectRegion = $Malmedy

SelectRegion = $Malmedy
ChangeRgnOwner = NotFort;ENT

(8) Occupation of Luxembourg

Problem: The Occupation of Luxembourg event fires for the Great War Historical Campaign, but does not execute for the Great War Campaign. Additionally, the event is also not available to be selected in the Great War Campaign.
Reason: The evaluation condition checks the status of event August1914Luxembourg. This event is present in the Great War Historical Campaign, but is not present in the Great War Campaign. Since it is not present the event August1914Luxembourg is undefined, so the evaluation condition always evaluates to false. Consequently, the Occupation of Luxembourg event never executes. Additionally, the Occupation of Luxembourg event does not show up as a locked event because a LOCKED version of the event does not exist.

Folder: Events
Files: (1) WW1_DiplomaticActions.sct and (2) 3 - The Great War.sct

Folder: Scens
File: 3 - The Great War.scn

Fix: This bug fix required a lot of coding. Too much coding to place here. I’ll probably create a mod that incorporates all the bug fixes.
Last edited by General_Snoopy on Mon Jan 10, 2022 2:41 am, edited 4 times in total.

User avatar
Nikel
Posts: 2769
Joined: Sun Apr 20, 2008 8:38 pm

Re: TEAW Proposed Event Fixes

Sun Jan 02, 2022 5:22 pm

This must be the best first post ever? :)

User avatar
Nikel
Posts: 2769
Joined: Sun Apr 20, 2008 8:38 pm

Re: TEAW Proposed Event Fixes

Mon Jan 03, 2022 11:38 pm

And now the post is gone?

What is going on here? :blink:

User avatar
lodilefty
Posts: 7605
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Re: TEAW Proposed Event Fixes

Tue Jan 04, 2022 2:58 pm

Nikel wrote:And now the post is gone?

What is going on here? :blink:


Not sure???? :blink:
Reapproved! :dada:

User avatar
Nikel
Posts: 2769
Joined: Sun Apr 20, 2008 8:38 pm

Re: TEAW Proposed Event Fixes

Tue Jan 04, 2022 3:10 pm

Thanks for bringing it back lodilefty, the post is relevant.

So what happened, the author deleted it?

General_Snoopy
Private
Posts: 21
Joined: Tue Sep 12, 2017 11:33 am

Re: TEAW Proposed Event Fixes

Tue Jan 04, 2022 4:13 pm

Nikel wrote: So what happened, the author deleted it?

I made an edit to the original post. Based on how the forum operates, it looks like the whole post was hidden until approved again.

User avatar
Nikel
Posts: 2769
Joined: Sun Apr 20, 2008 8:38 pm

Re: TEAW Proposed Event Fixes

Tue Jan 04, 2022 5:19 pm

And now a 6th item appears in the list! :niark:

Who are you General_Snoopy?

User avatar
Nikel
Posts: 2769
Joined: Sun Apr 20, 2008 8:38 pm

Re: TEAW Proposed Event Fixes

Tue Jan 04, 2022 10:48 pm

(1) Commerce Raiders

I guess this is the cause of problem posted by Straight Arrow.

viewtopic.php?f=358&t=52281&p=397267&hilit=Commerce+Raiders#p397267


(3) Hindenburg arrival

Problem posted by Epaminondas.

viewtopic.php?f=358&t=53135&p=402258&hilit=Hindenburg#p402258


(5) Moltke retirement.

Commented by Epaminondas

viewtopic.php?f=358&t=50824&p=388230&hilit=Hindenburg#p388230


(6) Gran Paradiso (Italy) province

Bug posted by czert2.

viewtopic.php?f=365&t=51803&p=394460&hilit=gran+paradiso#p394460


Amazing stuff General_Snoopy!

You are fixing bugs and problems posted along the last years :hat:

User avatar
Straight Arrow
General
Posts: 506
Joined: Fri Nov 07, 2014 5:44 pm
Location: Washington State

Re: TEAW Proposed Event Fixes

Wed Jan 05, 2022 5:11 pm

Amazing stuff indeed!

Many thanks General Snoopy!

User avatar
Nikel
Posts: 2769
Joined: Sun Apr 20, 2008 8:38 pm

Re: TEAW Proposed Event Fixes

Wed Jan 05, 2022 6:07 pm

General_Snoopy wrote:
Nikel wrote: So what happened, the author deleted it?

I made an edit to the original post. Based on how the forum operates, it looks like the whole post was hidden until approved again.


Yes, something happens with your posts.

This one for example I could not read it till now 5 of January, and you have written it yesterday.

User avatar
Pocus
Posts: 25617
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Re: TEAW Proposed Event Fixes

Fri Jan 07, 2022 4:43 pm

Nikel wrote:And now a 6th item appears in the list! :niark:

Who are you General_Snoopy?


Santa in disguise? :niark:

General_Snoopy
Private
Posts: 21
Joined: Tue Sep 12, 2017 11:33 am

Re: TEAW Proposed Event Fixes

Mon Jan 10, 2022 2:46 am

Two more fixes have been added. They pertain to the Rape of Belgium event and the Occupation of Luxembourg event.

After I've completed some more fixes, I'll collect them into a consolidated mod.

User avatar
Nikel
Posts: 2769
Joined: Sun Apr 20, 2008 8:38 pm

Re: TEAW Proposed Event Fixes

Mon Jan 10, 2022 10:00 am

Nice, thanks!

Keep them coming :D

User avatar
psanick
Conscript
Posts: 12
Joined: Tue Mar 03, 2020 5:57 pm

Re: TEAW Proposed Event Fixes

Fri Sep 16, 2022 7:14 pm

Nikel wrote:This must be the best first post ever? :)

Yeah. lol :niark:
thanks very much for this! Keep up the good work!

Return to “To End All Wars”

Who is online

Users browsing this forum: No registered users and 6 guests