Using Linux Mint 18.3
kv@kv-ideapad2 ~ $ sudo apt-get update
kv@kv-ideapad2 ~ $ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
npm is already the newest version (3.5.2-0ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
kv@kv-ideapad2 ~ $ sudo npm install squiffy -g
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/usr/local/bin/squiffy -> /usr/local/lib/node_modules/squiffy/squiffy.js
/usr/local/lib
└── [email protected]
kv@kv-ideapad2 ~ $ squiffy
/usr/bin/env: ‘node\r’: No such file or directory
kv@kv-ideapad2 ~ $ sudo apt-get install dos2unix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
dos2unix
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 68.7 kB of archives.
After this operation, 306 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 dos2unix amd64 6.0.4-1 [68.7 kB]
Fetched 68.7 kB in 4s (16.8 kB/s)
Selecting previously unselected package dos2unix.
(Reading database ... 257116 files and directories currently installed.)
Preparing to unpack .../dos2unix_6.0.4-1_amd64.deb ...
Unpacking dos2unix (6.0.4-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up dos2unix (6.0.4-1) ...
kv@kv-ideapad2 ~ $ sudo dos2unix /usr/local/lib/node_modules/squiffy/squiffy.js
dos2unix: converting file /usr/local/lib/node_modules/squiffy/squiffy.js to Unix format ...
kv@kv-ideapad2 ~ $ squiffy
Squiffy 5.1.2
Compiles a Squiffy script file into HTML and JavaScript.
For help, see http://docs.textadventures.co.uk/squiffy/
Usage: /usr/local/bin/squiffy filename.squiffy [options]
Options:
-c, --cdn Use CDN for jQuery
-s, --serve Start HTTP server after compiling
-p, --port Port for HTTP server (only with --serve)
--scriptonly Only generate JavaScript file (and optionally specify a name)
--pluginname Specify the jQuery plugin name instead of .questkit (only with --scriptonly)
--zip Create zip file
Not enough non-option arguments: got 0, need at least 1
kv@kv-ideapad2 ~ $ cd Documents/
kv@kv-ideapad2 ~/Documents/audio_game_squiffycli $ ffmpeg -f pulse -i default sndeffect.ogg
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
...
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, pulse, from 'default':
Duration: N/A, start: 1522693606.088527, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Output #0, ogg, to 'output.ogg':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Audio: vorbis (libvorbis), 48000 Hz, stereo, fltp
Metadata:
encoder : Lavc56.60.100 libvorbis
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
[output stream 0:0 @ 0x1c2a520] 100 buffers queued in output stream 0:0, something may be wrong.
size= 31kB time=00:00:02.38 bitrate= 106.5kbits/s
video:0kB audio:27kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead: 15.323137%
Exiting normally, received signal 2.
kv@kv-ideapad2 ~/Documents $ mkdir audio_game_squiffycli
kv@kv-ideapad2 ~/Documents $ mv sndeffect.ogg audio_game_squiffycli/
kv@kv-ideapad2 ~/Documents $ cd audio_game_squiffycli/
kv@kv-ideapad2 ~/Documents/audio_game_squiffycli $ ls
sndeffect.ogg
kv@kv-ideapad2 ~/Documents/audio_game_squiffycli $ echo -e "[[start]]:\n ogg = new Audio();\n ogg.src = \"sndeffect.ogg\";\n ogg.load();\n ogg.controls = true;\n ogg.play();\n jQuery(\"#squiffy-container\").append(ogg);\nHello." > game.squiffy
kv@kv-ideapad2 ~/Documents/audio_game_squiffycli $ cat game.squiffy
[[start]]:
ogg = new Audio();
ogg.src = "sndeffect.ogg";
ogg.load();
ogg.controls = true;
ogg.play();
jQuery("#squiffy-container").append(ogg);
Hello.
kv@kv-ideapad2 ~/Documents/audio_game_squiffycli $ squiffy game.squiffy -s
Squiffy 5.1.2
Loading /home/kv/Documents/audio_game_squiffycli/game.squiffy
Writing story.js
Writing index.html
Writing style.css
Done.
Started http://localhost:8282/
^C
kv@kv-ideapad2 ~/Documents/audio_game_squiffycli $ 7za a audio_game_squiffycli.zip *
7-Zip (A) [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)
Scanning
Creating archive audio_game_squiffycli.zip
Compressing game.squiffy
Compressing index.html
Compressing jquery.min.js
Compressing sndeffect.ogg
Compressing story.js
Compressing style.css
Everything is Ok
kv@kv-ideapad2 ~/Documents/audio_game_squiffycli $ ls
audio_game_squiffycli.zip game.squiffy index.html jquery.min.js sndeffect.ogg story.js style.css
kv@kv-ideapad2 ~/Documents/audio_game_squiffycli $ elinks http://textadventures.co.uk/submit/submitfile
Submit a Game (1/2)
Link: manifest
Toggle navigation [IMG]
* Play
* Create
* Forums
[IMG] Help! My Profile Log off (0)
* My Games
* Quest
* Squiffy
* Upload Game
Submit a Game to textadventures.co.uk
Game files we accept:
* Games written for the Quest text adventure game system - file types .quest, .cas
* HTML text-based games (e.g. output from Squiffy, Twine, Inform etc.) - file types .html, .zip
* Inform Z-machine or Blorb games - file types .z5, .z8, .ulx, .zblorb, .gblorb
Any other type of file or game will be deleted. All uploads are checked by a moderator. If you have any questions before uploading, please contact us.
Want to know more? Find out more about submitting a game
Submitting an update? This page is for submitting new games only. To submit an update, go to your game listing first and click the "Edit this game" button.
Submitting a Quest game? If your game is created using Quest 5, it must be a .quest file. To create one in the Editor, click the Tools menu and then Publish.
Submitting an HTML game? You can either upload a single self-contained .html file, or a .zip file containing all HTML, graphics and stylesheets your game
requires.
By uploading a game here, you agree to the following:
* you are the author of this game, or have the author's permission to upload it for them
* if there is any copyrighted material in the game, you have permission to use it
* we can distribute this game on textadventures.co.uk and activelit.com
In return, we promise:
* you keep all the copyright in the game
* we will use your submission solely to make it available on our websites, and always freely
Submit a Game (2/2)
* we will never sell or modify your game
* you'll always be credited as the author
_game_squiffycli.zip_
Upload
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Connect
[IMG] Follow us on Facebook
[IMG] Follow @TextAdv on Twitter
Products
Quest
Squiffy
ActiveLit
Resources
Documentation
Blog
GitHub
Support
Forums
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
© 2018 textadventures.co.uk · Privacy · Help · Contact us · Submit a game
Game Details (2/2)
Publish
By ticking the box below, you agree to the following:
* you are the author of this game, or have the author's permission to upload it for them
* if there is any copyrighted material in the game, you have permission to use it
* we can distribute this game on textadventures.co.uk and activelit.com
In return, we promise:
* you keep all the copyright in the game
* we will use your submission solely to make it available on our websites, and always freely
* we will never sell or modify your game
* you'll always be credited as the author
[X] I agree to the above terms and conditions
Publish
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Connect
[IMG] Follow us on Facebook
[IMG] Follow @TextAdv on Twitter
Products
Quest
Squiffy
ActiveLit
Resources
Documentation
Blog
GitHub
Support
Forums
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Post form to http://textadventures.co.uk/submit/gamedetails
kv@kv-ideapad2 ~/Documents/audio_game_squiffycli $
http://textadventures.co.uk/games/view/ra0-jwthzk6ccbohn8or8w/squiffy-audio-example
I was bored. What can I say?