on_robot_mined_entity respect no entity.neighbour

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
Post Reply
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

on_robot_mined_entity respect no entity.neighbour

Post by darkfrei »

Hi!

With this mod https://mods.factorio.com/mod/ShowUnconnected I get that if I use

This pseudocode works as expected:
2019-02-15 19_32_58-Factorio 0.16.51.png
2019-02-15 19_32_58-Factorio 0.16.51.png (88.39 KiB) Viewed 608 times

Code: Select all

on_player_mined_entity
if entity.neighbours then 
  game.print ('player entity neighbours ') 
else
  game.print ('no player entity neighbours ') 
end
the script has found the neighbour; added the mark
2019-02-15 19_33_03-Factorio 0.16.51.png
2019-02-15 19_33_03-Factorio 0.16.51.png (77.88 KiB) Viewed 608 times

But this one can't see the neighbour of underground belt:
2019-02-15 19_33_10-Factorio 0.16.51.png
2019-02-15 19_33_10-Factorio 0.16.51.png (78.28 KiB) Viewed 608 times

Code: Select all

on_robot_mined_entity
if entity.neighbours then 
  game.print ('robot entity neighbours ') 
else
  game.print ('no robot entity neighbours ') 
end
the script doesn't see the neighbour of underground belt; no mark added
2019-02-15 19_33_21-Factorio 0.16.51.png
2019-02-15 19_33_21-Factorio 0.16.51.png (75.38 KiB) Viewed 608 times
Last edited by darkfrei on Fri Feb 15, 2019 8:19 pm, edited 1 time in total.


Post Reply

Return to “Pending”