The build seems to have changed a bit since the last release. Java help needed.
Created attachment 61691 [details] in-progress: triplea-0.6.0.ebuild Here's an attempt at an ebuild, but it still needs some work There's a new library dependency, which I created a bug and ebuild for. jgoodies-looks is now used in favor of jgoodies-looks-bin. Tweaked RDEPEND/DEPEND: jdk should only be in DEPEND, and jre in DEPEND Added doc useflag, for misc docs and javadoc. Now installs triplea.jar with java-pkg_dojar, and updated the wrapper scripts to reflect this. Problems that remain: When attempting to start a game, the following exception occurs: java.lang.IllegalStateException: resource not found:/games/strategy/triplea/image/images/maps/classic/smallMap.jpeg at games.strategy.triplea.image.MapImage.loadImage(MapImage.java:48) at games.strategy.triplea.image.MapImage.loadMaps(MapImage.java:92) at games.strategy.triplea.image.MapImage.loadMaps(MapImage.java:84) at games.strategy.triplea.ui.TripleAFrame.<init>(TripleAFrame.java:123) at games.strategy.triplea.TripleA.startGame(TripleA.java:90) at games.strategy.engine.framework.ui.LauncherFrame$6.run(LauncherFrame.java:343) at java.lang.Thread.run(Thread.java:534) I'm not really familar with resources in Java, nor the inner workings of triplea, so I'm unsure of how to fix this.
hmmm. brown-paper-bag release from upstream.
Brown paper bag? If you are wondering about what was changed this is posed on the front page of http://triplea.sourceforge.net/ --- users have found an un-expected bug dealing with aircraft landing [ref 1225276]. This bug was quickly fixed and tested. We are pushing out a micro-release of TripleA version 0.6.0.1. This includes the bug fix and allows for cross compatibility of saved games between v0.6.0 and v0.6.0.1 only. --- That bug made the game pretty much unplayable.
Created attachment 62264 [details] triplea-0.6.0.1.ebuild i think this should be fine
Created attachment 62265 [details, diff] files/triplea-0.6.0.1-gentoo.patch
forgot: dev-java/ant-core in DEPEND :x
triplea_ai doesn't work for me. After starting up a game with all AIs and me playing russia, the game has lots of java issues and eventually stops with some kind of stack problem. Is it upstream's problem or the ebuild?
can you paste the output? i can't get it todo anything wrong
Nonworking AI is an upstream problem. It's abandoned, out of date code and according to the devs was never much of an usable AI anyway (too stupid). You can read about it on the upstream webforum.
on my system i can't get it to gives error. if the AI is any good or not doesn't really matter the stack problem is fairly common on hardended systems, and we have no solution for those. (nobody in java team uses hardended, and they aren't very friendly) but if there are other errors before it, or you're not on a hardended toolchain ...
Created attachment 62419 [details] java errors pretty ugly but there it is.
that just looks like an infinite loop/recursion can you reproduce this easy? (how?) i blame upstream
Here's how to reproduce the problem: start triplea_ai set all players to computer except for russia, then start the game. don't roll for tech (just click done) buy all infantry for production move all available troops into the Ukraine start the battle... error.
Anyway i was thinking of a diffrend stack error in my previeus comments it is definitly broken upstream code and they say it is broken too so i would just remove the triplea_ai wrapper
Im a developer for TripleA. The ai is hopelessly hooped, and shouldnt be enabled. The ai is enabled by passing -Dtriplea.ai=true, this should be removed. This bug, http://bugs.gentoo.org/attachment.cgi?id=62419 Is from the ai being turned on.
ok it's in there. Thanks for the ebuild axxo.