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

peo

Lt. General
43 Badges
Mar 29, 2001
1.394
33
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Nemesis
  • Hearts of Iron IV: No Step Back
  • Victoria 2
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • 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 IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
I tried to add a completly new unit type to the game.
But when i started the game the unit wasn't what i made it.
It looked like infantry but it should be a ship.
It also didn't have any stats other than strenght and air/sud detection iirc.

Is it at all possible to add completly new unit types to the game???
Or is the only way to give the units more flavour to add the specific changes compared to another unit in the game.
For example the swedish armoured ships which i tried to add would get a stats closer to a battleship but with greatly reduced range.
 
:(
Pity...
Don't think it would have been that complicated to allow such things...
Guess i'll have to mod it another way then...
 
The problem with allowing entirely new unit types is that the AI won't have a clue what it is, how to use them or how to stop others who are using it...
 
hmm didn't think about that...
Well i had to mod it a other way... not as elegant but i guess it will work... (hopefully)
 
It is possible to add new units within a broad category ... ie I added 2 new trasnport types. Each one gets a little cheaper and faster to build as the technology increases. (As a bonus allwoing the AI to get more of them faster).

You cant add a whole new class of unit though.

You can add a new cruiser to the cruiser line, add a new infantry to the infantry line etc

1st you have to add the unit to the appropriate units file
eg in my example above I added them to 'transports.txt' as #1 and #2 with the new stats (just copy paste #0 from the file)

Then you go to your techs folder and add the line to activate the new unit on the proper tech discovery -

Code:
effects = {
command = { type = new_model which = transports value = 1 }
	}

The "1" in above just tells the game that version 1 is now available, do the same for version 2 etc

Then you have to go to text.cvs in the 'config' folder and add the new name for each one to the model info, look down the list for something like:

model_4_0:transports

and add -

model_4_1:new transports
model_4_2:super new trasnports

Well, thats the basic how to anyway :)

Myros
 
Originally posted by VultureGFF
No way to add new units...

Keep us tuned about what you DID do then...

This is how i did it.

division = { id = { type = 13360 id = 11 } name = "Sverige" type = battleship model = 0 maxspeed = 25 supplyconsumption = 0.5 visibility = 80 seadefence = 7 seaattack = 7 shorebombardment = 1 range = 4000 }

This is for HMS Sverige compared to the normal class 0 battleship shw is a little weaker but a little tougher to spot...
I also did this for the Finnish, Norwegian and Danish navies.
But with a little different boats of course :)

edit:
This is how it looks without modding:
division = { id = { type = 13360 id = 11 } name = "Sverige" type = cruiser model = 0 }
 
Ah yes;.. It is possible to add new units asMyros explains. But you can't produce whole NEW units, like minedestroyers or summink
 
I only wanted to add the unit class armoured ships.
Only nations that had those kinds of ships were the scandinavian.
so i understand that they weren't included...
Had to do it in a more unelegant way :)
 
:D
It's unelegant to me.... :)
Got that from my programming courses :) the teacher wanted to have independant files :)