WWW, Germany should claim Sudetenland regardless of owner.

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

FOARP

Field Marshal
49 Badges
Sep 10, 2008
6.137
4.022
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sword of the Stars
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Naval War: Arctic Circle
  • Magicka
  • Heir to the Throne
  • Hearts of Iron III
  • Gettysburg
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Arsenal of Democracy
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normandy 44 -  Back to Hell
  • Steel Division: Normand 44 - Second Wave
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • 500k Club
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
Thanks! I'm still not sure I understand, though.

There are n provinces in the Sudetenland state, for a maximum of n owners. The code needs to check the owner of each province once, collect a list of tags without duplications (equivalently, merge province IDs by common tag) and voila: the list of tags to get a claim on, with appropriate provinces to each claim. And so: what you are telling me, presumably, is that such a series of operations is not possible in the scripting language? o_O

I should have made clear at the outset: I don't know the syntax of the HOI scripting language, so it's actually a completely sincere question on my part. Thanks for any answers. :)

Of course, even if I get the appropriate claims today in the way described above and a province changes hands tomorrow, before I act on the claim, I've screwed the Sudetenland pooch... :( (I'd love a frowning emoticon with a tiny mustache for that sentence, but I guess it'd be illegal in Germany :oops:.)

All I can say is that the scripting of any HOI game released so far wouldn't be able to handle this. It would require a specific country to be the target. Even with looser scripting, there would only be one country as target. Even with even looser scripting, the event would only fire once.

The problem is with the entire concept of modelling this via statically-scripted events in the first place.
 
  • 1
Reactions:

Mandraug

Sergeant
19 Badges
Nov 23, 2009
57
98
  • Crusader Kings II: Charlemagne
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Heir to the Throne
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
I see, thanks!

That's a bit disappointing, since it's an embarrassingly simple problem to code in a number of languages, but to me it's still quite awesome that Paradox gives us the ability to script anything in their games and from the little I've seen it can still be used to really cool effect.
 

Otto of england

Never Forget Java
81 Badges
Dec 25, 2011
3.100
396
  • Crusader Kings II: Legacy of Rome
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Third Rome
  • Cities: Skylines - After Dark
  • Steel Division: Normand 44 - Second Wave
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • For the Motherland
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis III Complete
  • Stellaris
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Steel Division: Normandy 44
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Natural Disasters
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV Sign-up
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Europa Universalis III Complete
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis III Complete
  • 500k Club
  • Europa Universalis IV
You can target whoever owns the state really easy if Paradox added the right commands (which is easy enough from their perspective)

ex. (This is just to target the country who owns the Sudetenland, I don't feel like writing an entire event for a point)

any_country = {
limit = {
any_owned_state = {
limit = {
state_id = sudentenland
}
}
}

Any events that branch off of this can use from/this/root/prev which makes it easier.

Also I should note the only command that used that does not exist in Hoi3 is any_state and that's because states didn't exist in Hoi3. However similar commands existed for provinces, such as any_owned and I believe EUIV just out right has any_owned_province.
 
  • 2
  • 1
Reactions:

Asdfreak

Second Lieutenant
77 Badges
Nov 13, 2011
150
332
  • Crusader Kings II
  • Hearts of Iron IV: Field Marshal
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • For the Motherland
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Rule Britannia
  • 500k Club
  • Cities: Skylines - Parklife
  • Stellaris: Necroids
  • Victoria 2
  • Teleglitch: Die More Edition
I think Germany should press the claim regardless. The only reason they didn't claim south tirol from italy was that Hitler and Mussolini were Dictator buddies, both facist and more or less equal partners. Also Italians were not really categorized as subhumans, unlike every other force in the area except maybe Hungary and Romania(all others were slavs in some way). And you can be sure as hell that the german leadership would NOT have accepted the territory in Hungaries or Romanias hands. The problem with post WW1 borders was that they were largely drawn based on historical borders centuries old and not quite up to the task (Save for the polish territories excluded from germany by popular vote of the inhabitants).
The borders of Czecheslovakia were those of historical Bohemia-Moravia, even though the language border had since shifted in the centuries before, so quite some Germans who had lived there for generations (or Germanized Czechs who had lived there even longer but considered themselves German since generations) suddenly found themselves inside foreign borders. This was a problem that the victors of WW1 were aware of, of course, but they did it anyways to spite germany, the loser, and to strengthen their new allies.

Just think how much sorrow and misery could have been avoided had someone just redrawn the maps based on Cultural belonging instead of stupid historical claims long overtaken by reality. Don't get me wrong, Germany would have started something anyways sooner or later, Germanys real problem was the high number of desilusioned, desperate veterans, highly armed and ready to use violence, and the explosive nature of the society at the time. Just read up on the "lost generation" to know why killing Hitler won't necissarily prevent it all, heck you could have made it worse because competent, not insane people could have tryed what he tryed. But such redrawing would have robbed Hitler of a lot of Momentum and support, and after WW2 would have prevented the massive displacement of Polish people by the SU into the now polish regions where they displaced the germans, had they kept those borders. One can dream. Anyways.

So the reason that Germany claims those regions is to get popular support from the populace as the protector of all germans. Unlike south tirol, Austria and the Sudetenland and Danzig (70% German at the time and annexed by Poland even though it was supposed to be independant) could not be ignored because they were too large, too populus and in the hands of the ENEMY. I can not come up with any scenario in which Germany would accept these Territories in anybodies hands but their own. If Italy takes it, the area will become too large and too historically unjustifiable to let them keep it. If anybody else in Europe takes it, Germany WILL demand it as well. If Austria takes it, they will be Anschlussed anyways.

I don't want to get too deep into the inner political imperatives that mandates them to take it, Lost Generation, Nationalism and the Unification of all German peoples, Protector of Germans yadda yadda.

So yes, Germany should allways try to take it and start hating you for having it if you are not austria
 
  • 1
Reactions:

Mandraug

Sergeant
19 Badges
Nov 23, 2009
57
98
  • Crusader Kings II: Charlemagne
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Heir to the Throne
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
You can target whoever owns the state really easy if Paradox added the right commands (which is easy enough from their perspective)

ex. (This is just to target the country who owns the Sudetenland, I don't feel like writing an entire event for a point)

any_country = {
limit = {
any_owned_state = {
limit = {
state_id = sudentenland
}
}
}

Any events that branch off of this can use from/this/root/prev which makes it easier.

Also I should note the only command that used that does not exist in Hoi3 is any_state and that's because states didn't exist in Hoi3. However similar commands existed for provinces, such as any_owned and I believe EUIV just out right has any_owned_province.

Thanks, Otto! I would have found it strange if such a thing were not possible in some way. Even if any_state does not exist in HOI4, one could presumably write out any_owned_province for all the n Sudetenland provinces. So long as you can merge claims well for equal values of the tag, you'll create the right number of events (k events, where k is the number of countries that own any Sudetenland provinces, rather than n events, where n is the number of such provinces, which would be annoying)... unless your pseudocode already does that.
 

scroggin

Lt. General
20 Badges
Jul 13, 2010
1.685
717
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Victoria: Revolutions
  • Semper Fi
  • Europa Universalis IV
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • 500k Club
  • Victoria 2
I think Germany should press the claim regardless. The only reason they didn't claim south tirol from italy was that Hitler and Mussolini were Dictator buddies, both facist and more or less equal partners. Also Italians were not really categorized as subhumans, unlike every other force in the area except maybe Hungary and Romania(all others were slavs in some way). And you can be sure as hell that the german leadership would NOT have accepted the territory in Hungaries or Romanias hands. The problem with post WW1 borders was that they were largely drawn based on historical borders centuries old and not quite up to the task (Save for the polish territories excluded from germany by popular vote of the inhabitants).
The borders of Czecheslovakia were those of historical Bohemia-Moravia, even though the language border had since shifted in the centuries before, so quite some Germans who had lived there for generations (or Germanized Czechs who had lived there even longer but considered themselves German since generations) suddenly found themselves inside foreign borders. This was a problem that the victors of WW1 were aware of, of course, but they did it anyways to spite germany, the loser, and to strengthen their new allies.

Just think how much sorrow and misery could have been avoided had someone just redrawn the maps based on Cultural belonging instead of stupid historical claims long overtaken by reality. Don't get me wrong, Germany would have started something anyways sooner or later, Germanys real problem was the high number of desilusioned, desperate veterans, highly armed and ready to use violence, and the explosive nature of the society at the time. Just read up on the "lost generation" to know why killing Hitler won't necissarily prevent it all, heck you could have made it worse because competent, not insane people could have tryed what he tryed. But such redrawing would have robbed Hitler of a lot of Momentum and support, and after WW2 would have prevented the massive displacement of Polish people by the SU into the now polish regions where they displaced the germans, had they kept those borders. One can dream. Anyways.

So the reason that Germany claims those regions is to get popular support from the populace as the protector of all germans. Unlike south tirol, Austria and the Sudetenland and Danzig (70% German at the time and annexed by Poland even though it was supposed to be independant) could not be ignored because they were too large, too populus and in the hands of the ENEMY. I can not come up with any scenario in which Germany would accept these Territories in anybodies hands but their own. If Italy takes it, the area will become too large and too historically unjustifiable to let them keep it. If anybody else in Europe takes it, Germany WILL demand it as well. If Austria takes it, they will be Anschlussed anyways.

I don't want to get too deep into the inner political imperatives that mandates them to take it, Lost Generation, Nationalism and the Unification of all German peoples, Protector of Germans yadda yadda.

So yes, Germany should allways try to take it and start hating you for having it if you are not austria
I agree with you. It's unlikely that an evil man like hitler could have gained such strong initial support from the German people if there wasn't some justification for some of his early actions. A mixture of justifiable and unjustifiable actions is far more likely to be supported than purely unjustifiable actions. The secret to the sucess of hitlers early propaganda was that the people sympathised with the belief that Germany had been poorly treated under the treaty of Versailles.
 

sonicpwr

Private
35 Badges
May 17, 2013
15
31
  • Crusader Kings II: Sons of Abraham
  • Victoria 2: A House Divided
  • Teleglitch: Die More Edition
  • Supreme Ruler: Cold War
  • Supreme Ruler 2020
  • Ship Simulator Extremes
  • Sengoku
  • Semper Fi
  • Magicka
  • Impire
  • Crusader Kings II
  • Knights of Pen and Paper +1 Edition
  • Darkest Hour
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Cities: Skylines
  • War of the Roses
  • Victoria 2
  • Victoria 2: Heart of Darkness
I think it should check the owners of the provinces and send an ultimatum to the country unless it is Czechoslovakia, where the UK would instead get to decide. And the same with other events like Danzig or war and Anchluss. The more flexible the scripts are the better.

I understand this probably wont happen for the initial release but it would be a much appreciated addition in some sort of "Ahistorical" DLC.
 
  • 1
  • 1
Reactions:

Otto of england

Never Forget Java
81 Badges
Dec 25, 2011
3.100
396
  • Crusader Kings II: Legacy of Rome
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Third Rome
  • Cities: Skylines - After Dark
  • Steel Division: Normand 44 - Second Wave
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • For the Motherland
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis III Complete
  • Stellaris
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Steel Division: Normandy 44
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Natural Disasters
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV Sign-up
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Europa Universalis III Complete
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis III Complete
  • 500k Club
  • Europa Universalis IV
Thanks, Otto! I would have found it strange if such a thing were not possible in some way. Even if any_state does not exist in HOI4, one could presumably write out any_owned_province for all the n Sudetenland provinces. So long as you can merge claims well for equal values of the tag, you'll create the right number of events (k events, where k is the number of countries that own any Sudetenland provinces, rather than n events, where n is the number of such provinces, which would be annoying)... unless your pseudocode already does that.

Yes you can do that and it works as well, though it is a longer code. Also the way I understand that Hoi4 works is that only a single country can own a state, though multiple can occupy it. That being said I'm not sure how you would handle the case of someone occupying part of the Sudetenland, I suppose you could just ignore that and have it fire only for the owner, but it would have weird consequences (namely sudden exile of invaders soldiers).

Also the snippet of code I posted only checks for a country that owns the Sudetenland. Any subsequent event firing would have to be added in other parts of the code (I didn't feel like writing that out since that wasn't contested)
 

potski

Field Marshal
17 Badges
Mar 15, 2006
3.885
3.044
  • Steel Division: Normandy 44
  • Crusader Kings III
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Mass Transit
  • Hearts of Iron III
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Cities: Skylines - After Dark
  • Cities: Skylines
  • 500k Club
@Otto of england is correct and the earlier posts that the scripting can't handle it wrong. podcat confirmed there are new triggers which allow use of dynamic tags. The fixed tag events of HOI3, which relied on heavily railroaded scenarios, have gone.

Having said that, the scripters starting points will have been the HOI3 events. They just need to adapt these to be more flexible, and put an option in the Sudetenland event which triggers a new series of events to cover the situation if CZE is not the controller of the Sudetenland states, and target the new controller.

By the sound of WWW that would be to add German cores on the states, and then let the AI deal with their claim as it sees fit, rather than railroading into a Munich Agreement affecting Hungary. If Germany has cores then the AI would presumably consider relative strengths in deciding to press it's claim. Hungary is a major power now, so a scripted event which forces it to kow-tow to Germany and hand over Sudetenland would be inappropriate. Germany would have had to fight for it, but Daniel has now joined the Axis, and that's Germany's claim pretty much over.

This use of dynamic tags is going to be a joy for modders.

Also the way I understand that Hoi4 works is that only a single country can own a state, though multiple can occupy it. That being said I'm not sure how you would handle the case of someone occupying part of the Sudetenland,
Only a single country can own or control a state. Some individual provinces can be occupied by someone else during a war, but only one occupies enough to control the state. Otherwise how would the game handle the factories and airbases, AA and synthetic refineries?

So that aspect of the scripting is simple in determining the owners or controllers of the states. No need to consider province occupation.