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

makif130289

Field Marshal
78 Badges
Feb 20, 2008
3.631
63
  • Arsenal of Democracy
  • Supreme Ruler: Cold War
  • Europa Universalis IV: Res Publica
  • Iron Cross
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Darkest Hour
  • Crusader Kings II: Conclave
  • Stellaris
  • Imperator: Rome - Magna Graecia
  • Stellaris Sign-up
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Stellaris: Galaxy Edition
  • Stellaris: Lithoids
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: Dharma
  • Crusader Kings II
  • Stellaris: Nemesis
  • Prison Architect: Psych Ward
  • Stellaris: Ancient Relics
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Battle for Bosporus
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Stellaris: Distant Stars
  • Stellaris: Federations
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Victoria 2
  • Europa Universalis IV: Cradle of Civilization
  • Warlock 2: The Exiled
##########
# Army Reduction - United States - Phase 2
##########
event = {
id = 71310
random = no
country = USA
persistent = yes

trigger = {
flag = USA_demobilization
army = 50
}

date = { day = 1 month = january year = 1936 }
offset = 3
deathdate = { day = 30 month = december year = 1963 }

name = "Demobilization"
desc = "We are demobilizing the military."

#picture = "furios_hitler"

action_a = {
name = "Well, that's a setback..."
#army, 20 units
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
#navy, 5 units
command = { type = delete_unit which = -2 }
command = { type = delete_unit which = -2 }
command = { type = delete_unit which = -2 }
command = { type = delete_unit which = -2 }
command = { type = delete_unit which = -2 }
#airforce, 5 units
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
}
}


hi, this event causes CTD in my game. I don't see anything wrong in the text. Maybe, someone can understand the reason and help me.This event is from SMEP mod so there is not problem in vanilla game.Thanks in advance.
 
Confirmed the CTD in the case of attempting to delete a unit when no such units exist. A good catch. Fixed for 1.06Beta2.

As an alternative, you can use the

command = { type = delete_unit which = -1/-2/-3 when = X }

syntax to delete X% of units of type land/navy/air respectively. You can find examples in the Vichy event in the 1.06Beta1.

If you run into other difficulties regarding this command, that is, other CTDs that are traced to other than attempting to delete a non-existent unit, let us know.
 
Radu,

Can you check, wether a similar problem exists with remove_division?

As you know we possibly have a problem with this in CORE for AoD.

Thanks

T.