Angband 3.2.0 Borg

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kurie
    Scout
    • Feb 2010
    • 39

    Angband 3.2.0 Borg

    Is there anyone else here with experience using Andrew Whites Borg program for Angband 3.2.0? I think perhaps something is wrong with mine.

    I downloaded the Angband 3.2.0 files and unzipped them as usual. I put the borg.txt file in /lib/usr. I also replaced the executable with the 3.2.0 borg executable.

    I use CTRL+Z to start him up, and press z. Off he goes. He runs for a while with no problem, and than decides to run around a corner, and back again, in an endless pattern.

    For example, he wanted to sell something at the black market. The entrance to the black market was on the bottom of that building, and the borg was at the top. He went all the way around the top right corner, down 2 squares, and back up and turned left again. He did this endlessly.

    He does this in the dungeon when he can't get back to the stairs. He hit a trap and was teleported. Instead of exploring he just walks back and forth up the same 6 sqaures of hallway.

    Can anyone explain why? Thanks.
  • APWhite
    Adept
    • Jul 2007
    • 244

    #2
    the borg will keep count of his steps. He will break loops if he gets to about 350 steps. Did you let it run at least 350 steps? If it is still freaking out, send me the savefile.

    Also, I trust it was a typo when you say the borg.txt file is in the \usr directory, it should be the existing \user directory.

    Andrew
    St George Chiropractor
    Angband Borg Homepage

    Comment

    • dos350
      Knight
      • Sep 2010
      • 546

      #3
      Originally posted by APWhite
      the borg will keep count of his steps. He will break loops if he gets to about 350 steps. Did you let it run at least 350 steps? If it is still freaking out, send me the savefile.

      Also, I trust it was a typo when you say the borg.txt file is in the \usr directory, it should be the existing \user directory.

      Andrew
      vouch this
      ~eek

      Reality hits you -more-

      S+++++++++++++++++++

      Comment

      • thapper
        Adept
        • Aug 2008
        • 168

        #4
        I found a bug when I looked in the character file for my current borg ranger:

        10105720 1050' 31 Found The Long Sword 'Ringil' (LOST)
        He had no business discarding/selling that and keeping his maul of westernesse...

        More seriously, I think there is a "information leak" problem with the pseudo-id. My current borg (high-elf ranger) seem to know if a magical item has minuses. In that case he does not waste any id to check out what it is. Unfortunately (for him) he never discards the object either, if he has space in his pack. So from time to time he can be hauling around 5-6 magical items, all of them having negative toHit and toDam (or negative ACbunus).

        I don't know if this will be an issue with 3.3Borg but I thought I'd report it, I don't have a save file either but I can try to make one if it helps.

        Comment

        • thapper
          Adept
          • Aug 2008
          • 168

          #5
          I made a save file, all the {magical} items in the inventory are bad.
          Attached Files

          Comment

          • APWhite
            Adept
            • Jul 2007
            • 244

            #6
            Originally posted by thapper
            I found a bug when I looked in the character file for my current borg ranger:



            He had no business discarding/selling that and keeping his maul of westernesse...

            More seriously, I think there is a "information leak" problem with the pseudo-id. My current borg (high-elf ranger) seem to know if a magical item has minuses. In that case he does not waste any id to check out what it is. Unfortunately (for him) he never discards the object either, if he has space in his pack. So from time to time he can be hauling around 5-6 magical items, all of them having negative toHit and toDam (or negative ACbunus).

            I don't know if this will be an issue with 3.3Borg but I thought I'd report it, I don't have a save file either but I can try to make one if it helps.

            I grabbed the savefile. The fix was applied about a week ago. But the upload didn't get done until tonight. Try grabbing the new borg and testing it. When I ran your savefile, the borg killed the hydra, then immediately ID'd the {magical} items.
            St George Chiropractor
            Angband Borg Homepage

            Comment

            • thapper
              Adept
              • Aug 2008
              • 168

              #7
              Thanks, that worked like a charm, he immediately got rid of Wormtongue's boots that was the latest find he wouldn't id.

              While we're at it. The same borg ranger gets the message "dlevel + 8 >= clevel" as reason for not diving (since clevel 30 and still at clevel37). When I look in borg.txt this appears to be formula010 (my reverse Polish is not good so I can't be sure) but formula010 should only apply for mages I think. Formula014 is the "corresponding" for rangers that should allow the borg to go 8 levels deeper than his clevel, something he is not doing.

              I've tried messing about in borg.txt but that doesn't appear to change anything (Changing + to - in formula010 for example). Is there something more I need to do than actually changing the textfile and restarting the borg? (I'm using the precompiled windows.exe by the way).

              Comment

              • APWhite
                Adept
                • Jul 2007
                • 244

                #8
                Originally posted by thapper
                Thanks, that worked like a charm, he immediately got rid of Wormtongue's boots that was the latest find he wouldn't id.

                While we're at it. The same borg ranger gets the message "dlevel + 8 >= clevel" as reason for not diving (since clevel 30 and still at clevel37). When I look in borg.txt this appears to be formula010 (my reverse Polish is not good so I can't be sure) but formula010 should only apply for mages I think. Formula014 is the "corresponding" for rangers that should allow the borg to go 8 levels deeper than his clevel, something he is not doing.

                I've tried messing about in borg.txt but that doesn't appear to change anything (Changing + to - in formula010 for example). Is there something more I need to do than actually changing the textfile and restarting the borg? (I'm using the precompiled windows.exe by the way).

                By default, the borg only uses the top have of borg.txt. The formula you are describing are not used unless you change the borg_uses_dynamic_calcs to TRUE.
                Code:
                # use the POWER_ and REQ_ lines below.  If false the borg will
                # use the calcs in the C code.  Which is recommended since I hone those
                # more frequently than I do the dynamic calcs.  Most borg users will 
                # have more successful borgs by leaving this option as FALSE.
                # note: the dynamic calcs are slower than the internal calcs
                
                borg_uses_dynamic_calcs = FALSE
                Right now, your borg is using the level restrictions based in borg4.c, probably borg_prepared()
                Let me know if you need help sorting through it or tinkering with it.
                St George Chiropractor
                Angband Borg Homepage

                Comment

                • thapper
                  Adept
                  • Aug 2008
                  • 168

                  #9
                  Originally posted by APWhite
                  By default, the borg only uses the top have of borg.txt. The formula you are describing are not used unless you change the borg_uses_dynamic_calcs to TRUE.
                  OK, then I get it, it was of course set to FALSE and I'll leave it like that.

                  I think there might still be something fishy with the stores. From this save file the borg will buy 2 arrows, go to the temple, destroy them, and repeat. Plus that he will buy and sell ?ofDam from the temple (he originally bought them from the alchemist and then sold them to the temple...) Occasionally he'll also buy and sell rations of food. He has done this a few times but after a while he always snap out of it.
                  Attached Files

                  Comment

                  • APWhite
                    Adept
                    • Jul 2007
                    • 244

                    #10
                    Originally posted by thapper
                    OK, then I get it, it was of course set to FALSE and I'll leave it like that.

                    I think there might still be something fishy with the stores. From this save file the borg will buy 2 arrows, go to the temple, destroy them, and repeat. Plus that he will buy and sell ?ofDam from the temple (he originally bought them from the alchemist and then sold them to the temple...) Occasionally he'll also buy and sell rations of food. He has done this a few times but after a while he always snap out of it.
                    There was a problem with the borg not loading the quiver d/t lack of understanding that the items can stack in the quiver.

                    Its fixed now and I should be able to address the scroll buying thing in the morning.

                    He should not be buying the scrolls. Plus, those arrows are not branded and should be. I should have him empty the quiver and force stack them. Or the game should automatically stack the arrows, once they match.
                    Last edited by APWhite; September 7, 2011, 04:54.
                    St George Chiropractor
                    Angband Borg Homepage

                    Comment

                    • APWhite
                      Adept
                      • Jul 2007
                      • 244

                      #11
                      Originally posted by thapper
                      OK, then I get it, it was of course set to FALSE and I'll leave it like that.

                      I think there might still be something fishy with the stores. From this save file the borg will buy 2 arrows, go to the temple, destroy them, and repeat. Plus that he will buy and sell ?ofDam from the temple (he originally bought them from the alchemist and then sold them to the temple...) Occasionally he'll also buy and sell rations of food. He has done this a few times but after a while he always snap out of it.
                      OK, you will find that EchoB is working good now. He will combine the like arrows in the quiver, brand them, and won't buy the enchant scrolls. Borgs word press page.
                      St George Chiropractor
                      Angband Borg Homepage

                      Comment

                      • thapper
                        Adept
                        • Aug 2008
                        • 168

                        #12
                        I'm eager to get the September 14 end game fixes (the windows.exe was still from September 11 when I checked just now) since I think my borg could make it to the end game...

                        But for now EchoB get stuck after activating "Eriril" for ID. I've seen it twice, both times there have been an un-IDd ring in the inventory.
                        Attached Files

                        Comment

                        • thapper
                          Adept
                          • Aug 2008
                          • 168

                          #13
                          No endgame for EchoB, next time I looked into what the borg was doing it was dead, killed by a greater balrog after fighting Us (Gothmog etc) in the middle of a large room...

                          Comment

                          • APWhite
                            Adept
                            • Jul 2007
                            • 244

                            #14
                            Originally posted by thapper
                            I'm eager to get the September 14 end game fixes (the windows.exe was still from September 11 when I checked just now) since I think my borg could make it to the end game...

                            But for now EchoB get stuck after activating "Eriril" for ID. I've seen it twice, both times there have been an un-IDd ring in the inventory.

                            I will run EchoB with debug mode on and catch his death to see why he dies.
                            St George Chiropractor
                            Angband Borg Homepage

                            Comment

                            • APWhite
                              Adept
                              • Jul 2007
                              • 244

                              #15
                              Originally posted by thapper
                              I'm eager to get the September 14 end game fixes (the windows.exe was still from September 11 when I checked just now) since I think my borg could make it to the end game...

                              But for now EchoB get stuck after activating "Eriril" for ID. I've seen it twice, both times there have been an un-IDd ring in the inventory.

                              That's interesting. The ID assumes the equipment is the default group. The borg will need to hit '/' before selecting the 's'. I'll fix this in the morning and let you know.
                              St George Chiropractor
                              Angband Borg Homepage

                              Comment

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