- Added initialization of startup processes in flex_archive_tests to ensure proper setup before teleporter operations. - Updated assertions to verify the correct allocation and state of processes during teleporter execution. - Introduced new tests in map_renderer_tests to validate shape rendering, including isolated shape rendering and player sprite integration. - Enhanced map_sorter_tests with additional checks for occlusion handling and boundary conditions in render order resolution.
8.2 KiB
JELYHACK: What It Does and What We Know
Short answer
In the Remorse USECODE archive, JELYHACK has one active event: use. If the player uses an object running this class, the handler sets process info 0x0207, excludes the current process, and returns. It does not directly display text, play a sound, open a camera, change an item, or call a puzzle/event script.
Think of JELYHACK more as an internal handle than as the gadget that runs a puzzle. Its descriptor exposes one field, referent: an identity/reference the runtime can use to associate this record with other data. Newer VM analysis suggests referent-only records can own or connect a payload chain. Richer camera and trigger behavior exists in nearby classes such as SURCAMNS and SURCAMEW, but the evidence does not show that using JELYHACK directly launches those handlers.
We also do not yet have a verified mission/map placement for a JELYHACK instance. The extracted scene files show map items and trigger eggs, but do not identify those items by USECODE class name. “Island” is therefore a useful label for this descriptor cluster, not a confirmed in-game location for this class.
What happens when it is used
The Remorse event table gives JELYHACK (entry 277, class id 0x04D3) a body only in slot 0x01 (use). The same is true of its sibling JELYH2 (entry 280, class id 0x04D6). The exported handler is:
function jelyhack_use()
{
set_info(0x0207, *(arg_06));
process_exclude();
return;
}
The native VM confirms that these are process-control operations, not display commands. Opcode 0x77 stores two values on the running process: the used item's id as its source item, and 0x0207 as its process/event type. Opcode 0x78 then checks for another live process with the same item id and type. The final 0x50 ret returns normally if execution continues. There is no branch, spawn, class/event call, text-file call, sound call, or item mutation in this handler.
Likely player-visible result: nothing obvious happens from this handler alone. Its practical job is bookkeeping and duplicate suppression: associate the running process with this item under type 0x0207, then let the first matching process proceed while a duplicate takes the interpreter's early-completion path. The item is also marked in the engine's process-presence bitmap while it has a process; native termination refreshes that flag and clears it when no process remains for the item. The script itself does not show text, play audio, animate a screen, or change the world.
The number 0x0207 is not identified as a named gameplay action. In the native process entry, it occupies the process-type field; the duplicate check compares that field together with the item id. The exact English label or wider purpose of this tag remains unknown. It is common rather than JELYHACK-specific: the same set_info(0x0207, item) pattern appears in 117 exported Remorse event bodies. Do not interpret it as a message number, a camera command, or a special JELYHACK action. process_exclude does not hide or delete the object; it ends a competing process for the same item/type pair.
This is backed by live Remorse Ghidra analysis: Interpreter_NextUsecodeOp opcode 0x77 calls EntityDispatchEntry::SetEventTypeChecked and SetSourceType; opcode 0x78 calls Kernel_GetNumProcesses(itemno, proctype) and exits when the count exceeds one. SetSourceType marks the item-process-presence bitmap. The type-specific item-process bits are only updated for 0xF0..0xF7, so 0x0207 does not set one of those special flags.
The Remorse body window is 0x00D4..0x00FE (42 bytes). The executable instructions return before the trailing symbol record naming referent, followed by the 0x7A end marker. That trailer is metadata, not a second gameplay routine.
What the referent evidence means
The Remorse descriptor for JELYHACK contains only referent; JELYH2 has the same descriptor shape and the same active use behavior. Newer VM analysis identifies referent-only records as likely owners/identities in a runtime payload chain. This is a better explanation than treating the class as a complete puzzle script.
The extracted descriptor neighborhood places JELYHACK near SURCAMNS, REE_BOOT, SURCAMEW, and SFXTRIG, alongside other records with referent fields. Some of those records also expose event or eventTrigger fields. This supports a model in which referent records and event-bearing records participate in a shared data-driven group.
Important limit: these are descriptor-table relationships and runtime-family evidence. They do not prove the records are physically adjacent in a level, that each one points to this particular JELYHACK instance, or that a direct call runs from JELYHACK to any neighbor. A search of the exported pseudocode found no direct class/event call to class ids 0x04D3 or 0x04D6.
Where the richer behavior lives
The closest concrete gameplay logic is in the camera callback classes, not in JELYHACK::use:
SURCAMNS::usechecks status bit0x1000; when set, it starts the class's high-slot handler0x20.SURCAMNS::slot_20follows link/quality values, checks nearby monitor/value-box objects, can request text-file handling, and starts trigger and camera-related handlers.SURCAMNS::slot_21creates a screen-related item and searches for matching camera eggs and mechanical actors, with waits and input checks.SURCAMEWcontains a parallel callback family, with related screen and camera-object handling.
These field names and operations make the surrounding cluster look like a security-monitor/camera interaction system. That is a useful gameplay interpretation of SURCAMNS/SURCAMEW; it is not proof that clicking a JELYHACK object opens that system. The missing link is an instance-level referent or map-data connection.
Where it is used, and what remains unknown
What the current evidence establishes:
JELYHACKandJELYH2are present as separate classes in the Remorse USECODE archive.- Both have only the small
usehandler in their common event slots, and their Remorse descriptors expose onlyreferent. - Their likely role is to provide a referent identity for the surrounding data-driven behavior group.
- The camera/trigger classes contain substantial behavior, but no direct call from JELYHACK to them has been recovered.
What it does not establish:
- the exact level, map coordinates, or visible object that uses class
JELYHACK; - the player-visible meaning of
set_info(0x0207, ...); - which concrete event-bearing record shares a referent with a particular JELYHACK instance;
- that JELYHACK itself is a puzzle switch, camera terminal, key, or island controller.
To answer those questions, the next useful evidence is an instance-level link: a map/object record bound to this class plus its referent value, cross-checked against the corresponding event-bearing records. Class-table proximity alone cannot supply that link.
Variant note
This conclusion about the referent descriptor is for the current Remorse extraction. Regret also contains classes named JELYHACK and JELYH2, and their readable use pseudocode has the same short operations, but their records are not interchangeable: the Regret JELYHACK event window is 13 bytes rather than Remorse's 42-byte window, and its descriptor decode does not expose the same referent field. Keep the class names and visible handler separate from the variant-specific descriptor evidence.