Problem with page links in Gamebook mode

SuperGuy
I was recently working on a Gamebook and decided to test it out, but after the second page there was an error with it

I receive this when I click the link: Error running script: Error evaluating expression 'DictionaryContains(player.parent.options, command)': DictionaryContains function expected dictionary parameter but was passed 'null'


I've sent an email on this issue too.

Pertex
Have a look here: viewtopic.php?f=10&t=4358&hilit=DictionaryContains

SuperGuy
Pertex wrote:Have a look here: viewtopic.php?f=10&t=4358&hilit=DictionaryContains



Um that is a useful link, but..........

I have not downloaded the files of my gamebooks and I am a bit of a code noob, I get it but I don't no where to put the fix.

Pertex
are you working online or offline?

SuperGuy
Pertex wrote:are you working online or offline?



I am working online using the site itself, I have not downloaded the files to work offline.

jaynabonne
Did you try method 2 on the link Pertex gave you?

2) The GUI way. On a page that will have no links, still create a link and then delete it. For example, click "Link to Existing Page", pick some random page and then enter random text for the link. Then click the new link and delete it. That will leave an empty options dictionary on the page.


SuperGuy
jaynabonne wrote:Did you try method 2 on the link Pertex gave you?

2) The GUI way. On a page that will have no links, still create a link and then delete it. For example, click "Link to Existing Page", pick some random page and then enter random text for the link. Then click the new link and delete it. That will leave an empty options dictionary on the page.


Ah now it comes together,

one last thing does this work for one link or ALL links in the same game book

jaynabonne
It fixes the problem on a particular page. So you'll have to do it for each page that doesn't use the built-in links mechanism but rather just uses inline links.

SuperGuy
jaynabonne wrote:It fixes the problem on a particular page. So you'll have to do it for each page that doesn't use the built-in links mechanism but rather just uses inline links.


Thanks guys :D the problem is fixed!

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums