Skip to content

[pull] master from DCurrent:master - #104

Merged
pull[bot] merged 2 commits into
sysfce2:masterfrom
DCurrent:master
Aug 22, 2026
Merged

pull[bot] merged 2 commits into
sysfce2:masterfrom
DCurrent:master

Conversation

@pull

@pull pull Bot commented Aug 22, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Add updatelogic.c and updatedlogic.c global event hooks that execute before and after each engine logical tick. Place the post-update hook before the logical clock advances so both events observe the same tick value.

Add matching updatelogicscript and updatedlogicscript level commands, along with level property constants for accessing their script objects.

Run global hooks before their level counterparts and preserve the
existing ingame and alwaysupdate execution policy. Logical hooks remain inactive while paused or when an outer-loop iteration processes no logical tick.

Fix missing breaks in the level script-property getter that caused
script properties to fall through and return an incorrect value.
Add modelload.c and  odelunload.c global hooks for observing model cache state transitions without repeatedly scanning the full model collection.

Add modelloadscript and modelunloadscript model commands for template-
specific initialization and teardown. Expose the model pointer, cache
index, and model name through model, modelindex, and modelname locals.

Store lifecycle scripts in model cache entries so they are not copied into spawned entity modeldata. Fire model-owned callbacks before their global counterparts, and fire unload callbacks before native model
destruction while the model pointer remains valid.

Add lifecycle state guards to prevent recursive self-unloading and removal of partially loaded models. Preserve cache-owned script storage across ordinary unload and reload operations, then release it during model cache shutdown.

Do not inherit lifecycle callbacks through model subclassing, avoiding shared compiled-script lifetime dependencies between parent and child models.

Update unload_model() to use findmodel() so requesting removal of an absent model no longer loads it merely to unload it.
@pull pull Bot locked and limited conversation to collaborators Aug 22, 2026
@pull pull Bot added the ⤵️ pull label Aug 22, 2026
@pull
pull Bot merged commit 963d6ff into sysfce2:master Aug 22, 2026
2 of 4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant