Micah Goodman 2 said:
Ok, thanks that helped. One more question, if I look in the inc file and look at say for example this,
landunit = {
location = 603
name = "1st Infantry Division"
id = { type = 14800 id = 3 }
division = { id = { type = 14800 id = 4 } name = "1st 'Big Red One' division" type = infantry model = 4 }
}
what does id = 4, mean? Also how do I find the { type = 14800 } number? I am assuming that is the value for the level of the infantry division in question. Where would I find say the type number for a level one HQ unit?
do not worry about the type = x value. Basically each item has a type and an id. The type value 14800 in this file just represents a value the game understands (in this instance units), if you make any additions to units just remember to give them the same type value.
The id value represents a UNIQUE value given to each item. You will note that each item in the list is given a unique (and consecutive - though that isnt important) value:
1st Infantry Division id=3 (assigning a land unit 'corps')
1st 'big red 1' Infantry Division id=4 (the division(s) within the corps)
each unit will have a unique id number or else they will conflict and cause errors in the game. Looking at the Germany.inc file...
Code:
landunit = {
location = 314
name = "V. Armeekorps"
id = { type = [COLOR=Red]14500[/COLOR] id = [COLOR=Lime]49[/COLOR] }
division = {
id = { type = 14500 id = [COLOR=Lime]50[/COLOR] }
name = "5. Infanterie-Division"
type = infantry
model = 1
strength = 100 }
division = {
id = { type = 14500 id = [COLOR=Lime]51[/COLOR] }
name = "25. Infanterie-Division"
type = infantry
model = 1
strength = 100
extra = artillery
brigade_model = 3
}
division = {
id = { type = 14500 id = [COLOR=Lime]52[/COLOR] }
name = "35. Infanterie-Division"
type = infantry
model = 1
strength = 100
}
}
landunit = {
location = 81
name = "VI. Armeekorps"
id = { type = 14500 id = [COLOR=Lime]53[/COLOR] }
division = {
id = { type = 14500 id = [COLOR=Lime]54[/COLOR] }
name = "6. Infanterie-Division"
type = infantry
model = 1
strength = 100
}
division = {
id = { type = 14500 id = [COLOR=Lime]55[/COLOR] }
name = "16. Infanterie-Division"
type = infantry
model = 1
strength = 100
extra = anti_tank
}
division = {
id = { type = 14500 id = [COLOR=Lime]56 [/COLOR] }
name = "26. Infanterie-Division"
type = infantry
model = 1
strength = 100
}
}
we see that the units in this file have the type value of
14500 and that each corp and division within it is given a
unique id number
so you could have a 'type = 14800 id = 50' and a 'type = 14500 id = 50' without causing conflict (as the types are different) but two 14500/50 entries would cause conflict.
Those ids are used to define individual entries and MUST not be the same as any other entry.
Ayeshteni