intfiction.org

The Interactive Fiction Community Forum
It is currently Sun Dec 09, 2018 3:39 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Apr 14, 2018 9:33 pm 
Offline

Joined: Sat Apr 14, 2018 9:26 pm
Posts: 3
I'm writing a story on the website Playfic, which uses Parchment for Inform 7. For some reason, adding a certain item seemed to cause the game to not run. There was no error message or anything. The game just wouldn't load. I could edit and make it load by deleting the item in the code (only altering the other code associated with it to apply to another object), and it ran fine before, which is how I figured out it was this specific item that was the problem.

The item was just a compass.

The code was as followed:

Code:
The player carries a compass.

To say dont-drop-the-compass: say “[one of]Nah, you've got a terrible sense of direction.[or]You wouldn't be able to navigate without it.[or]You'd get lost without it, so no.[or]Too important.[or]You need that to navigate.[or]There's no way you're getting rid of your trusty compass![or]Dropped.[pause for effect][paragraph break]Nah, just kidding.[purely at random]”.

Instead of dropping the compass: say “[one of]It's very precious to you, so you'd prefer to keep it on your person at all times. Plus, you're a pretty terrible navigator without it.[or][dont-drop-the-compass][stopping]”.

Instead of going somewhere when the player does not carry the compass: say “You're not going anywhere without your compass.”


I'm fairly confident this was a problem with Inform and/or Playfic, not my code. Has anyone else here had problems with that?

_________________
Spoiler: show
hi there


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Apr 15, 2018 3:13 am 
Offline
User avatar

Joined: Sun May 21, 2017 4:59 pm
Posts: 301
Location: Michigan
Well, Inform 7 doesn't like [pause for effect]:

Image

It compiles fine if I remove [pause for effect]

_________________
~~~
My ebooks on Amazon
My ebooks on Smashwords


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Apr 15, 2018 3:17 am 
Offline
User avatar

Joined: Sun May 21, 2017 4:59 pm
Posts: 301
Location: Michigan
Also, tried my test game with your code on playfic and got this error (it also doesn't seem to like [pause for effect]):

Code:
Problem. In the line 'say "[one of]Nah, you've got a terrible [...] h, just kidding.[purely at random]"'  , 
I was expecting that 'pause for effect' would be something to 'say', but it didn't look like any form
of 'say' that I know. So I tried to read 'pause for effect' as a value of some kind (because it's legal to say values),
but couldn't make sense of it that way either.

_________________
~~~
My ebooks on Amazon
My ebooks on Smashwords


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Apr 15, 2018 10:48 am 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5830
"[pause for effect]" isn't a standard Inform phrase. Are you using it from some extension? PlayFic uses an old version of Inform and not all extensions are available.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Apr 16, 2018 6:43 pm 
Offline

Joined: Sat Apr 14, 2018 9:26 pm
Posts: 3
Yes. I'm using Emily Short's screen effects extension, and at one point I made it so 'pause for effect' redirected back to 'wait for any key' because I often wrote it by accident. If you include the extension and swap 'pause for effect' with 'wait for any key' -- or just add
Code:
to say pause for effect: wait for any key
it will work fine. That issue was seemingly unrelated -- it was just the compass part the kept making it not load. I've been using Basic Screen Effects for months without trouble.

_________________
Spoiler: show
hi there


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group