event: on_victory, or on_game_state_changed

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
ChakatStormCloud
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Feb 07, 2023 1:35 am
Contact:

event: on_victory, or on_game_state_changed

Post by ChakatStormCloud »

It feels weird that this isn't already a thing. There's a rocket launch event, but a lot of mods and scenarios, including some vanilla ones change the victory condition to something else, things which are frequently hard or impossible to monitor unless the mod itself adds an event. Would also be nice if there was a reason or a calling object attached to the event, to be able to tell, what caused it and respond appropriately.

My personal use case is for Archipelago so it can support selecting modded victory conditions as a goal in a sane manner. Though I can see use cases for scenarios built around mods, modifying the victory screen, or even just having a mod react to another mod's ending.

Koub
Global Moderator
Global Moderator
Posts: 7614
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: event: on_victory, or on_game_state_changed

Post by Koub »

[Koub] Moved to Modding interface requests.
Koub - Please consider English is not my native language.

User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 391
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: event: on_victory, or on_game_state_changed

Post by Stringweasel »

+1 This will be very useful for Better Victory Screen
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration

Post Reply

Return to “Modding interface requests”