Ok, yes. It doesn’t happen in Gargoyle, but it DOES happen in Quixe. So, given that Quixe is the interpreter for Lectrote, the problem is in there. I’ll try this change in the .css.
In Lectrote (but it may work similarly in Quixe, just forget about the Themes) you must edit el-glkote.css (or whatever the .css you are using), adding the following.
.WindowRock_200 { /* NUMBER MAY VARY, INSPECT THE ELEMENT */
background-color: white !important;
}
.SepiaTheme .WindowRock_200 { /* COLORS MAY VARY, THIS IS MY CONFIGURATION */
background-color: #F4EDE1 !important;
}
.SlateTheme .WindowRock_200 {
background-color: #585868 !important;
}
.DarkTheme .WindowRock_200 {
background-color: black !important;
}
The !important; is… important because it overrides what’s embedded in the page.
Hi. I’m new to Inform 7. I’m trying to use an extension. Location Images by Emily Short. Here’s my code:
“Tutorial” by Ameet Sharma
Include Location Images by Emily Short.
Figure of fruit is the file “fruit.png”.
Frosty Ground is a room.
The room illustration is Figure of fruit.
I get this error message:
“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?”
I’ve moved your post into the specific topic for “Location Images”. Read it over and see if it helps out.
If I recall correctly, the extension downloaded from the Inform website is not the latest version, which is obtained from the Public Library inside the Inform IDE. Also, the version numbers might be wrong, which may require opening your extensions folder and physically deleting it before updating from the library.
Thanks. I found and installed the latest version. Now I get this error:
Problem. I am reading the sentence ‘The room illustration is Figure of fruit’ as saying that a thing called ‘room illustration’ is a value, but this makes no sense to me - it would be like saying ‘the chair is 10’.
I was able to fix the bug by replacing room illustration with room-illustration. But I’m supposed to get a window that displays the image right? That’s not happening.
Thanks. Yes, it’s there. I can display the image using
when play begins:
display Figure of fruit.
So there’s no issue with the image itself.
This is my entire code right now:
"Tutorial" by Ameet Sharma
Include Location Images by Emily Short.
Figure of fruit is the file "fruit.png".
Frosty Ground is a room. The room-illustration is Figure of fruit.
Shaded Area is west of Frosty Ground.
Yes. The first thing I would suggest is that, after building the game, go to the Index tab, then the Contents page, then scroll down until you get to section 4 (“Figures”). That should show whether Inform found your picture in the right place.
The version I have in my library is Simple Graphical Window v 9/160121
The previous poster who fixed the issue deleted all their extensions, then used the Library in the Inform7 IDE to re-download all of them.
You may not need to go that far; try opening your extensions folder and remove Simple Graphical Window, close and re-open Inform to make sure it’s no longer there, then go into the Extensions>Library and tell it to download the extension. You should get the “official” updated version.
It’s possible if you downloaded it from the Inform 7 website or any other location, you got a modified version possibly based on an older build of I7. If the version number you have is higher than what’s in the library, I believe Inform will resist updating it.
Sometimes people will modify extensions for a specific purpose and make that available if it fills a need.
Just checked, library versions are:
INSTALLED Location Images by Emily Short (Version 1). Allows the author to set per-room images and show these as the player moves from room to room. Requires Simple Graphical Window by Emily Short.
(Click here to review or discuss Location Images at the IFF)
INSTALLED Simple Graphical Window by Emily Short (Version 9/160121). Provides a graphics window in the upper part of the screen, in which the author can place images; with provision for scaling, tiling, or centering images automatically, as well as setting a background color. Extension requires Glulx Entry Points Version 7.
(Click here to review or discuss Simple Graphical Window at the IFF)
No, that looks all wrong. What I get (all extensions from the Public Library) is below. Those versions of extensions you have look to have come from the “Friends of Inform 7” GitHub page, which contains experimental and work-in-progress extensions: for example, the Public Library version of “Simple Graphical Window” does not need “Flexible Windows”. You don’t want to be using those versions without knowing exactly what you’re doing.
You want to delete all the extensions you’ve installed, and then get them again from the Public Library (on the Extensions Tab).