You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Map inject: catch a quest area's PAC when it is read again #32
A map edit pushed into a quest area has to survive the area's reload: the visible mesh is built from the stage PAC when the area loads, and leaving and re-entering an area evicts the PAC and reads it again. studio map inject --catch (and the research stage_inject before it) arms a write watchpoint on the tail of the PAC's current slot, so it can re-apply the edit while the loader is stopped there.
Re-read never caught. Nothing shows that a re-read PAC returns to the same slot, so a catch armed on the old address may simply never fire.
To do:
Find where the engine assigns a slot to a stage PAC it is about to (re)load, and when that happens relative to the read: the resource table mhfu.stage.resident_files reads, or the loader call.
Arm the catch from there: on the slot the PAC is read into, before the read.
Activity