This project provides a website containing (pretty much) all cards of the board game Spirit Island. It is hosted on https://sick.oberien.de.
typescript
needs to be installed:
npm install --global typescript
Use tsc
to build and watch for changes:
tsc --pretty --watch --sourceMap
Install git-lfs https://git-lfs.github.com/
From the root of the repository run git lfs fetch
and then git lfs checkout
After building everything and downloading the resources, open index.html
in your browser, e.g.
firefox index.html
After building everything, the following files and folders can be copied to a static website file hoster, e.g. with scp:
scp -r imgs res index.html cards.js search.xml <server>:<folder>
GtG can pdf-dump the card-pdfs, getting a not-perfect representation of the cards.
It doesn't contain any images, symbols or alt-names, so it not really useful for transcribing new cards.
However, it can be used to detect if card text changed.
Download the pdf2txt dump (can be provided by Dylan Thurston) and unpack it in compare-card-text/card-texts
.
Then, having rust installed (e.g. via https://rustup.rs/), within compare-card-text
run cargo run
.
Install git-lfs https://git-lfs.github.com/
From the root of the repository run git lfs fetch
Download the pdfs containing the images of all images from dropbox (provided by Dylan Thurston)
into the respective folders in imgsprep
.
The pdfs should follow this structure within the imgsprep
folder:
.
├── base
│ ├── cards-fear.pdf
│ ├── cards-major.pdf
│ ├── cards-minor.pdf
│ └── cards-spirit.pdf
├── branchclaw
│ ├── cards-event.pdf
│ ├── cards-fear.pdf
│ ├── cards-major.pdf
│ ├── cards-minor.pdf
│ └── cards-spirit.pdf
├── jagged-earth
│ ├── cards-event.pdf
│ ├── cards-fear.pdf
│ ├── cards-major.pdf
│ ├── cards-minor.pdf
│ └── cards-spirit.pdf
├── promo
│ └── cards-spirit.pdf
├── promo2
│ ├── cards-fear.pdf
│ └── cards-spirit.pdf
In the file imgsprep/rename.py
execute the commands to generate the names of cards in SICK
from the browser console and replace the arrays in the python file with the results.
This array is used to math the rather bad OCRed names from the card images to the actual cards.
Within the imgsprep
folder, run the following commands:
./clean #deletes all old image files, making sure the environment is clean
./extract #extracts the images from the pdfs
./convert #converts images to webp/jpg and OCRs the names
./rename.py #fixes names; make sure you have generated the name-arrays
cp events/* ../imgs/events
cp fears/* ../imgs/fears
cp powers/* ../imgs/powers
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option with parts copyrighted by Greater Than Games, LLC.
All images and some text belongs to Greater Than Games, LLC. Source code files with material by Greater Than Games, LLC are marked as such in the header comment.