"defence" or "defense" - only a spelling problem ?

  • 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.

SophieX

Major
May 9, 2014
558
505
In some game-files you find the british spelling ( defence ), in some other files you find the american spelling ( defense ).

In both cases it is the variable (of course) for "defendending-stats".



My question:

Do anyone know, whether the "game-engine" reflects on both spellings in an equal manor,

or if not:

which is the "correct" spelling in terms of the "game-engine" ?
 

homerCCCP

First Lieutenant
50 Badges
Mar 5, 2011
280
356
  • Cities: Skylines - Natural Disasters
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Supreme Ruler: Cold War
  • Cities: Skylines Deluxe Edition
  • Stellaris - Path to Destruction bundle
  • Arsenal of Democracy
  • Stellaris
  • Surviving Mars: Digital Deluxe Edition
  • Surviving Mars: First Colony Edition
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Lithoids
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines Industries
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Hearts of Iron IV: La Resistance
  • Stellaris: Synthetic Dawn
In some game-files you find the british spelling ( defence ), in some other files you find the american spelling ( defense ).

In both cases it is the variable (of course) for "defendending-stats".



My question:

Do anyone know, whether the "game-engine" reflects on both spellings in an equal manor,

or if not:

which is the "correct" spelling in terms of the "game-engine" ?
Dear SophieX,

My deep apologies, but you are wrong. Both words have an entirely different meaning and are used correctly. Let me explain it to you:

Defense De-fense de-fend The ability to fend off attacks.

Defence De-fence de-fence The ability to quickly unmount fences.

I hope this explanation could help a bit.
 
  • 11Haha
Reactions:

Spelaren

Captain
On Probation
Jun 12, 2019
463
486
Dear SophieX,

My deep apologies, but you are wrong. Both words have an entirely different meaning and are used correctly. Let me explain it to you:

Defense De-fense de-fend The ability to fend off attacks.

Defence De-fence de-fence The ability to quickly unmount fences.

I hope this explanation could help a bit.
That makes no sense at all. Why does a c for a s matter?
 
  • 1Like
Reactions:

homerCCCP

First Lieutenant
50 Badges
Mar 5, 2011
280
356
  • Cities: Skylines - Natural Disasters
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Supreme Ruler: Cold War
  • Cities: Skylines Deluxe Edition
  • Stellaris - Path to Destruction bundle
  • Arsenal of Democracy
  • Stellaris
  • Surviving Mars: Digital Deluxe Edition
  • Surviving Mars: First Colony Edition
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Lithoids
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines Industries
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Hearts of Iron IV: La Resistance
  • Stellaris: Synthetic Dawn
That makes no sense at all. Why does a c for a s matter?
A single letter can make a big difference sometimes, my dear Spelaren.

Let's take the word toll as an example: It's some kind of a fee that you have to pay for using some specific roads.

Now let's add an "r" at the second position. Just, one letter, shouldn't make a big difference, doesn't it?

My apologies if it's still not obvious enough. This video should help:
[/URL]
 
  • 5Haha
Reactions:

SophieX

Major
May 9, 2014
558
505
Defense De-fense de-fend The ability to fend off attacks.

OK

Defence De-fence de-fence The ability to quickly unmount fences.

Some gamefiles shows a different meaning:
in:.....\common\units\infantry.txt you find this ( and in other files as well )

mountaineers = {
sprite = infantry
......
hills = {
attack = 0.2
defence = 0.05
movement = 0.1
}
mountain = {
attack = 0.35
defence = 0.1
movement = 0.2
}


In my understanding this means : The ability to fend off attacks ( in this eyample in hill/mountain terrain )
 

jpd

Entil'Zha Anla'Shok
Moderator
41 Badges
Apr 19, 2001
8.030
1.757
  • Europa Universalis IV
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Battle for Bosporus
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron II: Beta
  • Arsenal of Democracy
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
A single letter can make a big difference sometimes, my dear Spelaren.

Let's take the word toll as an example: It's some kind of a fee that you have to pay for using some specific roads.

Now let's add an "r" at the second position. Just, one letter, shouldn't make a big difference, doesn't it?

My apologies if it's still not obvious enough. This video should help:
[/URL]
You might want to fight this one out with professional writers.


 
  • 4Like
Reactions:

CraniumMuppet

Content Designer @ HoI4
Paradox Staff
Apr 25, 2019
1.037
5.292
It is probably as simple as whoever the programmer who implemented the modifier internally picked to either spell it as defence or defense. However their preferred spelling is (UK or US English).

You cannot pick which spelling you prefer when modding the game for example
 
  • 3
  • 1
Reactions:

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.791
6.894
My question:

Do anyone know, whether the "game-engine" reflects on both spellings in an equal manor,

or if not:

which is the "correct" spelling in terms of the "game-engine" ?
The game engine has a list of several thousand recognized words, also called tokens. It recognizes both "defence" (TOKEN_DEFENCE, 0x2c67) and "defense" (TOKEN_DEFENSE, 0x2a54). So from the engine's perspective, these two spellings have entirely different meanings and are not interchangable. The surrounding entity will generally expect certain tokens and throw an error if it sees different ones. Even if they look interchangeable to a human reader.

The mountaineers example you quoted is a CUnitAdjuster which happens to expect token TOKEN_DEFENCE but a different entity might expect TOKEN_DEFENSE so there is not one "true" way across the entire engine.
 
Last edited:
  • 6
Reactions:

SophieX

Major
May 9, 2014
558
505
The game engine has a list of several thousand recognized words, also called tokens. It recognizes both "defence" (TOKEN_DEFENCE, 0x2c67) and "defense" (TOKEN_DEFENSE, 0x2a54). So from the engine's perspective, these two spellings have entirely different meanings and are not interchangable. The surrounding entity will generally expect certain tokens and throw an error if it sees different ones. Even if they look interchangeable to a human reader.

The mountaineers example you quoted is a CUnitAdjuster which happens to expect token TOKEN_DEFENCE but a different entity might expect TOKEN_DEFENSE so there is not one "true" way across the entire engine.

Thank you very much for this helpful answer. :)

As feared I have to run more trials and quality-checks with my mods.... :rolleyes:
 

Louella

Field Marshal
70 Badges
Jul 18, 2015
3.155
3.006
33
  • Stellaris: Leviathans Story Pack
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV: Cradle of Civilization
  • VtM - Bloodlines 2 Blood Moon Edition
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Battle for Bosporus
  • Imperator: Rome - Magna Graecia
  • Europa Universalis IV
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: El Dorado
  • Stellaris: Federations
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Charlemagne
my favourite is one of the defines that affects AI air strategy, that uses "interseptors", which isn't a word in either UK or US English.
 
  • 1Like
Reactions: