Weird player's text of player's command after a "which do you mean" question

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 **]

You jump on the spot.

1 Like

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.

off topic: do borogove snippets not work anymore?

I was able to find this thread by searching for “players_command”. I had been looking for the error message.

Disambiguation check failure (possibly due to truncating) - Authoring / Inform 7 - The Interactive Fiction Community Forum (intfiction.org)

Since you provided me with the information needed to solve the problem, I’m marking this solved. Thanks for your help!

according to the other thread, this is fixed in the next release.

The code by @drpeterbatesuk is this:

to tokenize: (- VM_Tokenise(buffer, parse); players_command = 100 + WordCount(); -).
1 Like