[Rseding91] [0.17.37] robot destroys entities when upgrading tiles

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

[Rseding91] [0.17.37] robot destroys entities when upgrading tiles

Post by Earendel »

This issue is most easily reproducible with the Space Exploration mod. https://mods.factorio.com/mod/space-exploration

There are tiles representing empty space that are the default tiles in space.

You can put space platform down to place certain structures in space. They can't be placed on empty space, only on 2 types of space platform.

If you change the tile from 1 type to another by hand, the entity on top of the tile is not affected even thought the hidden tile would collide with the structure.
If a bot changes a tile from 1 type to anther, the entity is destroyed.

It seems like the player logic is: Change Tile -> Destroy Entities if colliding
but the robot logic seems to be: Remove Tile -> Destroy Entities if colliding -> Add Tile -> Destroy Entities if colliding

This is especially confusing for players because it works differently than a player doing it. They can test upgrading the tile by hand, then blueprint the upgrade all over the places, and suddenly all of their structures disappear.

Steps to reproduce:
Go to the Nauvis Orbit surface.
Place Space platform scaffold.
Place a structure (Space Science Lab) on the space platform.
Ghost-place Space platform plating under the structure.
Let a construction bot place the Space platform plating tile.

Also it would be nice if there was some way to prevent entities being destroyed by tile changes in general. There is no event that fires before the tile change so there is no way to 'save' the entity by converting it to an item.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.37] robot destroys entities when upgrading tiles

Post by Rseding91 »

Thanks for the report however that's working as intended: if an entity collides with a tile it is removed. You'll need to have the mod author change his mod if he doesn't want entities that collide to be removed. There's a flag for it.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

Re: [0.17.37] robot destroys entities when upgrading tiles

Post by Earendel »

Rseding91 wrote:
Thu May 09, 2019 7:49 pm
Thanks for the report however that's working as intended: if an entity collides with a tile it is removed. You'll need to have the mod author change his mod if he doesn't want entities that collide to be removed. There's a flag for it.
What is the flag? There is nothing that suggests that function here: https://wiki.factorio.com/Types/EntityPrototypeFlags

Post Reply

Return to “Resolved Problems and Bugs”