[2.0.34] on_space_platform_built_entity does not fire for upgrades

Things that has been reported already before.
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 234
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

[2.0.34] on_space_platform_built_entity does not fire for upgrades

Post 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
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 234
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

Re: [2.0.34] on_space_platform_built_entity does not fire for upgrades

Post by Quezler »

duplicate of 126800
Post Reply

Return to “Duplicates”