Installing and Using Parchment Offline

101 views
Skip to first unread message

Sebastián Armas

unread,
Feb 25, 2015, 4:05:47 PM2/25/15
to parc...@googlegroups.com
Hello:

I'm considering to distribute my IF works on a ZIP file that would include assorted HTML pages (intro, help, etc) de Z5 individual story (any of them is less than 300kB, text only stories)  and, if possible, and offline installation of Parchment, to play the story on a browser.

Can I find straightfoward instructions on that somewhere on line?

If not, may someone be kind enough and walkthrough me?

Awaiting your kind reply,

[INCANUS]
Chilean IF Author

Dannii Willis

unread,
Feb 26, 2015, 1:35:33 AM2/26/15
to parc...@googlegroups.com
You can try using Inform 7 to distributed and prepare a webpage for you, or else if you get the files from the zip (https://github.com/curiousdannii/parchment/archive/master.zip) and edit index.html to add a parchment_options setting option, then that will also work too. You only need to distribute the index.html file (which can be renamed) and the lib folder. Here's an example of what you could use for the parchment_options:

parchment_options = {
default_story: [ "story.z5" ],
lock_options: 1,
lock_story: 1,
page_title: 0
};

Sebastián Armas

unread,
Feb 26, 2015, 5:53:44 AM2/26/15
to parc...@googlegroups.com
Dannii:

Thanks for your promtpt and kind answer!

I tried it just now. Here follows the index.html modified code:

<!DOCTYPE html>
<html>
    <script> parchment_options = {
    default_story: [ "Mansion.z5" ],
    lock_options: 1,
    lock_story: 1,
    page_title: 0 };</script>
<head>
    <meta charset="utf-8">
    <title>Parchment</title>
    <script src="lib/jquery.min.js"></script>
    <script src="lib/parchment.min.js"></script>
    <link rel="stylesheet" href="lib/parchment.min.css">
    <meta name="viewport" content="width=device-width,user-scalable=no">
</head>
<body>
    <div id="about">
        <h1>Parchment</h1>
        <p>is an interpreter for Interactive Fiction. <a href="http://parchment.googlecode.com">Find out more.</a></p>
        <noscript><p>Parchment requires Javascript. Please enable it in your browser.</p></noscript>
    </div>
    <div id="parchment"></div>
</body>
</html>



It does work when I use it with Mozila Firefox, but on Internet Explorer (v11.0.16) I get the following text (white font, red background):

An error occurred:
Parchment could not load the story. Check your connection, and that the URL is correct.

An error occurred:
[object Object]

What may be happening?

[INCANUS]

Simon Booth

unread,
Feb 27, 2015, 7:03:19 PM2/27/15
to parc...@googlegroups.com
A little JS helps out but it's easier with the Z5 converted to JS first

Danni, I've not played for a while - kindly refresh my memory, some Python script as I remember


function load_story(tale) {
var library;
firstload = true;
parchment.options.default_story = [ 'stories/' + tale, 'stories/' + tale + '.js' ];
parchment.options.panels = [ ];
library = new parchment.lib.Library();
parchment.library = library;
library.load();
}


--
--
You received this message because you're subscribed to the Parchment Google Group. http://groups.google.com/group/parchment

---
You received this message because you are subscribed to the Google Groups "Parchment" group.
To unsubscribe from this group and stop receiving emails from it, send an email to parchment+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Plotkin

unread,
Feb 27, 2015, 7:17:38 PM2/27/15
to parc...@googlegroups.com
On Sat, 28 Feb 2015, Simon Booth wrote:

> A little JS helps out but it's easier with the Z5 converted to JS first
>
> Danni, I've not played for a while - kindly refresh my memory, some Python
> script as I remember

This one:

https://github.com/erkyrath/quixe/blob/master/tools/game2js.py

Do:
python game2js.py mystory.z5 > mystory.z5.js

Then you can use "mystory.z5.js" instead of "mystory.z5" and it will work
in more browsers.

--Z

--
"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..."
*

Sebastián Armas

unread,
Feb 28, 2015, 7:39:04 AM2/28/15
to parc...@googlegroups.com
Hello:

I'd like to comment that I've solved my pending issues with Parchment off-line using it's Inform 7 distribution.

I've made .ZIP distributions of my spanish interactive fiction works, all them properly and nicely using Parchment off-line.

BTW, I'm planning on making a small arcticle for the spanish IF community, so they may also use this wonderful Parchemnt feature.

Thank you all for your kind interest and help!

Se despide,

[INCANUS]
Reply all
Reply to author
Forward
0 new messages