Lua "obsolete file error", blargh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Therem Harth
    Knight
    • Jan 2008
    • 926

    Lua "obsolete file error", blargh

    So I created a new skill for a new category of weapons, modifying all the right files as far as I could tell - defines.h, player_c.pkg, w_play_c.c, and s_info.txt. And now the game won't start, complaining about an "obsolete file error" in s_info.txt.

    That is... pretty cryptic. What does it mean, how can I fix it, and where can I change the error message so that I get useful information when faced with similar issues in the future?
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9639

    #2
    Obsolete file error in my experience usually means you've got the version number wrong in one of the .txt files or in defines.h.
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • Therem Harth
      Knight
      • Jan 2008
      • 926

      #3
      In this case though, it was the number I'd assigned to the new skill. I had made it 60 which for some reason the game didn't like. Making it 38 solved it.

      Comment

      • ekolis
        Knight
        • Apr 2007
        • 921

        #4
        Perhaps there is a MAX_SKILLS constant somewhere set to less than 60?
        You read the scroll labeled NOBIMUS UPSCOTI...
        You are surrounded by a stasis field!
        The tengu tries to teleport, but fails!

        Comment

        • Slow
          Rookie
          • Aug 2009
          • 6

          #5
          Originally posted by ekolis
          Perhaps there is a MAX_SKILLS constant somewhere set to less than 60?
          Exactly. /lib/edit/misc.txt:
          Code:
          # Maximum number of skills in s_info.txt
          M:k:60

          Comment

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