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
loaded and started once as soon as the game starts, even before game session starts (new game/save load)
running even when the game is paused (main menu is visible)
keeps running, not reloaded when game session is restarted (new game/save load)
It most likely should be implemented as new, separate script queue/list.
It is not decided yet how Ambient Script files would be differentiated from regular Cleo Scripts. It feels natural to use *.as extension, but it probably make current ModLoader not recognize them.
Challenging part will be updating all already existing auto-cleanup mechanisms, like allocated memory blocks, opened file handles, fire search handles, audio streams etc. to not erase entities created by Ambient Scripts when game session ends.
Have a separate queue for background scripts that run immediately as CLEO loads them and continue running regardless of user pause.
Ensure that items that currently are cleared on game session end (allocated memory blocks, opened file handles, fire search handles, audio streams etc.), are not cleared if created from ambient scripts.
It's unclear from this description whether they restart after new game/load game, or not.
Have a separate queue for background scripts that run immediately as CLEO loads them and continue running regardless of user pause.
Ensure that items that currently are cleared on game session end (allocated memory blocks, opened file handles, fire search handles, audio streams etc.), are not cleared if created from ambient scripts.
It's unclear from this description whether they restart after new game/load game, or not.
Thanks. If they never restart, then they also should never capture any in-game entities (e.g. player car), as it can become invalid after any wait 0 instruction.
Thanks. If they never restart, then they also should never capture any in-game entities (e.g. player car), as it can become invalid after any wait 0 instruction.
How to even force that? I feel like we should not. After all handle is just an number. Making AS unable to access any game entities would be huge handicap for them.
I think there should be additional commands returning for example game session id, so it will be possible to tell if game
started at all or it was restarted.
I think script draws should work, maybe needs to add some extra trigger call.
I already had some scripts that rendered over main menu, when menu was force displayed during game session.
Ability to create early patches, like extending pool sizes with script is really tempting.
AS can be also way to avoid whole nonsense that happens during game save/reload where scripts are reloaded, executed once then state is loaded.
Activity
x87 commentedon Sep 25, 2025
It's unclear from this description whether they restart after new game/load game, or not.
MiranDMC commentedon Sep 26, 2025
Updated.
x87 commentedon Sep 26, 2025
Thanks. If they never restart, then they also should never capture any in-game entities (e.g. player car), as it can become invalid after any wait 0 instruction.
MiranDMC commentedon Sep 26, 2025
How to even force that? I feel like we should not. After all handle is just an number. Making AS unable to access any game entities would be huge handicap for them.
I think there should be additional commands returning for example game session id, so it will be possible to tell if game
started at all or it was restarted.
x87 commentedon Sep 26, 2025
Not saying to force it, just have a general recommendation for users (documentation, perhaps).
x87 commentedon Sep 26, 2025
what could be good use cases for AS?
what else?
MiranDMC commentedon Sep 26, 2025
I think script draws should work, maybe needs to add some extra trigger call.
I already had some scripts that rendered over main menu, when menu was force displayed during game session.
Ability to create early patches, like extending pool sizes with script is really tempting.
AS can be also way to avoid whole nonsense that happens during game save/reload where scripts are reloaded, executed once then state is loaded.