On January 14, 2023 at 4:58:23 PM UTC-7, Philippe Michel wrote:
On 2023-01-13, MK <[email protected]> wrote:
I tried to manually edit and import text files with
the low die first but Gnubg shows high die first
in the game record...
Te game record is a different thing. There, I think
it is natural to show the higher die first. The rolls
are printed this way everywhere, in books, etc...
I don't care how everyone does it. I'm nor trying to
change how they/you do it. I really have difficulty
communicating with you.
You said I could see the dice "not normalized" (in
your words) if I were to import matches with "non
normalized" dice. So, after importing, where would
I look and see "not normalized" in Gnubg?
It sure looks like a GUI setting on how to paint
the dice on the board.
After thinking about it further, I now agree you're
right.
Ohh, wow! This is the first time you acknowledged
that I'm right on anything for a long time. :)
The current behaviour is either buggy or its logic
is badly unintuitive. It really should be:
highdiefirst on -> higher die first
highdiefirst off -> random order, whatever the roll's
recording is
I documented what the problem was and stopped
short of telling you how to fix it in the code. Your
still blabbering about it indicates to me the level
incompetency of the "Gnubg team" and explains
why Gnubg hasn't been going anywhere for many
years. So, let me try to help you further. It's so
simple, I can do it from memory without needing
to look at anything again.
It looks like incomplete implementation of a new
feature. Gnubg probably always swapped the high
die and they wanted to add an option for the user
to not do it. They added the checkbox to the GUI
and the logic to set the "gui highdiefirst" value in
"gnubgautorc" to "on" or "off" accordingly. This part
works just fine!
In "gtkboard.c" the variable "fGUIHighDieFirst" is
references three times, once to set it to "true"
unconditionally and twice to check it to decide to
whether to swap the dice as part of implementing
the feature as intended.
The only thing you need to do is set "fGUIHighDieFirst"
*conditionally*, i.e.
if "highdiefirst" = "on" then "fGUIHighDieFirst" = "true"
else "fGUIHighDieFirst" = "false"
and everything will work just fine as was intented.
BTW: I'm now wondering if none of my suggestions
got implemented simply because the Gnubg team
was just not capable of doing it..? :(
MK
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)