This topic is for discussions related to Simple Graphical Window by Emily Short.
So I am currently trying to get this extension up and running but have the following problem
This code from the documentation
which i changed a bit, so my full source looks like this:
Compiling this gives me this error:
What am I doing wrong? Canât seem to get this working. Anybody got an idea?
The documentation for this is a bit wrong. In it it reads
Which doesnât work, it has to be:
Just leaving this here for other people trying to find out why it doesnât work.
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
Isnât the issue just that the documentation still said to use âchangeâ, a word I thought was now deprecated?
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.
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
I have rewritten SGW to use Flexible windows: 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.
I canât ever seem to get Flexible Windows to work. I tried the steps but it may be user ineptitude.
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.
I was hoping to make FW work with Hybrid Choices, and Iâve tried several versions of the extension and the one in the GitHub that requires two more of (I think?) Danniiâs extensions. I may have gotten it confused but if you can point me to a standalone working version of FW Iâd be much obliged.
Yeah itâs a little tricky at the moment because the dependency structure is changing, and theyâre not yet in the Public Library yet to make installing them all easy. I promise that eventually this reworking of the dependencies will be worth it! (The main reason is to make alternative extensions like Zarfâs Unified Glulx Input play nicely together - currently theyâre just incompatible.)
Youâll need these:
github.com/i7/extensions/blob/m ⌠0Rules.i7x
github.com/i7/extensions/blob/m ⌠Events.i7x
github.com/i7/extensions/blob/m ⌠covery.i7x
github.com/i7/extensions/blob/m ⌠itions.i7x
github.com/i7/extensions/blob/m ⌠Points.i7x
github.com/i7/extensions/blob/m ⌠ffects.i7x
github.com/i7/extensions/blob/m ⌠indows.i7x
Hi
Iâm trying to use the Location Images extension. Iâve downloaded it from the extension site and also the Simple Graphical Window extension and Glulx Entry Points extensions.
I get this error when running the game;
In Section 4 - Inform 7 Wrappers for Defining Window and Colors in the extension Simple Graphical Window by Emily Short:
Problem. The sentence âGraphics background color is a glulx color value that variesâ appears to say two things are the same - I am reading âGraphics background colorâ and âglulx color value that variesâ as two different things, and therefore it makes no sense to say that one is the other: it would be like saying that âClark Kent is Lex Luthorâ. It would be all right if the second thing were the name of a kind, perhaps with properties: for instance âMetropolis is a lighted roomâ says that something called Metropolis exists and that it is a âroomâ, which is a kind I know about, combined with a property called âlightedâ which I also know about.
My extension list is attached.
Any ideas?
It looks like you are running version 8 of Simple Graphical Window. The latest version I see in the Public Library is version 9. Are you downloading extensions through the IDE?
If by extension site you mean inform7.com, that is not the first place I would recommend going to find an updated extension.
Thanks.
Iâve upgraded to 10/161003 from i7el.herokuapp.com/extensions/
Now I get this error.
Problem. You wrote âchange currently shown picture to the room illustration of the locationâ : 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?
oliverm, are you still running into problems with this, or did they get resolved when you deleted all your extensions and re-installed them from the Public Library via the IDE?
âchangeâ is no longer a valid phrase in I7 - itâs been like that for a few versions. Use ânow the currently shown picture is the room illustration of the locationâ.
Does anyone know if one can change the measurement of the graphics window during the game, as in:
The measurement of the graphics window is 10.
When play begins:
say "Hello.";
now the measurement of the graphics window is 40;
follow the current graphics drawing rule.
It doesnât seem to workâit gets stuck to the initially set value.
On the other hand, one can change the colour (as in the example Mondrian on the extensionâs page).
You would have to close and reopen the window for it to take effect.
I tried out the Friends of Inform version of this extension (Version 10/161003), and used:
The measurement of the graphics window is 40.
The position of the graphics window is g-placeleft.
The equivalents in the Inform 7 built-in version (9/160121) seem to to be:
The graphics window proportion is 40.
Graphics window position is g-left.
However, I canât find any equivalents for:
[Don't automatically open the graphic window]
When play begins (this is the new graphics window construction rule):
do nothing.
The new graphics window construction rule substitutes for the graphics window construction rule.
or
open the graphics window
or
close the graphics window
What would I need to do to achive the same result using the built-in extensions? Thanks.
Edit: I no longer need to use the older, built-in extensions, so if there is no easy answer then donât worry I think the answer is probably that the missing features of the old version are from Flexible Windows rather than Simple Graphical Window.