Location Images by Emily Short

This topic is for discussions related to Location Images by Emily Short

Hi

Iā€™m trying to use location images however I get this error when running a game, either with a location image set for a room or without;

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?

If I disable the include line then the game runs.

Olly

ā€œCurrently shown pictureā€ is defined in Simple Graphical Window by Emily Short which this extension requires. Do you also have Simple Graphical Window installed?

(The documentation for Location Images mentions Simple Graphical Window but does not explicitly say it is required, so that may be a minor oversight.)

Thanks. I scoured the docs and added any reference to the plugins, and thatā€™s where I got that error (should have said, soz).

This is my extension list.

2018-03-17 15_55_27-Test.inform - Inform.png

Mine is working fine. I noticed your version of SGW is 10 when the Library version is 9. Did you update SGW from the I7 website or elsewhere? Can you get this far in a compile with just a one-room project?

(For reference, my game compiled and ran without an image with just the source text ā€œLab is a room.ā€

Screenshot 2018-03-17 11.42.00.png

Where are you seeing v9? If I google, all the ones on the i7 site are v8 from what I can see, except for the one at i7el.herokuapp.com/extensions/s ā€¦ mily-short which is where I got this extension.

I just realised thereā€™s a ā€œOther versionsā€ link on that site. So I got v9 from there but it still happens.

Just tried it with a new single room project and it still happens.

Aha! You should check the Public Library in the IDE and download extensions from there. The ones on the I7 website may not be the same ones. The ones in the library are usually the most current. If you scroll to the bottom, thereā€™s a button that will update every extension you have. You can also download extensions singly or grab 'em all.

(This shot is from the Mac I7 - on Windows the tabs may be moved top to side, I donā€™t recall off the top of my head.)

Screenshot 2018-03-17 11.51.50.png

Right. Updated and installed all the extensions from the IDE.

Still get that error. :frowning:

Hrmph. Weird. If you look at your extension in the library do you get a ā€œrevert to previous versionā€ button or anything similar?

Also, just to make sure, youā€™re not trying to do a Z-code project instead of a Glulx project, correct? (You would have had to change this manually as I7 defaults to Glulx.)

The only other wacky thing that may be involved is Glulx Entry Points which is another extension that I think I saw mentioned in Simple Graphical Window, but it doesnā€™t seem to be actually calling it within that one.

If you canā€™t see any more library discrepancies, you may wish to open your extensions folder, delete Location Images and Simple Graphical Window, restart Inform, and then install them again from the Public Library.

Fixed it! Thanks very much.

I opened my extensions folder and deleted all 96 extensions. Downloaded them again from the store. And now itā€™s working.

Weird.

Good deal. ā€œWhen in doubt, taer it out and start overā€¦ā€ :smiley:

I donā€™t know if this needs a new topic. Anyway, hereā€™s my problem:

How do you remove the thin white line between the graphics windows and the text?
Is this a glitch or an intended feature?

I think Iā€™ve seen something of a solution in the Counterfeit Monkeyā€™s source, but canā€™t seem to get back to it atm.

Thanks!
Schermata 2018-04-04 alle 22.58.19.png

At a guess, that looks as if the window is one pixel wider than the image. Do you get that white line with more than one interpreter? What interpreter are you using?

Lectrote.
But I see this in any layout (horizontal or vertical), and the picture is several pixels smaller (because of proportionsā€” I canā€™t use a fixed layout).

Iā€™m pretty sure Emily countered this with a trick in CFM, but I canā€™t find it anymore. Hoping it was not a dreamā€¦

If this is filtered through an html page on the way to becoming an app, you can just set the background color of the whole page to be the same color as the windows.

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.

Thanks everybody.

Ok, trickier than thought.

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.

Hope this saves someoneā€™s time.

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?ā€

Appreciate any help on fixing this. Thanks.