Menu

#3 Bug: JCivEd crashed wen CIV dir not available

0.0.19a
closed
bug (1)
2022-02-11
2019-04-06
No

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)

Discussion

  • darkpandaman

    darkpandaman - 2019-04-06
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -At launch, JCivEd crashes if no CIV directory is present - it should not crash, it should just start with gamesae edition disabled.
    +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).
    
     
  • darkpandaman

    darkpandaman - 2022-02-03
    • Milestone: 1.0 --> 0.0.19a
     
  • darkpandaman

    darkpandaman - 2022-02-03

    Fixed in 0.0.19a

     
  • darkpandaman

    darkpandaman - 2022-02-03
    • status: open --> accepted
     
  • darkpandaman

    darkpandaman - 2022-02-11
    • status: accepted --> closed
     

Log in to post a comment.