• 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
type = switch_allegiance which = [unit id type/-1] value = [unit id id] where = [country tag]
# -1 is a random land unit
# -2 random naval unit
# -3 random air unit
# (value will be ignored).

command = { type = switch_allegiance which = -1 where = GER }
This command does switch the allegiance of a corps (with all its divisions) to the recipient - WAD.

If you want to use this command to move the french units to Vichy during the Vichy creation be warned that it has an ugly surprise for you: it doesn't recognize Vichy as recipient of these units because it was released just a few lines above!! :-(

command = { type = switch_allegiance which = -2 where = GER }
This command doesn't work.

command = { type = switch_allegiance which = -3 where = GER }
This command does surprisingly switch the allegiance of a corps (with all its divisions) instead of an air command (with all its air wings) to the recipient.


With this command you can directly target land/naval/air units (with all their units inside). Sadly, you don't know their ids in advance. :-(
command = { type = switch_allegiance which = 13500 value = 135 where = ITA }
command = { type = switch_allegiance which = 13500 where = ITA value = 135 }
The order of the commands inside the brackets can freely be chosen. ;)


Although is has already been mentioned that this command doesn't work properly I wasn't aware that it's actually working - partially. To improve the situation re creation of Vichy and the transfer of forces, especially naval units, it would be rather helpful to fix this command. :)
 
Upvote 0
Really sad this command is still buggy. Makes proper transfer of FRA naval units to VIC nearly impossible. Was also nice for naval transfer shortly before SCW ends.
Command also needs to be improved to directly adress a specific ship or land/air division.
IT seems we badly need a workaround for CORE as we relied upon a correctly working command (was working in Arma 1.3)
 
If you want to use this command to move the french units to Vichy during the Vichy creation be warned that it has an ugly surprise for you: it doesn't recognize Vichy as recipient of these units because it was released just a few lines above!!

This is just a guess, but you might try breaking this into two events. In the first event, create VIC. Then in the next event, which should be triggered by the first event, change the allegiance of the units. That might work....
 
Really sad this command is still buggy. Makes proper transfer of FRA naval units to VIC nearly impossible. Was also nice for naval transfer shortly before SCW ends.
Command also needs to be improved to directly adress a specific ship or land/air division.

The SCW needs this command also for a reliable transfer of revolting army units. Wasn't it mainly the army which rised against the government? And yes, you should definitely be able to target a specific division or ship. Their ids can't change during the game which is a good base for events. :)

IT seems we badly need a workaround for CORE as we relied upon a correctly working command (was working in Arma 1.3)

If it already worked in Arma 1.3 (beta-patch??) it's really sad that it doesn't any longer. Let's hope that the devs give the fixing of these commands a high priority. :)
 
This is just a guess, but you might try breaking this into two events. In the first event, create VIC. Then in the next event, which should be triggered by the first event, change the allegiance of the units. That might work....

It does. I tried it an hour ago. :) Your idea is definitely better than my first plan to resolve this dilemma. But if you let the events unfold you can see that the independence command also doesn't work properly. It simply erases several corps from the game, the major part of the french army is completely gone. :( I had already observerd some oddities created by this command during SCW when I did some testing for the best provinces to be assigned to the revolter SPA. I'll look more closely at this topic.
 
AFAIR the devs started AoD development with Arma 1.2 as base (last official Paradox version). Thus lots of stuff fixed in Arma 1.3 has not made it into AoD(yet).

Tbh I wouldn't expect to see these fixed stuff included - except if the AOD devs fix these bugs by themselves. This is imho one of the untold stories of the AOD development. Lennart mentioned only once that he hadn't got his hands on the source code changes made by Arma beta patch project. Reading between the lines I'd got the impression that they promised the transfer of the code once the Arma beta patch project would be finished. Obviously that didn't happen, instead Lennart tried to fix most of the obvious bugs by himself.

Guess, why? The very same persons who administered the nonetheless remarkable Arma beta patch project used their previous work as the base for their own improved HOI2 game: DH. And don't forget anyone who is asking for the bug-fixed/improved HOI2 code is obviously developing his own HOI2 based europa engine, i.e. is a competitor...

Obviously this is the fault of P'dox who as it appears to be didn't enforced appropriate
guidelines for co-operation behind the scenes between the various teams who started working on the code. Good examples for code co-sharing would be imho e.g. adding mouse-wheel support, allowing higher screen resolutions or even an improved event code (added pictures & more options) so that every team don't has to reinvent the wheel again and instead can concentrate on realising their own vision of the game.