Graphics pref file bug in recent nightlies

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nomad
    Knight
    • Sep 2010
    • 958

    Graphics pref file bug in recent nightlies

    There's a tile loading bug been introduced sometime since the 5th September nightly: versions from 87b2b3c onwards seem to have it. On selecting a tile set or loading a game with one selected, I get an "unrecognized sval" parse error in the main pref file for that tile set, and then the game loads only the feature tiles, using ASCII for monsters an objects.

    The problem appears to be that it's not reading named tvals correctly; everything loads fine for features and the pile tile, which are all specified by numerical tvals, but then the error occurs at line 189 column 5:

    K:light:Wooden Torch~:0x89:0x80

    which is the first tile to be specified by K:name: instead of a number.
  • Timo Pietilä
    Prophet
    • Apr 2007
    • 4096

    #2
    Originally posted by Nomad
    The problem appears to be that it's not reading named tvals correctly; everything loads fine for features and the pile tile, which are all specified by numerical tvals, but then the error occurs at line 189 column 5:

    K:light:Wooden Torch~:0x89:0x80

    which is the first tile to be specified by K:name: instead of a number.
    Same happens with Original, David Gervais and Adam Bolt tiles at the line where K:name instead of number appears, so problem is definitely that it doesn't recognize named lines correctly.

    Comment

    • Magnate
      Angband Devteam member
      • May 2007
      • 5110

      #3
      Originally posted by Timo Pietilä
      Same happens with Original, David Gervais and Adam Bolt tiles at the line where K:name instead of number appears, so problem is definitely that it doesn't recognize named lines correctly.
      It's to do with the tilde. A separate change removed the need for the tilde (which was a "can be pluralised" marker). If you remove all the tildes from all the prf files, it should all be fine. This will be fixed soon.

      EDIT: I think I have fixed this (using sed!) - but I am at work so cannot test. The Windows build is here, so please shout if the bug is still extant.
      Last edited by Magnate; September 19, 2011, 12:50.
      "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎