Commit Graph
253 Commits
Author SHA1 Message Date
Mike LiuandClaude Opus 4.6 65d7018b97 Document FAL.ai scale-up findings and fix cross-platform stat
Add findings from scaling the reskin pipeline to 552 sprites across
36 FAL.ai batches. Key insight: palette quantization is the primary
blocker for AI-generated reskins — mechanical palette remap is more
reliable. Also fix stat flags in build-reskin-upload.sh for Linux
compatibility (stat -c%s with -f%z fallback).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 05:54:48 +00:00
Mike LiuandClaude Opus 4.6 2c524e8462 Add dark artifact cleanup to parse_restyled post-processing
FAL.ai sometimes paints dark horizontal bands across sprites (from grid
lines bleeding into content). The new cleanup_black_artifacts() step
detects opaque pixels significantly darker than the sprite's median
brightness (where the original was NOT dark) and fills them from the
nearest bright neighbor.

This took the Gemini visual quality rating from 2/10 to 10/10 on
test sprites — no more black/dark bands, clean transparency, shape
perfectly preserved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 01:23:12 +00:00
Mike LiuandClaude Opus 4.6 1fac077da8 Add per-cell descriptions and Playwright sprite verification
- describe_grid.py: Uses Gemini CLI to analyze each grid image and
  describe individual sprite cells, producing JSON descriptions that
  feed into the FAL.ai prompt for much better restyling fidelity
- verify_sprites.py: Builds HTML comparison page (original vs restyled
  at 1x and 4x zoom), screenshots via Playwright, optionally judges
  with Gemini CLI
- reskin.py: Add "describe" step between batch and generate; auto-
  resolve descriptions_dir for both describe and generate steps
- Tests for describe_grid (6 tests covering parsing edge cases)
- Fix 4x zoom CSS overflow in verification page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:41:15 +00:00
Mike LiuandClaude Opus 4.6 34b6440e0e ralph: story-7 Gemini visual judge script
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:21:05 +00:00
Mike LiuandClaude Opus 4.6 0b7ae76261 ralph: story-6 Playwright screenshot skill for OpenRCT2 web
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:20:26 +00:00
Mike LiuandClaude Opus 4.6 b19fea3209 ralph: story-6 Playwright screenshot skill for OpenRCT2 web
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:19:29 +00:00
Mike LiuandClaude Opus 4.6 7a5b6cee70 ralph: story-5 reskin.py — orchestrator with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:17:51 +00:00
Mike LiuandClaude Opus 4.6 436dee559c ralph: story-4 parse_restyled.py — sprite extraction with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:16:09 +00:00
Mike LiuandClaude Opus 4.6 8f4d4ed8c5 ralph: story-3 generate_restyled.py — FAL.ai generation with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:14:23 +00:00
Mike LiuandClaude Opus 4.6 68b3c403e9 ralph: story-2 batch_sprites.py — grid batching with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:13:30 +00:00
Mike LiuandClaude Opus 4.6 4f22bd0c47 ralph: story-2 batch_sprites.py — grid batching with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:12:29 +00:00
Mike LiuandClaude Opus 4.6 4c3cdc10ea ralph: story-1 categories.py — style preset definitions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:11:04 +00:00
Mike Liu 7b8b0965a5 Switch reskin CLI build dir to build_native 2026-02-20 12:56:27 -08:00
Mike Liu 93063cc936 Preserve directory entries when repacking nested zips 2026-02-20 12:50:29 -08:00
Mike Liu bef6799c3a Add web upload asset reskin pipeline scripts and docs 2026-02-20 11:37:30 -08:00
Mike Liu 455186b90f Add wasm local-dev server and automatic web asset/bootstrap loading 2026-02-17 14:21:14 -08:00
Aaron van Geffen ac0dd3b8bd Replace libspeexdsp with custom linear resampling (#26011) 2026-02-15 22:08:58 +00:00
Michał Janiszewski a35ad6fa9c Use -maxcpucount option for msbuild (#25947)
|                   | amd64 + LTCG + maxcpucount                                                                                 | amd64 + LTCG                                                                                             | amd64 + maxcpucount                                                                                        | amd64                                                                                                     | arm64 + LTCG + maxcpucount                                                                                 | arm64 + LTCG                                                                                               | arm64 + maxcpucount                                                                                        | arm64                                                                                                      |
|-------------------|------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|
| target arch x86   | [00:08:53.90](https://github.com/janisozaur/OpenRCT2/actions/runs/21666922052/job/62464744933#step:5:2383) | [00:09:53.62](https://github.com/OpenRCT2/OpenRCT2/actions/runs/21650043151/job/62455751416#step:5:2039) | [00:07:23.90](https://github.com/janisozaur/OpenRCT2/actions/runs/21665997160/job/62461589556#step:5:2344) | [00:08:00.19](https://github.com/OpenRCT2/OpenRCT2/actions/runs/21649659716/job/62410763017#step:5:10565) | [00:08:54.78](https://github.com/janisozaur/OpenRCT2/actions/runs/21666238474/job/62462577951#step:7:2778) | [00:09:44.08](https://github.com/janisozaur/OpenRCT2/actions/runs/21666225731/job/62462441917#step:7:2493) | [00:08:07.22](https://github.com/janisozaur/OpenRCT2/actions/runs/21665838804/job/62461046773#step:7:2743) | [00:08:17.69](https://github.com/janisozaur/OpenRCT2/actions/runs/21665946097/job/62461423151#step:7:2481) |
| target arch amd64 | [00:12:03.54](https://github.com/janisozaur/OpenRCT2/actions/runs/21666922052/job/62464744942#step:5:2141) | [00:12:25.64](https://github.com/OpenRCT2/OpenRCT2/actions/runs/21650043151/job/62455751474#step:5:1911) | [00:08:30.25](https://github.com/janisozaur/OpenRCT2/actions/runs/21665997160/job/62461589591#step:5:2108) | [00:08:52.53](https://github.com/OpenRCT2/OpenRCT2/actions/runs/21649659716/job/62410762982#step:5:10437) | [00:11:25.48](https://github.com/janisozaur/OpenRCT2/actions/runs/21666238474/job/62462577944#step:7:2104) | [00:11:11.95](https://github.com/janisozaur/OpenRCT2/actions/runs/21666225731/job/62462441921#step:7:1927) | [00:08:04.81](https://github.com/janisozaur/OpenRCT2/actions/runs/21665838804/job/62461046753#step:7:2067) | [00:08:35.42](https://github.com/janisozaur/OpenRCT2/actions/runs/21665946097/job/62461423099#step:7:1915) |
| target arch arm64 | [00:13:31.38](https://github.com/janisozaur/OpenRCT2/actions/runs/21666922052/job/62464744892#step:5:2114) | [00:14:03.96](https://github.com/OpenRCT2/OpenRCT2/actions/runs/21650043151/job/62455751629#step:5:1877) | [00:08:31.92](https://github.com/janisozaur/OpenRCT2/actions/runs/21665997160/job/62461589600#step:5:2077) | [00:08:49.81](https://github.com/OpenRCT2/OpenRCT2/actions/runs/21649659716/job/62410763054#step:5:1871)  | [00:13:53.18](https://github.com/janisozaur/OpenRCT2/actions/runs/21666238474/job/62462577943#step:7:2098) | [00:15:02.31](https://github.com/janisozaur/OpenRCT2/actions/runs/21666225731/job/62462441912#step:7:1921) | [00:08:09.25](https://github.com/janisozaur/OpenRCT2/actions/runs/21665838804/job/62461046738#step:7:2068) | [00:08:33.33](https://github.com/janisozaur/OpenRCT2/actions/runs/21665946097/job/62461423188#step:7:1915) |
2026-02-04 16:13:33 +01:00
Michał Janiszewski 37112e42b0 Add information about run-clang-format licence 2025-09-19 21:08:00 +02:00
Michał Janiszewski 814f54fe34 Format files in-place so the changes can be viewed with git diff 2025-09-19 14:55:10 +02:00
Michał Janiszewski ef3b5c7567 Update run-clang-format.py to 39081c9c42768ab5e8321127a7494ad1647c6a2f
https://github.com/Sarcasm/run-clang-format/commit/39081c9c42768ab5e8321127a7494ad1647c6a2f
2025-09-19 14:55:10 +02:00
LRFLEW d800a193c3 Update AppImage metadata to rDNS 2025-09-08 19:35:55 +00:00
Michał Janiszewski a3daec8150 Merge pull request #24892 from ethanaobrien/develop
Emscripten: Download/Upload parks
2025-09-07 07:28:08 +02:00
Ethan O'Brien ed5cb20895 Use set -x 2025-09-06 22:37:14 -05:00
Michael Steenbeek dd957d46e8 Fix spelling of ‘separate’ and ‘separator’ 2025-08-27 22:33:05 +00:00
Michał Janiszewski 66665c8a81 Use macos-15-built libraries v40 (#24939)
* Use macos-15-built libraries v40

Windows version is the same as v38, no need to update

* Use macos-15 in CI

* Build libopenrct2 statically

* Skip creating universal libopenrct2.dylib as it no longer exists

* Force static linking on macOS
2025-08-26 07:04:30 +02:00
Michał Janiszewski bdf81280a5 Format Objective-C source (#24945)
* Reformat Objective-C source

* clang-format Objective-C code

Format objective-c code as well.

I think way back in the past clang-format failed to parse objective-c code, but it works ok now.
2025-08-10 13:58:22 +02:00
Ethan O'Brien 1eff246b1a Emscripten: Reimplement save/load 2025-08-07 08:34:26 -05:00
LRFLEW 52e3c774bc Use ZStandard for Park and Replay Files (#24734) 2025-08-06 21:50:18 +02:00
Michał Janiszewski 559e1bf2ce Use static keystore for signing Android builds
Fixes #22861

GitHub Actions CI uses ephemeral debug keystore resulting in APKs being
signed differently each time. This results in user not having trust in
where the builds come from and Android rejecting the update due to
mismatched keys.

This commit introduces a script to (re)create a keystore to be used for
signing APKs in GitHub Actions, sets environment variables for CI job
with generated key and modifies gradle project to consume those
variables.

I have generated the keystore with aforementioned script and set
secrects in the main repository with both the keystore password and
keystore contents.
2025-08-02 11:41:54 +02:00
Michał Janiszewski f6292b4c13 Use clang-format 20 (#24861)
https://clang.llvm.org/docs/ClangFormatStyleOptions.html
2025-07-31 11:01:48 +02:00
Ethan O'Brien b92a005459 Enhance emscripten display settings (#24841)
* emscripten: Invoke HTML5 emscripten fullscreen API instead of using SDL

* emscripten: Disable OpenGL

* emscripten: Add fullscreen change to changelog
2025-07-27 23:44:08 +02:00
Ethan O'Brien f8865469cb emscripten: increase STACK_SIZE to 8mb (#24840) 2025-07-27 13:07:46 -03:00
Gymnasiast 3073b8db58 NSIS: Assume files without BOMs are UTF-8 2025-07-02 15:28:07 +02:00
Michał Janiszewski 72a8d25ad7 Make changelog format display diff in unified format (#24631) 2025-06-16 10:38:13 +02:00
Ethan O'Brien e3a734611c Optimize emscripten performance (#24178) 2025-04-14 17:24:44 +02:00
Ethan O'Brien 6693278b7f Load emscripten data via a ZIP file 2025-04-08 11:26:23 +00:00
Ethan O'Brien 2195abd80a Add ccall to exported runtime methods 2025-01-20 08:06:06 -06:00
Michał Janiszewski 4f1e92dbf8 Emscripten: build in CI 2025-01-20 11:33:19 +01:00
Michał Janiszewski 78984e8efe Fix clang-format path for new binary 2024-12-09 23:20:03 +01:00
Michał Janiszewski 41b13197d1 Distribute Privacy policy in all the artifacts 2024-11-23 00:29:45 +01:00
Michał Janiszewski 34b9f36989 Fix setting of env variables 2024-11-20 08:45:04 +01:00
Michał Janiszewski ad0f703ca8 Remove old upload code to prevent uploading twice
As we now upload in dedicated job to our own repo without any
intermediary, there's no need to keep the upload-build script nor the
steps executing it
2024-10-18 21:36:32 +02:00
Michael Steenbeek 673d14b247 Merge pull request #22386 from mrmbernardi/format
Apply check-code-formatting changes
2024-10-03 13:21:45 +02:00
Michał Janiszewski 61d9022dd7 Restore manual trimming of short sha (#22887)
This reverts "Let git handle short hashes automatically to avoid clashes"

This reverts commit 727ef731a3.
2024-10-03 07:28:09 +02:00
Michał Janiszewski 61ae3a26ee Use image 17-format with clang 18 2024-10-03 10:49:25 +10:00
Michał Janiszewski 4eb9ffadde Make setenv consume OpenRCT2 version from ci.yml 2024-09-30 22:25:25 +02:00
Michał Janiszewski 727ef731a3 Let git handle short hashes automatically to avoid clashes
We already use the correct way in CMakeLists.txt:199

Currently 9 characters is minimum to uniquely identify version:
4847cfe84

```
git rev-list HEAD --abbrev-commit --abbrev=7 | awk 'length($0) >= 9'
```
2024-09-30 22:25:25 +02:00
Michał Janiszewski 7013ffb56b Rename artifacts to match the releases 2024-09-30 22:25:25 +02:00
Michał Janiszewski 18492da229 Release v0.4.14
- Feature: [#15750] Allow using different types of park entrance in one park.
- Feature: [#20942] Allow removing all park fences from the Cheats window.
- Feature: [#21675] Guests ignore price limit cheat.
- Feature: [#22206] Add option to randomise train or vehicle colours.
- Feature: [#22392] [Plugin] Expose ride vehicle’s spin to the plugin API.
- Feature: [#22414] Finance graphs can be resized.
- Feature: [#22569] Footpath placement now respects the construction modifier keys (ctrl/shift).
- Change: [#21189] Patches to fix scenario bugs are now described in .parkpatch files, instead of inside the code.
- Change: [#21659] Increase the Hybrid Roller Coaster’s maximum lift speed to 17 km/h (11 mph).
- Change: [#22466] The Clear Scenery tool now uses a bulldozer cursor instead of a generic crosshair.
- Change: [#22490] The tool to change land and construction rights has been moved out of the Map window.
- Change: [#22490] In sandbox mode, changing land or construction rights now acts as buying or selling.
- Change: [#22491] Scrollbars are now hidden if the scrollable widget is not actually overflowing.
- Change: [#22541] In editor/sandbox mode, tool widgets now appear on the side of the map window, instead of the bottom.
- Change: [#22592] Cheats have been redistributed along three new tabs: date, staff, and nature/weather.
- Fix: [#21123] Transparency options are not respected on startup.
- Fix: [#21189] Additional missing/misplaced land & construction rights tiles in Schneider Shores and Urban Park.
- Fix: [#21908] Errors showing up when placing/moving track design previews.
- Fix: [#22307] Hover tooltips in financial charts are not invalidated properly.
- Fix: [#22316] Potential crash when switching the drawing engine while the game is running.
- Fix: [#22395, #22396] Misaligned tick marks in financial and guest count graphs (original bug).
- Fix: [#22457] Potential crash opening the scenario select window.
- Fix: [#22520] Virtual floor no longer appears when holding modifier keys during track construction.
- Fix: [#22527] Forcing an element type to “wall” via scripts can crash the game.
- Fix: [#22582] Lighting effects are not enabled/disabled correctly, making the game appear frozen.
- Fix: [#22598] Add several .parkpatch files to .sea scenarios with corresponding patches for RCT1 and RCT2 scenarios.
- Fix: [#22606] Virtual floor is sometimes drawn above the path when placing paths.
- Fix: [#22625] Fix compilation with orignal ride ratings.
- Fix: [#22663] Additional missing/misplaced land & construction rights tiles in Mystic Mountain, Build your own Six Flags Holland and Build your own Six Flags over Texas.
- Fix: [#22671] Game default to hide supports on startup.
- Fix: [#22671] Unchecking invisible option does not uncheck see-through option on transparency options and vice versa.
- Fix: [#22677] Hovering the file list in the load/save window causes a slowdown.
2024-09-01 22:30:08 +02:00