mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-20 06:09:58 -04:00
Merge the fixes line: the stutter, memory, flicker and crash fixes, co-op, the mesh shader fallback and the launcher fixes.
Brought onto the line with FSR 4, its frame generation and the debug menu. Where both sides had added to the same place, both stay: the patch table keeps the pickup count and the free camera, the settings list keeps both sides' names, the menu includes the co-op page and the debug menu, and the launcher builder takes the pipeline list and the FSR 4 folder. Both sides had added the menu's typed-character event; one definition stays, with the window code that passes characters outside the basic plane. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,7 @@ set res_fixed NX2NAVI_PATCH_RES_FIXED 0
|
||||
set ostep NX2NAVI_OCARINA_REALTIME 1
|
||||
set zstd NX2NAVI_ZSTD_NATIVE 1
|
||||
set osolver NX2NAVI_PHYSICS_STEPS 1
|
||||
set opickup NX2NAVI_PICKUP_COUNT 1
|
||||
set freecam NX2NAVI_PATCH_FREECAM 0
|
||||
|
||||
# Real-time step: the framework's per-frame update (main+0x6e6be0) gives the time manager **[main+0x4c7e890] its
|
||||
@@ -49,6 +50,30 @@ site osolver main 38afd10 bd440d02 1e2a1002 # the same three words in the seco
|
||||
site osolver main 38afd1c 1f010800 1f218800
|
||||
site osolver main 38afd20 1e380001 1e280001
|
||||
|
||||
# Pick-up window count: the window that shows a pick-up above the character (its update is main+0xa67e50) moves the
|
||||
# number it shows (+0x360) to the new total (+0x35c) by trunc(frames per update * max(1, difference / 50)) a frame, and
|
||||
# closes only once the two are equal. Below one frame per update that is 0: above 60 fps, and at 60 while the step runs
|
||||
# a little under one frame, the count never ends, so the window stayed until the area was left, and for an amount over
|
||||
# 9 the counting sound was started again every frame and its closing sound never came. The increment is floored at 1
|
||||
# without the flags (clz is 32 only for 0, so increment += clz >> 5); at one and two frames per update it is what the
|
||||
# game computes. Above 60 fps a small amount then counts one a rendered frame, faster than at 60. w13 held the time
|
||||
# manager, last read at main+0xa682ec, and every path from the site reaches a call before it reads x13 again.
|
||||
site opickup main a68300 1e38000c 1e38000c 5ac0118d 53057dad 0b0d018c # fcvtzs w12, s0; clz w13, w12; lsr w13, w13, #5; add w12, w12, w13
|
||||
|
||||
# Mouse camera: the camera's stick input update (main+0x37c300) puts the right stick through a radial dead zone of
|
||||
# 0.005, scales the radius to one, clamps it and raises it to StickExponent (2, the default of
|
||||
# game__component__PlayerCameraParam); then come the reset timer at +0x5e0 (the stick reads zero while it runs), the X/Y
|
||||
# inversion (w21 bits 1 and 2) and the idle test (flags +0x530 bit 4: the processed stick under 10%). At 37c45c s1 and
|
||||
# s0 hold the processed x and y for the stores at +0x538 and +0x53c: the host callback performs the displaced store of
|
||||
# s1 and adds the raw mouse counts to both (runtime/mouse_direct.c camera_input_oot), so the mouse never becomes a stick
|
||||
# value and meets no dead zone or curve. At 37c4f0, the displaced ldp d9, d8, [sp, #0x10] before the update's last
|
||||
# `str w8, [x20, #0x530]`, w8 holds the flags: a second callback clears the idle bit for an update the mouse moved in
|
||||
# (camera_activity_oot). x30 is the function's own saved one at both sites. The callbacks' addresses are page +0xfd0
|
||||
# and +0xfc0; the page is main+0x4ea0000 on this build.
|
||||
set mouse_direct NX2NAVI_MOUSE_DIRECT_PATCH 1
|
||||
site mouse_direct main 37c45c bd053a81 952c92dd # str s1, [x20, #0x538] -> bl page+0xfd0
|
||||
site mouse_direct main 37c4f0 6d4123e9 952c92b4 # ldp d9, d8, [sp, #0x10] -> bl page+0xfc0
|
||||
|
||||
# Game image: the graphics setup (main+0x1202ce0) fills the renderer's configuration with the size of the picture the
|
||||
# game presents, 2560x1440 at every console mode (config +0x14, copied to renderer +0x9c, which main+0x346be50 reads
|
||||
# for the main render target set, main+0xf49040), and the display settings object (main+0x31f3890) stores the same size
|
||||
|
||||
Reference in New Issue
Block a user