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.
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
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.
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.
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”.