Commit Graph
242 Commits
Author SHA1 Message Date
Hails 363d245bf3 Docs and dev tooling: PR plan update, water test teleport mod
- PULL-REQUESTS.md: pending edits to the upstream PR plan
- mods/water-test-teleport: dev-only mod for testing water (F2/F3/F4
  drop into University fountain, University reservoir, DownTown fountain;
  Shift+F2/F3/F4 stand beside them). Not intended for upstream.
2026-10-01 02:44:19 -06:00
Hails 203376b9c4 Water: diagnostics and write-up after in-play testing
- water_surfaces example: view spots beside water, render materials at a
  point, model materials, texture and material inspection; SKATE material
  ids are 1-based (an off-by-one misreported water materials)
- 09-water.md: frame-state fix, water time, why University water looks
  darker than DownTown's (authored data), splashes still open
- README: fork renamed to rusty-trucks
2026-10-01 02:39:48 -06:00
Hails b1d26230a8 Water rendering: extract the ocean animation table from default.xex
Water and ocean shaders need assets/private/ocean-pca.json, which setup
never created, so 52 water/ocean materials rendered static (or black).

- skate_data::xex: XEX2 unpacker (retail AES file key + CBC payload, LZX
  or basic decompression), no new dependencies
- skate_data::ocean_pca: locates cPCAWaterAnimationData's table in any
  build by its code addressing (disc build: 0x82FC3978; TU3: 0x830118D8)
- skate3rust --extract-ocean-pca <default.xex> <out.json>
- Setup environment group runs it (optional content); refreshes that group

In-play check of the rendered water still pending.
See docs/hails-additions/09-water.md.
2026-10-01 01:55:40 -06:00
Hails 3c33805387 Docs: upstream PR plan (A-G) with fork commits 2026-10-01 00:14:03 -06:00
Hails 8327e94090 Setup performance: skip duplicate stream copies, parallel customiser
- Skip decoding identical streamed asset copies (DownTown streams 107.8 -> 24.8 s)
- Run the character customiser beside the map stage (memory-gated)
- Build.ps1 builds the native RefPack DLL for dev checkouts
- Clothing library texture warm-up and pro roster run in worker processes
  (library 126.5 -> 51.2 s, roster 89.6 -> 15.9 s); shared caches are
  published first-writer-wins to avoid Windows rename races
- pipeline-equivalence.json: combined pairs (committed -> PR F+G)

Outputs proven identical (8,288 customiser files; all maps/spawns).
One-time customiser rebuild. See docs/hails-additions/08-setup-performance.md (PR G).
2026-10-01 00:13:55 -06:00
Hails 18f41a33c5 Tooling: streaming map validator (--validate-maps) wired into setup
One skate3rust process validates TEST_WORLD and every converted map over
stdin/stdout (SKATE_MAP_CHECK lines). Existing checks still fail a map;
new spawn-support / neutral-startup / invisible-collision checks report
warnings. Setup falls back to per-map --check-assets with an older exe.
See docs/hails-additions/06-map-validator.md (PR F).

Note: install.py also carries PR G's customiser-overlap hunks
(available_memory, overlap_customiser, Background); they are interleaved
with the validator wiring in _install and are documented in doc 08.
2026-10-01 00:13:53 -06:00
Hails 810defa65e Performance: index stock collection lookups (game start and map switch -5.5 s)
Collections are looked up through a lazily built OnceLock<HashMap> index
with first-match semantics, identical to the linear scan on 145,807 real
lookups. See docs/hails-additions/07-collections-index.md (PR E).
2026-10-01 00:13:45 -06:00
Hails dec7adeeec Collision: skip meshes with no surface IDs (zone/trigger volumes)
Retail collision includes clustered meshes in which no unit carries a
surface ID (unit flag 0x80 unset). Across every shipped district these
are only 12-triangle boxes: zone, trigger and level-bounds volumes. The
loader made them solid, creating invisible walls (SkateSchool spawn
area, DownTown's Kube Tower plaza, MegaPark's stadium entrance, Maloof).
Authored player positions lie inside some of them, so they are not solid
in the original game.

visit_clusters now decodes and validates each mesh fully and skips it
when no unit has a surface ID. Meshes mixing surfaced and surfaceless
units are ordinary geometry and stay whole. RetailTriangle records
has_surface.

Collision triangles loaded: SkateSchool -84, DownTown -24, Maloof -24,
MegaPark -12, all other maps unchanged. Confirmed in play.

See docs/hails-additions/05-collision-volumes.md.
2026-09-30 22:27:38 -06:00
Hails f00b329e68 Docs: authored map spawns confirmed in play
All 10 authored starts tested in game. Notes that SkateSchool's start sat inside an invisible collision volume, fixed separately (doc 05).
2026-09-30 22:27:30 -06:00
Hails c2be42b2c9 Docs: index of fork changes in docs/hails-additions
Context for upstream review: one document per change with root cause, evidence, verification and open questions.
2026-09-30 19:27:02 -06:00
Hails b495ed696f Asset pipeline: bake authored map spawns and headings
Every map's startup position and default landing zone is its baked
spawn. The old rule (upward triangle nearest the origin) put the skater
over the void on MegaPark and on the roof of Industrial Skate Park and
StartPark, because park origins sit at a corner and retail floors are
sometimes wound downward.

New map_starts.py resolves each district's start from retail data: the
world row's start locator (parks), a chosen fe_locations row for
districts with several (University career start, Industrial Haystings
Park, DownTown Rosalita Skate Park, Maloof street), or the district's
only fe_locations row. Position and heading come from the district's
global_locators records; the heading is now written into the .skate
header. Districts without an authored start fall back to geometry:
compact parks use the new ground_spawn search, city-sized districts keep
the original rule (ground_spawn put Industrial under the streets).

See docs/hails-additions/04-map-spawns.md.
2026-09-30 19:26:57 -06:00
Hails 3d485c8dfa Input: SDL3 gamepad backend with XInput fallback
Implements issue #14. A dedicated thread owns SDL3 (3.4.16, statically
linked via sdl3 =0.20.0) and publishes per-slot snapshots re-expressed as
the XInput-shaped XboxState, so the TU3 conversion in skate-core is
unchanged. Conversions are exact for XInput-backed pads (stick Y via
bitwise NOT, trigger round-to-nearest). SKATE3_INPUT=xinput selects the
original transport, which is also the fallback if SDL fails to start.
Optional settings/controller.json maps paddles to XInput buttons.

Build: scripts/Ensure-CMake.ps1 locates CMake (PATH or Visual Studio's
copy) for the SDL source build. sdl3-sys is vendored with a build.rs
patch setting CMAKE_MSVC_RUNTIME_LIBRARY from crt-static, because SDL's
CMake (policy CMP0091) ignores cmake-rs' -MT and the static-CRT release
build failed with unresolved __imp_* symbols.

See docs/hails-additions/03-sdl3-gamepad-input.md and vendor/README.md.
2026-09-30 19:26:50 -06:00
Hails 0a88f7a94e Setup: enable Windows long paths and relaunch when needed
Roster work paths under deep checkouts exceed MAX_PATH (260), leaving
pro skaters unavailable. If LongPathsEnabled is off, setup asks once for
elevation to enable it and relaunches itself, since Windows reads the
setting at process start. Declining keeps the previous behaviour.

See docs/hails-additions/02-long-paths.md.
2026-09-30 19:26:28 -06:00
Hails ea549ab042 Setup: pass extract-xiso options before the image path
extract-xiso stops parsing options at the first image path, so
`-x <iso> -d <dir>` extracted into the working directory and then failed
on "-d" as a second image (exit 1 -> "Conversion failed"). Use
`-x -d <dir> <iso>` in both call sites.

See docs/hails-additions/01-iso-extraction.md.
2026-09-30 19:26:12 -06:00
Ethanw05 ddc30284b4 Generalize mod APIs, improve multiplayer and optimize mod rendering
Add generalized engine access and challenge mods, repair SKATE turn handling, and improve collision prediction and physics transitions. Reduce mod snapshot and material update overhead, preserve authored GLB materials with lighting and shadows, and improve CPU profiling.
2026-09-14 04:02:20 -06:00
Ethanw05andCursor 821f523bb8 Fix MP air launch NaNs, solid modding, and Windows release packaging.
Sanitize non-finite SIMD lanes in offboard air selection, add solid dynamics and mod replication APIs, improve setup refresh without re-extracting assets, and harden Build-Release.ps1 for older PowerShell hosts.

Co-authored-by: Cursor <[email protected]>
2026-09-11 12:24:42 -06:00
Ethanw05 1399555ef2 Add Lua audio, dynamic vehicle cameras, dashboard, and Skyline updates 2026-09-11 04:41:47 -06:00
chazmm 5badc2d9f4 Remove fixed model transfer rate caps and stale queue drops 2026-09-10 03:10:15 +01:00
chazmm ea7b9a8218 Keep setup playable when optional disc content is missing 2026-09-10 02:36:05 +01:00
chazmm 128b40d1e8 Fix default.xex refresh flow and cache verified character preparation stages 2026-09-10 01:24:11 +01:00
chazmm c8219a54cd Merge opt-in tracing and University performance improvements
# Conflicts:
#	Cargo.lock
#	crates/skate-game/Cargo.toml
#	crates/skate-game/src/retail_character.rs
2026-09-09 22:25:54 +01:00
chazmm 6a0ac817e1 Document opt-in tracing and normal executable launch behavior 2026-09-09 22:24:33 +01:00
chazmm 6ed4c705da Record verified v10 shadow baseline build 2026-09-09 22:20:21 +01:00
chazmm 54b8f989ca Restore upstream shadow visibility after gameplay trace comparison 2026-09-09 22:18:45 +01:00
chazmm 71a5f8624f Record combined CPU follow-up build verification 2026-09-09 20:01:01 +01:00
chazmm 1c62e56fd6 Reduce material duplication, index static shadow casters and cache controller metadata 2026-09-09 19:59:49 +01:00
chazmm 2611f9ccc4 Merge gameplay crash fixes and native board adjustment 2026-09-09 19:25:48 +01:00
chazmm 10406cb25d Record Vulkan-tested v8 release verification 2026-09-09 19:24:44 +01:00
chazmm de37c6e167 Fix reproduced Vulkan shader crash and restore CPU material batching 2026-09-09 19:21:48 +01:00
chazmm b02ae97fde Isolate Windows test builds and verify dependency source provenance 2026-09-09 19:02:13 +01:00
chazmm 7bd0ba9435 Merge character transfer and stock material fixes 2026-09-09 18:56:46 +01:00
chazmm e008f9ec50 Verify stock hair materials retain authored shading after profile restoration 2026-09-09 18:51:31 +01:00
chazmm aeb641c52c Recognize pro skater hair materials instead of applying clothing highlights 2026-09-09 18:43:53 +01:00
chazmm 983771f99b Restore authored stock surface detail and specular masks after model swaps 2026-09-09 17:56:21 +01:00
chazmm eeddf0e9b9 Record recovery build verification 2026-09-09 17:51:49 +01:00
chazmm 0b89cb8f47 Restore original material path after v6 native crash 2026-09-09 17:50:09 +01:00
chazmm 46ae9834f8 Record bindless private release verification 2026-09-09 17:39:39 +01:00
chazmm f96be1dd10 Port complete native BoardAdjust lifecycle and angle wrap state 2026-09-09 17:37:03 +01:00
chazmm bea625f987 Batch retail material bindings to reduce CPU render commands 2026-09-09 17:35:40 +01:00
chazmm 411260a15a Revert "Fix airborne board adjustment retaining pose after stick release"
This reverts commit fd280fd0f1.
2026-09-09 17:25:49 +01:00
chazmm e1b3ab1bc8 Stream online character assets reliably without local file shortcuts 2026-09-09 17:21:28 +01:00
chazmm fd280fd0f1 Fix airborne board adjustment retaining pose after stick release 2026-09-09 17:18:56 +01:00
chazmm f33d60a3a6 Fix walking NaNs from subnormal velocity delta refinement 2026-09-09 17:01:24 +01:00
chazmm e0320796c1 Record shadow batching private release verification 2026-09-09 17:01:05 +01:00
chazmm e109a0a34e Batch opaque retail shadow geometry independently of surface materials 2026-09-09 16:59:13 +01:00
chazmm bf7b894af6 Reuse installed online models by content hash and pose replacement rigs before display 2026-09-09 16:56:19 +01:00
chazmm dff672aee4 Fix FingerFlipOut crash with native grab exit curve lifecycle 2026-09-09 16:51:15 +01:00
chazmm 94e5f613f3 Cache delivered online models and stop completed transfers with fair chunk scheduling 2026-09-09 16:38:49 +01:00
chazmm 632b46a2ef Record follow-up optimization test and private build verification 2026-09-09 16:36:29 +01:00
chazmm 842b4adb2f Remove unused gamepad backend and avoid redundant render preparation 2026-09-09 16:34:43 +01:00