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

unmerged(12730)

Sprite Archiver
Dec 14, 2002
2.298
1
www.stonyroad.de
I did rework the polish ai a little.
It is now changing according to the progress the germans make in poland.
I'll try to explain to you how it is supposed to work via pictures.

Take the first picture: On the outbreak of war the polish ai tries to man the borders to germany, but put a high priority to the protection of the four provinces that are linked by the green line, let's call it priority-front.
Now, this border is easily manned in 1939 with 60+ divisions in the standard scenario. I also reworked the polish industry a bit by an event that installs an administrative genius. Further i wrote some new technologies that enhance IC-output. So Poland starts with 80 divisions into war. (Not shown on pic, it's 1936 :) )

If Germany takes Ponan, the troops have to retreat, have to close the gap at lodz. The occupation of Ponan now triggers an event that switches poland's ai to one that now puts province priority on the dotted line.

polish_ai_1.jpg



The second picture shows the same procedure for Bydgosecz.
Put it shows more: If that new front breaks(if one of the blue provinces is taken), polish forces will gather in Lublin-Warszaw(purple line).
If Lublin is taken(yellow dot), they will entrench altogether(all troops remaining and not cut off) in Warszaw(black dot of death).
I rewrote the countries starting file, and lublin has a level2 fortress, warszaw level4.

polish_ai_3.jpg




This could be done for any country and if properly worked out could really make it harder for a human player
 
Last edited:

McNaughton

Wallet Inspector
6 Badges
Feb 2, 2003
2.283
0
Visit site
  • Europa Universalis III
  • Hearts of Iron III
  • 500k Club
  • Hearts of Iron II: Beta
  • Pride of Nations
  • Hearts of Iron IV Sign-up
That is really cool. One thing to really test this AI mod is to try and break it. Do every cheap move you can to break the AI, for example, mass a lot of troops in East Prussia and strike down into Warsaw, and see how the AI behaves. Since most people actually defeat the AI by not playing on its terms, our best bet to make it challenging is to try and anticipate cheap moves by the human player and add contingent counters to all possible moves.

This looks really promising, and with enough dedication I think that all of the Major Nations can have significantly improved AI files that can react to even majorly unhistoric moves by the Human player.

Great work!
 

KaiMaster

Corporal
121 Badges
Dec 11, 2002
35
0
  • 500k Club
  • King Arthur II
  • The Kings Crusade
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • Europa Universalis III Complete
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris: Necroids
  • Europa Universalis III: Chronicles
  • Crusader Kings II
  • 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
  • Deus Vult
  • Diplomacy
  • Europa Universalis III
  • Cities in Motion 2
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • 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
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
First off I love the options that exist for upgrading the AI... and this looks like an awesome start.

But what happens when the Germans fail and open up their own lines... is there an AI file that you can swap to that says "aggressive mode" and it starts to push the germans back? The ability to reclaim the ancient Polish homeland of Berlin? hahaha

If the German player does in fact attack too early and gets spanked, Poland should bloody their nose.

Or would the AI just reinforce all borders and hold the line?

+++++
Ok ok that's probably unlikely. But here is a serious one for ya...
+++++

How about when the German has a huge # of tanks in Konigsburg...

One thing the human can do is convoy into Konigsburg and put 20+ divisions there, and charge between the rivers and gut Poland and their "strong" front line, rounding the river and hitting Warsaw and its 3 defending divisions with Rommel and 9 panzer divisions. The other infantry there can follow Rommel, hold the supply line, and mop up the other small lightly/non defended Polish provinces.

The current 1.03 AI for Poland collapses doing this on very hard/aggressive. I'll build up some on the line to get their attention and keep them occupied.

Poland takes a little longer to fall as the troops on the front are more skirmishing with Poland until Warsaw falls, but then the coup de grace and the line collapses and Germans pour in from all directions.

Would your troops hold the line and stand proud as their capital gets ransacked? :D

Or what if the Soviet human player attacks before Germany even contemplates the idea? More AIs should have ways of dealing with things and eventualities (the more historical the better) like this. Even if it makes their AI files long heh
 

Generalisimo

Field Marshal
112 Badges
Jul 22, 2002
11.213
3
www.ageod-forum.com
  • Crusader Kings III
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Europa Universalis 4: Emperor
  • Stellaris: Federations
  • Imperator: Rome Deluxe Edition
  • Age of Wonders: Planetfall Premium edition
  • Cities in Motion
  • Age of Wonders: Planetfall
  • Crusader Kings II
  • Hearts of Iron IV: Colonel
  • 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
  • Commander: Conquest of the Americas
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Pre-order
  • Imperator: Rome
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • King Arthur II
  • The Kings Crusade
  • Magicka
  • Majesty 2
  • Pride of Nations
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Supreme Ruler: Cold War
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 200k Club
some questions:
what happens i fthe germans took SUWALKI?
and if they take TORUN?
the polish army quickly goes to Warsaw? :confused:
that will be an easy exploit, just concentrate some panzer in KONIGSBERG and that's all, you end with Poland in just 1 week...

don't take it wrong... but i have seen some of your screenshots that you shown your "hands of game"... i do consider them important, but to have a good test, you must know what the AI does against a human player.... ;)
 

unmerged(4982)

Private
Jul 20, 2001
12
0
Visit site
Reply to Kaimaster,

"But what happens when the Germans fail and open up their own lines... is there an AI file that you can swap to that says "aggressive mode" and it starts to push the germans back?"

It should, because it did happen historically.
1. IX 1939 the german basically attacked Poland from the north and south. (from Prussia and Czech). They did NOT attack direct using the shortest way thru Poznañ, because there stayed the strongest polish army 'Poznań' (10 polish div)
The Poles defended whole border (we were foolishly counting on our allies...). But,

The biggest battle in September Campaign 1939 - began on the Bzura River (halfway Poznan - Warsaw). It started in 10th Sept (i'm exact not sure) - when gen. Kutrzeba (the one 'offensive' general) spot that german flank is weak and there possibility to attack and cut off german panzer armies attacking Warsaw. It was his reckoning and his decision becaue he was cut off from HQ.
The polish troops were fresh (they did not fight - they only retreated from their homes) + some troops from north (army 'Pomorze' - polish corridor)

It was bold and succesive move. In first few days couple of german div were destroyed. Many panzer div were threatend to cut off.
So german retreated from Warsaw and all german reiforcements were directed to Bzura.
Thanks to that battle campaing lasted 5 weeks, not 2 weeks as originally planned by Hitler. (1940 french campaing went as planned)

By the way, Poland defended itself for 5 weeks against combined Germany and Russia (since 17.IX).
France + UK + Belgium + Holland defended themselfs for also 5 weeks with much better strategic position.

uff, just, few historical facts.
 

Halibutt

Marshal of Poland
5 Badges
Sep 8, 2001
3.396
0
www.halibutt.pl
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Semper Fi
  • 500k Club
  • Hearts of Iron IV Sign-up
Originally posted by N!ghtY
(...)If Lublin is taken(yellow dot), they will entrench altogether(all troops remaining and not cut off) in Warszaw(black dot of death). I rewrote the countries starting file, and lublin has a level2 fortress, warszaw level4.
(...)
N!ghtY beware! The famous polish disease has arrived! :D

I have two cents to add: you can make this ai both chalenging and historical. The historical plan of polish HQ was to retreat to "Romanian bridgehead" and hold this area (Lwow in HoI) as long as possible, after it was certain that Vistula line cannot be held. Maybe it would be a good idea to simulate this? Especially when in most of my games Warsaw (Warszawa) is taken before Lublin falls.

Another thing is the fortifications. The most heavily fortified areas in 1939 were Pommerania Corridor (Danzig), Silesia (Cieszyn) and Modlin Stronghold (Warszawa/ Ostroleka). There were some fortifications on the border with East Prussia as well (Torun), but relatively weak. For unknown reasons Paradox refuses to implement them into HoI, but they were there and they did put up a strong resistance (Danzig province and Warszawa / Ostroleka region fought until the very end). Implementing them into your mod might be a good idea. OTOH fortifications in the Lublin area are totally ahistorical.
Cheers
 
Last edited:
Feb 13, 2003
120
0
Visit site
I agree with Halibut that Poland was fortified in real life, particularly in Warsaw and Danzig. I remember reading that the Germans brought in old dreadnaughts to bombard Danzig to help their troops get in.

Petep, I read that the Germans intentionally attacked around Poznan to cut it off from defending Warsaw because the Poles put the bulk of their forces on Poznan anticipating the German attack. It was based on Hannibal's strategy at Cannae. I didn't know that the Poles from Poznan caused the Germans so much grief when they attacked the Germans from behind. Thanks for the info. The story I read said the Germans had a really tough time breaking Warsaw and had to rail in some heavy artillery to help in the affair. All this with Russia back-stabbing the poor Poles! A very valiant struggle.

Nighty, I think the human is not so likely to hit Poznan first and would either attack around it like the Germans did or, of course, do the nasty Konigsberg attack.

By the way, thumbs up on this Ai-programming thing you're doing. Any chance on doing it for other nations? It must be a lot of hard work. :D
 

Halibutt

Marshal of Poland
5 Badges
Sep 8, 2001
3.396
0
www.halibutt.pl
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Semper Fi
  • 500k Club
  • Hearts of Iron IV Sign-up
Originally posted by RodentDung
I agree with Halibutt that Poland was fortified in real life, particularly in Warsaw and Danzig. I remember reading that the Germans brought in old dreadnaughts to bombard Danzig to help their troops get in.(...)
You probably meanWesterplatte defence. Nice map of it can be found here. But it was not the only fortification we had in the Corridor. The main bulk of polish fortifications laid more westwards, on polish territory. Good english language info on it can be found on the Polish Navy Homepage and on the WWII page.

I couldn't find english info on the fortifications in other regions so I'll simply post the maps here.
Lodz area
all polish field fortifications according to PSZ (official polish info on WWII)
Silesia (province of Cieszyn
Cheers
 
Last edited:

Halibutt

Marshal of Poland
5 Badges
Sep 8, 2001
3.396
0
www.halibutt.pl
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Semper Fi
  • 500k Club
  • Hearts of Iron IV Sign-up
Originally posted by Aetius
How about the peace time AI? What kind of priorities should it have?
We can try to plan it if the polish tech-tree is made at least a little more historical. The way it is now, it makes no sense to invest in anything more than artillery and doctrines. There's no chance to get the historical polish WWII equipment in HoI 1936 scenario.
Cheers
 

unmerged(13766)

Second Lieutenant
Jan 14, 2003
133
0
Visit site
N!ghtY

Since this original idea is now a couple of months old, I was just wondering if you had any success with this, or if you decided it didn't work?

I was also wondering, how does it work if (heaven forbid) the USSR, or someone else besides Germany attacks?
 

unmerged(13037)

Captain
Dec 22, 2002
304
0
Visit site
If historical...

If you play historical - and the ai has been set to defend according to historical priorities - might make the game more interesting.

When I say play historical, most players impose a certain degree of restrictions upon themsevles. For example as Germany completing a balanced range or research, rather than just doing tanks and infantry - and not shipping thousands of tanks to Canada in 1940 just because the game allows for it...

I think this could be quite promising - imagine something similar for the UK - would make Sealion a lot harder to pull off.

Might also be some scope of improving Russian ai - it would be great if the Soviets tried to encircle German units, since this was the Soviet strategy.
 

KaiMaster

Corporal
121 Badges
Dec 11, 2002
35
0
  • 500k Club
  • King Arthur II
  • The Kings Crusade
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • Europa Universalis III Complete
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris: Necroids
  • Europa Universalis III: Chronicles
  • Crusader Kings II
  • 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
  • Deus Vult
  • Diplomacy
  • Europa Universalis III
  • Cities in Motion 2
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • 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
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
I agree the scripting could be pretty nasty... but Poland is *the* perfect example to use. Not too big like Germany or the UK (oh man the coding for one of those two would be terrible) but not too small either. Poland could reasonably grow a little and become more of a power in the world. If a few things were different (as can happen in HOI) the whole outlook could change.

The AI should be broken into 4 parts assuming we can swap AI files:

1) peace-time
Until the techs match historically (or the Allies give the Polish suitable techs) they have to research all arty and maybe infantry techs. Building infrastructure is a no-no for the most part ;)

2) defensive war
I consider this the period where Poland has under like 30 territories. You can make the German player (or USSR) player have one helluva difficult time with taking Poland. In history it took around 5 weeks, there is no law that states it can't take longer ;) And possibly give the Allies time to join early changing history as well. N!ghty's description of the AI is just the first part, the AI would need additional scripting to handle alternative attack routes etc. And more USSR options. What if the USSR invades first...

3) peace after a period of war
This should have some tech development with arty, but also build as much as possible with available manpower and rebuild fronts.

4) offensive war
Let's assume the USSR joins the allies or something and Poland is still alive. With Germany taking a beating in France, there is nothing that says the Polish AI has to just sit there... it could switch AI files to "offensive" and start to take back the opponent. This AI is optional though, for the short term you could just have a purely defensive Poland and that would be OK.