FAILED(event_script_dialog: notify): Segmentation violation

Post bug reports and ask for help with other issues here.
Post Reply
DarkHorse2
Posts: 1070
Joined: Fri Feb 04, 2022 12:08 pm

FAILED(event_script_dialog: notify): Segmentation violation

Post by DarkHorse2 »

This occurs when adding a Naval Unit to a non-port sea hex, via Unit.txt and then updating script via the editor.

The editor GPFs with a very cryptic error message.


The following should do it....

Code: Select all

{
#NAME= DE 643 - Germany: German Forces Secure Oslo (1)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 643[1]
#COUNTRY_ID= 45
#TRIGGER= 100
#PRIVATE= 0
#DISPLAY_TURN= 0
#FULL_RESEARCH= 0
#DATE= 1940/04/14
#FAILSAFE_DATE= 1948/01/01
; 2 hexes south of Oslo(167,52) 
#DESTINATION_RESOURCE= 167,54
; Norway(78)
#VARIABLE_CONDITION= 78 [2] [100] [1]
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
#UNIT= 38 [8] [0] [Blücher]
}
User avatar
Hubert Cater
Posts: 5986
Joined: Mon Jul 22, 2013 11:42 am
Contact:

Re: FAILED(event_script_dialog: notify): Segmentation violation

Post by Hubert Cater »

Thanks for the report, it looks like the issue is the arrival position is a LAND + SEA hex and the Editor is not handling the error correctly and crashing.

I'll fix this for the next udpate, in the meanwhile try adding the naval unit to a SEA hex and it should work as a workaround.
DarkHorse2
Posts: 1070
Joined: Fri Feb 04, 2022 12:08 pm

Re: FAILED(event_script_dialog: notify): Segmentation violation

Post by DarkHorse2 »

The issue, I believe, was adding the naval unit to a non-resource hex.

I had to change the target hex to be Oslo Port in the following:

Code: Select all

{
#NAME= DE 643 - Germany: German Forces Secure Oslo (1)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 643[1]
#COUNTRY_ID= 45
#TRIGGER= 100
#PRIVATE= 0
#DISPLAY_TURN= 0
#FULL_RESEARCH= 0
#DATE= 1940/04/14
#FAILSAFE_DATE= 1948/01/01
; Oslo Port (167,53)
#DESTINATION_RESOURCE= 167,53
; Norway(78)
#VARIABLE_CONDITION= 78 [2] [100] [1]
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
#UNIT= 38 [8] [0] [Blücher]
}
DarkHorse2
Posts: 1070
Joined: Fri Feb 04, 2022 12:08 pm

Re: FAILED(event_script_dialog: notify): Segmentation violation

Post by DarkHorse2 »

FYI - some background on this, which I was able to get all working ....

Currently, in the game, there are various German Naval units that are not present in SOE. I presume they are absent because they were subsequently destroyed during the invasion of Norway.

These included:
* Blucher, Heavy Cruiser
* Königsberg, Light Cruiser
* Karlsruhe, Light Cruiser
* 10 Destroyers

Well, I find it annoying that these losses are predetermined at the onset of SOE. In the alternative, I am modding to make the outcome more random where there is the possibility of more or less naval units surviving and thus being available as repairable units.

(see - https://apps.dtic.mil/sti/tr/pdf/ADA396983.pdf ) for some nice maps of the 1940 Norwegian Operations.
NorwayCampaign_1940.jpg
NorwayCampaign_1940.jpg (323.22 KiB) Viewed 171 times
DarkHorse2
Posts: 1070
Joined: Fri Feb 04, 2022 12:08 pm

Re: FAILED(event_script_dialog: notify): Segmentation violation

Post by DarkHorse2 »

I am simulating the damage to the naval units as in the following:

Note - I have the Konigsberg deploying at Str(8), followed up by a damage hit of 6-9, giving it a 50-50 chance of surviving.

Code: Select all

; https://en.wikipedia.org/wiki/Operation_Weser%C3%BCbung#Course_of_actions
{
#NAME= DE 644 - UK: British Bombers Inflict Casualties On The German Invasion Force
#POPUP= British Bombers Inflict Casualties On The German Invasion Force
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 0
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 644[1]
#COUNTRY_ID= 112
#FLAG_ID= 78
#TRIGGER= 100
#SEASON_FLAG= 0
; DATE= 1940/04/14
; test
#DATE= 1939/09/01
; target Königsberg, historically lost during invasion
; Bergen Port (156,51)
#MAP_POSITION= 156,51 [1,1] [6,9] [-15,-15] [1] [0]<
#VARIABLE_CONDITION= 45 [1] [100] [0]
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
DarkHorse2
Posts: 1070
Joined: Fri Feb 04, 2022 12:08 pm

Re: FAILED(event_script_dialog: notify): Segmentation violation

Post by DarkHorse2 »

To follow up, what is not really covered very well are the Naval losses suffered by the Allies in their efforts to interdict the Kriegsmarine during the Norwegian campaign.

Which include:
* 1 UK aircraft carrier (HMS Glorious)
* 1 UK light cruiser (HMS Curlew)
* 1 UK heavy cruiser (HMS Effingham)
* 7 UK destroyers
* 2 French destroyers

So, for SOE to predetermine that Blucher, all of the Kriegsmarine Light Cruisers and various other naval units will be destroyed during the Norwegian campaign, while deploying all of the participating Allied Naval units on the map from the onset and further leaving them completely entact is rather one-sided, especially in terms of HMS Glorious.
Post Reply

Return to “Tech Support”