How do I make hyperlinks work in V10?

I’ve been developing a simulation game in Inform 7. It’s sort of an open world travel simulator. The details don’t really matter, but I realized as I was implementing systems that the parser made the game slower and less usable without adding much, since the player isn’t really solving puzzles or otherwise coming up with solutions to narrative problems. I wanted to switch to a hyperlinks model and make the game mouse-driven.

Unfortunately, the links don’t actually work, either in the test environment or in a release copy. They display as a clickable object, but clicking them doesn’t execute code. I’m using Version 10.0.250425 of Glulx Entry Points (for Glulx only) by Emily Short and version 6 of Simple Multimedia Effects for v10 by Mathbrush. My project has two devs and the other one (my spouse) said my code looks like it should work, but it doesn’t. Zie suggested that I either give up on implementing this in Inform 7 and use Twine instead, or that I make an account here and ask for help.

Does anyone have any examples of working hyperlinks using Simple Multimedia Effects for v10? The ‘Fake Twine’ example that I dug up used Simple Multimedia Effects, which doesn’t compile on the latest version. Alternatively, should I just roll back to an earlier version?

1 Like

I think someone has recently been working on a hyperlink-focused extension (maybe @Zed ?).

In the meantime, I wrote bisquixe and the multimedia extension and I might be able to help. What does some of your code look like?

Here’s one example that works:

"Sandbox" by Brian Rushton
  
lab is a room.  The description of lab is "This is a place for [hyperlisten] and [hypersmell] and anything else you'd like."
      
include simple multimedia effects for v10 by mathbrush.
include glulx entry points by emily short.  
  
release along with a "bisquixe" interpreter.

 
to say hyperlisten:
	hyperlink "listening" as "listen".
	 
to say hyperlook:
	hyperlink "looking" as "look";
 
to say hypersmell:
	hyperlink "smelling" as "smell";

Note that there is a bug in the windows Inform environment that causes some hyperlinks at the end of lists or sentences to crash, but it’s going to be fixed in the next update and doesn’t affect the actual released game (so this example crashes if you click ‘smelling’ in the IDE but not in a browser:)

"Sandbox" by Brian Rushton
  
lab is a room.  The description of lab is "This is a place for [hyperlisten], [hyperlook], and [hypersmell]."
      
include simple multimedia effects for v10 by mathbrush.
include glulx entry points by emily short.  
  
release along with a "bisquixe" interpreter.

 
to say hyperlisten:
	hyperlink "listening" as "listen".
	 
to say hyperlook:
	hyperlink "looking" as "look";
 
to say hypersmell:
	hyperlink "smelling" as "smell";

Unfortunately most Glk stuff doesn’t work too well in version 10 as it was all in a lot of flux.

The situation will be much better in version 11 where hopefully a hyperlinks framework will be built in.

1 Like

Can you post a cut down example here? It might be possible to find a way to work around this issues, given a test case.

The other thing to investigate is that you can go back to earlier versions of the compiler from the Settings tab: if you set the language version to “Inform 9.3 (6M62)” you’ll get the last big release that was used for several years before 10.1 came out.