60 Commits
Author SHA1 Message Date
Jiaqi Liu 5d0f564a00 Add a standalone battle editor and battle system for PAL3 and PAL3A (#99)
* build: migrate C# formatting and add offscreen editor test support

Host IMGUI tests on a detached panel without creating a native editor window.

* feat(core): decode native battle records, geometry and animation metadata

Read the two game variants’ battle tables and model data, with binary-reader and original-resource coverage.

* feat(battle): implement deterministic combat rules and action settlement

Implement actors, inventory, formation, action timing, status interruption, AI, stage ownership and deterministic replay. Keep the domain and its regression suite independent of Unity.

* feat(battle): project native HUD state and input commands

Add the presentation assembly and tests for command routing, lineup selection, floating numbers and stage messages.

* feat(rendering): add battle lighting, actor appearance and native shadows

Support baked and toon lighting, actor and weapon rendering, display refresh rate and resource ownership.

* feat(effects): drive battle effects through shared resource previews

Bind battle control nodes to action owners. Share preview lighting, geometry and effect resources with the existing Unity editors.

* refactor(game): isolate story battle targeting and actor lifetimes

Preserve scene ownership, bound story battle targeting and stop debug attacks when their actor leaves the scene.

* feat(editor): compile original game data into battle scenarios

Build per-variant animation and ability catalogs, encounter music, scene lighting profiles, random parties, equipment and test inventory from the original resources.

* feat(editor): play battle sessions with animated previews and synced media

Drive the preview scene, camera, effects, hit feedback, result choreography, music and movies from simulation snapshots and events.

* feat(editor): add the battle workbench, native HUD and input controls

Expose scenario authoring, replay, diagnostics, responsive command menus and mouse, touch and gamepad targeting. Include the editor workflow and HUD integration tests.
2026-11-21 22:28:47 +08:00
Jiaqi Liu effac5aaf6 docs: show current pull request build status in badges (#95) 2026-11-15 00:36:21 +08:00
Jiaqi Liu 25579c6c0d Replace runtime ResourceViewer with native editor resource browsing (#94) 2026-11-14 23:54:32 +08:00
Jiaqi Liu 4cabbd03a7 Implement native PAL3/PAL3A effects and editing tools (#93)
* Implement original PAL3 effects and editor with formatting checks

* Add native PAL3A effect playback and SPar diagnostics

Enable shared playback for supported PAL3A groups with POL models, model opacity, and explosive geometry. Parse SPar resources for complete dependency diagnostics while retaining whole-group private fallback for pending simulation.

Preserve the last effect position when actors are missing or removed in both games, and keep actor-specific shape changes and private fallback guarded. Expand the editor and viewer to both variants and fix opaque alpha for RGB TGA textures.

Validation: PAL3/PAL3A effect suites 54/54 each; general regressions 278/278 and 295/295. Both-variant formatting and diff checks passed.

* Implement native SPar playback and PAL3A transport effects

Add SPar emitter simulation, native blending and billboard rendering for the
remaining 26 script/scene groups. Restore PAL3A transport geometry and seven
styles in game, the editor and ResourceViewer.

Preserve native live-state initial-frame behavior and mark the runtime UV
table non-serialized. Update the README and add format, playback, geometry
and resource-lifetime regression coverage.

Validation: targeted tests 106/106 for both variants; general regressions
PAL3 293/293 and PAL3A 310/310. Both-variant formatting checks passed.

* Remove prefab effect fallback and simplify effect editing
2026-11-14 22:33:13 +08:00
Jiaqi Liu 8ef2c946db Migrate PAL3/PAL3A rendering to URP Forward+ with independent Toon lighting (#90)
* Migrate original rendering and frosted UI to URP Forward+

Port the original materials, fog and screen passes to URP. Capture the finished scene for frosted UI and keep the renderer assets ready for clustered lighting.

* Add standalone Toon lighting and shared model rendering support

Add independent Toon shaders, scene and character lighting, contact shadows and fire controls. Share POL materials, preserve MV3 seams and texture swaps across both styles, and support scene-specific Toon water.

* Skip redundant CVD mesh updates

Reuse unchanged poses and UVs, and recompute Toon normals only when geometry or the linear transform changes.

* Manage game Bloom and screen effect state by camera

Expose a persisted Bloom switch, restore the active style default on reset, and release camera and volume state when the manager is disposed.

* Restore opt-in story VFX loading

Use the existing local VFX resource path for synchronous and asynchronous loading. Keep the preference off by default and document compatible optional assets.

* Save Unity 6.6 and URP project settings

Persist the current graphics, quality, player and shader graph settings plus the URP material upgrade marker.

* Fix Unity 6.6 startup compiler warnings

Use Unity assembly discovery and object lookup APIs, keep PAL3 command reflection independent of UnityEngine, and preserve the runtime GDB dictionaries in JSON exports.

* Use the new Input System as the only input backend

Select Input System Package as the sole backend. Remove the extra scroll-sensitivity reductions in the console and file browser, preserving their previous Both-mode scrolling behavior.

* Preserve two-sided model normals across animation

Recognize coincident MV3 vertices by their complete animation trajectories and skeletal vertices by their bind positions and bone. Separate opposing faces only where a source normal group is shared, preserving UV seams and adjacent single-sided faces.

* Isolate optional VFX lifetimes and private asset builds

Centralize optional prefab loading, persistent attachments, active-effect cleanup and cache invalidation. Runtime toggles hide active effects and restore surviving attachments. Block private VFX and legacy Toon assets in public builds, with an explicit local private-build override.

Release portal attachments on destruction, reject dead parents and prune orphaned persistent attachments.

* Manage camera post-processing, anti-aliasing and menu glass

Give each game camera its own VolumeStack without mutating shared profiles, and restore inherited camera and effect state on disposal. Map the old PPv2 Bloom intensity through its exponential compositing coefficient; this does not establish visual equivalence across pipelines. Share saved and live MSAA handling with ResourceViewer, and make the main menu acrylic background whiter with less scene color showing through.

Restore pipeline settings even after partial initialization or service cleanup failure. Protect the persistent URP asset from ordinary Play Mode saves and restore the two runtime fields across Play exit and script reloads without reverting unrelated edits.

* Tune Toon lighting, water and bounded point-light shadows

Strengthen indoor and outdoor lighting contrast, integrate SSAO and baked shading while retaining character detail, and light transparent water with the shared Toon shader. Expose independent switches and strengths through the console. Support up to four shadowed fires with bounded allocation-free selection, preserve saved preferences, adapt the shadow atlas, and default desktop devices to four shadowed fires.

Report invalid console strengths and shadow budgets without saving rejected values.

* Fix DXT3 alpha decoding that produces foliage stripes

Expand the high alpha nibble into both halves of the output byte. Fully opaque DXT3 texels now decode to 255 in both pixel positions, preventing alternating coverage in the cutout and blended rendering passes. Add editor regressions for opaque RGB/alpha, all sixteen alpha levels in pixel order, and partial blocks with buffer-tail protection.

* Document Unity CI after disabling the Codacy integration
2026-11-12 02:28:17 +08:00
Jiaqi Liu 487fc773fe Upgrade project to Unity 6
Upgrade project to Unity 6
2024-09-14 16:21:12 -07:00
Jiaqi Liu 724a6f767e Supports Traditional Chinese version of the game 2023-08-12 18:19:34 -07:00
Jiaqi Liu 417a6b22c5 v0.70 2023-08-05 06:35:27 -07:00
Jackie Liu cf015037bf Upgrade project to Unity 2022.3 LTS 2023-06-01 19:26:48 -07:00
Jackie Liu 45f5aefbaa Downgrade Unity version to 2022.2.12f1 to pass the CI 2023-04-02 03:00:46 -07:00
Jackie Liu 1404ad41e6 v0.60 2023-03-31 21:37:44 -07:00
Jackie Liu 5d7595970e Update READMEs to include dependencies 2023-03-27 02:38:55 -07:00
Jackie Liu 2fe8e61032 Allow custom game data folder selection on standalone devices only 2023-03-25 20:01:29 -07:00
Jiaqi Liu 86a698d66d Search all possible game data file locations when possible (#13)
* Search all possible game data file locations when possible

* Add checks for gameDataFolderSearchLocations queue

* Update README
2023-03-26 09:06:07 +08:00
Jackie Liu 8e7f6bdbe0 Add version info in README 2023-03-24 19:15:24 -07:00
Jackie Liu 79435a7edb [CI] Update CI files and README 2023-03-24 18:37:06 -07:00
Jackie Liu 95208f5328 Update READMEs 2023-03-24 00:46:12 -07:00
Jackie Liu 74a1cd88e2 Update README.md and add README.en-US.md 2023-03-24 00:29:32 -07:00
Jackie Liu ddc1e7565b Add workflow build badge to README.md 2023-03-23 23:20:11 -07:00
Jiaqi Liu f1bd8a57db Improve SetDisplaySafeAreaCompatibilityModeProcessor logic to handle two types of builds for MacOS 2023-03-23 01:15:06 -07:00
Jackie Liu 6c6f11fb84 Upgrade Unity version to 2022.2.11 2023-03-15 23:41:37 -07:00
Jiaqi Liu ea5cede832 Update README.md 2023-03-15 11:18:22 +08:00
Jackie Liu 22f24f499c Update README.md 2023-03-10 02:37:47 -08:00
Jackie Liu 23c1921c2c Upgrade Unity version to 2022.2.10 2023-03-10 02:36:38 -08:00
Jiaqi Liu 6af384649a Update README.md 2023-03-05 05:49:52 +08:00
Jackie Liu 6bed3676a3 Bump Unity version 2023-03-04 00:35:08 -08:00
Jackie Liu b854dc76ab Implement interaction logic for bi-directional boxes
Implement interaction logic for bi-directional boxes
2023-02-26 16:36:47 -08:00
Jackie Liu 066712e887 Fixed a bug in jump logic + upgrade Unity version 2023-02-18 05:47:59 -08:00
Jiaqi Liu 9dad13af49 Upgrading editor version to 2022.2.2f1 2023-01-17 22:37:02 -08:00
Jackie Liu f4fd18ae5e Update year in the header 2023-01-03 19:03:54 -08:00
Jackie Liu 0bd0894547 Implement fundamental logic to support mechanisms 2022-11-19 13:10:00 -08:00
Jackie Liu e3540daa19 Implement player actor switching logic 2022-11-17 15:34:02 -08:00
Jackie Liu 1f9e2b10f9 Upgrade to Unity 2022.2.x 2022-11-08 00:04:46 -08:00
Jiaqi Liu 654ade106e Update screenshots 2022-10-28 06:01:59 -07:00
Jiaqi Liu 15970562d7 Bump Unity version 2022-10-27 22:31:47 -07:00
Jiaqi Liu f7c993ef22 Minor tweaks and fixes 2022-10-17 10:15:23 -07:00
Jackie Liu 23673aae2a SaveManager WIP 2022-10-06 08:21:07 -07:00
Jackie Liu a8b73c2060 Implement CursorManager and bump Unity version 2022-10-01 03:59:37 -07:00
Jiaqi Liu 4b78cd4726 Update README.md 2022-09-23 12:47:57 +08:00
Jiaqi Liu 5035e0148a Added PAL3A SD screenshot
Added PAL3A SD screenshot
2022-09-22 01:39:48 -07:00
Jackie Liu 9c6d3ea3f2 Code refactoring + PAL3A icon
Code refactoring + PAL3A icon
2022-09-20 18:07:26 -07:00
Jiaqi Liu a698518e74 Update README.md 2022-09-20 16:37:12 +08:00
Jackie Liu 867639f42b Upgrade Unity version and fix dialogue selection issue
Upgrade Unity version and fix dialogue selection issue
2022-08-29 11:51:59 -07:00
Jiaqi Liu 284ce1d64a Update Unity version
Update Unity version
2022-07-21 05:16:02 -07:00
Jackie Liu 63b44f5bff Switch to Unity 2021 LTS version
Switch to Unity 2021 LTS version
2022-04-13 23:21:47 -07:00
Jiaqi Liu c7330b5309 Bump Unity version + code refactoring
Bump Unity version + code refactoring
2022-04-07 02:55:02 -07:00
Jiaqi Liu 2b0568f891 Enable rigid body for all actors, bump Unity version
Enable rigid body for all actors, bump Unity version
2022-04-02 02:12:46 -07:00
Jiaqi Liu 6f9ac04d69 Bump Unity version to 2021.2.16f1 2022-03-19 23:41:28 -07:00
Jackie Liu c37509d355 Fix release build
Fix release build
2022-03-03 22:00:17 -08:00
Jackie Liu c47933e1e9 Allow player to select game folder path on desktop
Allow player to select game folder path on desktop devices
2022-03-03 21:39:04 -08:00