Bug: JCivEd crashed wen CIV dir not available
A toolbox for Sid Meier's Civilization
Status: Alpha
Brought to you by:
darkpandaman
At launch, JCivEd crashes if no CIV directory is present - it should not crash, it should just start with gamesave edition disabled.
The reason is that it tries to pre-render Civ fonts for UI usage, even though FONTS.CV is not available (since CIV dir is not available).
Output and stack trace:
Loading PIC spritesWARNING: could not find resource 'settings.ini' .WARNING: could not find resource './TER257.PIC' WARNING: could not find resource 'TER257.PIC' cancelled by user; game save edition unavailable Loading SVE data models: DM_SVE_EN.txt... OK DM_SVE_FR.txt... OK memory_map_SVE_header.txt... OK Loading and pre-rendering FONTS.CVWARNING: could not find resource './FONTS.CV' Exception in thread "main" java.lang.NullPointerException at dd.jcived.jciveditor.JCivEditor.start(JCivEditor.java:134) at dd.jcived.jciveditor.Main.main(Main.java:6)
Diff:
Fixed in 0.0.19a