Is the Air Escort Mission Failing due to poor spelling?

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

DukofDeth

Lt. General
37 Badges
Nov 20, 2015
1.300
1.052
  • Darkest Hour
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Hearts of Iron III Collection
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Hearts of Iron III: Their Finest Hour
  • Europa Universalis IV
  • Hearts of Iron III
  • For the Motherland
  • Arsenal of Democracy
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
I was poking about the defines and noticed that in the NAI section of the defines "Escort" has been spelled as "Excort". However it is the same in all six instances and all six instances are entirely within the NAI section [which governs AI behvaior as I recall]. I am wondering if the spelling matches how the varible is named in the actual code [which obviously I have no access to] or did I just find an error?

NAVAL_MIN_EXCORT_WINGS = 0, -- Min amount of airwings requested to excort operations

LAND_COMBAT_MIN_EXCORT_WINGS = 2, -- Min amount of airwings requested to excort operations

STR_BOMB_MIN_EXCORT_WINGS = 2, -- Min amount of airwings requested to excort operations

@bitmode WHat is your take on this? I realize mispellings are common and often deliberate but with only three variables using that word they could have just spelled it properly. Also there's no reason to mis-spell it in the comments.
 
Last edited:
  • 10
Reactions:

KubiG37

Colonel
42 Badges
Apr 11, 2016
982
1.729
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Distant Stars
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Europa Universalis IV: Rights of Man
  • Victoria 2
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Third Rome
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Stellaris: Megacorp
  • Victoria 2: Heart of Darkness
  • Stellaris: Synthetic Dawn
Have you tried correcting the mistake and launching the game? From my personal experience, when you make a mistake in the defines, the game always crashes on startup.

It might actually be working with this mistake "intentionally", I remember finding something similar in the Focus tree code (German or French?, and this mistake was also repeated in every other file relevant to this focus). It's probably easier code-wise to just leave it be, if you find the mistake too late.
 
  • 2
Reactions:

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.791
6.894
I was poking about the defines and noticed that in the NAI section of the defines "Escort" has been spelled as "Excort". However it is the same in all six instances and all six instances are entirely within the NAI section [which governs AI behvaior as I recall]. I am wondering if the spelling matches how the varible is named in the actual code [which obviously I have no access to] or did I just find an error?

NAVAL_MIN_EXCORT_WINGS = 0, -- Min amount of airwings requested to excort operations

LAND_COMBAT_MIN_EXCORT_WINGS = 2, -- Min amount of airwings requested to excort operations

STR_BOMB_MIN_EXCORT_WINGS = 2, -- Min amount of airwings requested to excort operations

@bitmode WHat is your take on this? I realize mispellings are common and often deliberate but with only three variables using that word they could have just spelled it properly. Also there's no reason to mis-spell it in the comments.
Coincidentally I was looking at the same defines as well yesterday. (Was it the thread about air superiority vs interception?) I would not go as far as saying that the misspelling is often deliberate. More like a case of dyslexia and lack of code review.

Writing code is not like prose; developers will use copy&paste and autocomplete wherever they can, making typos in words a lesser concern. When writing a forum post, I sometimes press tab and get annoyed that the browser does not predict the word I was going to type :D

Those spelling errors should not be causing any errors. If you fix the spelling, the game will complain in the error log about the now missing define with the spelling from the code's perspective:
Code:
LUA Error: incorrect lua value: STR_BOMB_MIN_EXCORT_WINGS
@KubiG37 The value of the define will be left at 0, which can cause a crash further down the line with many defines, depending on how they are used.
 
  • 2
Reactions:

DukofDeth

Lt. General
37 Badges
Nov 20, 2015
1.300
1.052
  • Darkest Hour
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Hearts of Iron III Collection
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Hearts of Iron III: Their Finest Hour
  • Europa Universalis IV
  • Hearts of Iron III
  • For the Motherland
  • Arsenal of Democracy
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
Coincidentally I was looking at the same defines as well yesterday. (Was it the thread about air superiority vs interception?) I would not go as far as saying that the misspelling is often deliberate. More like a case of dyslexia and lack of code review.

Writing code is not like prose; developers will use copy&paste and autocomplete wherever they can, making typos in words a lesser concern. When writing a forum post, I sometimes press tab and get annoyed that the browser does not predict the word I was going to type :D

Those spelling errors should not be causing any errors. If you fix the spelling, the game will complain in the error log about the now missing define with the spelling from the code's perspective:
Code:
LUA Error: incorrect lua value: STR_BOMB_MIN_EXCORT_WINGS
@KubiG37 The value of the define will be left at 0, which can cause a crash further down the line with many defines, depending on how they are used.
I learned the lesson early on about the spelling not being so important as consistency. In HoI3 I noted a host of errors particularly with how they spelled "engineering" and thought to correct it only to get crashes and error codes - mostly crashes as then my pig was a toaster pig. I later thought it might have been deliberate as I tried pronouncing the mis-spelling and it only made sense when I did so with a Muppet Show "Swedish Chef" accent.

Thanks for the reply!
 
  • 2Haha
Reactions:

DukofDeth

Lt. General
37 Badges
Nov 20, 2015
1.300
1.052
  • Darkest Hour
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Hearts of Iron III Collection
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Hearts of Iron III: Their Finest Hour
  • Europa Universalis IV
  • Hearts of Iron III
  • For the Motherland
  • Arsenal of Democracy
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
Well, I played for a bit and then checked the error log and there were no mentions of any missing variables with "EXCORT" in it; in fact there were no instances of that particular spelling appearing anywhere in the log. Ergo I do believe it is a legitimate set of varibles.

Good thing I didn't embarrass myself by rushing to file a bug report!
 

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.791
6.894
Has anyone tried changing the spelling to escort to see what happens?
See above:
Those spelling errors should not be causing any errors. If you fix the spelling, the game will complain in the error log about the now missing define with the spelling from the code's perspective:
Code:
LUA Error: incorrect lua value: STR_BOMB_MIN_EXCORT_WINGS
 
  • 1Like
Reactions:

safe-keeper

• ← 2mm hole in reality
54 Badges
Sep 6, 2012
8.585
14.362
livetkanfly.com
  • Crusader Kings II
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris
  • Cities: Skylines - After Dark
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Art of War
  • Cities in Motion
  • For the Motherland
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Steel Division: Normand 44 Sign-up
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Steel Division: Normandy 44 -  Back to Hell
  • Cities: Skylines - Parklife
  • Shadowrun: Dragonfall
  • Cities: Skylines Industries
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: No Step Back
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
@bitmode WHat is your take on this? I realize mispellings are common and often deliberate but with only three variables using that word they could have just spelled it properly. Also there's no reason to mis-spell it in the comments.
Looks like a find-and-replace. They can have effects ranging from amusing to catastrophic.

Edit: from working as a tester on the First Strike mod for BF2142, I can confirm that devs often elect to simply leave typos in and work with them when they find them, rather than going back and fixing them as that would require, as was said in this thread, also updating everything that refers to them. 'Bork bork excort' works just fine because the game knows what it's saying, so to speak.

Like when a kid is learning to speak and it doesn't matter when they make mistakes because their parents understand what they really mean.
 
Last edited:

DukofDeth

Lt. General
37 Badges
Nov 20, 2015
1.300
1.052
  • Darkest Hour
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Hearts of Iron III Collection
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Hearts of Iron III: Their Finest Hour
  • Europa Universalis IV
  • Hearts of Iron III
  • For the Motherland
  • Arsenal of Democracy
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
I've already used Notepad++ to look for instances of "Excort" in the error log and nothing shows up so it is not a missing varible. Escort doesn't show up either so that also is not missing.

My best guess now is that they could not properly code this earlier in the game development especially as air units were practically teleporting to their targets but the fact is that they don't; they just could not be intercepted on route. Since escort missions often only went so far - the earlier fighters had shorter legs than the bombers - many escort missions would have been redundant in the face of there not having been any en-route interception.

However, that changes with BBA so those variables will no doubt start being used.
 

Cavalry

Field Marshal
8 Badges
Jul 24, 2001
5.302
1.357
Visit site
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: No Step Back
Escort happen on the air zone of bombing. But they choose to use a different mechanic (air visibility) so escort mission is no longer needed. but I don't know why escort parameter still in the game and looks like to have more in NSB.