Skip to content

Releases

v2.2.0-beta2

Choose a tag to compare

@github-actions github-actions released this 03 Aug 16:42
  • Fix: The AppImage drew its loading bar and then aborted with "CEGUI::RendererException ... STBImageCodec - stb_image.c based image codec failed to load image 'darkening.png'". That file was a 1-BIT COLORMAP PNG. It had always been one, and it had always worked - under DevIL. Switching CEGUI to its built-in STB image codec, so the macOS and Windows builds would link, quietly took away support for sub-8-bit PNG depths: CEGUI 0.8 vendors an old stb_image.c that decodes 8 and 16 bits only. Five files out of 1029 were affected - darkening.png and the four screw_block middle textures - and the first one the GUI touched killed the process. All five are converted to 8-bit RGBA, which is lossless for a palette of two colours and works with any codec rather than only the one that happens to be linked. (by Lauri Ojansivu)
  • Misc: New test testing/png-bit-depth-test.sh, run by tsc/testing/run-tests.sh, fails on any PNG in the game data below 8 bits per channel. Nothing caught the bug above at build time: the data is copied rather than decoded, so the build succeeded, and "tsc --print-paths" confirms the data is FINDABLE - the PREVIOUS bug - while saying nothing about whether it DECODES. It only appeared when one particular image was loaded, at runtime, on a machine with a display. The test reads the bit depth straight out of each PNG's IHDR with od, so it needs no image library, no file and no Python; it names the offending files and prints the exact conversion command; and it fails when it finds NO PNGs at all, because a check that checked nothing must not report success. Verified in both directions - it passes on the converted data and fails on all five originals. (by Lauri Ojansivu)
  • Fix: The macOS disk image was missing from the release for two reasons, one behind the other. With -Wl,--as-needed no longer refused by Apple's linker, all three macOS jobs reached the link and ended there instead: "_libintl_ngettext", "_libintl_setlocale" and "_libintl_textdomain" undefined, "ld: symbol(s) not found for architecture arm64", on macOS 15 arm64, macOS 15 x86_64 and macOS 26 arm64 alike. On Linux the gettext functions are IN glibc, so nothing has to be linked and nobody notices; on macOS they are not in libSystem. CMakeLists.txt resolved and linked iconv and intl on WIN32 and on the BSDs, and macOS fell into the plain else-branch and linked neither - it now uses the same find_package branch as the BSDs. That alone still failed, because Homebrew's gettext is KEG-ONLY: macOS ships a BSD gettext of its own, so Homebrew refuses to shadow it and brew install gettext does not symlink libintl into $(brew --prefix)/lib, which was the only prefix on CMAKE_PREFIX_PATH. find_library(intl) came back empty for a library installed the whole time, in a directory nothing was looking in. Mac.yml passes the keg's own prefix too, and CMakeLists asks brew --prefix gettext itself so a plain local cmake finds it as well. New test testing/macos-libintl-test.sh, run by tsc/testing/run-tests.sh, reads both files and then REPRODUCES the bug on any OS: it builds a libintl that exists but sits on no default search path, shows find_package(LibIntl REQUIRED) failing without its prefix, then finding it and linking with it. (by Lauri Ojansivu)
  • Fix: 26 CEGUI::RendererException lines while the game ran, and a dummy image drawn for each. Not the bit depth this time: png-bit-depth-test.sh passed 1029 of 1029 while every one of these was broken, and each failing file is 8-bit and non-interlaced. What they have in common is their COLOUR TYPE, 0 (greyscale) or 4 (greyscale+alpha) - 38 of the 1029 PNGs are one of those two, and the 26 in the log are the ones that session happened to open. CEGUI's STBImageCodec asks stb for whatever channel count the file has, with stbi_load_from_memory(..., &comp, 0), and then accepts only comp 3 and 4; greyscale is ONE channel and greyscale+alpha TWO, so stb decoded them perfectly well and the switch threw them away with "Only RGB and RGBA images are supported". The new cegui-stb-greyscale.patch, applied by ProvideCEGUI.cmake beside the two patches already there, reloads those two cases asking for RGBA - the same decoder doing the widening the caller would otherwise do, since stb's convert_format has CASE(1,4), which fills an opaque alpha, and CASE(2,4), which keeps the image's own. 3- and 4-channel images are untouched, so the 962 that already worked load exactly as before. Converting the 38 files would also have worked and would have been wrong: it fixes those 38 and nothing else, leaving a greyscale PNG in somebody else's level still drawing a dummy image. Verified against the real assets rather than by reading - compiling the codec's exact logic against CEGUI's own vendored stb_image.cpp and running it over the game data gives 38 rejected before and 0 after, and over the 26 files named in the log, 26 before and 0 after. New test testing/cegui-greyscale-test.sh. (by Lauri Ojansivu)
  • Fix: An ordinary start reported two problems it does not have. Every first run printed "Warning: Preferences file ... does not exist. Using default values." on stderr - there is no preferences file until something is saved, so the first thing a new player saw was the game reporting a fault it did not have. It is a fact on stdout now and still names the path, so an EXISTING preferences file that stopped being found is as visible as before. And "No joysticks available" printed on almost every start, because most machines have no joystick, while its own sibling "Joysticks found : N" was already behind m_debug - the uninteresting answer loud, the interesting one silent. Both are gated now. This is not only tidiness: the 26 image errors above sat in exactly this noise. New test testing/startup-messages-test.sh. (by Lauri Ojansivu)
  • Fix: A release workflow could be stopped from LOADING by its own only input. Each of AppImage.yml, Deb.yml, Flatpak.yml, Mac.yml and Windows.yml decided which matrix entries to build with a template expression on the build job, contains(fromJSON(inputs.only), matrix.arch), and fromJSON there is evaluated while the workflow TEMPLATE is parsed. A value that is not JSON therefore did not fail a build, it failed the run: dispatching AppImage with only: v2.2.0-beta2 answered "The template is not valid. .github/workflows/ AppImage.yml (Line: 148, Col: 19): Unexpected character encountered while parsing value: v", all three architectures died at "Prepare workflow directory" before a single step ran, and the publish job then reported "No architecture produced an AppImage - every build job failed" while their logs were empty. The question is answered in a shell now, by the new .github/scripts/matrix-only.sh, which the "read the version" job of each workflow runs: it accepts ["a","b"], a,b or a b, rejects anything else with a message naming that workflow's valid entries, and always prints valid JSON - so the fromJSON in the build job can no longer throw. The only input's description now lists the entries it accepts, the tag and only inputs reach the shell through the environment instead of being interpolated into a command line, and the "nothing was built" error points at the version job as well as at the build logs. (by Lauri Ojansivu)
  • Fix: A release tag is no longer pasted into a shell line. Seven steps across Deb.yml, Flatpak.yml, Mac.yml, Windows.yml, Repos.yml, release-all.yml and release-all-missing.yml began with tag='${{ inputs.tag }}', which puts a value somebody typed into a dispatch box inside a single-quoted shell string: a quote in the value ends the string and the rest of it becomes script. All seven read the value from the environment now, where the shell never parses it, and so do the three steps of AppImage.yml's publish job that carry the same value one hop later as needs.version.outputs.tag. This is the same class as the only input above - a hand-typed value reaching somewhere that treats it as syntax - and testing/matrix-only-test.sh now fails if any workflow puts one back. (by Lauri Ojansivu)
  • Fix: The AppImage packaging script could fail a release for a reason that is not the AppImage's. After packing, it unpacks what it built and runs tsc --print-paths to prove the game finds its data; anything that stopped that check from RUNNING - no unsquashfs, an image that would not unpack, no tsc inside it - failed the build and withheld a finished AppImage. Those three warn now. The one case that still fails the build is tsc itself saying the data is not where it will look for it, which is the bug the check is there for. testing/build-appimage-test.sh pins both halves. (by Lauri Ojansivu)
  • Misc: The release scripts' Python bytecode is ignored. Running .github/scripts/expected-assets.sh or any other release helper leaves pycache directories and .pyc files beside the scripts, which then show up in git status and invite being committed - build output for one machine's interpreter version, useless to everybody else. .gitignore covers them now. (by Lauri Ojansivu)
  • Misc: New standalone tests, in tsc/testing, run by tsc/testing/run-tests.sh. They need only a C++ compiler and a shell - no SFML, no CEGUI, no boost, no display and no installed game - so both ./build-tsc.sh and the packaging jobs in .github/scripts/build-tsc.sh run them before compiling anything. There are three. data_dir_test.cpp drives the game data directory decision against a fake directory tree and pins the AppImage case, the installed case, the relocated cases, and that an empty $TSC_DATA_DIR or a stale $APPDIR is ignored rather than used as a path. testing/matrix-only-test.sh pins what the workflows' only input accepts and refuses, that no workflow hands a raw input to fromJSON any more, and that every selector .github/scripts/expected-assets.sh can produce is one its workflow accepts - so "Release all missing" cannot ask for an asset with a selector the workflow would now reject. And testing/build-appimage-test.sh pin...
Read more

v2.2.0-beta1

Choose a tag to compare

@xet7 xet7 released this 27 Oct 18:08
  • New CEGUI. Thanks to Quintus.
  • New Spanish translation. Thanks to LSpadix.

v2.1.0

Choose a tag to compare

@xet7 xet7 released this 18 May 16:17

TSC v2.1.0

build-deb.zip has some files, that were used when building .deb packages.

v2.1.0-rc2

Choose a tag to compare

@xet7 xet7 released this 18 May 16:22

TSC v2.1.0-rc2

v2.1.0-rc1

Choose a tag to compare

@xet7 xet7 released this 18 May 16:27

TSC v2.1.0-rc1

v2.1.0-beta2

Choose a tag to compare

@xet7 xet7 released this 18 May 16:33

TSC v2.1.0-beta2

v2.1.0-beta1

Choose a tag to compare

@xet7 xet7 released this 18 May 23:52

TSC v2.1.0-beta1

v2.00

Choose a tag to compare

@xet7 xet7 released this 19 May 00:00

TSC v2.00

v2.0.0-rc1

Choose a tag to compare

@xet7 xet7 released this 19 May 00:04

TSC v2.0.0-rc1

v2.0.0-beta8

Choose a tag to compare

@xet7 xet7 released this 19 May 00:06

TSC v2.0.0-beta8