TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Does Java support relative paths?

    Scheduled Pinned Locked Moved Development
    2 Posts 2 Posters 969 Views 2 Watching
    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 Offline
      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?

      TheDogT 1 Reply Last reply Reply Quote 2
      • TheDogT Offline
        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

        https://forums.triplea-game.org/tags/thedog
        https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

        1 Reply Last reply Reply Quote 1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums