Nick posted on his Oct28 post, that he does not understand what this is about.
It is about using text chars and altering the font you use.
The program uses a fixed char width and height for each window. If you change a font, this two variables are not automatically adjusted. If you increase the font size, it will result in that chars are not shown completely anymore. If you decrease font size it will result in additional space above/between chars.
The solution for this problem is: after altering the font size, the user can adjust the width and height variables manually using the corresponding menu entries.
For the main window only there is also an automatically adjustment available in the windows menu, it is called "window=>term 0 font tile size => font". If you use that option after choosing a charset with a different width / heigth than before the window size is adjusted to show with the new font as many lines and columns as with the previously charset.
The change / feature request was:
(A) Make this automatically adjustment available for all sub windows as well.
(B) Call this function always after choosing a new charset for a window, so that the user does not need to call this function manually over the menu anymore. (B) ensures, that after choosing a new font, it is readable because width and heigth are adjusted to the required values of the new font.
list of bugs and wishes
Collapse
X
-
Thanks! I know from experience that memory-related bugs are some of the weirdest, nastiest, most elusive, and most resilient kinds of bugs out there, so fixing this quickly is going to require as much information as possible.Leave a comment:
-
Good catch vivit! Well characterized reports of memory errors are a gift to developers.Leave a comment:
-
I'd have to know what you mean by manually editing. If you mean in-game where it says accept character history y/n. If I hit n, then hold down a key for a while then when I press enter the game does in fact crash for me.Leave a comment:
-
It also looks like I can get the program to crash by manually editing the character history to be too long. Can you replicate that, wobbly?Leave a comment:
-
gdb says that the offending line is z-virt.c:67 in mem_free():
Going up from the stack frame where the fault occurred reveals the following function call:Code:61 void mem_free(void *p) 62 { 63 if (!p) return; 64 65 if (mem_flags & MEM_POISON_FREE) 66 memset(p, 0xCD, SZ(p)); 67 free((char *)p - sizeof(size_t)); 68 }
If I restart the program and reproduce the bug again, the program hangs up in the same place, but with a different string (since the string is one of the things being randomized by the chargen) and different garbage at the beginning of it.Code:#8 0x00573ce4 in string_free ( str=0x1fa4384 "\270J\372\001are the illegitimate but acknowledged child of a Serf. ") at z-virt.c:110
Continuing to test this bug, I've hit other error messages as well, like "realloc(): invalid old size". In this case, the program seems to crash hard; my terminal hangs up. The "double free" message I only see if I'm tracing the program with gdb, but the "invalid old size" displays (right at the end of the curses display, without even a newline before it) even if I'm not tracing the program.
I've also noticed some inconsistent behavior: the history at the bottom of the character sheet sometimes changes when I press 'p'.
Note that there is no description of the character's appearance here! This particular bit of data of the data seems to get lost pretty often. The family information there is the same as it was before.Code:Name Age 19 Self RB CB EB Best <CHARACTER DATA> Max Depth Town Shots 0/turn You are one of several children of a Yeoman. You are the black sheep of the family. <BIG BLANK SPACE> ['r' to reroll, 'p' for previous roll or 'Enter' to accept]
However, sometimes weirder things happen. A crash ususually follows:
Code:Name Age 19 Self RB CB EB Best <CHARACTER DATA> Max Depth Town Shots 0/turn <NOTHING AT ALL> ['r' to reroll, 'p' for previous roll or 'Enter' to accept]I don't always have to strictly alternate between 'p' and 'r' to get the program to crash. Sometimes just pressing them without much pattern will cause it to happen. However, if I press only 'p' or only 'r' a bunch of times, it usually does NOT happen.Code:Name Age 17 Self RB CB EB Best <CHARACTER DATA> Max Depth Town Shots 0/turn 8o <BIG BLANK SPACE> ['r' to reroll, 'p' for previous roll or 'Enter' to accept]
Sometimes, especially if I press 'r' a bunch of times in a row without pressing 'p', I will reach a state where pressing 'p' will restore the stats of the previously-rolled sheet, but see the history stay the same. In this state, if I press 'r', the history does change, but if I press 'p', the history stays the same. After rolling a number of new characters, the program may resume retrieving previous characters' histories as normal. Sometimes when histories are not being retrieved properly, the appearance description disappears when the previous sheet is loaded, but the genealogical information remains. When this happens, pressing 'p' again will restore the appearance description with the rest of the history.Last edited by Vivit; October 31, 2018, 23:02.Leave a comment:
-
Wobbly--
Try a debug build. They have nuch better chance of detection duplicate frees.Leave a comment:
-
Just tried. 50 keypresses(25 'p's 25 'r's). No crashIf I repeatedly alternate between pressing 'p' for "previous roll" and 'r' for "new roll" (to keep an old roll and compare my new rolls to it) during standard roller character generation, the game eventually crashes, sometime after only a couple rolls. No error message is shown by default, but when I traced the process with gdb, gdb tells me that the program exited with SIGABRT because of corrupted memory or a double free.
Can anybody else reproduce this? This is in 4.1.3.Leave a comment:
-
Crashing during standard roller chargen
If I repeatedly alternate between pressing 'p' for "previous roll" and 'r' for "new roll" (to keep an old roll and compare my new rolls to it) during standard roller character generation, the game eventually crashes, sometime after only a couple rolls. No error message is shown by default, but when I traced the process with gdb, gdb tells me that the program exited with SIGABRT because of corrupted memory or a double free.
Can anybody else reproduce this? This is in 4.1.3.Leave a comment:
-
Even in the town, the RNG deciding whether and where to spawn more townsfolk.Leave a comment:
-
The last time i noticed i failed 3 times in a row at a 5% fail, i then realized i was stunned.
anecdotical evidence:
When i fight Morgoth as a mage, i always use Mana Storm exclusively. Depending on my level and the fail rate, i needed 66 - 78 Mana Storms.
I usually note the real and expected fail rate in my final dump. Fail rates:
32% (expected 35%)
34% (expected 26%)
37% (expected 32%)
23% (expected 23%)
17% (expected 20%)
So it looks like the RNG works correct.
Additional info regarding the RNG:
If you fail 7 times in a row at 5% fail rate, this doesn't even mean that the RNG did a low roll 7 tims in a row. Unless that happened in an empty town, there were probably 10 - 100 rolls for monster actions between your castings.Leave a comment:
-
Looks like a reasonable test to me. Do you volunteer to run it, since we are fairly sure ourselves that the RNG is right? It would be a valuable contribution. I guess this could even be automated with a couple of fprintf() in the right place.
I suggest a couple of rules to ensure fairness:
* write a forum post before starting, detailing which events you are going to track (for instance, spell failure rates). Only "pre-registered" characters count.
* report the results after your game no matter what they are and no matter what happens to the character (e.g., inglorious death at 500' by the hands of Wormtongue).Leave a comment:
-
Oh, for sure in that sense. I was more talking about the bias that causes Sky to suggest that reports of (perceived) problems with the RNG are very common, even though they're really not, though they are rather memorable, especially if you're already inclined to believe the RNG is bad.Leave a comment:
-
Philip--
I suspect you have posted AARs that support reporting bias (assuming you post AARs at all.) Every crazy speed ring, and every YASD that occurs because of repeated failure. By and large people post AARs when something unlikely happens, not something ho-hum. I do not mean to imply that everyone thinks the RNG is broken and is actively busy generating reporting bias.Leave a comment:
Leave a comment: