Its a tweak to the @-colour-shows-health-status that adds a colour for healthy-but-hungry. Used to be on the patches ftp but that appears to no longer work.
edit on finding a working patches ftp: Or maybe not- there was an older clunkier patch with similar motivations, but not the one I was thinking of.
NPP-Moria and NPPAngband 7.0.0 Beta 2 uploaded
Collapse
X
-
Leave a comment:
-
kaypy is fine. If I really wanted to be less anonymous I could always fill in my details...
(Not that I'm spectacularly anonymous here- I think its a few pages of google and a guess that the roguelike/retro gaming hits are me before you get a real name)
--
Kinda surprised that the hunger tweak made it in- its a patch that has failed to make V for about a decade...Leave a comment:
-
I looked through your branch, and cherry-picked practically all of it, except stuff I had already taken already. Lots of good stuff there. Again, thank you.
I credited your work as 'kaypy' in the npp changes file. If you wish to be credited by another name, please let me know.Leave a comment:
-
Thanks for the fix! I think I will be raiding your npp fork when RL settles down.Minor but annoying: after loading the game, it does not figure out that you have any inventory until after the first time you try to use something. Heading off to try to figure it out now...
...
It needs item_tester_swap = TRUE; to be set somewhere. I'm dumping it just after the game mode check for now.
Another great catch, thanks. The lines involving "calc_energy_gain"hould have '/10' in the formula, so the speed variance is small.Looking through monster2.c/calc_monster_speed:
A default monster has a base speed|energy of 110|10.
So having SLOWER or FASTER flags will modify the base speed by +- 10 (calc_energy_gain(r_ptr->r_speed))
So it could be as slow as 100|5 (half speed) or as fast as 120|20 (double speed)
Another example, a faster-by-default monster (120|20) could be +- 20 giving quarter speed (100|5) through to not quite double speed (140|38)
Is this desired?
Wow, it has been like that for years, and nobody noticed. I guess the gameplay effect is exactly the same, but it definitely does not work as intended.
Both those lines should be rand_range instead of rand_spread.Leave a comment:
-
Again, thanks. I poked around your branch and saw plenty of good stuff. Hopefully over the next couple days I can take your changes and add put out a beta-3 sometimes this week.
I think you have the start of the the game automatically choosing between nppmoria and npp when a savefile is loaded here:
If, before that, the game opened the savefile and read the first couple bytes, it could get the game mode from the savefile, and then maybe that menu could be bypassed.Leave a comment:
-
Maybe you should have put out a beta first 8-)
But more seriously, it compiles and its playable and I can fix things as I go. Sure it'd be nice if everything always worked first time, but then why have a beta?
(Although technically I'm now playing a slightly mutant gitfork rather than the beta)
--
This time I, uh, broke the experience system.
Drinking an !exp while drained resulted in having cured exp but an apparently still drained level. Neither a !RLL or a save-reload fixed it. When I get back to town I may try a !LoseMemory/!RLL cocktail. Sort of a hair-of-the-vampire-wolf thing.
Note to self- check the exact !LoseMemory code before doing something dumb.
...
OK, it seems that any level loss will trigger this, not just my wacky circumstances. p_ptr->max_level is getting set to 50 for some reason.
...
Got it. Fix should be on github, along with a somewhat hacky 'cure' for afflicted characters
--
Github is starting to include a bunch of my mutant tweaks, so you probably want to be choosy in what you import...
--
Another minor bug- stat modifiers weren't shown correctly on the character screen. A fix is on github.
--
Minor but annoying: after loading the game, it does not figure out that you have any inventory until after the first time you try to use something. Heading off to try to figure it out now...
...
It needs item_tester_swap = TRUE; to be set somewhere. I'm dumping it just after the game mode check for now.
--
Looking through monster2.c/calc_monster_speed:
A default monster has a base speed|energy of 110|10.
So having SLOWER or FASTER flags will modify the base speed by +- 10 (calc_energy_gain(r_ptr->r_speed))
So it could be as slow as 100|5 (half speed) or as fast as 120|20 (double speed)
Another example, a faster-by-default monster (120|20) could be +- 20 giving quarter speed (100|5) through to not quite double speed (140|38)
Is this desired?
Hmm. Also note that since rand_spread(a,b) is goes from a-b to a+b, both SLOWER and FASTER flags have exactly the same effect!
...
OK, I have a tweak on github that gives a simpler distribution:
FASTER gives +1 to +7, SLOWER the opposite, and normal critters get -2 to +2
So the examples above would give
110|10 -> 103|5 (50%) .. 117|17 (170%)
and
120|20 -> 113|13 (65%) .. 127|27 (135%)
Alternatively, if you wanted to keep things in proportion to the critters speed, then you could scale things by (|r_speed-110| + 10)/10Last edited by kaypy; June 14, 2013, 10:19.Leave a comment:
-
Definitely an accidental, careless deletion. Thanks.OK, this ones probably bad enough to double-post and bump the thread:
*identify* is now completely nonfunctional.
In the NPPMoria Beta-1 changes, in spells2.c/identify_fully, you removed
and only put in similar code in the moria branch of plain-old-identify...Code:/* Mark the item as fully known */ o_ptr->ident |= (IDENT_MENTAL);
Wow, that's bad. Part of the reason I still enjoy coding is that it is a good humbling reminder how wrong I can be sometimes.Another possible biggie: Are stats supposed to fully max out at 18/100 in angband mode? The docs say 18/220...
<digs through code>
Spot what is wrong with this snippet from calcs.c/calc_bonuses
Code:/* Stats max out at 118 in Moria */ if (game_mode == GAME_NPPANGBAND) { if (use > 117) use = 118; }
Notice this mistake occurrs twice.....a couple lines apart.
My apoloiges for the state of the codebase. I have never had RL slam me this hard right after uploading so many changes to the game.Last edited by nppangband; June 9, 2013, 23:00.Leave a comment:
-
OK, this ones probably bad enough to double-post and bump the thread:
*identify* is now completely nonfunctional.
In the NPPMoria Beta-1 changes, in spells2.c/identify_fully, you removed
and only put in similar code in the moria branch of plain-old-identify...Code:/* Mark the item as fully known */ o_ptr->ident |= (IDENT_MENTAL);
edit:
Another possible biggie: Are stats supposed to fully max out at 18/100 in angband mode? The docs say 18/220...
<digs through code>
Spot what is wrong with this snippet from calcs.c/calc_bonuses
Code:/* Stats max out at 118 in Moria */ if (game_mode == GAME_NPPANGBAND) { if (use > 117) use = 118; }Last edited by kaypy; June 9, 2013, 09:33.Leave a comment:
-
Anything I get really specific about means something I wound up patching in my local version. If you leave em long enough I'll get around to forking off github and sending proper pull requests...
edit: I see you already got to them
I now have a commandline switch on windows, but it breaks all other ports until they are set up to match. (It works by only running the selection menu if the game_mode is unset, but this requires initializing game_mode in the per-port code)
It's on my github, but I'm not sure about sending a pull for it, given the breakage...
edit2: OK, now have linux switches, and a dodgy workaround so things have a reasonable chance of working if game_mode is garbage.Last edited by kaypy; June 8, 2013, 16:29.Leave a comment:
-
It isn't even a comandline compile switch right now. It is a global variable that the player picks from a startup menu, before the edit files are read.Leave a comment:
-
Considering that 99+% of the code is identical between NPPMoria and NPPAngband, it makes things infinitely easier on me to have everything in the same binary, but eventually I do need to work out a way for the player to seamlessly pick one or the other. Right now it is an annoying distraction from the user experience.Leave a comment:
-
This is honestly what I was expecting. Hell, I thought you were just making a new variant outright, branching off from the current NPP. But I suppose that having it be basically a commandline compile switch makes it easier to keep NPPMoria up-to-date.
(But imagine what the main Angband codebase would be like if we did this for all variants...)Leave a comment:
Leave a comment: