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

Fürstbischof

General
17 Badges
Jan 25, 2009
1.767
92
  • Arsenal of Democracy
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • For The Glory
  • Heir to the Throne
  • Hearts of Iron Anthology
  • 500k Club
  • Europa Universalis: Rome
  • Victoria 2: A House Divided
  • Europa Universalis III: Collection
  • 200k Club
  • Rome: Vae Victis
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Since the situation re creation of Vichy and the transfer of forces isn't satisfactory solved I did some testing with the involved commands.

type = delete_unit which = [unit id type/-1/-2/-3] value = [unit id id]
# -1 is a random land unit
# -2 random naval unit
# -3 random air unit
# (value will be ignored).


command = { type = delete_unit which = -1 }
This command does remove an entire corps (with all its divisions) from the game - WAD.

command = { type = delete_unit which = -2 }
This command doesn't work.

command = { type = delete_unit which = -3 }
This command does surprisingly remove an entire corps (with all its divisions) instead of an air command (with all its air wings) from the game.


Further testing revealed that you can directly target and delete land/naval/air units (with all their units inside). Sadly, you don't know their ids in advance. :-(
command = { type = delete_unit which = 13500 value = 135 }
Out of curiosity I've used this command to target a special division and remove it from its corps: the game will immediately ctd when you hover with your mouse pointer over the first choice of the Vichy creation event. ;)
 
Upvote 0
Hmm, AFAIR in CORE we heavily relied on this command to remove specific divisions (SS upgrade events, Wehrmacht motorization events, etc).
CTD while hovering over the event options reminds me of a display bug i.e. missing text to show what this command does.
 
This bug was reported over six months ago. It is a shame that it has not been corrected yet....

http://forum.paradoxplaza.com/forum/showthread.php?470334-delete-unit-event-command

Thank you for the link. I knew that the bug was mentioned some time ago but wasnt aware when and by whom. :)

I've written it up again because I thought it'd be helpful for the devs to see which parts of the command actually work and which not. Very surprising for me was that option 3 was actually another option 1. Since this command is needed in certain situations it'd definitely be fixed asap.
 
Hmm, AFAIR in CORE we heavily relied on this command to remove specific divisions (SS upgrade events, Wehrmacht motorization events, etc).
CTD while hovering over the event options reminds me of a display bug i.e. missing text to show what this command does.

I haven't investigated this ctd even further but I was surprised that it happened because I got this ctd by changing only a single number. All testing was done by using the Vichy creation event 2800 which otherwise worked properly. But if this command actually works in your most recent AOD/CORE version I'm curious how I could provoke this ctd. :confused: