Borg for 320 is running.

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • s0be
    replied
    I'm running a randart borg, and now that one has made it to end game, I've noticed it's artifact collection overlaps with the previous iteration's artifacts. Where/how does the borg respawn? I'd like to re-randomize the artifacts if possible per iteration (to keep my interest).

    Leave a comment:


  • s0be
    replied
    Originally posted by d_m
    You can install dos2unix which just does this (turns windows CRLF into unix LF).

    You can use sed as so: sed -ire 's#\r$##' Makefile.win

    There are many other ways to accomplish this.

    To find all filenames in DIR with windows line endings you can do:

    grep -rl --binary-files=without-match $'\r' DIR

    To find each line in FILE with windows line ending you can do (prefixed by line number with -n):

    grep -n $'\r' FILE

    I'm hoping to get CRLF out of Angband's code base eventually, and will need help keeping it from sneaking back in.

    P.S. These commands all work in bash on *nix (Linux, OSX, BSD, etc). I assume they'll work in Cygwin/Windows too but I'm not sure.
    Yeah, but when I was doing it, it was quick n' dirty. The way I append the patches (echo -e "PATCH1\n$(diff -u ..... )ENDPATCH1" >> makeborg.sh, from memory, so don't quote me on it) didn't make it immediately apparent that there was an endline issue. I either had to pull and re-do the whole script, or just say you have to wget it rather than editing a file and copy/pasting it in.

    Leave a comment:


  • d_m
    replied
    You can install dos2unix which just does this (turns windows CRLF into unix LF).

    You can use sed as so: sed -ire 's#\r$##' Makefile.win

    There are many other ways to accomplish this.

    To find all filenames in DIR with windows line endings you can do:

    grep -rl --binary-files=without-match $'\r' DIR

    To find each line in FILE with windows line ending you can do (prefixed by line number with -n):

    grep -n $'\r' FILE

    I'm hoping to get CRLF out of Angband's code base eventually, and will need help keeping it from sneaking back in.

    P.S. These commands all work in bash on *nix (Linux, OSX, BSD, etc). I assume they'll work in Cygwin/Windows too but I'm not sure.

    Leave a comment:


  • Magnate
    replied
    Originally posted by Timo Pietilä
    Ah, this is not the official code, but your patching that causes this behavior. Then APWhite doesn't need to do a thing.

    Couldn't you fix the EOL in linux for that file to match rest of the files? My linux-fu is a bit rusty, but I recall that there is some command line thingamodo that can do that with single command to huge bulk of the files at once.
    I think sed is what you mean - very powerful, but requires arcane skill to use ...

    Leave a comment:


  • Timo Pietilä
    replied
    Originally posted by s0be
    Because I needed to patch it for including objects/foo.h instead of foo.h. Alternatively, I could have added objects/ to the include search path in the makefile, but I went for the less intrusive approach. It's just a difference in the behavior of the windows vs linux compilers.
    Ah, this is not the official code, but your patching that causes this behavior. Then APWhite doesn't need to do a thing.

    Couldn't you fix the EOL in linux for that file to match rest of the files? My linux-fu is a bit rusty, but I recall that there is some command line thingamodo that can do that with single command to huge bulk of the files at once.

    Leave a comment:


  • s0be
    replied
    Originally posted by Timo Pietilä
    I just downloaded the 3.2 borg source in my computer, and it looks to me that all of the files have windows-type EOL. (CR/LF).

    I'm not sure why borg8.c would be any different than rest of the files.
    Because I needed to patch it for including objects/foo.h instead of foo.h. Alternatively, I could have added objects/ to the include search path in the makefile, but I went for the less intrusive approach. It's just a difference in the behavior of the windows vs linux compilers.

    Leave a comment:


  • Timo Pietilä
    replied
    Originally posted by APWhite
    If you know which lines are offending the CR/LF, I'll see what I can do to fix them.
    I just downloaded the 3.2 borg source in my computer, and it looks to me that all of the files have windows-type EOL. (CR/LF).

    I'm not sure why borg8.c would be any different than rest of the files.

    Leave a comment:


  • APWhite
    replied
    If you know which lines are offending the CR/LF, I'll see what I can do to fix them.

    Leave a comment:


  • s0be
    replied


    Here's a script I whipped together to compile the borg on linux. You need to wget the file as there is a CR/LF issue in borg8.c. The output doesn't say how to correctly start it, so to start it do:

    cd ~/src/angborg
    src/angband -mgcu

    I am running this right now.

    Leave a comment:


  • thapper
    replied
    This low-level borg is stuck since he is resting to regain mana close to a yellow j that keep on taking it away from him.
    Attached Files

    Leave a comment:


  • thapper
    replied
    The Borg in this savefile is stuck for a while, flowing between two floor tiles. Eventually he gets out of it so I guess it is not a bad "bug". Another thing he does, and this I've noticed many times before, it that he casts resist fire and resist cold every time I restart the borg but very rarely (never?) if I let the borg run. It's almost like he believes that the spells last forever (or until he is restarted).
    Attached Files

    Leave a comment:


  • Zappa
    replied
    Originally posted by APWhite
    I cant get him to try to boost Eriril. When I use 024^zo He recognizes Eriril to have +15/+15 which should disqualify it from the enchanting. I will keep an eye on it.
    I ended up manually dropping it in the dungeon and recalling. She's back to doing normal borg stuff now.

    Leave a comment:


  • APWhite
    replied
    Originally posted by Netbrian
    I'm attaching another savefile from the most recent borg -- I think it's also related to command flushing.

    In addition to this, in the last two weeks or so, the borg start obsessively comparing her equipment and inventory. In particular, she'll compare her wielded torch of brightness with her fuel torches, or her melee weapon with her digger. Is this behavior intentional?
    Borg_verbose is turned on. Turn it off in borg.txt. He just gives more reports in verbose_mode.

    Leave a comment:


  • Netbrian
    replied
    I'm attaching another savefile from the most recent borg -- I think it's also related to command flushing.

    In addition to this, in the last two weeks or so, the borg start obsessively comparing her equipment and inventory. In particular, she'll compare her wielded torch of brightness with her fuel torches, or her melee weapon with her digger. Is this behavior intentional?
    Attached Files

    Leave a comment:


  • APWhite
    replied
    Originally posted by Zappa
    Eriril is 15/15

    Here's the save:
    I cant get him to try to boost Eriril. When I use 024^zo He recognizes Eriril to have +15/+15 which should disqualify it from the enchanting. I will keep an eye on it.

    Leave a comment:

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