View Single Post
Old 09-19-2019, 12:30 PM   #20
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Build: 40630

Eventmanager mostly complete now

Additions:
  • EventManager: EventManager_PauseEvent - pauses a registered event in the EventManager
  • EventManager: EventManager_ResumeEvent - resumes a paused and registered event in the EventManager
  • EventManager: EventManager_Start - starts the EventManager
  • EventManager: EventManager_Stop - stops the EventManager, if all scripts who have registered events have used this function
Changes:
  • Helper Functions: Main_OnCommand_LuaCode - had inner variables exposed -> fixed
  • EventManager: Eventmanager_RemoveEvent - didn't return false in case of an error, though docs stated otherwise -> fixed
  • Eventmanager: EventManagerScript - functions who got passed to the eventmanager are now run in protected mode.
    They print out an error-message in case of an error and the accompanying event will be paused from that moment on.
    This should make that more stable overall, as the other eventcheckings are not stopped due one faulty function of one eventcheck.
    Replacing the function and restarting the eventchecking should be possible, so debugging it on runtime should work.
    In other news: EventChecking now works as often as it was requested(used to be done in every defer-cycle of the eventmanager, which wasted computing-resources)

You can download this prerelease from: https://raw.githubusercontent.com/Ul...ease_index.xml
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...

Last edited by Meo-Ada Mespotine; 10-11-2019 at 09:36 AM.
Meo-Ada Mespotine is offline   Reply With Quote