Borg Issues with the latest nightly
Collapse
X
-
In this example (from the previous nightly), the borg is trying and failing to sell a ring, and gets stuck.
Attached FilesLeave a comment:
-
-
I appreciate the bug reports. Let me know what you find.
I tend to prioritize "It crashes" or "it locks up/repeats commands forever" over "it is behaves non-optimally" ... because the borg is very stupid and there is a long list of optimizations it needs. See https://github.com/agoodman00/angband/discussions/21 for some.
Leave a comment:
-
Great! That should be a useful fix!
That makes sense. Now the borg spends all its time enchanting ammo at home though of course.The "exploring" code needs work and is very complex. It frequently leaves good stuff lying around while it chases around to explore. At some point someone coded arrows (and all fired objects) to be very low priority with a comment about the borg spending all its time shooting then chasing down ammo. Not sure why that was the wrong thing for the borg to do... Probably won't get to a fix for that for a while
Regarding the other issues, thanks for the response! I'll keep running it and submitting reports as I can!Leave a comment:
-
Yup, this is giving coverage in the home for "resist light" which is not covered anywhere else... never mind that it will never be a good enough swap to actually use. The calculations on "what is best to keep at home" are pretty complicated and involve trying to keep swaps for each resist in case they ever come in handy later. Frequently things that are obvious to humans aren't so easy to code for.Leave a comment:
-
Okay, this problem is much worse than I mentioned above and is a known bug. You will notice this only happens in the home. In the home, the borg does a much more complicated "what is best to wear" calculation. The borg thinks it should optimize its inventory and equipment by making multiple swaps (like "if I change weapons and this armor and ring, I am more powerful") but the borg code is state based so it makes the first change, discovers "hey, I am less powerful with this different weapon" (not keeping the "I had future plans" part) and switches back.... repeat till the anti-loop code kicks in. It is an area that needs a full rewrite. Not only does it need to "keep in mind" several steps to get the best inventory and equipment and home inventory but it needs to do it more efficiently than it currently does... currently it does a whole lot of memory copies of structures where it could be written to just shift pointers around.
This is on my "todo" list but lately I have been chasing an issue where the borg seems to be getting keypresses queue messed up giving "unexpected request for direction" or error bells sounding.Leave a comment:
-
Taking a look.
Single combat is new... I will need to put it on the "do not test/cast this spell" list until I know how to code for it.it keeps trying to cast Single Combat without a valid target..
(Just added that change to my queued borg pull request)
The "exploring" code needs work and is very complex. It frequently leaves good stuff lying around while it chases around to explore. At some point someone coded arrows (and all fired objects) to be very low priority with a comment about the borg spending all its time shooting then chasing down ammo. Not sure why that was the wrong thing for the borg to do... Probably won't get to a fix for that for a whileI've also noticed that it sometimes forgets to retrieve ammo and other floor items before recalling back, even if it's not in any danger.
Hmmm, my guess is it is messing up knowing when the weapon is "bad" for priests or paladins. I can check into it. This is based on power calculations. I can look into what it will take to fix this. It is worth noting that the borg does eventually kick free and move on.Here's another example where it gets stuck trying to decide which weapon to use.
There are a lot of cases like this where the borg thinks item A is better then, once it has it, decides it was wrong and item B was better. I squish them when I can.
there isn't a check for "know all the runes" so late in the game the borg tends to hoard ID scrolls unnecessarily. Not sure how to add a "know all runes" check but I am thinking of adding a "if above level 45, only carry ID scrolls if you are carrying something that needs ID" check...1. Why is it hoarding Identify Rune scrolls? It should know them all by now..
2. Why is it hanging on to the lantern of shadows?
I would need to debug into it. My guess is it thinks there is some resist it can swap that in to get.😀 1Leave a comment:
-
Two quick notes about this borg --
1. Why is it hoarding Identify Rune scrolls? It should know them all by now.
2. Why is it hanging on to the lantern of shadows?Attached FilesLeave a comment:
-
Here's another example where it gets stuck trying to decide which weapon to use.Attached FilesLeave a comment:
-
Borg Issues with the latest nightly
I've been running the borg in the latest release on Github, and it's encountering some issues. In this example, it keeps trying to cast Single Combat without a valid target.
I've also noticed that it sometimes forgets to retrieve ammo and other floor items before recalling back, even if it's not in any danger.
Attached FilesTags: None
Leave a comment: