How do I edit the object file correctly?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mud
    Rookie
    • Dec 2020
    • 5

    How do I edit the object file correctly?

    I was experimenting with the .txt files and decided to try and change torch to flare in the object.txt file. It crashed on start up since I don't know what I'm doing and was wondering if there was a place that already had info on how to mod Angband.
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9634

    #2
    This has changed quite a bit recently, and there probably aren't any really good current sources of information. There is some info at the top of the .txt datafiles as a starting point.

    One simple thing you can do is search through all the files in lib/gamedata (and lib/tiles if you're using tiles) for the thing you're planning to change. In your case, the crash will be because other files (class.txt, ego_item.txt, store.txt) are expecting to find an object called "Wooden Torch" - if you change the name in all those places, it should work.
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • Mud
      Rookie
      • Dec 2020
      • 5

      #3
      That makes sense and thank you. I will post an update if I find consistent similarities between objects and the different files.

      Comment

      • Mud
        Rookie
        • Dec 2020
        • 5

        #4
        You were right, chanigng the name in all the files worked. Some require many to be changed, like the Wooden Torch, since characters start with one while "flask~ of oil" only needed the object.txt and store files to be changed.
        Attached Files

        Comment

        • Mud
          Rookie
          • Dec 2020
          • 5

          #5
          Does the (~) always come after the first word in a name for a reason? Apple~ vs. Handful~ of dried fruit.
          Attached Files

          Comment

          • Sideways
            Knight
            • Nov 2008
            • 896

            #6
            The ~ indicates where the plural goes if you have more than one; so you have apples, handfuls of dried fruits, flasks of oil, hard biscuits etc.
            The Complainer worries about the lack of activity here these days.

            Comment

            • Mud
              Rookie
              • Dec 2020
              • 5

              #7
              Ok and thanks!

              Comment

              • Pete Mack
                Prophet
                • Apr 2007
                • 6883

                #8
                Oh right, Merry Xmas!
                Soon it will be time to kill santa and his elves.

                Comment

                • invisibletroll
                  Apprentice
                  • Jul 2020
                  • 50

                  #9
                  Originally posted by Pete Mack
                  Oh right, Merry Xmas!
                  Soon it will be time to kill santa and his elves.
                  If you kill Santa, I will kill you.

                  Comment

                  • Pete Mack
                    Prophet
                    • Apr 2007
                    • 6883

                    #10
                    As it is Festivus, how come there are no Easter egg monsters for today? And speaking of Easter, what about easter bunnies? Maybe they should breed in town?

                    Comment

                    • invisibletroll
                      Apprentice
                      • Jul 2020
                      • 50

                      #11
                      Originally posted by Pete Mack
                      As it is Festivus, how come there are no Easter egg monsters for today? And speaking of Easter, what about easter bunnies? Maybe they should breed in town?
                      LMAO? You're drunk on Perl?

                      Comment

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