<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Does Java support relative paths?]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">Or on another tack, can you not create a global graphics object like :<br />
image1 = misc\graphic1.png<br />
And then tell everything to refer to image1 rather than explicitly type out the file name every time?</p>
]]></description><link>https://forums.triplea-game.org/topic/3698/does-java-support-relative-paths</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 04:48:42 GMT</lastBuildDate><atom:link href="https://forums.triplea-game.org/topic/3698.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Jan 2024 01:58:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Does Java support relative paths? on Mon, 08 Jan 2024 09:39:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eqqman" aria-label="Profile: eqqman">@<bdi>eqqman</bdi></a><br />
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 <strong>not</strong> in the faction folder like below, one named icon is shared across all factions, so no duplicated icons.<br />
All the Industries, Bunkers &amp; Oil Field are shared.</p>
<p dir="auto"><img src="/assets/uploads/files/1704706352438-e8305a6f-34bc-48ff-8f23-b6851e14329b-image.png" alt="e8305a6f-34bc-48ff-8f23-b6851e14329b-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">.<br />
As an aside, map makers have done clever things with misc images, like</p>
<ul>
<li>making another tile layer to cover the whole of the map</li>
<li>using one really big image layer, again to cover the whole of the map</li>
</ul>
]]></description><link>https://forums.triplea-game.org/post/60251</link><guid isPermaLink="true">https://forums.triplea-game.org/post/60251</guid><dc:creator><![CDATA[TheDog]]></dc:creator><pubDate>Mon, 08 Jan 2024 09:39:40 GMT</pubDate></item></channel></rss>