Hi. This is a thing that only happens in 10.1 It may be fixed in a future version. However, reading Jira is waaaaay above my skill level, so I can’t be sure. It seems that some unprintable stuff is making it into the text of the player’s command after a “which do you mean” prompt.
Is this my fault?
If not, is there something I can do other than roll back the compiler version (I’ve spent a lot of time on this project and don’t want to worry about that)?
lab is a room.
a blue ball is in lab.
a red ball is in lab.
a green ball is in lab.
after reading a command:
say "[the player's command]";
yields this:
->get ball
get ball
Which do you mean, the blue ball, the red ball or the green ball?
->jump
jump
[** Programming error: tried to print (char) 0, which is not a valid Glk character code for output **]
[** Programming error: tried to print (char) 0, which is not a valid Glk character code for output **]
[** Programming error: tried to print (char) 0, which is not a valid Glk character code for output **]
[** Programming error: tried to print (char) 0, which is not a valid Glk character code for output **]
I’m pretty sure this has come up before. If I recall correctly, @drpeterbatesuk traced it to a failure to update the players_command I6 global. This should do the trick:
To force updated player command data:
(- players_command = 100 + WordCount(); -).
First after reading a command:
force updated player command data.
If that doesn’t work, change the first one to:
To force updated player command data:
(- VM_Tokenise(); players_command = 100 + WordCount(); -).
This doesn’t seem to do it. Both options compile fine, although the second snippet appears to crash the 'terp with a “memory out of range error” after any input
stand by… maybe it does? ok, no, it’s still a problem.