Skip to content

omarjuul/spirit-island-card-katalog

 
 

Repository files navigation

SICK - Spirit Island Card Katalog

This project provides a website containing (pretty much) all cards of the board game Spirit Island. It is hosted on https://sick.oberien.de.

Building

Typescript

typescript needs to be installed:

npm install --global typescript

Use tsc to build and watch for changes:

tsc --pretty --watch --sourceMap

Downloading The Resources

Install git-lfs https://git-lfs.github.com/

From the root of the repository run git lfs fetch and then git lfs checkout

Open

After building everything and downloading the resources, open index.html in your browser, e.g.

firefox index.html

Deploy

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>

Compare Card Texts with Card PDF-Dump

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.

Building The Resources

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

License

Licensed under either of

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.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 73.1%
  • CSS 11.9%
  • Shell 7.2%
  • Python 5.1%
  • Rust 2.0%
  • HTML 0.7%