News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

[122.0] Unable to build theme .pak files due to missing assets in source archive

Started by CannonBall7, October 12, 2020, 07:10:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CannonBall7

I'm updating the Homebrew formula for Simutrans, and am attempting to use themes.src/build_themes.sh[1] to build the .pak files for each theme. However, it looks like each section relies on .dat files that aren't present in the subfolders. (I was able to eventually get the binary to launch by swapping in the themes/ folder from simumac-122-0.zip[2], which contains pre-built theme .pak files.) It looks like they've been omitted from the source archive due to zipsrc.sh being out of date; specifically, it needs to include all .dat and .png files from subfolders of themes.src/.

1: https://github.com/aburch/simutrans/blob/master/themes.src/build_themes.sh
2: https://sourceforge.net/projects/simutrans/files/simutrans/122-0/simumac-122-0.zip/download

prissi

Thank you for the notice. Generally, I would advice to use the SVN r9274 in this case and the dirstributes.h script, which does all the things for making a release. The src-zip file tends to be out of date unfortunately on more than one occasion. Especially, since building the pak fiels needs a working makeobj in the right folder, so this process is not automated. But indeed these fiels belong to the source. I will add ithem.

CannonBall7

There's still a few missing files required for building (e.g. common.mk, configure.ac), but for the Homebrew formula[1] I updated it to pull directly from SVN (and enable freetype).

1: https://github.com/Homebrew/homebrew-core/pull/62813

prissi