Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference between using a .z file and a .z.js file #35

Closed
nickbe opened this issue Sep 22, 2016 · 3 comments
Closed

Difference between using a .z file and a .z.js file #35

nickbe opened this issue Sep 22, 2016 · 3 comments
Labels

Comments

@nickbe
Copy link

nickbe commented Sep 22, 2016

It seems I can use the zcode files as well as the .js files. Can you explain the difference?

Also I'd like to know how to convert the zcode files to .js myself. There seem to be some tools in a subfolder but so far I couldn't figure out how to use them,

And if I use story files with in game sound or graphics - will they work too?

@curiousdannii
Copy link
Owner

curiousdannii commented Sep 23, 2016

The .js story files are just base64 encoded copies of the original files, with a header and tail so that they can be loaded. They are only needed when loading a story from file: and possibly only from old browsers. I haven't checked for a while, but it may not be needed at all now! If you're making your storyfile with Inform 7 then it will handle creating the .js version for you. Edit: they are still needed for playing from a file:// url on Chrome.

Graphics are supported by Quixe (the Glulx interpreter Parchment uses). I'm not sure if it supports sound or not. See erkyrath/quixe#5

@nickbe
Copy link
Author

nickbe commented Nov 15, 2016

Thanks for the info :)

@cibersheep
Copy link

Actually, in the Ubuntu Phone, the easiest way of doing an IF app is embeding an html with Parchment. The compiler complains about having "bin files .z5" so being able to have the .z5.js has been really helpful.

Just saying :)
Anyway, if it's depreciated, I will cry a bit and that's it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants