intfiction.org

The Interactive Fiction Community Forum
It is currently Mon Nov 20, 2017 2:53 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Apr 17, 2015 8:09 pm 
Offline

Joined: Tue Mar 18, 2008 9:04 am
Posts: 1097
This topic is for discussions related to Simple Graphical Window by Emily Short.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Jan 09, 2016 7:33 am 
Offline

Joined: Sat Jan 09, 2016 7:20 am
Posts: 6
So I am currently trying to get this extension up and running but have the following problem

This code from the documentation

Quote:
Carry out looking:
change currently shown picture to the room illustration of the location;
follow the current graphics drawing rule.


which i changed a bit, so my full source looks like this:

Quote:
"test"

Include Simple Graphical Window by Emily Short.

Stark Room is a room.

Rule for starting the virtual machine:
now the current graphics drawing rule is the standard placement rule.

Figure 1 is the file "1.jpg".

Every turn:
if glulx graphics is supported:
change currently shown picture to figure 1;
follow the current graphics drawing rule.


Compiling this gives me this error:

Quote:
Problem. You wrote 'change currently shown picture to figure 1' : but this is a phrase which I don't recognise, possibly because it is one you meant to define but never got round to, or because the wording is wrong (see the Phrasebook section of the Index to check). Alternatively, it may be that the text immediately previous to this was a definition whose ending, normally a full stop, is missing?


What am I doing wrong? Can't seem to get this working. Anybody got an idea?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Jan 10, 2016 2:28 pm 
Offline

Joined: Sat Jan 09, 2016 7:20 am
Posts: 6
The documentation for this is a bit wrong. In it it reads

Quote:
Carry out looking:
change currently shown picture to the room illustration of the location;
follow the current graphics drawing rule.


Which doesn't work, it has to be:

Quote:
Carry out looking:
now currently shown picture is the room illustration of the location;
follow the current graphics drawing rule.


Just leaving this here for other people trying to find out why it doesn't work.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Jan 12, 2016 8:13 pm 
Offline

Joined: Tue Nov 08, 2011 8:11 am
Posts: 2228
Location: US - Central
You quoted your source text, is it tabbed correctly?

Do you have "the illustration of the location" defined? That line seems like it comes from the example text, specifically for use with the "Location Images" extension. There are some other steps to include illustrations in Inform which might be explained by that other extension.

http://inform7.com/extensions/Emily%20Short/Location%20Images/doc_0.html


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Jan 13, 2016 6:02 am 
Offline

Joined: Tue Aug 12, 2014 7:56 pm
Posts: 1668
Isn't the issue just that the documentation still said to use "change", a word I thought was now deprecated?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Jan 13, 2016 10:16 am 
Offline

Joined: Fri Oct 18, 2013 10:13 am
Posts: 2467
Location: The Midwest
Indeed. The "change X to Y" syntax had been deprecated for quite a while and was finally removed in 6L02. Using "now X is/are Y" is the 'right way' to do it.

_________________
Daniel Stelzer


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jan 18, 2016 1:38 pm 
Offline

Joined: Sat Jan 09, 2016 7:20 am
Posts: 6
Found that out as well. Just took me quite some time to find out that this was causing the problem. So if the person who can change this reads this could change this - it might save someone else a bit of time :)


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Sep 29, 2016 9:28 am 
Offline
User avatar

Joined: Wed Oct 14, 2009 4:02 am
Posts: 2432
I have rewritten SGW to use Flexible windows: https://github.com/i7/extensions/blob/m ... Window.i7x

The main reason for this is to make the extension GGRecoverObjects aware - previously if you reloaded on another interpreter, or used Startup Precomputation it would cause major errors because it didn't know when to recreate the window. But building off FW also allows you to use the general functions of that extension, and it substantial reduces the code in this one. So you will need to change to FW's way of specifying the size and position of the graphics window.

The extension has been cut back to creating the window and specifying the different options for the current graphics drawing rule. You can also now use the image drawing phrases directly on other windows if you wish.

This update won't be going in the Public Library for some time because the state of Glulx/Glk extensions which I'm currently overhauling is still very much in flux. But you're free to download and use the update if you like.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Sep 29, 2016 11:54 am 
Offline

Joined: Tue Nov 08, 2011 8:11 am
Posts: 2228
Location: US - Central
I can't ever seem to get Flexible Windows to work. I tried the steps but it may be user ineptitude.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Sep 29, 2016 12:46 pm 
Offline

Joined: Thu Oct 30, 2014 12:10 pm
Posts: 613
HanonO, what are you trying to do, and what's happening? And what version of FW are you using? (On second thought, maybe this would be better in a new thread?) I ask because I'd added in some of the documentation from the old version of FW and if something is wrong or unclear, I should probably fix it.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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