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

Stahl-Opa

Marshall & Grossadmiral of Helvetia
72 Badges
Jun 16, 2011
749
169
www.vmods.org
  • Victoria 2: A House Divided
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • King Arthur II
  • Leviathan: Warships
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Warlock 2: Wrath of the Nagas
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Third Rome
  • BATTLETECH
  • Stellaris: Nemesis
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • BATTLETECH - Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
hi all

I have a very strange issue - hope someone can help me.

I have two similar Events:

Code:
event = {
    id = 1936698
    random = no
    country = U49

    name = "EVT_1936698_NAME"
    desc = "EVT_1936698_DESC"
    style = 2
    picture = "AOI_army"

    # Triggered by ITA event


    action_a = {
        trigger = { flag = AOI_army_all }
        name = "ACTION_GOOD"   
        #AOI commando
        command = { type = add_division which = "Comando Superiore dell'AOI" value = hq when = 2 }
        #blackshirt legion
        command = { type = add_division which = "Milizia Coloniale" value = militia when = 5 }
        #italian divisions
        command = { type = add_corps which = "Forze Armata AOI" value = land when = 1060024 where = 825 }
        command = { type = activate_division which = 23500 value = 311 }
        command = { type = activate_division which = 23500 value = 312 }
        #colony divisions
        command = { type = activate_division which = 23500 value = 313 }
        command = { type = activate_division which = 23500 value = 314 }
        command = { type = activate_division which = 23500 value = 315 }
        command = { type = activate_division which = 23500 value = 316 }
        command = { type = activate_division which = 23500 value = 317 }
        command = { type = activate_division which = 23500 value = 318 }
        command = { type = activate_division which = 23500 value = 319 }
etc... etc...  
} }

and

Code:
event = {
    id = 1936741
    random = no
    country = ALB

    name = "EVT_1936741_NAME"
    desc = "EVT_1936740_DESC"
    style = 2
    picture = "Albania_Occupation"

    # Triggered by ITA event


    action_a = {
        name = "ACTION_GOOD"   

        #italian divisions
        command = { type = add_corps which = "9o Armata" value = land where = 358 } #Tirana
        command = { trigger = { flag = venezia_1 } type = activate_division which = 23500 value = 340 } #Venezia
        command = { trigger = { flag = ferrara_1 } type = activate_division which = 23500 value = 341 } #Ferrara
        command = { trigger = { flag = arezzo_1 } type = activate_division which = 23500 value = 345 } #Arezzo
        command = { trigger = { flag = centauro_1 } type = activate_division which = 23500 value = 347 } #Centauro
            
        #Air
        command = { type = add_division which = "38o Stormo Bombardamento Terrestre" value = strategic_bomber when = 4 where = -52 }
        command = { type = add_division which = "160o Gruppo Autonomo Caccia" value = multi_role when = 5 where = -74 }
        command = { type = add_division which = "120a Squadriglia Osservazione Aerea" value = multi_role when = 4 where = -87 }
        
        command = { trigger = { event = 2006030 } type = strength_cap which = infantry value = 70 }

    }

}

all dormant divisons are defined in the italy.inc

Code:
#AOI Troops
landdivision = { dormant = yes id = { type = 23500 id = 311 }  name = "40a Divisione fanteria 'Cacciatori d'Africa'"  type = infantry model = 8 strength = 20 max_strength = 70 }
landdivision = { dormant = yes id = { type = 23500 id = 312 }  name = "65a Divisione fanteria 'Granatieri di Savoia'"  type = infantry model = 8 strength = 20 max_strength = 70 }
landdivision = { dormant = yes id = { type = 23500 id = 313 }  name = "1a Divisione coloniale"  type = infantry model = 8 strength = 50 max_strength = 70 }
landdivision = { dormant = yes id = { type = 23500 id = 314 }  name = "2a Divisione coloniale"  type = infantry model = 8 strength = 50 max_strength = 70 }
landdivision = { dormant = yes id = { type = 23500 id = 315 }  name = "4a Divisione coloniale"  type = infantry model = 8 strength = 50 max_strength = 70 }
…
…
…
...

#albanian troops
landdivision = { dormant = yes id = { type = 23500 id = 340 }  name = "19a Divisione 'Venezia'"  type = infantry model = 10  }
landdivision = { dormant = yes id = { type = 23500 id = 341 }  name = "23a Divisione 'Ferrara'"  type = infantry model = 10  }
landdivision = { dormant = yes id = { type = 23500 id = 342 }  name = "29a Divisione 'Piemonte'"  type = infantry model = 10 }
landdivision = { dormant = yes id = { type = 23500 id = 343 }  name = "49a Divisione 'Parma'"  type = infantry model = 10 }
…
…
…
...


Now the Problem:

in case 1 (U49 Event), the Units spawn for Italian East Africa. WAD.
in case 2(ALB Event), the Units spawn, but as italian (ITA) Units.

Both countries are puppet, allied and gave Access to ITA, ITA has no Military Command for both.

I'm at the end with my Logical thinking…. I really don't see the Point, why this isn't working for ALB as for U49.

Anyone knows more?

Greez and Thanks

Opa
 
yes, I can try that.

Neverthless, it's strange that it works for U49. And from time to time it's not possible to define them in the file of there own Country, specific if they are for a Country which doen't exist in the beginning (U49, SPA, etc etc.)

edit:
Moved them to albania.inc, but they still spawn as italian….
 
The reason is the
type = 23500

If you check the scenario file for Italy, it has that ID number.

There is no ID number for Albania, so you will need to create one. Just ensure the number you choose is not used anywhere else, to save a crash.
 
ah, so the unit type number have to be unique for all nations?!

will try it asap.

but still strange, this way, the AOI units should also spawn as ITA. But there it WAD.
 
ah, so the unit type number have to be unique for all nations?!

will try it asap.

but still strange, this way, the AOI units should also spawn as ITA. But there it WAD.

Yes, the ID type must be unique.
It is also because of
which = 23500

As ALB does not have any ID set already, it just carries on with the last ID you gave it.
 
hm, I just have changed the ID to a new one… But the unit still spawns as italian :S

edit: Okay, I've gave them an unique type AND moved them from italy.inc to albania.inc

Seems to work now.

Neverthless, what I totally don't understand, why it works with U49 - they are set in the italy.inc, uses same type and spawn anyway as U49 troops and not italian.
Same Thing with a swiss revolter I've modded. Units set ins witzerland.inc, uses same type, but WAD; they spawn as Units under crontrol of the revolter getting the Event.

Anyone can tell me the logic behind this all? :D
 
Last edited:
hm, I just have changed the ID to a new one… But the unit still spawns as italian :S

edit: Okay, I've gave them an unique type AND moved them from italy.inc to albania.inc

Seems to work now.

Neverthless, what I totally don't understand, why it works with U49 - they are set in the italy.inc, uses same type and spawn anyway as U49 troops and not italian.
Same Thing with a swiss revolter I've modded. Units set ins witzerland.inc, uses same type, but WAD; they spawn as Units under crontrol of the revolter getting the Event.

Anyone can tell me the logic behind this all? :D

We are in DH 1936 scenario folder, yes?
There is no U49 country in the scenario folder.
In the config/world_names.csv, U49 is italian east africa. It is not a separate country until it is in a separate file in the scenario folder.

The type ID controls what country the unit belongs to. ID 23500 is in the ITA scenario file, so any unit using that ID will be Italian.
You have italian units in italian east africa. They are italian. They do not belong to U49, as U49 is not a country. It is not a country, because it has no separate file in the 1936 scenario folder.

A revolting country could well override this. I mean the unit becomes the unit type of the revolter, no matter what type ID it has.

You have to remember, nothing in life works as it is intended to All The Time.

I went to university and did 2 degrees. What did I learn? I learnt that such and such happens "most" of the time. There are always chances of other stuff happening.
 
hehe, I know what you mean. :p

But it's even then very strange in my case.

Yes, I use the DH1936 as base. Yes, there is no U49.inc since the Country doesn't exists on game start.
  • The U49 Units are defined in the italy.inc - > they are italian in general, yes. But since they are dormant, they still deactivated.
  • early 1936, U49 becomes independent via 'creation of AOI' Event. -> it now exists as an seperate country. U49 units still dormant at the italy.inc
  • mid 1936, U49 has an Event 'creation of AOI Army', which uses the 'activate_unit' Command (see above). So, U49 has an event, which activates the units in the italy.inc, which uses the same type as italy.
In that case, the units activated via Event are right from the beginning U49 units, controlled by U49, with U49 model, modifiers etc..


So I have in fact Units which the type of italy, 23500, but owned by U49.

Since your descr sounds logical, I guess this is some strange engine bug. Have to ask the devs about, I guess.