Compiling Hengband: "fatal error: util.h: No such file or directory"
Collapse
X
-
Comment
-
I synced to your pull request, did a full recompile and ran into a few surprises:
- The cursor is not being drawn (press x to look around, there is no visible cursor to show what is being looked at)
- The darker colors (forest green, background "x" marks in dungeon, and anything darker than those) are brighter now and less accurate to the color table values in term/gameterm.cpp (that was the case in my second version, but not in my first)
- The "-mgcu -- -n4" or just "-- -n4" command line stuff no longer works--no subwindows come up in-game, and when I leave the game, I see "Ignoring option -n4" or whatever in the console (I'm not sure it worked in the game before; I sometimes did "-- -n4", and the full "-mgcu -- -n4" is like the one optional option they recommend in their English readme, but you'd still get the same even without entering that; I never tried like "-- -n6" or something...until I'd hacked the Angband stuff in myself today, and then "-- -n6" definitely *did* work, and so did "-- -n4," because with my hack, if I didn't enter options like those--or the composband style--I'd get no subwindows)
- The funky composband or whatever subwindow command line options are probably working--I can get some subwindows with them, although I'm really bad at figuring out how to get them to come out right--but when I quit the game I still find the command line returning "Ignoring option"; like, I entered "./hengband -mgcu -- -right 40x25,* -bottom *x7" and got some subwindows in game, but when I got back, I still found
Ignoring option: -right
Ignoring option: 40x25*
Ignoring option: -bottom
Ignoring option: *x7
in the consoleLast edited by smbhax; January 30, 2022, 20:52.Comment
-
Comment
-
- The "-mgcu -- -n4" or just "-- -n4" command line stuff no longer works--no subwindows come up in-game, and when I leave the game, I see "Ignoring option -n4" or whatever in the console (I'm not sure it worked in the game before; I sometimes did "-- -n4", and the full "-mgcu -- -n4" is like the one optional option they recommend in their English readme, but you'd still get the same even without entering that; I never tried like "-- -n6" or something...until I'd hacked the Angband stuff in myself today, and then "-- -n6" definitely *did* work, and so did "-- -n4," because with my hack, if I didn't enter options like those--or the composband style--I'd get no subwindows)
- The funky composband or whatever subwindow command line options are probably working--I can get some subwindows with them, although I'm really bad at figuring out how to get them to come out right--but when I quit the game I still find the command line returning "Ignoring option"; like, I entered "./hengband -mgcu -- -right 40x25,* -bottom *x7" and got some subwindows in game, but when I got back, I still found
Ignoring option: -right
Ignoring option: 40x25*
Ignoring option: -bottom
Ignoring option: *x7
in the consoleComment
-
Comment
-
I don't think so. The cursor worked with her fix. And I used her fix as my Hengband basis in both my versions and the cursor always worked.
Hm well all I did was a little copy and paste from Angband's main-gcu.c, and the mgcu stuff definitely just worked in both my versions of main-gcu.cpp.Last edited by smbhax; January 30, 2022, 21:27.Comment
-
You might interpolate between the changes this pull request, https://github.com/angband/angband/pull/5286/files , makes to Angband and Gwarl's changes to Hengband for 256/88 color curses windows. That should get back the close matching to the specified colors, at least when the terminal supports changing the color table.
Oh wait PR5286 is in Angband, not Hengband. Oh heck.Comment
-
But here is the game fully rebuilt from habu's cursor fix PR2024--note visible cursor--and my first main-gcu.cpp hack -- the cpp file is attached to this post two pages back in this thread http://angband.oook.cz/forum/showpos...1&postcount=20 -- with large dungeon display and six working subwindows, launched with "./hengband -- -n6" (the composband command line stuff works too, as far as I can tell--I'm not very good at it):
(And the older colors.)Last edited by smbhax; January 30, 2022, 23:19.Comment
-
You might interpolate between the changes this pull request, https://github.com/angband/angband/pull/5286/files , makes to Angband and Gwarl's changes to Hengband for 256/88 color curses windows. That should get back the close matching to the specified colors, at least when the terminal supports changing the color table.
It works with 256 colour terminals doesn't it? I have to go back and apply it to the entire 30 odd versions and variants I'm hosting don't I?Comment
-
I did a clean build to current develop branch and you are absolutely correct, the -- -nN command line suboption does nothing there.
But here is the game fully rebuilt from habu's cursor fix PR2024--note visible cursor--and my first main-gcu.cpp hack -- the cpp file is attached to this post two pages back in this thread http://angband.oook.cz/forum/showpos...1&postcount=20 -- with large dungeon display and six working subwindows, launched with "./hengband -- -n6" (the composband command line stuff works too, as far as I can tell--I'm not very good at it):
(And the older colors.)
変愚蛮怒のメインリポジトリ. Contribute to hengband/hengband development by creating an account on GitHub.
#define MAX_TERM_DATA 4
#define MAX_TERM_DATA 6Comment
-
Wow I was going to suggest we ask you to take a look at this. I'll have to include it in the hengband PR so I don't mess their colours up. Thankfully I don't think I have to go back and apply it to every variant hosted on .live? Does this work with 256 colour terminals or is it just applying the old behaviour to 16 colours?
It works with 256 colour terminals doesn't it? I have to go back and apply it to the entire 30 odd versions and variants I'm hosting don't I?
If the terminal emulator that angband.live uses causes all sessions to share a color table, then it wouldn't make sense to port that change to the variants where the 256/88 color change was applied. Even if each session has it's own color table, I'd only port that change if there was a specific request to do so (the variant's default color scheme doesn't work well when mapped to the 6 x 6 x 6 color cube or someone wants the highest fidelity to a custom color scheme).Comment
-
I've had to port the 88/256 behaviour to all the variants on .live because if I don't, white shows up as red and every other colour is also off. They work fine on my local terminal so it probably is .live's terminal emulator's fault.
Thinking about this I'm not sure it's worth changing, I'd have 30+ versions needing patching and would probably also want to use a command line switch with a new field in the game launch menu to switch between them, since people are used to what they have and might not like change, plus nobody has ever complained. I have my work cut out now fixing 2.8.3 and 3 versions of Z so I think I'll just let this one slide.Comment
-
Yeah it's the code from angband's main-gcu that's allowing you to have 6 terminals. go look in hengband's main-gcu file; line 194
変愚蛮怒のメインリポジトリ. Contribute to hengband/hengband development by creating an account on GitHub.
Then look at angband or your hack and you'll see
Like I say, Hengband isn't even parsing any mgcu subopts, never mind doing anything with them.
Are you really going to leave everyone stuck with the much harder to use poschengband-style subwindow control just because that's all you need in .live?
Thinking about your version: you wrote some of your own code in there instead of just going directly with code from current Angband, which means it's less code-compatible with current Angband. Is that wise? Wouldn't it be better--for future support, etc--to keep it as close as possible to vanilla unless the variant's content demands otherwise? What is gained by dropping the -- -nN suboption?
Hengband is about to get less precise colors inflicted on it because of a problem in .live's terminal emulator?? = oLast edited by smbhax; January 31, 2022, 08:34.Comment
-
Yeah it's the code from angband's main-gcu that's allowing you to have 6 terminals. go look in hengband's main-gcu file; line 194
変愚蛮怒のメインリポジトリ. Contribute to hengband/hengband development by creating an account on GitHub.
Then look at angband or your hack and you'll see
Like I say, Hengband isn't even parsing any mgcu subopts, never mind doing anything with them.
Would you really leave everyone stuck with the much harder to use poschengband-style subwindow control? Come on man, if I can do it accidentally, you can **definitely** do it!
Just did a clean build and I can confirm that Hengband develop has its darker colors brightened when your color change, PR2023, is added to it:
Last edited by smbhax; January 31, 2022, 06:30.Comment
Comment