Does Java support relative paths?
-
When editing a map's "decorations.txt" file I noticed that I cannot simply assign it a file name if that file exists in anything other than the "misc" folder. If I don't want to have duplicate copies of graphics files all over the place, is there a relative path specification for Java so that the entries in "decorations.txt" know to look for the file in a different folder from the default.
Or on another tack, can you not create a global graphics object like :
image1 = misc\graphic1.png
And then tell everything to refer to image1 rather than explicitly type out the file name every time? -
@eqqman
Not what you are after, but if you want to share a unit.png across all factions you can put the unit icon in the unit folder and not in the faction folder like below, one named icon is shared across all factions, so no duplicated icons.
All the Industries, Bunkers & Oil Field are shared..
As an aside, map makers have done clever things with misc images, like- making another tile layer to cover the whole of the map
- using one really big image layer, again to cover the whole of the map