[2.0.34] on_space_platform_built_entity does not fire for upgrades
Posted: Thu Feb 20, 2025 11:49 am
- create new world
- /cheat all
- /cheat all
- build an entity
- place different quality on it
- notice both messages
- place an entity ghost
- watch a robot build it
- mark for upgrade to another quality via remote view
- watch a robot build it
- notice both messages
- add space platform
- create space platform
- /editor
- give yourself 2 different qualites of a space-buildable entity
- put those two items in the hub
- /editor
- open remote view
- ghost the normal quality and watch it build
- place the other quality over the built entity and watch it build
- notice only one message
- /cheat all
- /cheat all
Code: Select all
/c script.on_event(defines.events.on_built_entity, function(event)
game.print(string.format("%s (%s)", event.entity.name, event.entity.quality.name))
end)
- place different quality on it
- notice both messages
Code: Select all
/c script.on_event(defines.events.on_robot_built_entity, function(event)
game.print(string.format("%s (%s)", event.entity.name, event.entity.quality.name))
end)
- watch a robot build it
- mark for upgrade to another quality via remote view
- watch a robot build it
- notice both messages
Code: Select all
/c script.on_event(defines.events.on_space_platform_built_entity, function(event)
game.print(string.format("%s (%s)", event.entity.name, event.entity.quality.name))
end)
- create space platform
- /editor
- give yourself 2 different qualites of a space-buildable entity
- put those two items in the hub
- /editor
- open remote view
- ghost the normal quality and watch it build
- place the other quality over the built entity and watch it build
- notice only one message