Page 1 of 1

[2.0.34] on_space_platform_built_entity does not fire for upgrades

Posted: Thu Feb 20, 2025 11:49 am
by Quezler
- create new world
- /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)
- build an entity
- 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)
- 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

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)
- 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

Re: [2.0.34] on_space_platform_built_entity does not fire for upgrades

Posted: Thu Feb 20, 2025 12:23 pm
by Quezler
duplicate of 126800