• 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.
I can only speak for myself, but modding HoI 2 is pretty far down my priority list at the moment. I want to offer a version of DAIM for the latest official version (including the patch project), but that's where my ambitions stop.
 
Cool :cool:

Just few notes about the changes in spyprefs . If an AI file has a spyprefs section in it then the old spyprefs data will be entirely deleted first and after that the new one will be loaded. This means that you should include all AI spy parameters in spyprefs sections on change by a new AI file.

Here is an example from alb_1936.ai:

(...)

In orange are the most important parts of spyprefs.

percentage_foreign_mission is used to set the number of missions this AI can do (when there is a target and enough money): 0 = do not try any missions, 1.0 = try to do mission whenever it is possible

spyprefsdata for own country is used to set the min chances of success for each mission. The mission will be skipped if the chance is bellow it. NumberOfSpies is used to set the desired intelligence level that this country will try to reach.


spyprefsdata for all other countries are used as before: AI won't do missions in a country that is not listed in its spyprefs and won't do a mission in a country if the mission is set to 0 in spyprefsdata section for that country.

percentage_on_spies is not used in 1.3.

Hope this info will be of help.

Martin
A few questions:
  • Does min_number_of_spies still do anything?
  • Are the values in the country's own spyprefsdata the desired (minimum) percentages or what are they?
  • Are the values in foreign spyprefsdata sections desired percentages or just weights? If they are weights, what is their range?
  • If I use a spyprefsdata section with just a country tag in it, will the AI conduct missions there (according to the general settings) or none at all?
 
A few questions:
  • Does min_number_of_spies still do anything?
It is not used any more for target countries, only for home. No foreign missions will be attempted until the country reaches at least min_number_of_spies level at home.
  • Are the values in the country's own spyprefsdata the desired (minimum) percentages or what are they?
Yes. Chance for a mission in the target should be equal to or bigger then the chance specisfied in HOME for that mission.
  • Are the values in foreign spyprefsdata sections desired percentages or just weights? If they are weights, what is their range?
These are weights and are used the same way as in 1.2. There is no range, but better don't go too extreme :).
Example:
Code:
		steal_blueprint 	= 10
		nuclear_sabotage 	= 0
		found_partisans		= 4
		counter_espionage 	= 6
The sum is 20. steal_blueprint has 50% (10/20 * 100) chance to be chosen, found_partisans has 20% ( 4/20 * 100) and counter_espionage: 30 % ( 6 /20 * 100). nuclear_sabotage won't be selected since it has 0% chance to be.
  • If I use a spyprefsdata section with just a country tag in it, will the AI conduct missions there (according to the general settings) or none at all?
It won't do missions there. By default all missions had 0 preference, so you have to specify at least one mission type.
 
I can only speak for myself, but modding HoI 2 is pretty far down my priority list at the moment. I want to offer a version of DAIM for the latest official version (including the patch project), but that's where my ambitions stop.

May be just propose some changes in AI that you would consider as absolutly useful in a vanilla 1.3 version.
 
Beta version for Armageddon v1.3beta

There's now a Beta-DAIM for Armageddon v1.3beta.

What's the deal? We adapted DAIM for Armageddon v1.3beta, particularly the intelligence settings, but I'm not satisfied with current DAIM Germany, production is a little weird at times.

As long as you play Germany, obviously this is not an issue. If you play against Germany, particularly as the Soviet Union, you might be a little underwhelmed. I'm not happy with the current state, but I prefer to release an incomplete version rather than nothing at all. Reworking Germany's production will take some time and I didn't want to miss the self-set deadline of this week.

How to use it? Download the file linked above and extract it into your Armageddon folder. You will be asked to overwrite files, if not, then something is wrong. If you don't see the "DAIM installed" events within a few game days, then something went wrong as well.

I can provide an "unDAIM" zip file with the "vanilla" v1.3beta files later if there's demand. Until then, making your own backups never hurts and use the whole stuff at your own risk. Oh, and enjoy! :)
 
Cool, i've been wanting this since 1.3beta came out. Playing only as Germany till the you update the productions files is no problem, it's my favourite nation to play. Thanks for the work you keep putting in.
 
Great, thanks! Now, let me take a look at those Germans and their production woes... ;)
 
Great news G'Kar!

About the AI production I would anyway recommend you to wait for 1.3 final before tweak it further because there was a bug with AI production sliders in 1.3 beta that is fixed in 1.3 final.
Thanks for the hint! I guess the main reason for my problem is a different interpretation of my somewhat old production settings for Germany by Arma v1.3's engine, but a production bug would surely cut into it as well.

Given that there will be no HoI 3 beta for me, one should look at the bright side and realize that there'll be more time for modding. So, if I may, a few more questions about the AI settings:
  • "extra_convoys_war" and "extra_convoys_peace" are new, right? Do they set the maximum or desired share of IC for convoy transport production, or what do they do?
  • I assume that the total for the production of naval brigades should be no higher than 100% for s(mall) and l(arge)?
  • Have any changes been done in the air_marshal section? It always looked like a "lot of time to spend, little to gain" issue to me.
(If answering my questions poses a problem to whatever contract you might have signed, then please don't do it. Getting you into trouble is the last thing I want to do.)
 
Sorry for the lack of reply, I was a bit busy.
Unfortunately I can answer right away only two of your questions:
  • "extra_convoys_war" and "extra_convoys_peace" are new, right? Do they set the maximum or desired share of IC for convoy transport production, or what do they do?
AI periodically checks for available and needed convoys and if there is need for new, AI starts building these. extra_convoys_war and extra_convoys_peace are multipliers on "needed at the moment convoys" in peace and in war time.
Example:
Needed convoy transports = 200
extra_convoys_war = 0.1
Total convoys = 180
Modified Needed convoy transports = 200*(1 + 0.1) - 180 = 220-180 = 40
Needed convoy escorts is a function on Needed convoy transports.
I hope this answers your question.

  • Have any changes been done in the air_marshal section? It always looked like a "lot of time to spend, little to gain" issue to me.
There are no changes to this code in 1.3 patch.
 
Last edited:
Erm just a few suggestions: Sometimes Italy doesnt join Germany's alliance because Germany goes insane and conquers France before DOWing Benelux. I think u forgot to make Ger ignore French Maginaut (or however u spell it) line border, because every time they just go thru and make Vichy 3 weeks later. This could be a possibility but only after war with Holland, Belgium and Luxembourg.

Italy usually doesnt DOW Greece because conditions for that need to be tweaked. They also tend to get pwned by UK in North Africa, after which Italy loads defensive AI and simply builds infantries and put them as garrisons in Italy and thats about it.

US doesnt build nearly as many land forces as it should, and ratios are messed up too. Theres like more marines than infantries. It also makes WAY too many carriers and way too few BBs and CAs + screens. In my current game as SU in 1944 US has 4 big ~30 ships fleets that it usses to patrol and hunt enemy fleets, but it also has another one in DC or NY i think which is made of like 20 carriers 10 CVEs and some outdated screens. All this fleet does is sit in port doing nothing.