From: Lane S. <dow...@gm...> - 2005-01-31 16:19:50
|
On Sun, 30 Jan 2005 11:42:06 -0500, NeKromancer <nek...@co...> wrote: > I have added Thomas Matthijs's fix for TripleA's path name when finding > the Root folder for triplea (GameRunner.java) > > I as well started changing the path names around in triplea. I took the > idea from Thomas Matthijs again to have TripleA look for a path relative > to the package name ie. /games/strategy/ ...etc I put the fully > qualified map directory path in Constants.java along with a constant for > a file separator ie. "/" or "\" if on windows.. handled by Java VM for > platform independency or something. > > It all works except for the Map Skins selection code. I tried to mess > with it, but it keeps throwing a null when trying to get a directory > listing (TripleAFrame.java).. > > Currently the source is like so: > > final File mapsDir = new File(System.getProperty("user.dir") + > "/../classes/" + Constants.MAP_DIR); > > Ideally I want it to use the Constants.MAP_DIR alone without depending > on the "user.dir" and the "/../classes/" > > The MAP_DIR = /games/strategy/triplea/image/images/maps/ > > This won't have any problems with people who install triplea out of the > box.. but will for people who install triplea via a Gentoo ebuild or any > package that places the binaries else where. > > -- > NeKromancer (also known as George) > nek...@co... Hi there. I'm glad to hear that you're looking at the path issues. I recently started tinkering around with triplea, and I had to tweak the path definition (don't remember which file off the top of my head) to get it to work properly inside Eclipse. Lane -- Meetup with other Myth users! http://mythtv.info/moin.cgi/MUG |