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

Wildcat_PL

General
13 Badges
Dec 27, 2002
1.780
241
  • Hearts of Iron II: Armageddon
  • Europa Universalis III
  • 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
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • 500k Club
I want to create my minimod in order to control OOB of my puppets.
I created a file:

\ai\switch\infantry_100.ai
Code:
###################################
# Construction and Tech Research
###################################
military = { 
	#### Divisions etc...
	infantry 	= 100
	cavalry 	= 0
	motorized 	= 0
	mechanized 	= 0
	light_armor 	= 0
	armor 		= 0
	paratrooper 	= 0
	marine 		= 0
	bergsjaeger 	= 0
	garrison	= 0
      	hq 		= 0
	militia 	= 00
#				100 %
	interceptor 	= 0
	multi_role 	= 0
	cas 		= 0
	strategic_bomber = 0
	tactical_bomber = 0
	naval_bomber 	= 0
	transport_plane = 0
	flying_bomb 	= 0
	flying_rocket 	= 0
#				0 %
	battleship 	= 0
	carrier 	= 0
	destroyer 	= 0
	light_cruiser 	= 0
	heavy_cruiser 	= 0
	battlecruiser 	= 0
	submarine 	= 0
	transports 	= 0
#				0 %

#### Brigades
	artillery 		= 66
	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 		= 0
	anti_air 		= 0
	police 			= 0
	engineer 		= 34

	  cag = 100.000
	    escort = 0.0000

            naval_asw 			= 0.0000 
            naval_anti_air_s 		= 0.0000 
            naval_radar_s 		= 0.0000 
            naval_fire_controll_s 	= 0.0000 
            naval_spotter_s 		= 0.0000 
#            naval_improved_hull_s 	= 0.0000 
            naval_torpedoes_s 		= 0.0000 
            naval_anti_air_l 		= 0.0000 
            naval_radar_l 		= 0.0000 
            naval_fire_controll_l 	= 0.0000 
            naval_spotter_l 		= 0.0000 
            naval_sa_l 			= 0.0000 
#            naval_improved_hull_l 	= 0.0000 
            naval_torpedoes_l 		= 0.0000
}

and an event I want to trigger manually
Code:
event = {
	id = 370304
	random = no 
	country = ARG
	persistent = yes

	name = "100% Infantry buildup"
	desc = "100% Infantry buildup"

	picture = "15th_army"
	style = 0	
	
		action_a = {
		name = "Infantry"
		command = { type = ai which = "switch/Infantry_100.ai" }
		}
}

Game loads up ok with no errors, but when I manually trigger event I get an error:
--- strlen("A Not-yet described Event Command") <strlen(str) + 1 ---

Any suggestions?
 
Hmm, never had this error myself.

Maybe the % in name and description is making problems? If not, try using an existing AI switch event and changing as little as possible.
 
Thats exactly what I tried already. I found an existing AI event with AI switch an all I changed was the red name of file in

command = { type = ai which = "switch/Infantry_100.ai" }

I even changed it to existing "minor_build_standard_1.ai". I fired it manually and had the same error.

What I want is my puppets building only Infantry corps with 1 Eng and 2 Art for beach guard duty.
 
1. Did you fire the event for yourself or with a target country ("event 12345 TAG")?

2. Is the line <name = "100% Infantry buildup"> in the original event as well?
 
1. Both for me , for argentina and for puppet. same error.

2. I'm sure that when it's in "quotation" it simply shows as text for event. Works the same for name, description and option_name. And it works for other events.

The most funny think is that on vanilla 1.07 when I fire event 20000 for GER - which is AI prepare for norway attack i get the same error. This event is natural for GER and is complitely vanilla. Shall I reinstall?
 
Last edited:
I have reinstalled the game. And on clean unmodded 1.07 version when I launch for example - vanilla "event 21000" as any country I get the same error. Do you have the same?