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

Gringoesteban

Major
5 Badges
Jan 29, 2008
699
2
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III: Their Finest Hour
  • 500k Club
Please see the event below which was written to give the Superheavy Carrier Shinano to the Imperial Japanese Navy on the appropriate date. See the bolded part of the command where a CAG is attached to the carrier. When the ship is in the force pool, the CAG is attached. However, when the ship is deployed to a port, the CAG completely disappears. Also, it is impossible to ever attach a CAG to the ship, even if one is built or detatched from another carrier. The same thing happens whenever a ship with attached brigade is created by event. For example, I created the Yamato with an improved hull attached but the improved hull disappeared when I deployed the Yamato to a port.


#########################################################################
# Commission the Carrier Shinano
#########################################################################

event = {
id = 79944
random = no
country = JAP

name = "Build the Shinano"
desc = "The Shinano was commissioned on 19 November 1944. It was built using a superheavy battleship hull and was the largest aircraft carrier built in World War II."
picture = "British_naval_reinforcments"
style = 0

trigger = {
war = { country = JAP country = USA }
technology = { country = JAP value = 3310 } # must know 1938 superheavy battleship tech
energy = 20241
rare_materials = 5061
metal = 10121
}

date = { day = 19 month = november year = 1944 }
offset = 7
deathdate = { day = 30 month = december year = 1999 }

action_a = {
ai_chance = 100
name = "Build the ship"
command = { type = add_division which = "Shinano" value = carrier when = 6 where = cag }
# there is an error in AoD because the damn cag always disappears when the carrier is deployed to a port
command = { type = metalpool value = -10120 }
command = { type = energypool value = -20240 }
command = { type = rarematerialspool value = -5060 }
}
action_b = {
ai_chance = 0
name = "No, we need the resources elsewhere"
command = { }
}
}
 
Last edited:
Upvote 0
What happens if you add the create corp command and assign it to a corp/fleet?


type = add_corps which = [name] value = [land/air/naval] when = [leader ID] where = [province_ID]

Is it attached then?

Edit:
Might want to add a trigger to check if you own the province you add the fleet to...
 
Seems to be an engine bug, the CAG is there but not visible and probably also does not effect the combat values.
Better use the carrier as a dormat division set up in the scenario file and wake it up by that event.
To simulate inductral production needed for building this large ship you should also add a large chunk of supplies to the costs. Just using res is not really fair because you have them sitting in stockpile but you didn't produce anything with them.