Summary:

Landunits move with a more realistic speed

Movement speed is now affected by terrain, weather, infrastructure and season.

Strategic redeployment got a review

There are now diminishing returns that limit the usefullnes of going over optimal forceratios

Armored and Mobile units in general are now real forcemultiplier

Attack and defense ability of each unittype depends now more on terrain and weather

review of damage development between models

greater differentiation between air units

casualty rates now depend on doctrines and are nolonger an indication of combateffectiveness

complete rework of Landdoctrines

performance tweaks

more and easier modding

Movementspeed - how everything begun

Generic movement modifiers for terrain are gone.

Each unittype has it’s own individual terrain modifier that are based mostly on the factors used by different military simulation systems.

Let’s start with some problems of the classic combatengine:

Defensiveness / Toughness have hardly a practical effect

It is always beneficial to use bigger unitstacks

The increase in org and moral in combination with increasing attack values causes manpower losses to skyrocket in later years and leads to problems with the new mobilization system.

Difference in doctrines are not very good representable, and relies on stacking more org and morale on each other.

Diminishing returns

praxis

OLD:



You are fighting, you take damage.When you're overhelmed, you take more damage. Suddenly out of the blue you take even more damage.



- 3 random chances a hit can miss. (which makes denfense/toughness a lmost pointless unitstat)

- 2 in it's effect identical modifier that determine a units combatpower in offense/defense One generic, one terrain specific.



NEW:



You are fighting, you take damange. When you're overhelmed you take more damage, but at some point when the hostile superiority in numbers gets so high that not all can shoot at you, the additional damage starts to drop and gets neglectable.



- 2 random chances a hit can miss

- 1 modifer that determines terrainspecific combat abilities

- 1 modifier that emulates diminishing returns and also determines the ability of a unit to fight outnumbered Click to expand...

Modifier all around

Overall Firepower changes and attackvalues

Air combat tweaks

Dispersion

Doctrines

Nothing new but good to know.

Minor changes to modifier with big impact for casual modding.

old:



misc.txt

# Upgrade cost

0.6

# Upgrade time

0.8

unitfile:

upgrade_time_factor = 0.75

upgrade_cost_factor = 1.25



new:



misc.txt

# Upgrade cost

1

# Upgrade time

1

unitfile:

upgrade_time_factor = 0.6

upgrade_cost_factor = 0.75 Click to expand...

There have been a bunch of hints over the last weeks what we are working on. I for one part finished with the basic implementation of one of my pet projects earlier this week, that went a bit farther then initially expected.It's just one aspect of the 1.3 patch, it still needs a lot of love and finetuning, and there are lot of other things we work on that are not ready for presentation but I thought it would be nice to give you guys a nice feeling that things are moving along in the background.The 1.3 patch is still a few months away, even when everything wents as expected, good things take time.Earlier this year I started to investigate reports about the on map unitspeed. Most people agreed that movement was to slow.There was never any doubt that the reports were right.We maintained for the most part the vanilla units maxspeed, but the new distance calculation changed the distances all around the world quite radically.So I grabbed some old German and US field manuals to get an idea what was a to expected movement speed in good terrain.Test showed that movement speed in Europe for Infantry wasn’t actually that far off, 20% more speed and we would have good values.More critical was the representation of motorized and mechanized units. In the old model of HOI2 games fuel consuming units move traditionally about 2 times as fast as a normal Infantry unit.The reality was different, motorized units over a 24h period moved faster and longer then a classical formation, so a realistic factor is closer to 5-6 times higher.While this is a major change in itself, it was only the start of what became a major project.When I started tweaking unitspeed I pretty early ran against a wall, I simply couldn’t get Division to move with the right speed. After some further checking I figured out that there are a whole bunch of modifiers to unit movement speed spread over various files.Terrain types.csv change changes the speed of all units in a specific terrain, modifier.csv changes a specific units speed under specific terrain/weather conditions. In the misc.txt are a bunch modifiers that affect speed of units in certain situations.So long story short, there are a huge amount of different modifiers that were in my opinion never really balanced against each other.So I set out to do just that, clean up all modifiers that affect movement speed and achieve a more realistic endresult.That’s not really something new, a lot of mods have done it, but it’s a cleanup and improvement that was still missing for DH and make different terrain even more critical.Something I haven’t seen so far in any mod is, that I placed a stronger emphasize on the day/night cycle. All units slow down during the night. Infantry almost completely, while mobile forces maintain a greatly reduced speed.This gets especially interesting in combination with the moddable daylength modifiers in the misc.txt.It is possible to define different daylight period for different seasons.This means a Division now moves faster in summer, then it does in winter.Strategic redeployment times were also reviewed and should be closer to historical redeploy times.The modifier are based on a number of military scientific works from the 60s-90s that are publicly available and published under the Open Archive Initiative by The Defense Technical Information Center.For those of you familiar with Dupuy’s QJM, the values shouldn’t be a big suprise.I soon suspected that such “modifier madness” was not limited to unit movement and started to dig into the misc.txt to find more things that could be streamlined.During my research to implement those changes, and track down the causes for weird results, I realized two things.For one the game engine is full of moddable values that are to a certain degree redundant, to a high degree not understood, and not properly utilized.Those “redundant” values should actually offer a much higher flexibility then anyone was aware of.My initial idea was to read up on a few old threads about the combat engine, to get an idea what should be changed, and implement what was possible with those redundant values.But it became pretty obvious that those discussions where only of very limited value, because noone really knew how the engine works.And also because they were polluted by “opinion”-posts that describe in great detail how combat should be in reality and ingame, but sadly were purely fiction.I took two steps back and started to work my way through a wide spectrum of military scientific publications to get an idea how combat actually plays out in reality. What factors are important, to what numbers boil they down, and is there a way that can be used to account for them.After some weeks I actually had some good numbers to work with, and started some ingame tests to see if my math worked out… well it didn’t really fit. *g*Working my way through the code to find my mistake, I realized that some of the assumptions on how the engine works were wrong, but also that there was a chance to repurpose existing variables and mechanics to achieve a far more realistic combat engine.The first two actually belong together, and my theory atm is that it is not a design flaw in the engine but some mixup when the final hardcoded values were put into the engine.The defense values Defensiveness-Toughness are used to determine the chance a hit has to occur.Currently there is a 20% chance of a hit, as long as a units “defense” is not overwhelmed, when no defense is left, the chance of a hit increases by 20%. -> the damage doubles.Which means in game that a unit suddenly takes more damage when it is fighting more enemy units, much more then the increase in hostile firepower justifies.In reality the effect is for the most part opposite. There are enough discussions about diminishing returns in the forums, so I'll just skip going into detail here.The point is that it can be emulated, with the existing mechanic of Hit chances and defense values.We set the defense value of a unit to be ~3.5x of a units attackvalue.And now comes the interesting part, we switch the the chance a hit has to occur.And suddenly we achieve results in gamethat are close to the diminishing return formulas.What does this mean in game terms?1. The most efficient force ratio to overwhelm an enemy is 3:5:1 afterwards the benefit of new units greatly drops.A battle 1:1 lasts 6 daysA battle 3:1 lasts 2 daysA battle 10:1 lasts 1 day 16 hours2. It is a great tool to simulate,the value certain unit types have as force multiplier. Tank divisions, not only have higher attack values, but also lower “defense” values.I know this is the point where it gets counterintuitive, but in the new system lower defense means that a unit is better at fighting outnumbered, because the point at which the unit takes less damage is achieved earlier.3. This "simple" change also generates two additional effects.In combat with an unequal force ratio in favor of the attacker, an attacker takes higher losses over a shorter time. (Which still means they take less losses in total, but it's a effect you can see in reality aswell)Combat involving huge numbers of Divisions take longer then combats involving only a few units.There is no specific engine mechanic necessary to create this effect, it follows automaticly out of the way how damage is distributed statisticly, and it fits nicely with observations in reality.A stacking penalty which limits the amount of divisions that can fight in a specifc province efficently, is a completely different thing, it greatly depends upon dispersion laws, doctrines and a mixture of terrain features. This can’t be simulated with existing game mechanics, and won’t be part of the next patch.For the most part it wouldn’t even make sense, DH is played on a scale that provinces are of a size where stacking penalties would only occur when battles involve well beyond 100 divisions and at that point the command limit penalties already affect the battle.Of course there are special cases like battles in cities or against forts where the value would be much lower, and a stacking penalty would be noticeable. So it is something we might decide to add for a later patch, but it’s no high priority for me.The old “defense” values were often used to differentiate a units ability in attack and defense, this is now done mostly within the modifiers.csv .As this required a complete review of all modifiers I went a bit further and went through additional sources to better represent the strength and weaknesses of light vs heavy units.I also reworked all weather modifiers, and added them for all units that didn’t have them before. So no more bomber raids in storms, or airtoground support in the middle of a blizzard.And on top of that, a lot of tweaks to general combatmodifiers in the misc.txt, which got greatly expanded in that area.Currently we expect to add more then 20 entries that make it possible to adjust old hardcoded features related to the combatengine alone.The next change implemented is a overall rework of all units attack values, currently the damage output of a unit from 1914-1945 tripled, it now only doubles so the damage progression is a bit more realistic.There were also tweaks to the attack values of different units and models to each other to make them a more realistic forcemultiplier.My initial reasons for the change were balance and performance, but thanks to the research I've done I've also achieved a higher realism of the whole system.With the damage output of different units especially during the wars a bit closer together it gets easier to achieve balance. Modern units are still better and provide an edge, but the difference is smoother.The performance aspect is a bit more complicated, I reduced the attack values of all units and increased the damage multiplier in misc.txt to compensate for it so the damage remains the same.During the wars the attack values of land units are 10-20% lower, but for air units and later land unit models the difference is up to 50%. As each attack point basically means one additional check in combat for each unit every in game hour, this should be another improvement to keep long campaigns run smoothly.The new use of defense values as a “forceratio-stackingpenality” made it possible to emulate a few model specific things for air units that didn’t really work before.Initially I was only looking for a way to improve the way combat is represented in the ww1 scenario, the main aspect I wanted to have represented, was that the average casualty rate per hour, during WW1 was twice as high as during WWII.New weapons like mgs and improved usage of artillery greatly increased the damage generated by a unit compared to the franco-prussian war, and the nations military doctrines, didn’t yet catch up.One important factor that determines how much damage a military unit takes in reality, is the so called Dispersion, which represents the space each soldier has “for himself”.Modern and mobile doctrines have a much higher dispersion to compensate for the higher firevolume of modern weaponry.It took me a while to make the connection, but the gde is perfect to be used to represent dispersion.If you use this values for a doctrine a normal unit suddenly takes twice as much mp damage, but still fights basicly as good as before.command = { type = max_organization which = land value = 30 }command = { type = morale which = land value = 30 }command = { type = ground_def_eff value = 0.5 }The next big change is a complete rework of land doctrines.Dispersion is also a really great tool to create a difference between the 5 landoctrines we currently have.A manpower focused doctrine has a much lower dispersion, then a mobile oriented doctrine.With the technique from above we can have more realistic losses., but maintain game and historical balance.For example battles between German and soviet troops, soviet casualty ratios were usually much higher to achieve the same results.The changes to units attack values no longer make it necessary to constantly increase org and morale to compensate for more damage, so we gain some additional flexibility to play around with.If we now use org and morale, and different attack/defense modifiers for each doctrine to fine tune things we can get some really nice and differentiated results for each doctrine.One doctrine tech may increase the attackmodifier but comes at the price of higher mp losses, another might increase the defense but reduces the morale of a unit, making it harder to counterattack.One thing I wanted to achieve was that the doctrines should be different but not necessarily better after a certain point in time.There is a currently still hardcoded mechanic that hard units like ARM cause almost twice as much org damage then other units.Fast units have a much higher chance for certain combat events, like breakthrough and encirclement.As part of this rework I went over most, if not all modifiercombination that affect different engine aspects. Whenever more then 1 modifier was used, I decided to set the general modifer in misc.txt to 1.Just one example.The upgrade modifier in misc.txt and an individual model upgrade time in the unit files.But there are a lot more of such modifier pairs.It's just a little thing, but makes it much easier to understand and adjust values of indivdual units or unittypes.And just to make it doubly clear.Patch 1.3 is still a few months away, good things take time.