'object.txt' format suggestion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PaulBlay
    Knight
    • Jan 2009
    • 657

    'object.txt' format suggestion

    Suggestion: Add 'otion' (etc.) to the N: line.

    It makes it more obvious that

    N:433etection:rod
    G:-:d
    I:66:4:0

    is a rod (not a wand) and it allows the 'name' line to be unique even without the number (does not apply to certain artifacts). The latter would come in handy if it is ever decided to re-order the list (between versions or between variants). It would also make it consistent with monster.txt where the monster name should be unique.
    Currently turning (Angband) Japanese.
  • zaimoni
    Knight
    • Apr 2007
    • 590

    #2
    Eh...what would really be helpful when reordering the list, is obliterating the index number outright and just going off of sval/tval indexing. I'd be fine with changing sval to a textual representation as well, for readability (but I think that might be in V SVN already).

    It's not that difficult a change (pushed through in Zaiband 3.0.9). Easy way to do it is to make the k_idx an internal detail handled when loading the file, that never reaches the savefile or the object.txt file.
    Zaiband: end the "I shouldn't have survived that" experience. V3.0.6 fork on Hg.
    Zaiband 3.0.10 ETA Mar. 7 2011 (Yes, schedule slipped. Latest testing indicates not enough assert() calls to allow release.)
    Z.C++: pre-alpha C/C++ compiler system (usable preprocessor). Also on Hg. Z.C++ 0.0.10 ETA December 31 2011

    Comment

    • PaulBlay
      Knight
      • Jan 2009
      • 657

      #3
      Originally posted by zaimoni
      (but I think that might be in V SVN already).
      Not when I downloaded it a short while back.

      I think you're right about just using the tval and sval. If a single number is really needed you could just have TTTSSS (e.g. tval * 1000 + sval). That would allow easy ordering and a unique number while still preserving the tval and sval information.
      Currently turning (Angband) Japanese.

      Comment

      • zaimoni
        Knight
        • Apr 2007
        • 590

        #4
        Currently, the single number that is needed is an array index into the reference data for the standard objects. Eliminating this number from the object.txt configuration files was easy.

        Eliminating this number from the monster.txt files: not so easy; I don't see a good hook for doing this. But that would also be very convenient.
        Zaiband: end the "I shouldn't have survived that" experience. V3.0.6 fork on Hg.
        Zaiband 3.0.10 ETA Mar. 7 2011 (Yes, schedule slipped. Latest testing indicates not enough assert() calls to allow release.)
        Z.C++: pre-alpha C/C++ compiler system (usable preprocessor). Also on Hg. Z.C++ 0.0.10 ETA December 31 2011

        Comment

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