Add Give All Gadgets to the F1 Player menu

This commit is contained in:
UnixNight committed 2026-11-03 14:30:05 -05:00
1 parent a274670fe8
commit 312efccb77
8 files changed
+43 -4

No files matched your search

+2
View File
@@ -87,6 +87,8 @@ aim, use **Up/Down** to change elevation and **Left/Right** to turn, then releas
fire to throw. Practice on its owned tile opens VR07. The twenty-ball pool,
target respawn and original aim display are implemented; full enemy combat and
original dynamic contact scheduling remain incomplete.
**F1 → Player → Give All Gadgets** grants all eight gadgets without changing
the equipped gadget. Close F1, then use Tab/Space to select one.
**F2** toggles a compact live debug overlay without pausing play. It shows frame
timing, position/velocity, movement, control/force state, tasks, camera/clipping
+5
View File
@@ -3,6 +3,11 @@
Compilation, native runtime, original behavior and full feature completion are
separate evidence categories. **The game is not fully reconstructed/playable yet.**
Give All Gadgets debug action (2026-11-03): F1→Player grants items0..7 without
changing selection. Debug-menu action/navigation/repeat/layout checks and main
build pass; llvmpipe headless1920×1080 view renders all rows with zero Vulkan
validation errors. Readback inspected; artifacts/debug-give-all/render.log.
Rocketship component/Grappler recovery (2026-11-03): isolated keyboard/vertical
math matches28 copied-original Wine32 observations across13 managed groups.
Rocket source3/resource5/Grappler12 and existing Gadget15/Movement25 groups pass;
+4
View File
@@ -26,6 +26,10 @@ by themselves. Debug tools do not imply reconstructed progression or full gamepl
## Player and Systems pages
Player includes **Give All Gadgets**, which sets all eight gadget tiles to owned
and available in the current scene. It preserves the equipped gadget and other
inventory entries. Normal level-load availability rules still apply afterward.
The General page retains the existing actions. Player adds noclip, staged flight
speeds300/600/1200/2400 (Enter applies), clear motion/queued jump, reopen objective,
return to noclip entry, apply source level gadget availability, toggle input after
+10
View File
@@ -1,5 +1,15 @@
# Progress — 2026-11-03
## Give All Gadgets debug action
Added user-requested F1→Player→Give All Gadgets. It sets items0..7 to available
ownership1 without changing selection or other inventory entries. The Player
page remains within32 overlay lines. Debug-menu navigation/repeat/layout checks
and main .NET10 build pass; existing NU1900 metadata warning remains unrelated.
Headless llvmpipe1920×1080 Player-page render passes with zero Vulkan validation
errors; readback inspected and all rows fit. Log: artifacts/debug-give-all/render.log.
Normal level-load availability policy still applies; no gadget behavior changes.
## Rocketship component and Grappler recovery
Continued user-requested gadgets using supplied decompiler leads, independently
+3
View File
@@ -46,6 +46,9 @@ compile, runtime and original-fidelity verification are separate.
## Immediate continuation
- [x] User-requested F1→Player Give All Gadgets: grant all eight without selecting,
preserve other inventory, keep the32-line layout; debug-menu checks/build pass.
**Gadget component checkpoint2026-11-03:**
[Rocketship arithmetic/resources](gameplay/rocketship-component.md).
+5 -4
View File
@@ -8,7 +8,7 @@ public sealed record DebugScene(string LevelFile, string Code, string[] Starts);
public enum DebugAction { None, Resume, Camera, SkipCutscene, RefillEnergy, GiveJetpack, ApplySceneTask, LoadScene, Reset, ForceControl, ToggleOverlay,
Noclip, NoclipSpeed, StopMotion, ShowObjective, ReturnNoclipEntry, LevelAvailability, InputOrder, ApplyJetpackState,
CameraObstruction, MuteMusic, MuteSpeech, MuteEffects, RestartMusic, StopEffects, SaveCheckpoint, LoadCheckpoint, Practice,
GiveInvisible, UnequipGadget, GiveBubble, GiveBaseball }
GiveInvisible, UnequipGadget, GiveBubble, GiveBaseball, GiveAllGadgets }
public sealed record DebugMenuView(string[] Lines, int SelectedLine);
public sealed record DebugStatus(string Level, string Start, Vector3 Root, float Yaw, float Speed,
bool Grounded, float Energy, int Score, int SceneTask, string Cutscene, bool Controlled,
@@ -56,7 +56,7 @@ public sealed class DebugMenu
public const int ItemCount = 12;
public const int PageCount = 3;
public int Page { get; private set; }
public int PageItems => Page switch { 1 => 14, 2 => 9, _ => ItemCount };
public int PageItems => Page switch { 1 => 15, 2 => 9, _ => ItemCount };
private static readonly float[] FlySpeeds = [300, 600, 1200, 2400];
private int flySpeedIndex = 1, jetpackStateIndex = 1;
private static readonly int[] JetpackStates = [0, 1, 4];
@@ -120,7 +120,7 @@ public sealed class DebugMenu
5 => DebugAction.LevelAvailability, 6 => DebugAction.InputOrder,
8 => DebugAction.ApplyJetpackState, 9 => DebugAction.RefillEnergy,
10 => DebugAction.GiveInvisible, 11 => DebugAction.UnequipGadget, 12 => DebugAction.GiveBubble,
13 => DebugAction.GiveBaseball, _ => DebugAction.None
13 => DebugAction.GiveBaseball, 14 => DebugAction.GiveAllGadgets, _ => DebugAction.None
};
if (Page == 2) return Selected switch
{
@@ -167,7 +167,8 @@ public sealed class DebugMenu
"RETURN TO NOCLIP ENTRY POSITION", "APPLY THIS LEVEL'S GADGET AVAILABILITY",
$"INPUT AFTER PLAYER: {system.InputAfterPlayer} (TOGGLE)",
$"JET PACK STATE: {JetpackState} (0 NONE / 1 OWNED / 4 DISABLED)", "APPLY JET PACK STATE", "REFILL ENERGY TO 100",
"GIVE / SELECT INVISIBLE", "UNEQUIP CURRENT GADGET", "GIVE / SELECT BUBBLE", "GIVE / SELECT BASEBALL"] : [
"GIVE / SELECT INVISIBLE", "UNEQUIP CURRENT GADGET", "GIVE / SELECT BUBBLE", "GIVE / SELECT BASEBALL",
"GIVE ALL GADGETS"] : [
$"STATIC CAMERA OBSTRUCTION: {(system.CameraObstruction?.ToString() ?? "UNAVAILABLE")}",
$"MUTE MUSIC: {system.MusicMuted}", $"MUTE SPEECH: {system.SpeechMuted}", $"MUTE EFFECTS: {system.EffectsMuted}",
"RESTART SELECTED MUSIC", "STOP ALL EFFECTS / LOOPS", "SAVE DEBUG CHECKPOINT", "LOAD DEBUG CHECKPOINT", "SHOW JET PACK PRACTICE PROMPT"];
+4
View File
@@ -868,6 +868,10 @@ internal static class Program
interactions.Inventory.SetState(0,6,1); interactions.Inventory.SelectGadget(6);
debugMenu.Message="BASEBALL EQUIPPED - HOLD FIRE, UP/DOWN AIM, RELEASE TO THROW";
break;
case DebugAction.GiveAllGadgets when interactions != null:
for (var item = 0; item < 8; item++) interactions.Inventory.SetState(0,item,1);
debugMenu.Message = "ALL 8 GADGETS GIVEN - TAB/SPACE OPENS GADGETS DURING PLAY";
break;
case DebugAction.CameraObstruction when debugCameraRay != null:
debugCameraRay.Enabled = !debugCameraRay.Enabled; debugMenu.Message = "STATIC CAMERA QUERY TOGGLED"; break;
case DebugAction.MuteMusic or DebugAction.MuteSpeech or DebugAction.MuteEffects when sceneAudio != null:
+10
View File
@@ -76,6 +76,16 @@ var invisibleView=menu.View(new("LV1B","STARTEXP",Vector3.Zero,0,0,true,20,0,30,
Require(invisibleView.Lines.Length<=32 && invisibleView.Lines.Any(s=>s.Contains("INVISIBLE 4.5")),"Bounded Invisible timer/target diagnostics");
Console.WriteLine("PASS Invisible debug commands and live phase diagnostics");
menu.Key(81); Require(menu.Key(40)==DebugAction.GiveBaseball,"Player tools grant/select Baseball");
menu.Key(81);
Require(menu.Key(40)==DebugAction.GiveAllGadgets && menu.Key(40,true)==DebugAction.None,
"Give All Gadgets has an explicit action with Enter repeat suppressed");
var allGadgetsView=menu.View(new("LV1B","STARTEXP",Vector3.Zero,0,0,true,20,0,30,"NONE",true,0,10000,false));
Require(allGadgetsView.Lines.Length<=32 && allGadgetsView.Lines[allGadgetsView.SelectedLine]=="GIVE ALL GADGETS",
"Last player action remains visible within the widescreen overlay capacity");
menu.Key(81); Require(menu.Selected==0,"Player navigation wraps after Give All Gadgets");
Console.WriteLine("PASS Give All Gadgets navigation, repeat handling and overlay bounds");
var original = Path.GetFullPath(args.Length == 1 ? args[0] : "../Original");
var catalog = DebugMenu.AvailableScenes(original, Path.GetFullPath("artifacts/extracted"));
Require(catalog.Length == 33 && catalog.All(s => s.Starts.Length > 0), "Only33 supplied scenes with prepared geometry are offered");