[2.0.14] Crash mining roboport with bot with .active = false (Entity::changePositionWithoutCollisionOrAABBCheck)
Posted: Tue Nov 05, 2024 8:39 pm
Hello,
I am working on some scripting with robots and networks, I found out few issues with them, especially I am getting reproducible crash in this specific case.
Steps to reproduce:
1) Build a roboport
2) Pause a game (in editor for example)
3) Place logistic/construction robot anywhere close to the roboport, then hover over it and write /c game.player.selected.active = false
4) Remove the roboport and get a crash
There are few more issues with this, namely:
1) Roboport can't be made .active = false. I believe roboports should be able to be switched off by script, especially when they are already switching off by losing power.
2) robots keep flying even when they are supposed to not be active, and then they rubberband back to their positions (this is cosmetic but yea)
I am working on some scripting with robots and networks, I found out few issues with them, especially I am getting reproducible crash in this specific case.
Steps to reproduce:
1) Build a roboport
2) Pause a game (in editor for example)
3) Place logistic/construction robot anywhere close to the roboport, then hover over it and write /c game.player.selected.active = false
4) Remove the roboport and get a crash
There are few more issues with this, namely:
1) Roboport can't be made .active = false. I believe roboports should be able to be switched off by script, especially when they are already switching off by losing power.
2) robots keep flying even when they are supposed to not be active, and then they rubberband back to their positions (this is cosmetic but yea)