Borg for 320 is running.
Collapse
X
-
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). -
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.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:
-
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:
-
I think sed is what you mean - very powerful, but requires arcane skill to use ...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:
-
Ah, this is not the official code, but your patching that causes this behavior. Then APWhite doesn't need to do a thing.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.
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:
-
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:
-
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:
-
If you know which lines are offending the CR/LF, I'll see what I can do to fix them.Leave a comment:
-
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:
-
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 FilesLeave a comment:
-
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 FilesLeave a comment:
-
I ended up manually dropping it in the dungeon and recalling. She's back to doing normal borg stuff now.Leave a comment:
-
Borg_verbose is turned on. Turn it off in borg.txt. He just gives more reports in verbose_mode.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?Leave a comment:
-
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 FilesLeave a comment:
-
Leave a comment: