Repository navigation
Conversation
8c469c8 to
88575cd
Compare
88575cd to
6918c34
Compare
|
Is this something you think would be useful? if so we can merge it. But I don't think I'd make use of this, so if you wouldn't make use of this either then I think we can abandon this instead. Of course, that doesn't mean we can't change our minds later and add this later. |
|
I wouldn't use it either, so let's close it. What it writes is how many handlers each event has ( If we want it later, I'd rather have each handler's source (file and line, from |
Stacked on #1654 (Update to Factorio 2.1): until that merges this diff includes its commits too. The change for review is one commit: compare factorio-2.1...event-registry-debug.
RedRafe's commit from #1569, cherry-picked (it keeps his authorship). Under
_DEBUG,utils/event_corekeeps a count of the handlers registered per event (by name, e.g.on_player_created, pluson_init,on_loadandon_configuration_changed) and writes it toscript-output/event_handler_registry.jsoneach time one is added, to see which events a scenario listens to. Without_DEBUGnothing changes.It doesn't depend on 2.1, but
developno longer runs on a 2.1 install, so it's stacked to be tested there. On a local 2.1.23 thedevelop,crashsiteanddiggytemplates pass (58, 90 and 71 passed, 0 failed);luacheck .: 0 warnings / 0 errors.🤖 Generated with Claude Code