[2.0.14] Crash mining roboport with bot with .active = false (Entity::changePositionWithoutCollisionOrAABBCheck)

This subforum contains all the issues which we already resolved.
Hanakocz
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Sun Jun 24, 2018 7:06 pm
Contact:

[2.0.14] Crash mining roboport with bot with .active = false (Entity::changePositionWithoutCollisionOrAABBCheck)

Post by Hanakocz »

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)
Attachments
factorio-current.log
(14.06 KiB) Downloaded 17 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3190
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.14] Crash when mining roboport while there is robot that has .active = false

Post by boskid »

I suspect this was already fixed by 119911 but that needs to be verified.
Hanakocz
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Sun Jun 24, 2018 7:06 pm
Contact:

Re: [2.0.14] Crash when mining roboport while there is robot that has .active = false

Post by Hanakocz »

This crash actually still happens in 2.0.16, with the same actions taken as reported previously.

Is it to be noticed in this message or should I make new post?
Attachments
factorio-current.log
(14.01 KiB) Downloaded 19 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14473
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.14] Crash mining roboport with bot with .active = false (Entity::changePositionWithoutCollisionOrAABBCheck)

Post by Rseding91 »

Can you please give new steps to reproduce this? I've tried the ones you listed and it never crashes for me. I suspect there's something else you're doing that's missing. Maybe record a video?
If you want to get ahold of me I'm almost always on Discord.
Hanakocz
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Sun Jun 24, 2018 7:06 pm
Contact:

Re: [2.0.14] Crash mining roboport with bot with .active = false (Entity::changePositionWithoutCollisionOrAABBCheck)

Post by Hanakocz »

Adding video. No mods except SA, default scenario.

Oh, I see what is probably the problem. If the roboport is mined in same tick (e.q. stayed paused by editor), then robot doesn't get assigned to the network, and the crash doesn't happen. The robot has to be assigned to the network of the mined roboport, so the game has to be unpaused (I included editor pause just to have easier to target the robot, so that's my mistake)

So it is:
1) build roboport and robot
2) make robot .active = false - it will stop at the spot (but visually continues)
3) make sure the bot was in roboport network more than one tick so it got at least one update
4) delete the roboport the bot is assigned to
Factorio 2024.11.12 - 18.47.58.09.mp4
(40.2 MiB) Downloaded 18 times
also adding new log from version 2.0.17
Attachments
factorio-current.log
(14.05 KiB) Downloaded 12 times
Post Reply

Return to “Resolved Problems and Bugs”