Commit Graph
51 Commits
Author SHA1 Message Date
Jiaqi (0x7c13) Liu e870cf487a Add core protocol regression tests and copyright checks
Cover SCE command contracts, binary readers, resource layouts and full local CPK decompression for PAL3 and PAL3A. Fix CVD time rebasing, binary read bounds and short reads, and CPK/NAV validation.

Standardize first-party copyright headers, preserve correct creation years, and update console source generation. Validate both variants in Unity and verify all live CPK entries.
2026-11-12 13:37:27 +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 c1f3fcb009 Add missing iOS icons 2025-03-09 15:08:53 -07:00
Jiaqi Liu b1d9e3b0ac Bug fix + Bump Unity version + Update copyright text
- Fixed a bug caused by inconsistent state check between managed and native object.
- Bump Unity version.
- Update copyright text
2025-03-05 21:13:59 -08:00
Jiaqi Liu 7cc8ba6aab v0.77 Add Win-ARM64 support 2024-10-20 23:24:22 -07:00
Jiaqi Liu 487fc773fe Upgrade project to Unity 6
Upgrade project to Unity 6
2024-09-14 16:21:12 -07:00
Jiaqi Liu 991bb6823b Code refactoring: Use explicit type instead of var
Code refactoring: Use explicit type instead of var
2024-09-09 03:41:55 -07:00
Jiaqi Liu abb147953f Update UnityEditor-DarkMode pkg 2024-04-25 02:38:07 -07:00
Jiaqi Liu 1e0725d767 Update UnityEditorDarkMode dll 2024-04-08 10:55:28 -07:00
Jiaqi Liu 3669e1992b Update UnityEditorDarkMode.dll 2024-04-07 05:41:59 -07:00
Jiaqi Liu 9d93c1f540 Update UnityEditorDarkMode.dll 2024-04-06 02:35:52 -07:00
Jiaqi Liu 95fc8445df Enable DarkMode for UnityEditor on Windows 11 2024-04-05 09:29:56 -07:00
Jiaqi Liu b8bb1e018f Update header 2024-01-07 02:37:35 -08:00
Jiaqi Liu 18e3fb68ad Bump year in license 2024-01-01 05:15:04 -08:00
Jiaqi Liu bdcb7fa784 Code refactoring 2023-10-21 18:08:23 -07:00
Jiaqi Liu 8ef806cca0 Fixed script var value type + code refactoring 2023-10-20 01:59:59 -07:00
Jiaqi Liu 72b14f8069 More abstractions to make game code engine agnostic 2023-10-06 20:50:21 -07:00
Jiaqi Liu 5fb27d643e Namespace refactoring 2023-10-04 17:45:26 -07:00
Jiaqi Liu 1337a185bf Code refactoring to get rid of UnityEngine dependencies 2023-09-21 20:20:50 -07:00
Jiaqi Liu 5e73768756 Code refactoring 2023-08-17 19:24:41 -07:00
Jiaqi Liu 4e25c7f593 Update ReleaseBuildPipeline.cs 2023-08-12 21:26:41 -07:00
Jiaqi Liu c3893fbf47 Implement PAL3A SceneEnableFogCommand + code refactoring
- Implement PAL3A SceneEnableFogCommand
- Improves logging
- Object 46 in scene M03-1 should block player
-
2023-08-02 19:42:22 -07:00
Jiaqi Liu 0ea812e321 Add extract .cpk button to resource viewer with bug fixes 2023-08-02 00:24:37 -07:00
Jiaqi Liu 34370ec2e8 Add more supported build targets 2023-08-01 22:28:53 -07:00
Jackie Liu 09300bb28a Code refactoring 2023-04-06 22:39:53 -07:00
Jackie Liu efba3b899b Bug fixes 2023-03-24 23:02:55 -07:00
Jackie Liu d05637763b Implement editor option to zip release files 2023-03-23 20:28:03 -07:00
Jiaqi Liu 3e8c0b2979 Create XCode project for MacOS build in build pipelines script 2023-03-23 01:23:18 -07:00
Jiaqi Liu 94c8e824d2 Upgrade Unity version to 2022.2.12 + Finishing up BuildPipelines 2023-03-23 00:06:26 -07:00
Jackie Liu b49a24caf7 Implement in-editor build pipelines 2023-03-22 21:41:03 -07:00
Jackie Liu fba2ff7481 Code refactoring 2023-03-22 20:28:49 -07:00
Jackie Liu 16c954739b Support changing real time lighting and shadow setting during runtime 2023-03-19 21:34:36 -07:00
Jackie Liu 8cb3a6ca47 Code refactoring 2023-03-17 20:10:19 -07:00
Jackie Liu f4fd18ae5e Update year in the header 2023-01-03 19:03:54 -08:00
Jackie Liu d7f08163aa Remove empty spaces 2022-11-30 21:39:15 -08:00
Jackie Liu 84f0eccd5b Added AvailableInConsoleAttribute to control command enablement in console 2022-11-12 23:11:13 -08:00
Jackie Liu 6ac412fad3 Smarter Pal3 menu options 2022-11-09 21:38:22 -08:00
Jackie Liu 78678024d5 Add editor function to enable/disable lighting feature flag 2022-11-08 00:26:07 -08:00
yunyouandJackie Liu 23fa70496b 使用官方 PostProcessing ,扩展出来了一个 Distortion 的后处理 (#9)
* +extend PostProcessing , integrate Water wave Distortion into the game. Test it with "EffectSetScreenEffect 0"

Co-authored-by: Jackie Liu <jackil@microsoft.com>
2022-10-31 16:54:42 +08:00
Jackie Liu 23673aae2a SaveManager WIP 2022-10-06 08:21:07 -07:00
Jackie Liu b5403823c8 Code refactoring: use var when evident
Code refactoring: use var when evident
2022-09-29 19:09:31 -07:00
Jiaqi Liu 472f5a21cc Set correct texture type for icons
Set correct texture type for icons
2022-09-21 00:26:11 -07:00
Jiaqi Liu 37dc86d979 Fix icon count mismatch error in editor script
Fix icon count mismatch error in editor script
2022-09-20 21:58:38 -07:00
Jackie Liu 9c6d3ea3f2 Code refactoring + PAL3A icon
Code refactoring + PAL3A icon
2022-09-20 18:07:26 -07:00
Jackie Liu db0aca4735 Fixed a bug in GameVariantSwitcher
Fixed a bug in GameVariantSwitcher
2022-09-16 19:56:19 -07:00
Jackie Liu ee8fb3c499 Implement more PAL3A features with bug fixes
* Updated charset.
* Implement PAL3A specific camera animations + commands.
* Fixed a behaviour issue where actor init behaviour is set to PathFollow but no waypoints are configured.
* Implement PAL3A TaoZi flying behaviour.
* Fixed a path finding issue.
* Fixed a bug when FlyingActorFlyToCommand is issued where flying actor is at its initial position.
* Added more missing PAL3A specific commands
* Implement PAL3A specific logic related to TeamCloseCommand.
2022-09-16 18:00:26 -07:00
Jackie Liu 7e2f04e73f PAL3A gameplay WIP
* Implement more PAL3A specific commands.
* Fix data structure issues with PAL3A ScnObjectInfo.
* And more fixes/tweaks for supporting PAL3A game play.
2022-09-12 10:07:40 -07:00
Jackie Liu ce34c4abb6 Added action to arm type mapping, supports segmented CPK archives
Added action to arm type mapping, supports segmented CPK archives (ex: PAL3A q02_0X.cpk)
2022-09-08 18:18:24 -07:00
Jiaqi Liu 38971d906c Minor refactorings
Minor refactorings
2022-03-25 23:32:52 -07:00
Jiaqi Liu afbe502500 Update license header and fix Encamp command
Update license header and fix Encamp command
2022-02-28 18:28:12 -08:00