Raise Event Protection deprecated


A mod for other mods to use to protect them from bad script.raise_event calls (with game events), and applies event filters on them when defined. This mod can cause mods using it to slow down if any mod uses script.raise_event.

3 years ago
0.18
6

Changelog

Version: 0.18.26
Date: 2020-05-21
  Changes:
    - Update for game version 0.18.26
      - Add 'script_raised_set_tiles' event
  Bugfixes:
    - Fix on_script_path_request_finished Waypoint validation
      (it was validated as on_cutscene_waypoint_reached)
Version: 0.18.25
Date: 2020-05-20
  Changes:
    - Update for game version 0.18.25
      - Add 'on_force_reset' event
Version: 0.18.20
Date: 2020-04-24
  Changes:
    - Update for game version 0.18.20
      - Add 'on_pre_script_inventory_resized' and 'on_script_inventory_resized' events
Version: 0.18.19
Date: 2020-04-20
  Changes:
    - Update for game version 0.18.19
      - Add 'final_health' to the 'on_entity_damaged' event
      - Add 'final-health' to the 'on_entity_damaged' event filter
Version: 0.18.16
Date: 2020-03-25
  Changes:
    - Update for game version 0.18.16
      - Add 'was_distracted' to the 'on_ai_command_completed' event
Version: 0.18.14
Date: 2020-03-23
  Changes:
    - Update for game version 0.18.14
      - Remove defines.gui_type.kills
Version: 0.18.11
Date: 2020-03-10
  Changes:
    - Update for game version 0.18.11
      - Add surface to the selected-area events
Version: 0.18.9
Date: 2020-02-25
  Changes:
    - Update for game version 0.18.9
      - Add filtering to on_entity_cloned and on_sector_scanned
      - Add support for new filter types for on_entity_damaged
        - original-damage-amount
        - final-damage-amount
        - damage-type
  Bugfixes:
    - Fix filters with duplicate definitions throwing erros
      (due to an unfinished feature implementation)
Version: 0.18.7
Date: 2020-02-18
  Changes:
    - Update validators for game version 0.18.7
      - Add on_player_set_quick_bar_slot event
      - Add on_pre_player_toggled_map_editor event
  Bugfixes:
    - Disallow defining filters when registering multiple handlers at once.
      Just like the game does
    - Move check if an event should not be wrapped to the correct location
Version: 0.18.2
Date: 2020-01-30
  Changes:
    - Remove lua global "__event_data_validator_type_map" which was floating around
  Bugfixes:
    - Fix the filter "vehicle" not including all rolling stocks
    - Change "target" to "entity_target" for "on_script_trigger_effect"
      (event docs were wrong in 1.18.1)
    - Fix custom-input handlers not getting registered
Version: 0.18.1
Date: 2020-01-25
  Info:
    - Initial Release