Hi Berger and Tibono,
I've tried now both programs (Scid and Hiarcs) - first to the easier 'problem':
berger escribió: ↑
11 Feb 2019 09:17
SCID fails when importing a PGN if it doesn't have the final result or '*', at least the version I use in Linux.
Scid does not fail to import the PGN, it just shows a popup message with a warning about the missing '*',
but it does in fact load the games from the PGN file, and you can use them without problems.
So it's not really necessary to change anything in CB-Emu (i.e. adding such a '*' at the end), especially
because this would create other (more serious) problems - I'll explain this in my answer to Tibonos
Hiarcs problem (and BTW you can always export the loaded PGN games in Scid to the same file, and then
you'll have this '*' in the new PGN file).
tibono escribió: ↑
11 Feb 2019 07:43
Yes CBF, Hiarcs Chess Explorer fails to load the last move.
Well, that has nothing to do with a missing '*', but with a missing CR+LF after the last move (only in the
last game of the PGN file!) , and thus it's not a CB-Emu problem but a glitch of Hiarcs (because every
other GUI reads the last move correctly also without such a CR/LF).
If you look at the gamelog.pgn you'll see, that there's nothing after the last move, no space and no linefeed.
I had to do it this way, because this PGN logging should also work, if you abort the game and continue it
anytime later (e.g. via 'Autosave' or 'Save state' and a later 'Load state'). And since I don't know whether
a game has been finished already or will be continued anytime later, I just can't add a possible CR+LF
after each full move - I can only do this before the next move is logged(or when a new game is started).
I've now also tried to add a space AFTER each move (instead of BEFORE the move, which is currently done),
because such a space after the last move would avoid this HIarcs problem, but this method would lead to
a new problem with pawn promotions: since choosing the promotion piece in CB-Emu is in fact a new 'move',
there would now be a space between the promotion move and the selected promotion piece, and this is
somethíng that certainly no GUI would accept!
You see that it's not possible to add a CR+LF or a '*' immediately after the last move of a game, simply
because it's not clear if the last executed move is indeed the last one of the game - the game could be
aborted and be continued later via 'Autosave'. So the only possible way to add one of these 'game terminators'
for the last game, is to send it AFTER actually starting a new game with the same or any other chess module.