Be running some kind of Unix-like
OS with Bash installed (the build scripts use bash).
Create a workspace directory to hold everything (ie. “Twine/”).
Under this directory, install the Tweego binary and Sugarcube 2 in a directory (or generic project, if using Eclipse) called “Tweego”.
Place the SmutBook source code project/directory alongside this one.
At this point, your directory structure should look something like this (you may have extra license files and stuff in there; this is the minimum directory structure):
Twine/SmutBook/:
(all the SmutBook code and directory structure)
Twine/Tweego/:
storyformats/ tweego
Twine/Tweego/storyformats:
sugarcube-2/
Twine/Tweego/storyformats/sugarcube-2:
format.js icon.svg LICENSE
This makes a neat directory structure under which you can also place your game project files, and use the same sort of build script for them.
Install node-js (used for compiling the classes). This will be different depending on your Linux distribution. Duckduckgo can fill you in on the specifics for your distribution.
cd build && npm install
If there were no errors, you now have all the dependencies installed. There may be warnings. Don't worry about them.
If you are using Eclipse, an automagic builder is included.
Otherwise to build on the commandline: cd build && ./build.sh
The compiled libraries and test story will be in the SmutBook/dist/ directory (
HTML).
You can use a similar sort of build script & Eclipse builder if you want to develop your game in Eclipse, too.
I know this is probably kind of hard to follow. I'll make a tutorial video at some point and put it on BitChute.