Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old August 7, 2011, 14:45   #1
kurie
Scout
 
Join Date: Feb 2010
Posts: 39
kurie is on a distinguished road
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.
kurie is offline   Reply With Quote
Old August 25, 2011, 23:21   #2
APWhite
Adept
 
APWhite's Avatar
 
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
APWhite is on a distinguished road
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
APWhite is offline   Reply With Quote
Old August 26, 2011, 16:15   #3
dos350
Knight
 
dos350's Avatar
 
Join Date: Sep 2010
Location: nimbin, australia
Posts: 505
dos350 is on a distinguished road
Quote:
Originally Posted by APWhite View Post
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+++++++++++++++++++
dos350 is offline   Reply With Quote
Old August 30, 2011, 12:37   #4
thapper
Adept
 
Join Date: Aug 2008
Location: Sweden
Posts: 166
thapper is on a distinguished road
I found a bug when I looked in the character file for my current borg ranger:

Quote:
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.
thapper is offline   Reply With Quote
Old August 30, 2011, 13:56   #5
thapper
Adept
 
Join Date: Aug 2008
Location: Sweden
Posts: 166
thapper is on a distinguished road
I made a save file, all the {magical} items in the inventory are bad.
Attached Files
File Type: zip EcholBor.zip (13.3 KB, 85 views)
thapper is offline   Reply With Quote
Old September 2, 2011, 04:12   #6
APWhite
Adept
 
APWhite's Avatar
 
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
APWhite is on a distinguished road
Quote:
Originally Posted by thapper View Post
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.
APWhite is offline   Reply With Quote
Old September 2, 2011, 09:48   #7
thapper
Adept
 
Join Date: Aug 2008
Location: Sweden
Posts: 166
thapper is on a distinguished road
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).
thapper is offline   Reply With Quote
Old September 4, 2011, 17:57   #8
APWhite
Adept
 
APWhite's Avatar
 
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
APWhite is on a distinguished road
Quote:
Originally Posted by thapper View Post
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.
APWhite is offline   Reply With Quote
Old September 6, 2011, 16:12   #9
thapper
Adept
 
Join Date: Aug 2008
Location: Sweden
Posts: 166
thapper is on a distinguished road
Quote:
Originally Posted by APWhite View Post
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
File Type: zip EchoB.zip (14.6 KB, 79 views)
thapper is offline   Reply With Quote
Old September 7, 2011, 04:23   #10
APWhite
Adept
 
APWhite's Avatar
 
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
APWhite is on a distinguished road
Quote:
Originally Posted by thapper View Post
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 at 04:54.
APWhite is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Borg on Twitter APWhite Development 9 May 3, 2011 10:17
Angband Borg 3.0.9 and windows Zappa Vanilla 38 October 27, 2010 20:31
Angband borg-friendly? ClaytonAguiar Development 10 May 3, 2010 16:33
APW angband borg halts? chief Vanilla 1 December 1, 2008 21:21
Angband and the Borg on Linux wastedyouth Vanilla 20 July 23, 2008 00:08


All times are GMT +1. The time now is 17:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.