As the title says, I am soliciting help tracking down and fixing a bug in Andrew Plotkin’s Unified Glulx Input Extension (which may be found here: github.com/erkyrath/i7-exts/blo … 0Input.i7x).
The bug is pretty straightforward. When the user attempts to combine two or more commands using THEN or a period (for example, GO EAST THEN GO WEST, or GET LAMP. TURN ON LAMP), the game enters an endless loop, executing only the first command over and over. This test code demonstrates the problem simply:
[code]Include Unified Glulx Input by Andrew Plotkin.
Test Chamber is a room.
The lamp is a device in the Test Chamber.
Test me with “get lamp then turn on lamp”.[/code]
This sort of problem is usually well out of my area of expertise, but UGI has become an essential component of a pretty important WIP, so I’m determined to figure it out. Any help at all, or even any insights into the parts of the parser that normally handle concatenated commands, would be profoundly appreciated.
Thanks in advance,