29 Commits
Author SHA1 Message Date
Jiaqi Liu d1b2c05eb4 Optimize resource loading and fix PAL3A script execution (#92)
* Optimize DDS texture creation and static POL meshes

Separate file decoding from Unity upload through format-neutral texture data
and explicit world, sprite and skybox policies. Validate DDS layouts, preserve
alpha coverage and use native BC uploads with software RGBA fallback.

Compact referenced POL vertices and batch nearby static opaque groups sharing
materials. Keep water and dynamic geometry separate, with source ranges retained
only in the Editor. Add DDS layout and POL index regression tests.

Validation: PAL3 and PAL3A each passed 24 Editor tests, eight combined Game and
ResourceViewer style regressions, 936 paired skybox comparisons, and both macOS
Player builds on Metal. Editor provenance and Core tests are excluded from Players.

* 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.

* Implement PAL3A command handlers and isolate script execution

Correct PAL3A parameter signatures and add handlers for fortune selection,
skybox sequences, actor facing and attacks, team and progression state,
camera constraints, and battle preparation flags.

Give script instances separate locals, advance grouped waits concurrently,
and pause PAL3A parents only for their directly decoded child calls. Cancel
stale interactions and save replay on reset, preserve finite action semantics,
and restore camera orientation after releasing horizontal constraints.

Persist supported state in v2 saves and add protocol, runtime, and progression
regressions. Full combat gameplay remains outside this change.

Validation: PAL3 274/274 and PAL3A 291/291 EditMode tests; 18 PAL3 and 22 PAL3A
runtime checks. All 77,889 PAL3A instruction boundaries match EXE signatures.

* Run CI only for pull requests and upgrade build actions
2026-11-13 09:28:31 +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 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 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 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
Jackie Liu fba2ff7481 Code refactoring 2023-03-22 20:28:49 -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 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 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
Jiaqi Liu d3c05ce1c1 Init
Init
2022-02-27 17:26:01 -08:00