I’ve been experimenting with converting my game to Glulx, and found an unexpected behavior compared to Zmachine.
I generate abbreviations using zabbrev and include them in my source file. On Zmachine, this works great.
On Glulx, abbreviations with newlines get printed as caret-symbols, not newlines.
Here’s a simplified case showing the behavior:
!%+.,inform6lib
!% -e
Abbreviate ". ^^"; ! 99x 7, saved 486
Include "Parser";
Object Dorter "Dorter" ! >Dorter
has light
with
description [;
! On first turn of game, don't overwhelm player with room description
if (before_first_turn) {
"^There are several of your fellow monks here---Brothers Benedict, Hugh
and Anselm---along with your mentor, Brother Aelred.";
}
"This great room is used by all of the choir monks except the prior,
Brother Oswald. It could easily provide rest for twenty brothers, but
there are only eight cots in here now. Each cot has a chest at its foot
for any meagre possessions the brother has.
^^A window high up reflects light on the floor.
^^A doorway leads south to the Hall. Narrow stairs descend to the Quire,
where offices are held.";
];
[ Initialise;
location = Dorter;
];
Include "VerbLib";
Include "Grammar";
On ZMachine, the LOOK command shows this:
Dorter
This great room is used by all of the choir monks except the prior, Brother Oswald. It
could easily provide rest for twenty brothers, but there are only eight cots in here now.
Each cot has a chest at its foot for any meagre possessions the brother has.
A window high up reflects sunlight on the floor.
A doorway leads south to the Hall. Narrow stairs descend to the Quire, where offices are
held.
on Glulx, it shows this:
Dorter
This great room is used by all of the choir monks except the prior, Brother Oswald. It
could easily provide rest for twenty brothers, but there are only eight cots in here now.
Each cot has a chest at its foot for any meagre possessions the brother has. ^^A window
high up reflects light on the floor. ^^A doorway leads south to the Hall. Narrow stairs
descend to the Quire, where offices are held.
Of course, after I make my abbreviations, I can remove any with “^” in them, but is there a better fix? Is this a bug?