I think the variable 'mln' gives you the current move number in the Post-Move sections.
It does not. I have made that mistake too and had to correct it. To use $mln to get the move number, you need to get $mline[$mln]->movenum. $mline is an array with a separate entry for each line of the movelist, but besides containing actual moves, it contains comments. $mln is the index that a line has in this array, but when some lines are comments, it will go out of sync with the move number.
GAME Code has turn, which will return $mline[$mln]->turn, but it doesn't currently have anything returning $mline[$mln]->movenum.
It does not. I have made that mistake too and had to correct it. To use
$mln
to get the move number, you need to get$mline[$mln]->movenum
. $mline is an array with a separate entry for each line of the movelist, but besides containing actual moves, it contains comments.$mln
is the index that a line has in this array, but when some lines are comments, it will go out of sync with the move number.GAME Code has
turn
, which will return$mline[$mln]->turn
, but it doesn't currently have anything returning$mline[$mln]->movenum
.