summaryrefslogtreecommitdiff
path: root/README
blob: 84907c490b1e80a948596e0620eae04d240d0846 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
This is a WIP HTML5 implementation of the game Katawa Shoujo. [0]

== Requirements ==
- Katawa Shoujo (obviously)
- Firefox/Chrome/a sensible browser (i.e. not IE)
- Bash
- ffmpeg with fdk-aac, libtheora, libvpx, libx264
- opusenc from opus-tools
- TruePNG
- DeflOpt
- defluff
- pngquant
- recommended: jpegmini
- jpegrescan
- cwebp and webpmux from libwebp
- ImageMagick
- apngasm
- uglifyjs

=== Recommended ===
- nginx
- zopfli

== How to use ==
1. Navigate to http://html5ks.happinessforme.com/

== How to build ==
0. Get Katawa Shoujo.
1. Copy *.rpyc from Katawa Shoujo/game into unrpyc/ directory.
2. Extract files from Katawa Shoujo/game/data.rpa with an rpa extractor, e.g. unrpa. Put files in www/dump.
3. Install prerequisites, download DeflOpt and defluff and place exes in this directory.
4. Run setup.sh. [2]

4. Run nginx.sh to start nginx, then navigate to localhost:8080 in your browser.
-- or --
4. Open www/index.html in a browser.

== Reducing setup time ==
To reduce the setup time (many hours), try the following:

Turn off zopflipng recompression by passing ZOPFLIPNG=: as an environment variable to setup.sh. It saves only a few MB but takes several hours to complete, depending on CPU. Useful if you're serving many, MANY copies, but not useful if you're serving one locally.

== Reducing file size ==
Run `make space`. Warning: This will remove source files from dump.

== Contributing ==

Check Bugzilla for things that need to be done. [3]

See docs/ for the obvious.

[0] http://www.katawa-shoujo.com/
[1] https://github.com/cujojs/when/
[2] If you're on Windoze, sucks for you. Use a better OS.
[3] https://bugzilla.happinessforme.com/buglist.cgi?cmdtype=runnamed&namedcmd=Open+HTML5KS+bugs