Entry 460

Corbenik's dark frame under Cruel Exploitation is the game's: the pilot's skill menu dims and stills the world, and StillOn keeps the blur's layer

Filescrates/piney-game/src/session/tests/corbenik.rs crates/piney-fieldui/src/ctrl.rs crates/piney-fieldui/src/menus/target.rs crates/piney-world/src/field_world.rs

Frame 22200 of the god run

The shot corbenik-22200-act0.png shows the whole frame dark and smeared. There are no party panels, only the target cursor's "ENEMY" tag, and "Cruel Exploitation" (the root drain's cinema name) at the top.

What the port held there. A frame-by-frame trace of 22000-22300 and shots of 21990-22225 show the following:

  • The second form's act 22 (the root drain) ends at 22155. Its cinema turns off (mode 4, then 5: the bars and the name going out).
  • At about 22160 the pilot opens the skill menu and picks a skill with no enemy in range. TargetMenu (INF gcmn 0x00531af0) opens targetMenuWarn ("No target in range.") and goes back after Check (shots 22183-22195).
  • No stage fade and no scFadeDef element is running. The menu's forbid is 0.
  • The blur is on throughout: ccBoss08_b's, scale 0.993, colour 0x48808080, m_exit 0.

Each piece, from the code.

  • No panels. OpenMenu (0x00525b40) sets panelStatus 3, so the panels fade out. They come back (panelStatus 1) once the menu's status reaches 0 with no next menu.
  • The dark. The skill menu sets bgStatus 1. Disp fades the dim in over 15 frames to alpha 104, and CloseMenu (bgStatus 3) fades it out. In the shots it is gone by 22216.
  • The held name and the smear. ccSleepAllThread stops every task but the menu's, ccThBossEffect included, so the cinema stays at mode 5 with the name at its last transparency.
    • StillOn (0x00525a80) calls ccLayer::OffFlipExcept (main 0x00108830) on the menu's layer. That raises every other layer's no-flip count (+6, capped at 126). It then lowers it again on only three layers: the noise layer, ccSys+0x180 (the still layer) and game+0x80's.
    • The effect manager's own layer (priority 200) is not one of the three, so the blur's last ccBufferSampling packet is drawn every frame. It keeps sampling the last frame over the still scene.
    • The port does the same: draw_boss draws the manager's last reflex every frame the world sleeps.

So the frame is what the game draws for that input: the pilot's menu, not a fade, a cinema or a blur bug. Nothing in the port changes. corbenik_under_god now takes PINEY_CORBENIK_FRAMES to stop early for shots like these.

Still unknown
  1. Nothing about this frame: the dim, the panels, the held cinema and the kept blur layer are each read from the code above. The survey pilot's choice of a skill with no target in range is the pilot's, not the game's.