Duplicate Entity ID Exception in Voxel Prefetch
Submitted
Infrequently SE will throw the exception below when a mod uses the MyPlanet.PrefetchShapeOnRay method. Unsure if something changed in 206, but this never appeared until very recently.
2025-07-29 14:11:45.842 - Thread: 1 -> Exception occurred: newEntity: Sandbox.Game.Entities.MyVoxelPhysics, oldEntity: Sandbox.Game.Entities.MyVoxelPhysicsVRage.DuplicateIdException: Exception of type 'VRage.DuplicateIdException' was thrown. at VRage.MyEntityIdentifier.AddEntityWithId(IMyEntity entity) at VRage.Game.Entity.MyEntity.set_EntityId(Int64 value) at Sandbox.Game.Entities.MyVoxelPhysics.Init(IMyStorage storage, MatrixD worldMatrix, Vector3I storageMin, Vector3I storageMax, MyPlanet parent) at Sandbox.Game.Entities.MyVoxelPhysics.Init(IMyStorage storage, Vector3D positionMinCorner, Vector3I storageMin, Vector3I storageMax, MyPlanet parent) at Sandbox.Game.Entities.MyPlanet.CreateVoxelMap(Vector3I_RangeIterator it, MyVoxelPhysics voxelMap, Vector3I storageMin, Vector3I storageMax) at Sandbox.Game.Entities.MyPlanet.PrefetchShapeOnRay(LineD& ray, Boolean prefetchOnlyNew)
Replies have been locked on this page!