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

ladybug

Commander of the Ladybug army
91 Badges
Jul 5, 2003
1.379
12
  • Cities: Skylines Deluxe Edition
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Magicka 2: Ice, Death and Fury
  • Crusader Kings II: Conclave
  • Stellaris: Nemesis
  • Europa Universalis III
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Diplomacy
  • Hearts of Iron II: Armageddon
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
Hey I have been working on the EU3 to rev converter and if you want to story on why I am asking this have a read of the last few pages for it if you are a programmer we could really use your help.

Anyway I am wanting to add factories to a scenario from a included file (like how the events and pops are added) this is my current testing file

Code:
factroy = { location = 251 id = { type = 5300 id = 1 } type = glass_factory }
factroy = { location = 253 id = { type = 5300 id = 2 } type = paper_mill }
factroy = { location = 256 id = { type = 5300 id = 3 } type = machine_parts_factory }
factroy = { location = 255 id = { type = 5300 id = 4 } type = luxury_furniture_factory }
factroy = { location = 231 id = { type = 5300 id = 5 } type = paper_mill }
factroy = { location = 233 id = { type = 5300 id = 6 } type = furniture_factory }
factroy = { location = 230 id = { type = 5300 id = 7 } type = cement_factory }
factroy = { location = 224 id = { type = 5300 id = 8 } type = steel_factory }
factroy = { location = 227 id = { type = 5300 id = 9 } type = regular_clothes_factory }
factroy = { location = 225 id = { type = 5300 id = 10 } type = fertilizer_factory }
factroy = { location = 222 id = { type = 5300 id = 11 } type = lumber_mill }
factroy = { location = 219 id = { type = 5300 id = 12 } type = explosives_factory }
factroy = { location = 221 id = { type = 5300 id = 13 } type = luxury_clothes_factory }
factroy = { location = 216 id = { type = 5300 id = 14 } type = fabric_factory }
factroy = { location = 217 id = { type = 5300 id = 15 } type = winery }
factroy = { location = 215 id = { type = 5300 id = 16 } type = ammunition_factory }
factroy = { location = 214 id = { type = 5300 id = 17 } type = clipper_shipyard }
factroy = { location = 212 id = { type = 5300 id = 18 } type = small_arms_factory }

The problem is when the game tries to load it it gives me a “illegal top level object” error. Now I am assuming this is because the factories are not in a country section? Now is there any way to add factories as an included when the actual country they are going to is unknown? the way to fix it can not be a program it to go into the country section as it is not possible for us to actually do that at this point in time.
 

OHgamer

Victoria's Plastic Surgeon
38 Badges
Jan 28, 2003
18.057
650
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Victoria 2 Beta
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Victoria 3 Sign Up
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis III
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Hearts of Iron II: Beta
i don't think you can do it, you can add starting factories via an inc file, but those are predefined territories. I don't think you can add factories in an .eug

your alternative would be to make a series of province events that would fire at the first of the game adding the factories to those provinces, using the gain_building command
 

ladybug

Commander of the Ladybug army
91 Badges
Jul 5, 2003
1.379
12
  • Cities: Skylines Deluxe Edition
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Magicka 2: Ice, Death and Fury
  • Crusader Kings II: Conclave
  • Stellaris: Nemesis
  • Europa Universalis III
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Diplomacy
  • Hearts of Iron II: Armageddon
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
*slaps forehead for the 2nd time in 2 days*
Why is it that I think of stuff no one else does but when it comes to something as simple as writing an event it goes write over my head. thanks

Should be no problem changing it to write an event but a question of factory placement. Say state 1 has province a, b and c would I have to place all factories in a single province or could I place a single factory in all 3 without any problems? its mainly because states could be split between couintries.
 

OHgamer

Victoria's Plastic Surgeon
38 Badges
Jan 28, 2003
18.057
650
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Victoria 2 Beta
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Victoria 3 Sign Up
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis III
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Hearts of Iron II: Beta
ladybug said:
*slaps forehead for the 2nd time in 2 days*
Why is it that I think of stuff no one else does but when it comes to something as simple as writing an event it goes write over my head. thanks

Should be no problem changing it to write an event but a question of factory placement. Say state 1 has province a, b and c would I have to place all factories in a single province or could I place a single factory in all 3 without any problems? its mainly because states could be split between couintries.

if you place the factory in all 3 provinces of a state, and that state passes whole to one nation, it will become a level-3 factory IIRC. But I see your point.

I guess if it was me doing it, I'd put the factory in the most logical center for industry in a state, and then if the state is split, whoever gets it is the lucky one.
 

ladybug

Commander of the Ladybug army
91 Badges
Jul 5, 2003
1.379
12
  • Cities: Skylines Deluxe Edition
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Magicka 2: Ice, Death and Fury
  • Crusader Kings II: Conclave
  • Stellaris: Nemesis
  • Europa Universalis III
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Diplomacy
  • Hearts of Iron II: Armageddon
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
ah that’s good but chances are a state won’t have 3 of the same factory as there is currently 3 factories for each EU3 manufactories so unless there are 4 EU3 provinces then convert to 1 state and you build the same manufactory is each province only one will be level 2. It’s a more fair system if a state is split thanks.