griffithsh / squads

A hexagonal Tactics roguelite game.
GNU General Public License v3.0
16 stars 2 forks source link

Error at start: setup system: open: open ./squads.data: no such file or directory #25

Open sedyh opened 2 years ago

sedyh commented 2 years ago

Hello, the game requires a squads.data file to run, where can I find it?

griffithsh commented 1 year ago

The idea is you should be able to clone squads-art, and use its everything.sh script (or the dockerised version that exchanges deps like gimp and tiled for a single dep on docker/podman - docker.sh) to export the required squads.data file.

Currently there may be some image files that are not exported automatically by this script, and cause runtime errors. The squads binary will panic with a message like "xxx.png missing". It would be tedious, but you should be able to manually export the named pngs from the xcf files in squads-art.

The longer-term idea is to pack a minimal data file into the binary itself and make squads.data optional. See https://github.com/griffithsh/squads/commit/8b80515ff128a3bb549640ea9c4f4c819e98e1bd

If you don't want to worry about any of that, here's a working version of the data file generated from https://github.com/griffithsh/squads-art/commit/3d7e6c5523acc83dd5dd95d3f41e9c4fc5eb280f:

squads.data.zip