Jump to content

Crash when using clear floor tool on (0,0)


RomenH
  • Branch: Live Branch Version: Windows Pending

The Clear Floor sandbox tool deletes all pickupables in a cell.
Equipments are pickupable and stored at (0,0) while equipped. I think many other objects are "hidden" in that corner of the map too.

If you try to "Clear Floor" or "Delete" the items in the (0, 0) cell it will cause a crash.


Steps to Reproduce

1. Equip any equipment on a Dupe.

2. Use the Sandbox Mode "Clear Floor" tool and click on the (0,0) cell at the bottom left of the map.

3. Crash is reproduced when the equipment entity is being destroyed.




User Feedback


I'm really hoping this problem gets a fix so that I can accomplish certain things in one of my mods.


Right now it is problematic to make the equipment follow the Dupe for something like adding a light on the equipment because it makes it too easy to crash your game by using clear floor on a dupe wearing the equipment.

I knew the essence of the problem is that the Clear Floor and Delete tools don't exclude equipped items, which is why it can be reproduced without my mod too.

Edited by RomenH

Share this comment


Link to comment
Share on other sites

My suggested fix for this would be to ensure that all equipment entities deleted by the Delete or Clean Floor tool have their Unequip method called before being destroyed; Or make the tool just ignore equipped entities.

Really hoping this can be fixed so that I can finish my mod, but I will just put a fix for the bug in my mod if I have to.

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...