Space Engineers

Space Engineers

Planetary Asteroid Rings
Issues with generations on Dedicated server
Heya! I'm using this mod on a dedicated server, but i notice that genration is inconsistent at best to flat out not functional at worst. Additionally, it spams errors in the console.

We used the example file and set Enabled to true, using Bylen. The names match.
The error: 14:12:23.4163 [INFO] Keen: ##MOD: Ring asteroid error: System.ArgumentNullException: Value cannot be null. Parameter name: key at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at SERingAsteroids.RingAsteroidsComponent.GetVoxelMaps(List`1 voxelmaps) at SERingAsteroids.RingAsteroidsComponent.<>c__DisplayClass53_0.<UpdateBeforeSimulation10>b__0() 14:12:23.5838 [INFO] Keen: ##MOD: Ring asteroid error: System.ArgumentNullException: Value cannot be null.

Anyone got an idea what we're missing here?
< >
Showing 1-4 of 4 comments
Bravada Cadelanne  [developer] 31 Dec, 2023 @ 8:42am 
The latest version of this mod should fix this error.
Tino 8 Jan, 2024 @ 7:21am 
I become this Error on Dedicated Server. Local in SP all good.

##MOD: Ring asteroid error: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.HashSet`1.Enumerator.MoveNext() at Sandbox.Game.Entities.MyCubeGrid.VRage.Game.ModAPI.IMyCubeGrid.GetBlocks(List`1 blocks, Func`2 collect) at SERingAsteroids.RingAsteroidsComponent.GetGridDistance(HashSet`1 playerControlledEntities, ProceduralVoxelDetails voxelCreate, Double& voxeldist, Double& voxeldistfromplayer, IMyEntity entity) at SERingAsteroids.RingAsteroidsComponent.GetVoxelsByDistance(Dictionary`2 entitySectors, HashSet`1 playerControlledEntities) at SERingAsteroids.RingAsteroidsComponent.OrderPendingAsteroidsByDistance(Dictionary`2 entitySectors, List`1 players) at SERingAsteroids.RingAsteroidsComponent.<>c__DisplayClass55_0.<UpdateBeforeSimulation10>b__0()
Bravada Cadelanne  [developer] 9 Jan, 2024 @ 12:08am 
I will need to add error handling to handle these cases where e.g. blocks are added to or removed from a grid while the mod is trying to find the block closest to a particular asteroid.
Bravada Cadelanne  [developer] 16 Feb, 2024 @ 2:29am 
The latest error should reduce the likelihood of this error occurring.
< >
Showing 1-4 of 4 comments
Per page: 1530 50