Hello there guys / Devs ... i am making a mod to change all models pictures with bigger ones with historical accuracy as possible .. here is my question ... except the major powers all other countries use the generic pics of the models ... but if i try lets say for my country Greece to have some specific model pics as the models file says when i upgrade that specific model i keep seeing the same pic and not the one from the generic pics one (example : Averof class heavy cruiser ill_div_GRE_23_2 , the generic ones goes from ill_div_23_0 to 23_9 ... the problem is that when i use the first one i see the same pic for all nine tech cruisers ) ... does anybody know how can i make the game to read a tagged pic file and then read the next generic one ? sorry for my English ... Thanks in advance ...
HOW MODELS WORK:
Here is the counter strip. You will find it in gfx/map. It shows all the models in the game. You can add more if you wish.
Here is how that counter strip relates to the models in the game:
Notice how the numbering starts at 0.
Now, go look in the gfx/models folder. You will find 3 types of images, one is:
ill_div_0_0.bmp..... or ENG_ill_div_0_0.bmp.... these refer to Infantry, model 0, the first model. For DH, this model could refer to the Infantry model for 1897. The next model for when that model gets upgraded will be ill_div_0_1.bmp and so on. ENG means England. Put GER there and it means GER. Put MIN there and it means all other countries.
ill_div_0_0.bmp is the larger image you see at the top of the production page. ill_div_12_0.bmp is for multirole and ill_div_21_0.bmp is for Battleship.
....................................
The image ill_bri_0_0.bmp is for the brigade image. Brigade images refer to the auxillary strip, which show the attached brigade units:
Again these are numbered from 0 and work in exactly the same way as the counters above, but for a different strip. The strip is found in the gfx/interface folder.
You CAN use a different brigade image other than those in the auxillary strip, but you need to make a change in the db/misc.txt file. The images would need to be called and numbered in exactly the same manner as normal.
.................................
The small images you see underneath the larger images on the production page are also found in the gfx/models folder. These are the skiff images. These also change with the upgrading from one model to another. These are the images you immediately see when you open up the models folder.
These are numbered from 0 too, but are called ENG_model_0_0.bmp for England, or MIN_model_0_0.bmp for any minor country.
.....................................
WHERE the images come from, for a mod, is controlled in the db/misc.txt file. Here you can choose to get the images from YourMod folder or the main darkest hour game folder.
You can do these images for any country. Look in a mod like MDS and you will find most countries are done. To check what TAG a country has, go look in the config/world_names.csv file. So GRE is for Greece for instance.
I hope this explains how models work.