Referencing Unit Images
Is there a way of using specific unit images for a specific zip file, which mostly uses the standard images, without copying everything over?
Cernel Moderators last edited by
@rogercooper Yes. For each image the program will search in the map folder and, then, in its own assets.
This sometimes is a problem for Unit help, displaying images in assets that are not supposed to be in the game (like the French marine for World At War).
@cernel Let me more specific. I am working on a scenario using BuildCaps, based upon the number of pieces in the physical game. In the Revised scenario the Japanese have a lower limit for armor, so I created an image called armour_ja.
My overall folder name is BuildCaps. The xml references the mapName of "world_war_ii_revised".
What happens is that TripleA looks in assets\units and then in the world_war_ii_revised master. I would like it to look in the BuildCaps/units folder.
I can work around this by copying everything from world_war_ii_revised-master into the BuildCaps folder and set the mapName to "world_war_ii_revised". Is there a better solution, so my zip file only contains the files needed?
Hepps Moderators last edited by
@rogercooper why not just copy and paste the entire units folder into your new map then simply rename the unique units?
Cernel Moderators last edited by Cernel
@rogercooper said in Referencing Unit Images:
The xml references the mapName of "world_war_ii_revised".
That map doesn't have a units folder. So, referencing that map means using the TripleA assets only, as far as units go.
What happens is that TripleA looks in assets\units and then in the world_war_ii_revised master.
It works the other way round.
Is there a better solution, so my zip file only contains the files needed?
There is not, and, actually, as far as I know, the developers decided not to have in the repository xml looking at maps they are not part of (but this doesn't matter to you, if you are not aiming at adding this game to download list).
However, as said, "WWII Revised" is fully supported by TripleA units assets; so you would just need having the units you want (referencing your map folder) and, for the rest, it will use TripleA assets (like in the case of "the_pact_of_steel").
So I confirm no other ways but pasting all the skin elements of "world_war_ii_revised" into your variant of it and, additionally to that, add a units folder with a Japanese subfolder and the armour_ja image in it.
@cernel Thanks for the answer. I will just need to copy everything.