The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: CannonBall7 on October 12, 2020, 07:10:22 PM

Title: [122.0] Unable to build theme .pak files due to missing assets in source archive
Post by: CannonBall7 on October 12, 2020, 07:10:22 PM
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 (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 (https://sourceforge.net/projects/simutrans/files/simutrans/122-0/simumac-122-0.zip/download)
Title: Re: [122.0] Unable to build theme .pak files due to missing assets in source archive
Post by: prissi on October 13, 2020, 12:14:18 AM
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.
Title: Re: [122.0] Unable to build theme .pak files due to missing assets in source archive
Post by: CannonBall7 on October 14, 2020, 09:51:20 PM
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 (https://github.com/Homebrew/homebrew-core/pull/62813)
Title: Re: [122.0] Unable to build theme .pak files due to missing assets in source archive
Post by: prissi on October 15, 2020, 07:46:34 AM
Oh, yes there was one line doubled so FILELISTF war overwritten.