Need to load story & js from remote site

48 views
Skip to first unread message

Kirrus

unread,
Jul 8, 2011, 12:16:34 PM7/8/11
to Parchment
Hi,

I'm trying to serve the HMTL with one server, and the javascript/css
files with another. However, I'm having trouble telling parchment that
the story file isn't where it thinks it is.

I couldn't find any documentation that would help..

This, obviously, isn't valid, but what is?
default_story: [ '503 - Service Unavailable.zblorb', 'http://
error.mysite.com/interpreter/503 - Service Unavailable.zblorb.js' ],

Background: I'm trying to make varnish serve this whenever there is an
issue with this particular site, as it's a game for a 503 error page.
Files are stored on a remote server to where the actual error is
coming from, as varnish is not a webserver, it cannot serve files.

Kind regards,

Johnathon

Dannii

unread,
Jul 13, 2011, 5:14:54 AM7/13/11
to Parchment
Try this:

default_story: 'http://error.mysite.com/interpreter/503 - Service
Unavailable.zblorb.js',

Johnathon Tinsley

unread,
Jul 13, 2011, 7:34:19 AM7/13/11
to parc...@googlegroups.com
Hi Dannii,

That's a bit better - it's now loading the intepreter, but it still
can't seem to get the actual story file, it just sits on 'Please wait
whilst parchment loads - Retrieving story file...'

I'm probably missing something simple :)

Johnathon

Dannii

unread,
Jul 15, 2011, 8:59:29 PM7/15/11
to Parchment
It would help if you could provide the actual URL to the file.

On Jul 13, 9:34 pm, Johnathon Tinsley <johnathon.tins...@kirrus.co.uk>
wrote:
> Hi Dannii,
>
> That's a bit better - it's now loading the intepreter, but it still
> can't seem to get the actual story file, it just sits on 'Please wait
> whilst parchment loads - Retrieving story file...'
>
> I'm probably missing something simple :)
>
> Johnathon
>
>
>
>
>
>
>
>
>
> > default_story: 'http://error.mysite.com/interpreter/503- Service

Johnathon Tinsley

unread,
Jul 16, 2011, 1:54:50 PM7/16/11
to parc...@googlegroups.com
Hi Dannii,

Ok, sorry, old habits die hard! The full, proper URL is:
http://error.rockpapershotgun.com/

For testing purposes, the HTML that I've tried is there as well, till I
get it working there's no point in deploying it on the main site
(http://rockpapershotgun.com)

Best,

Johnathon

Dannii Willis

unread,
Jul 16, 2011, 10:14:23 PM7/16/11
to Parchment
It works fine for me! But you have the legacy ones the wrong way
round. I suggest just try the following:

default_story: 'http://error.rockpapershotgun.com/interpreter/503 -
Service Unavailable.zblorb.js',

I also suggest upgrading to the files from
https://github.com/curiousdannii/parchment/zipball/inform7

On Jul 17, 3:54 am, Johnathon Tinsley <johnathon.tins...@kirrus.co.uk>
wrote:

Johnathon Tinsley

unread,
Jul 18, 2011, 11:31:21 AM7/18/11
to parc...@googlegroups.com
Hi Danni,

I've just updated, and now deployed:
http://www.rockpapershotgun.com/503test

It's not loading the story file still. I've tried all the options
visible in the HTML source ("testing options"). It's probably me being
silly again.. but are these options documented anywhere I can lookup?

Also, would you like the attribution link changed at all, whilst I've
got you? I'll probably strip the date. :-)

Best,

Johnathon

Dannii Willis

unread,
Jul 22, 2011, 3:07:59 AM7/22/11
to Parchment
You're missing gnusto.min.js and zmachine.min.js from the interpreter
folder!

On Jul 19, 1:31 am, Johnathon Tinsley <johnathon.tins...@kirrus.co.uk>
wrote:

Johnathon Tinsley

unread,
Aug 2, 2011, 6:47:13 AM8/2/11
to parc...@googlegroups.com
Sorry, I've been on holiday!

.. I'm sure I'm not missing those two!
http://error.rockpapershotgun.com/interpreter/gnusto.min.js
http://error.rockpapershotgun.com/interpreter/zmachine.min.js

Those have been there for a while:
-rw-r--r-- 1 shotgun shotgun 54156 2011-07-18 15:24 gnusto.min.js
-rw-r--r-- 1 shotgun shotgun 12754 2011-07-18 15:24 zmachine.min.js

Is the system trying to access those files from
www.rockpapershotgun.com? That isn't possible - whilst the system is in
error state, it's only capable of delivering raw HTML, and I don't
particularly want to have to inline that much javascript into the
varnish configuration.. it looks enough of a mess with the HTML in there
as it is ;)

Best,

Johnathon

Dannii Willis

unread,
Aug 3, 2011, 6:57:46 AM8/3/11
to Parchment
You'll need to change lib_path: 'interpreter/' to be the full path.

On Aug 2, 8:47 pm, Johnathon Tinsley <johnathon.tins...@kirrus.co.uk>
wrote:
> Sorry, I've been on holiday!
>
> .. I'm sure I'm not missing those two!http://error.rockpapershotgun.com/interpreter/gnusto.min.jshttp://error.rockpapershotgun.com/interpreter/zmachine.min.js
>
> Those have been there for a while:
> -rw-r--r-- 1 shotgun shotgun  54156 2011-07-18 15:24 gnusto.min.js
> -rw-r--r-- 1 shotgun shotgun  12754 2011-07-18 15:24 zmachine.min.js
>
> Is the system trying to access those files fromwww.rockpapershotgun.com?That isn't possible - whilst the system is in

Johnathon Tinsley

unread,
Aug 3, 2011, 12:48:47 PM8/3/11
to parc...@googlegroups.com
Hi,

Whoo, getting there!

Is parchment detecting the device width? The browser-generated content
I'm seeing now (which you can see by going here:
http://www.rockpapershotgun.com/503test) is currently putting this
around the main content window:
<div style="width: 0px;" id="content">

I can see there's this looking option in the header, before the
parchment options:
<meta name="viewport" content="width=device-width">

I've tried setting that to a percentage, and pixel defined, but it
doesn't appear to change the restriction the javascript seems to be
adding. I've even tried removing that meta tag completely, to no avail,
so I suspect that that is a red-herring.

Any ideas? :)

Best,

Johnathon

Dannii Willis

unread,
Aug 4, 2011, 8:25:14 PM8/4/11
to Parchment
Ahh. Add width: 80 to the options.

On Aug 4, 2:48 am, Johnathon Tinsley <johnathon.tins...@kirrus.co.uk>
wrote:
> Hi,
>
> Whoo, getting there!
>
> Is parchment detecting the device width? The browser-generated content
> I'm seeing now (which you can see by going here:http://www.rockpapershotgun.com/503test) is currently putting this
> around the main content window:
> <div style="width: 0px;" id="content">
>
> I can see there's this looking option in the header, before the
> parchment options:
> <meta name="viewport" content="width=device-width">
>
> I've tried setting that to a percentage, and pixel defined, but it
> doesn't appear to change the restriction the javascript seems to be
> adding. I've even tried removing that meta tag completely, to no avail,
> so I suspect that that is a red-herring.
>
> Any ideas? :)
>
> Best,
>
> Johnathon
>
> On 03/08/11 11:57, Dannii Willis wrote:
>
> > You'll need to change lib_path: 'interpreter/' to be the full path.
>
> > On Aug 2, 8:47 pm, Johnathon Tinsley<johnathon.tins...@kirrus.co.uk>
> > wrote:
> >> Sorry, I've been on holiday!
>
> >> .. I'm sure I'm not missing those two!http://error.rockpapershotgun.com/interpreter/gnusto.min.jshttp://err...
>
> >> Those have been there for a while:
> >> -rw-r--r-- 1 shotgun shotgun  54156 2011-07-18 15:24 gnusto.min.js
> >> -rw-r--r-- 1 shotgun shotgun  12754 2011-07-18 15:24 zmachine.min.js
>
> >> Is the system trying to access those files fromwww.rockpapershotgun.com?Thatisn't possible - whilst the system is in

Dannii Willis

unread,
Aug 4, 2011, 8:29:00 PM8/4/11
to Parchment
Actually no that won't work.
The problem is that you're mixing up new javascript code with really
old html code. I suggest just regenerating it from Inform 7 again.
> > >> Is the system trying to access those files fromwww.rockpapershotgun.com?Thatisn'tpossible - whilst the system is in

Johnathon Tinsley

unread,
Aug 5, 2011, 5:57:08 AM8/5/11
to parc...@googlegroups.com
Argh! I didn't generate the HTML, it was done by a third party. Getting
it generated again will be a pain.

Would it be easier if I just re-write the HTML from scratch? (I used to
design and develop sites for a living, HTML and CSS aren't a problem for
me).

Do you have any template HTML to work from, or documentation of the
options that need to be specified for parchment in the HTML, above the
calls?

Johnathon

Dannii Willis

unread,
Aug 5, 2011, 8:55:49 PM8/5/11
to Parchment
This is the latest code, so if it's all taken from here it will work
together: https://github.com/curiousdannii/parchment/tree/inform7/Parchment

The (manifest).txt file has the template HTML code to use in
[INTERPRETERHEAD] and [INTERPRETERBODY].

On Aug 5, 7:57 pm, Johnathon Tinsley <johnathon.tins...@kirrus.co.uk>
> >>>>> Is the system trying to access those files fromwww.rockpapershotgun.com?Thatisn'tpossible- whilst the system is in

Johnathon Tinsley

unread,
Aug 12, 2011, 1:12:05 PM8/12/11
to parc...@googlegroups.com
Hi Dannii,

And, it's working :) Thank you!

Best,

Johnathon

Reply all
Reply to author
Forward
0 new messages