• 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.
Worst case we can plop these into the DEC mod's AI directory and fix its broken AI problems... (A Germany that can't beat France!)
 
Sid, I really hope you carry on your map conversion project to completion. My understanding is that your project is basically a conversion of vanilla AoD to the DH map, and that would make it much easier to mod than DEC. Also, the last time I checked, the DEC mod required almost all files to be overwritten -- even files that had not been updated -- so there is no way to tell which files have been changed vs. vanilla AoD. And even regarding the files that have been modded, one would not be able to tell which changes related to the map conversion and which related to DEC. (Let's be clear that I am not slamming DEC, all I'm saying is that for modding purposes, it would be a lot easier to start with vanilla AoD converted to a DH map, which is what Sid's project will do).
 
This could be an .ai or .inc file missing a bracket - event errors nomally display an error message

I'm just trying to figure out a better way of testing, the two validators I use either complain about everything (Not meant for AoD) or don't complain about nothin' (the AoD one I use).

I even found one that complained there was a missing bracket even though clearly it had enough.
 
k, found the first culprit of what is likely "many" of em. Arg.ai

edit: Found it, bracket in wrong spot from careless copy-pasta.

edit 2: Turns out the bug was only limited to argentina, otherwise everyother file is fine and checks out :D
 

Attachments

  • arg_1936.rar
    6 KB · Views: 30
Last edited:
Alrighty! Just two more files to go and then we can begin testing. I'm going to fiddle with the province file now that everything else is fixed 8)

edit: Had some problems with areas not properly showing up, odd; so I used DEC mod's province file and fiddling with infra; Japan gonna raise to 100, fixing trans Siberian and then gonna modifier supply dist modifers so people can actually fight outside their capital.

e: Short of giving the USSR OP levels of supply dist I cant seem to get the Amur watershed green but I've tried my best.

Also gave Japan some additional IC to help them out based on my play throughs with DEC; I'll fiddle with the Japanese AI to produce more Naval and Air so they don't just spam infantry.

Code:
	relative_build_scheme 	= yes
	max_batch_peace 	= 740 
	max_batch_war 		= 540
	max_batch_home_front 	= 180
	extra_convoys_war 	= 0.0500 
	extra_convoys_peace 	= 0.0500 

	#### Divisions etc...
	infantry 		= 28
	cavalry 		= 10
	motorized 		= 0
	mechanized 		= 0
	light_armor	 	= 5
	armor 			= 0
	paratrooper 	= 0
	marine 			= 5
	bergsjaeger		= 5 
	garrison		= 0
	hq 				= 1
	militia 		= 0
#				60 %
	interceptor		= 6
	multi_role 		= 0
	cas 			= 0
	strategic_bomber 	= 0
	tactical_bomber 	= 4
	naval_bomber 		= 0
	transport_plane 	= 0
	flying_bomb 		= 0
	flying_rocket 		= 0
#				6 %
	battleship 		= 2
	carrier 		= 10
	escort_carrier		= 1
	destroyer 		= 8
	light_cruiser 		= 12
	heavy_cruiser 		= 3
	battlecruiser 		= 1
	submarine 		= 3
	nuclear_submarine 	= 0
	transport 		= 6
#				34 %

	#### Brigades
	artillery 		= 20
	sp_artillery 		= 0
	rocket_artillery	= 0 
	sp_rct_artillery 	= 0
	anti_tank 		= 0
	tank_destroyer 		= 0
	light_armor_brigade 	= 0
	heavy_armor 		= 0
	super_heavy_armor 	= 0
	armored_car 		= 10
	anti_air 		= 0
	police 			= 0
	engineer 		= 70
#				100 %

	cag 		= 100.000
	escort 		= 100.000

	naval_asw 			= 15.0000
	naval_anti_air_s 		= 30.0000
	naval_radar_s 		= 15.0000
	naval_fire_controll_s 	= 25.0000
	naval_spotter_s 		= 15.0000
	# naval_improved_hull_s 	= 0.0000
	naval_torpedoes_s 		= 15.0000
#				100 %
	naval_anti_air_l 		= 25.0000
	naval_radar_l 		= 15.0000
	naval_fire_controll_l 	= 25.0000
	naval_spotter_l 		= 20.0000
	naval_sa_l 		  	= 15.0000
	# naval_improved_hull_l 	= 0.0000 
	naval_torpedoes_l 		= 0.0000
#				100 %

New Japanese code, "relative build" scheme is the default choice for whatever reason so I won't touch it yet.

Anyone look at the land/air/navy/brigade numbers and think they'll do what I hope they'll do?
 
Last edited:
I went and did AI_Switches, going to work on AI_USA and the other remaining minors, switches 41 and 44 I'm not sure if we need so I'll leave them to you to do for now just in case.

Did AI_USA, so I think we're done! I'll try to rar this up in such a way as to abide by the Terms of Service/Copywrite (c).

edit 2: Oh yeah, and fix OOB's.

Fu.Th.Sy if you happen to have done it anyways hold on to it just in case.

edit 3: OOB's fixed/rebalanced back to Vanilla AoD as close as I could reasonably do so during the first pass through. I'm going to do a playthrough until 43' Jan 1 as Swiss and see if anything obvious happened.

Oh, and I think I need to readjust some starting MP values, I'll compare it with vanilla AoD.
 
Last edited:
CaptainAdmiral-General's Log: January 1st 1937: From a Bunker in Bern.

So far I'm vaguely certain the AI has begun building up armies, yay.

Oh crap! Scary! Nationalist China doesn't know the meaning of holding back and promptly annexed both Guangxi and Communist China, the latter after a relatively tough fight and the former was more of a extended cakewalk as Guangxi attacked first but then stalled out and was pushed back once Nationalist forces arrived; neither Xian nor the Compromise events fired...


Turns out the Josip commented out the events file in order for this to run.... Fixed now, had to track down all my little typoes like a 3 instead of a "#".. :p


Early 36' USA gets a gearing event for virtually no reason...

edit: Fixed, missed an entry in Hoi2.txt, hopefully all fixed now.

Code:
event = {
	id = 7008
	random = no
	country = CHI
	
	trigger = {
		ai = CXB
		OR = {
			ai = yes
			local_flag = UnitedFrontFlag
		}
		OR = {
			lost_national = { country = CXB value = 50 }
			lost_VP = { country = CXB value = 30 }
			alliance = { country = CXB country = CHI }
			NOT = { ai = JAP } # human japan
		}
	}

	name = "Annexation of the Xibei Warlords"
	desc = "In the second United Front the Xibei Warlords joined the Republic of China"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ok"
		command = { type = inherit which = CXB }
	}
}

Still can't figure out why Xibei keeps getting inherited though... They still have their capital and VP...

e: same for Yunnan, but they only get inherited once Xian fires. My guess is this is supposed to happen, WAD but I dont recall it happening prior to Japanese invasion before.


Edit: AAR: January 37'

NatChi build like 70 militia divisions, Germany made one HQ, will wait and see.

e: August 30th 1937 Japan has in June/July I don't quite remember dow'ed China and...... Yay! They're pushing in! We're already outdid DEC for its AI D:

e2: As of 38' the Japanese offencive has begun to stall, 100 chinese militia divisions stand in their way, I think in AoD militia aren't to be underestimated... or Japan needs more INF and I need to refiddle with their numbers :(


e3: Spanish Civil War does NOT appear to be firing...

Code:
event = {
	id = 3100
	random = no
	country = SPR

	trigger = {
		NOT = {
			exists = SPA
		}
		atwar = no
		OR = {
			government = communist
			government = democratic
		}
	}

	name = "EVT_3100_NAME"
	desc = "EVT_3100_DESC"
	style = 0
	picture = "SCW"

	date = { day = 16 month = july year = 1936 }

	action_a = {
		name = "OK" # En la Defensa de la Democracia!
		command = { type = set_domestic which = democratic value = 7 }
		command = { type = set_domestic which = political_left value = 6 }
		command = { type = civil_war which = SPA }
		command = { type = add_division value = militia }
		command = { type = add_division value = militia }
		command = { type = add_division value = militia }
		command = { type = add_division value = militia }
		command = { type = add_division value = infantry }
		command = { type = add_division value = infantry }
		command = { type = add_division value = infantry }
		command = { type = add_division value = infantry }
		command = { type = add_division value = infantry }
		command = { type = add_division value = infantry when = 0 }
		command = { type = add_division value = infantry when = 0 }
		command = { type = add_division value = infantry when = 0 }
		command = { type = headofstate which = 11033 } #Azaña
		command = { type = headofgovernment which = 11062 } #Largo Caballero
		command = { type = foreignminister which = 11096 } #Barcia Trelles
		command = { type = armamentminister which = 11144 } #Giner de los Rios
		command = { type = ministerofsecurity which = 11189 } #Azcarate
		command = { type = ministerofintelligence which = 11217 } #Balboa
		command = { type = chiefofstaff which = 11007 } #Miaja
		command = { type = chiefofarmy which = 11291 } #Miaja
		command = { type = chiefofnavy which = 11309 } #Giral
		command = { type = chiefofair which = 11321 } #Hidalgo de Cisneros

		command = { type = relation which = ENG value = 10 }
		command = { type = relation which = FRA value = 10 }
		command = { type = relation which = SOV value = 50 }
		command = { type = relation which = USA value = 5 }
		command = { type = relation which = GER value = -15 }
		command = { type = relation which = ITA value = -10 }
		command = { type = relation which = POR value = -10 }

		command = { type = add_division which = "Milicias CNT" value = militia when = 0 }
		command = { type = add_division which = "Milicias POUM" value = militia when = 0 }
		command = { type = dissent value = 5 }

		# command = { type = trigger which = 3107 }
	}
}

No idea why.


Other than that though, Japanese AI build queue is pretty good, though I think I nerfed their INF production too much or NatChi just builds too many militia.
 
Last edited:
Screenshots:

2eldo3p.jpg



Edit:

Pretty sure my revolts.txt file wasn't updated with my changes/new map so countries weren't getting released (Men, SPR, Maybe Slovakia). Will need another run through to confirm.

e2: Unnerfed Japan slightly (as if your fighting Jap as Chi you'll probably hold them just fine. Added in DEC mod's models and fixed a problem with German event regarding Eastern Poland.

e3: Spanish Civil War still not firing. Don't know why.
e4: Okay I have a clue, I used the wrong revolters.txt again, since Darkest Hour has a mod folder for the new map, I used the wrong one.
e5: And there was much rejoicing (fixed).

What remains:
-Rebalancing SCW so Republican Spain doesn't get curbstomped so fast I think, it should last a LITTLE longer then half a month.
-Tweaking Czech events so Hungary gets that little strip in DH map of south Slovakia.
-Maybe tweak Second Sino-Japanese war and AI's, dunno yet, needs more testing.
 
Last edited:
2z5lwg2.png


Might have made Japan too uber.

edit2: Seems Japanese logistics deficiencies finally kick in about 100 miles from Chenging (whatever that second capital is called) but I'm noticing that the NatChi AI really seems kinda unoptimal, they struggle for some provinces but then also keep like 30 divisions in reserve that at this point should really be on the front lines. Should probably work on making them more aggressive but I think its good enough to keep things a stalemate for now unless the Chi surrender events are silly.

e: Looked at DAIM, can't figure out the life of me how to implement it or what it even does...

e2: Found problem, forgot to load up your AI CHI file it seems...

e3: M-R Pact works now! But missed one province Orz.
 
Last edited:
Congrats on making it work and thank you for screenshots, they make me wanna play right now!
Regarding ''relative_build_scheme'', they've change it to ''relative_build_scheme = yes'' due to 1.08 exe changes (there was a thread about it).

How far are you with your event files, because I didn't manage to do all ai events.

AI_switches
ai_switches_1941 needed?
ai_switches_1944 ?
AI_USA
...are still unfinished.
 
I did both AI_USA and AI_Switches ;) I also really wanted to play :D

Their useful to still do if we intend to expand the mod to include stuff.

I'm uploading it nowish; anyone know any ideas how to get Germans to be a little more aggressive wrt Belgium/Ardennes?

edit: It really does annoy me how NatChi gets to annex most of the Chinese minors for free.

Code:
	trigger = {
		ai = CHC
		lost_national = { country = CHC value = 70 } //Added
		OR = {
			ai = yes
			local_flag = UnitedFrontFlag
		}
		OR = {
			AND = {
				lost_national = { country = CHC value = 70 }
				NOT = { vp = 2 }
			}
			AND = {
				owned = { province = 1259 data = CHC } # Yan'an
				NOT = { control = { province = 1259 data = CHC } } # Yan'an
				lost_IC = { country = CHC value = 75 }
			}
			AND = {
				owned = { province = 1259 data = CHC } # Yan'an
				control = { province = 1259 data = CHC } # Yan'an
				lost_IC = { country = CHC value = 75 }
			}
			alliance = { country = CHC country = CHI }
		}
	}

Anyone know if the new trigger I added will work to keep CHC from getting annexed by Japan?

On a side note, Japanese and Chinese AI's seem about right, the Japanese incursion into China follows the historical path so far, with coast hugging.
 
Last edited:
Updated original post with download link to current release candidate, working now on a hotfix for some minor issues.

E: Amusing to see my early war event chain fire at random and to see GER slowly push the USSR back, but forgot to make it so that FRA and UK dow Germany as what would've happened.

e2: Doing one last test through to see if everything works as intended and then that's my official release. Trying to figure out if Germany getting its cores off of Poland when at peace was a one time fluke or some bug somewhere.
 
Last edited:
I downloaded the file but i get a please install the latest milestone message. I copied the aodgame exe and the lightmaps from dh as instructed over the latest 108 patch. is the file compatible with 107 only? does your version offer the 44 scenario?

e1 found my mistake. you have to copy the adjacent and lightmap files from dh into the map folder for it to work. i put them in the general folder.

awesome job sid!
 
Last edited:
Let me know if you feel the Germany AI is weird. Right now I'm fiddling with them to build less province implacements and hopefully more troops.
 
I'm sorry to say that there will only be bug-fixing feedback from me because I'll be playing with modified misc (combat, research) file and and higher production time for land units.