I recently discovered that basically all of my mods are incompatible with klonan's "construction drones"
https://mods.factorio.com/mod/Construct ... 000ddd66a4
Are you listening....? (to the script_raised_revive event)
Are you listening....? (to the script_raised_revive event)
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Re: Are you listening....? (to the script_raised_revive event)
So make your mods compatible by using the base game scripting feature designed for exactly the situation that construction drone uses it for.
Mods shouldn't be raising created events manually in this situation, it leads to many incompatibilities and problems,
The script_raised_revived is exactly the event that should be used when a mod is reviving a ghost
No mod will adjust if everybody keeps using the old inferior method, the status quo would be upheld
So it is a good position that I am obligated to take for the greater good, to use the new feature that is meant for the situation.
Mods shouldn't be raising created events manually in this situation, it leads to many incompatibilities and problems,
The script_raised_revived is exactly the event that should be used when a mod is reviving a ghost
No mod will adjust if everybody keeps using the old inferior method, the status quo would be upheld
So it is a good position that I am obligated to take for the greater good, to use the new feature that is meant for the situation.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Are you listening....? (to the script_raised_revive event)
Code: Select all
{on_built_entity,on_robot_built_entity,script_raised_built}
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: Are you listening....? (to the script_raised_revive event)
In 0.17, you need to listen to 5 events to catch every entity.
on_built_entity
on_robot_built_entity
script_raised_built
script_raised_revive
on_entity_cloned
To make it more awkward, they use different parameters to store the entity.
on_built_entity - created_entity
on_robot_built_entity - created_entity
script_raised_built - entity
script_raised_revive - entity
on_entity_cloned - destination
on_built_entity
on_robot_built_entity
script_raised_built
script_raised_revive
on_entity_cloned
To make it more awkward, they use different parameters to store the entity.
on_built_entity - created_entity
on_robot_built_entity - created_entity
script_raised_built - entity
script_raised_revive - entity
on_entity_cloned - destination