Borg bugs and feature requests

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • agoodman
    replied
    Originally posted by backwardsEric
    From lines 1948-1949, 2283, and 2297 of player-calcs.c, off-weapon extra blows contribute to the total extra blows passed to calc_blows().
    okay, I added trait for "BI_EXTRA_BLOWS" which should be all the blows granted by things that aren't the weapon. I think this will work. It doesn't do the p->obj_k->modifiers stuff but, if I am reading things right, that is always just 1 if you know that rune and if you don't the borg shouldn't have put it as an item attribute.

    I should double check the extra shots and extra might calcs as well. I am pretty sure they are wrong but I am not really sure how. I updated that code while still figuring out the new structures.

    Leave a comment:


  • backwardsEric
    replied
    Originally posted by agoodman
    If you have a blade with extra blows, then armor that gives more extra blows, does it work or is that not allowed? I will muck up my artifacts.txt to try to give armor with extra blows to see what happens.
    From lines 1948-1949, 2283, and 2297 of player-calcs.c, off-weapon extra blows contribute to the total extra blows passed to calc_blows().

    Leave a comment:


  • agoodman
    replied
    Originally posted by backwardsEric
    In recent post 4.2.5 builds, there's this compiler warning on macOS:

    Code:
    borg/borg-trait.c:1180:9: warning: variable 'extra_blows' set but not used [-Wunused-but-set-variable]
        int extra_blows                   = 0;
    I suspect that borg-trait.c should be using extra_blows at line 1892 (though it will have to avoid double counting extra blows from the equipped weapon) missing a line around 1858 to set borg.trait[BI_BLOWS] with the new value of the extra blows from the equipment.
    I will have to check if having "extra blows" on a non-weapon does something. If you have a blade with extra blows, then armor that gives more extra blows, does it work or is that not allowed? I will muck up my artifacts.txt to try to give armor with extra blows to see what happens.

    Leave a comment:


  • backwardsEric
    replied
    In recent post 4.2.5 builds, there's this compiler warning on macOS:

    Code:
    borg/borg-trait.c:1180:9: warning: variable 'extra_blows' set but not used [-Wunused-but-set-variable]
        int extra_blows                   = 0;
    I suspect that borg-trait.c should be using extra_blows at line 1892 (though it will have to avoid double counting extra blows from the equipped weapon) missing a line around 1858 to set borg.trait[BI_BLOWS] with the new value of the extra blows from the equipment.
    Last edited by backwardsEric; December 8, 2023, 14:31. Reason: had not noticed the code at borg-trait.c:1892

    Leave a comment:


  • Pete Mack
    replied
    A mage cannot dig magma for some time

    Leave a comment:


  • agoodman
    replied
    Originally posted by Evilpotatoe
    I didn't remember that @could now dig without having to swap to the pick, but... are you telling me @spending hundred of turns to dig through a *magma* vein with a shovel of digging is normal efficiency ?

    I often dig through magma with crappy weapons.. is it that Vanilla's magma is tougher than Forg's one ? Or a question of non-optimized stats in my case (chose default human warrior for the borg, far from my usual brutes)
    Ya, that was caused by the RNG bug I just mentioned... If you failed once, you failed forever for repeats with the code the way it was. I just checked in a quick fix. Hopefully this will solve "repeated commands don't seem to work so well for the borg".

    Leave a comment:


  • Evilpotatoe
    replied
    I didn't remember that @could now dig without having to swap to the pick, but... are you telling me @spending hundred of turns to dig through a *magma* vein with a shovel of digging is normal efficiency ?

    I often dig through magma with crappy weapons.. is it that Vanilla's magma is tougher than Forg's one ? Or a question of non-optimized stats in my case (chose default human warrior for the borg, far from my usual brutes)

    Leave a comment:


  • agoodman
    replied
    ok, its calculation of the digging chance isn't great (code needs improvement) and additionally this character is on the hairy edge of what the borg considers "acceptable chance of digging". The game calculates the odds at 192 out of 1600
    okay = (chance > randint0(1600));
    so it failing over and over seems long odds... if not for a bug where the borg is resetting the random seed on repeated commands! Argh! Time to fix that one.

    The digging chance calculations will go on my "todo" queue.

    Leave a comment:


  • agoodman
    replied
    Originally posted by Evilpotatoe
    File was indeed broken.
    After several reuploads, it was broken everytime... dunno why. Maybe the hyphen ?
    I don't remember my filezilla breaking sent file in the past.

    Anyway, looks fine in a zip (I fixed my link).

    --
    I downloaded a fresh Angband 4.2.5 just to test the borg, so there's nothing particular on my version
    But Is that digging behavior a real new discoverey ?
    It looked so "obvious" to me I thought it would be a known issue. I'm not even sure I changed one birth option.
    This zipped save file works for me. With the latest code (including the fix I mentioned doing last time) I see
    You tunnel into the magma vein with treasure with your swap digger. <100x>
    so it -is- using the digger. I am now checking if the code has miscalculated the chance of successful digging so it is trying to dig when it shouldn't. I am not confident in the code that calculates the digging chance with swap.

    As for if this digging behavior is new, I think it is. It is definitely new for the borg to take advantage of it rather than manually swapping to the digger.

    Leave a comment:


  • Evilpotatoe
    replied
    File was indeed broken.
    After several reuploads, it was broken everytime... dunno why. Maybe the hyphen ?
    I don't remember my filezilla breaking sent file in the past.

    Anyway, looks fine in a zip (I fixed my link).

    --
    I downloaded a fresh Angband 4.2.5 just to test the borg, so there's nothing particular on my version
    But Is that digging behavior a real new discoverey ?
    It looked so "obvious" to me I thought it would be a known issue. I'm not even sure I changed one birth option.

    Leave a comment:


  • agoodman
    replied
    Originally posted by backwardsEric
    I'm not able to load the savefile; is there a chance that it was generated with a modded version? Looking at the code for the tunneling command, the only reason it wouldn't be able to swap for a digger in the inventory is if the currently wielded weapon or the digger has a sticky curse, but there's no weapons or diggers with sticky curses in Vanilla.
    I didn't notice the save file. Ya, I am having the same issue. It looks like it is failing when loading the dungeon. I wonder if this is pre-dungeon size fix and we happen to be past that limit on this save.

    That said, the problem here, IMO, is that it doesn't tell you it used the digger. So it is probably trying the digger and failing to dig. What do you think of changing the messages to say things like
    You have removed the rubble with your swap digger.
    when you auto-swap or
    You have removed the rubble with your weapon.
    when you don't? Gets slightly wordy when
    You dig in the rubble {with your swap digger/with your weapon} with little effect.
    but not too bad. I can put together a quick change around this.

    Leave a comment:


  • backwardsEric
    replied
    Originally posted by agoodman
    @backwardsEric Shouldn't it be auto-switching to use the shovel? Is there something that would prevent this?
    I'm not able to load the savefile; is there a chance that it was generated with a modded version? Looking at the code for the tunneling command, the only reason it wouldn't be able to swap for a digger in the inventory is if the currently wielded weapon or the digger has a sticky curse, but there's no weapons or diggers with sticky curses in Vanilla.

    Leave a comment:


  • agoodman
    replied
    @backwardsEric Shouldn't it be auto-switching to use the shovel? Is there something that would prevent this?

    Leave a comment:


  • Evilpotatoe
    replied
    Taking a glance at the borg, I notice it loves both digging and carrying a digger in inventory but doesn't seem to get the point of it



    Savefile, if interested
    Last edited by Evilpotatoe; October 25, 2023, 19:16.

    Leave a comment:


  • agoodman
    replied
    Originally posted by agoodman
    I may not have coded for the cowardice curse. That is a new curse so it is possible I don't have code to avoid it. I will take a look.
    Yep. Looks like it is on the list of curses the borg knows but doesn't yet handle. So far that's been okay because the borg usually will try to uncurse such objects quickly... but it looks like yours got stuck before it could. I will add some checks for the newer curses.

    Leave a comment:

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