Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Does Java support relative paths?

    Development
    2
    2
    257
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Eqqman last edited by

      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?

      TheDog 1 Reply Last reply Reply Quote 2
      • TheDog
        TheDog @Eqqman last edited by

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

        e8305a6f-34bc-48ff-8f23-b6851e14329b-image.png

        .
        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
        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums