Location Images by Emily Short


#1

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


#2

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


(Hanon Ondricek) #3

“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.)


#4

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


(Hanon Ondricek) #5

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


#6

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.


#7

I just realised there’s a “Other versions” link on that site. So I got v9 from there but it still happens.


#8

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


(Hanon Ondricek) #9

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


#10

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

Still get that error. :frowning:


(Hanon Ondricek) #11

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.


#12

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.


(Hanon Ondricek) #13

Good deal. “When in doubt, taer it out and start over…” :smiley:


(Marco Innocenti) #14

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


#15

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?


(Marco Innocenti) #16

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…


(Brian Rushton) #17

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.


(Marco Innocenti) #18

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.


(Marco Innocenti) #19

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.


#20

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.