Event listener


Please, use https://mods.factorio.com/mod/zk-lib instead. This mod combines events of other scripts and adding new manipulations with events (such like canceling an event). Designed for mod developers. There is an example in the mod. Don't forget about dependencies.

Internal
3 years ago
0.16 - 1.1
7.14K

Changelog

Version: 0.9.2
Date: 2020-04-07
  Changes:
    - Added parsing of set_events_filters because script.set_filter... working after events handling
  Notes:
    - This update for Factorio 0.18
Version: 0.9.1
Date: 2020-04-06
  Changes:
    - Refactored
  Notes:
    - This update for Factorio 0.18
Version: 0.9.0
Date: 2020-04-06
  Changes:
    - Refactored
  Notes:
    - This update for Factorio 0.17
Version: 0.8.7
Date: 2019-07-07
  Features:
    - Added "v0-8-3" in the "branch-2" (fixed "update_event" function https://mods.factorio.com/mod/timesaver-for-crafting/discussion/5d20704c2fc257000d523c37)
    - Added 2nd template
  Changes:
    - Updated 1st template
  Bugfixes:
    - Fixed mistakes
  Notes:
    - This update for Factorio 0.17
Version: 0.8.6
Date: 2019-06-23
  Features:
    - Added "v0-8-2" in the "branch-2"
    - Removed rich text in the mod name
  Notes:
    - This update for Factorio 0.17
Version: 0.8.5
Date: 2019-05-03
  Features:
    - Added "v0-8-1" in the "branch-2"
  Notes:
    - This update for Factorio 1.0
Version: 0.8.4
Date: 2019-05-03
  Features:
    - Added "v0-8-1" in the "branch-2"
  Notes:
    - This update for Factorio 0.18
Version: 0.8.3
Date: 2019-05-03
  Features:
    - Added "v0-8-1" in the "branch-2"
  Notes:
    - This update for Factorio 0.17
Version: 0.8.2
Date: 2019-05-02
  Notes:
    - See changelog for version 0.8.0
    - This update for Factorio 1.0
Version: 0.8.1
Date: 2019-05-02
  Notes:
    - See changelog for version 0.8.0
    - This update for Factorio 0.18
Version: 0.8.0
Date: 2019-05-02
  Features:
    - Added "v0-8-0" in the "branch-2"
  Notes:
    - TODO: add selecting version (is possible? Hmm, yes)
    - "v0-7-0" is unstable
    - This update for Factorio 0.17
Version: 0.7.2
Date: 2019-04-27
  Notes:
    - See changelog for version 0.7.0
    - This update for Factorio 1.0
Version: 0.7.1
Date: 2019-04-27
  Notes:
    - See changelog for version 0.7.0
    - This update for Factorio 0.18
Version: 0.7.0
Date: 2019-04-27
  Major features:
    - Added debug mode in the mod settings
    - Added logs mode in the mod settings
  Features:
    - Changed the example a lot!
    - Added "v0-7-0" in the "branch-2"
    - Added russian localization
  Notes:
    - All manipulations with logs and debug mode are controlled by players
    - This update for Factorio 0.17
Version: 0.6.0
Date: 2019-04-08
  Major features:
    - Added canceling an event
  Features:
    - Added "v0-6-0" in the "branch-2"
  Changes:
    - Bugfixes
    - Changed the example
    - Code refactoring
    - Changed logs
    - Improved compatibility
  Notes:
    - "v0-5-0" is unstable
Version: 0.5.1
Date: 2019-04-08
  Changes:
    - Changed the example
Version: 0.5.0
Date: 2019-04-07
  Features:
    - Added attaching custom events
    - Added "branch-2"
    - Added "v0-5-0" in the "branch-2"
    - Added template in the example
  Changes:
    - Changed the example a lot!
    - Optimization
    - Code refactoring
    - Changed logs
Version: 0.4.4
Date: 2019-04-05
  Bugfixes:
    - Changed the example
Version: 0.4.3
Date: 2019-03-05
  Bugfixes:
    - Fixed synchronization with this mod
Version: 0.4.2
Date: 2019-03-05
  Bugfixes:
    - Fixed this changelog
Version: 0.4.1
Date: 2019-03-05
  Features:
    - Added "v0-4-1" in the "branch-1"
  Notes:
    - In the "v0-4-1" changed function "set_debug_mode" (Temporarily the mod does not support changing debug mode during the game)
    - Code refactoring
    - changed the example
Version: 0.4.0
Date: 2019-03-04
  Major features:
    - Now all can attach the scripts via -> event_listener = require("__event-listener__/branch-1/stable-version")
    - Added getting the script on stable version, experimental version, last version, vN.N.N divided into branches
    - Added handling events by id
  Features:
    - Added "set_debug_mode(bool)"
  Changes:
    - Added in the example new module
  Note:
    - If you will use the mod for a mod, then add in dependencies: "event-listener >= 0.4.0"
Version: 0.3.1
Date: 2019-03-04
  Features:
    - Added debug mode
Version: 0.3.0
Date: 2019-02-28
  Notes:
    - Code refactoring
    - Added "update_event", "update_events"
Version: 0.2.1
Date: 2019-02-27
  Notes:
    - Updated for version Factorio 0.17
Version: 0.2.0
Date: 2019-01-29
  Features:
    - Improved describe
    - Added example attach a custom event
  Changes:
    - Added homepage
Version: 0.1.2
Date: 2019-01-27
  Bugfixes:
    - Fixed event handling
Version: 0.1.1
Date: 2019-01-05
  Minor Features:
    - Logs extended
Version: 0.1.0
Date: 2019-01-02
  Notes:
    - First release for Factorio 0.16