Failed to write spaceengineers.cfg - SerializableDictionary<int, ...> not expected

Digi shared this bug 2 days ago
Reported

seems voxel hands settings break the config saving:


2025-05-01 18:08:26.496 - Thread: 1 -> Path: C:\Users\Digi\AppData\Roaming\SpaceEngineers\SpaceEngineers.cfg
2025-05-01 18:08:26.498 - Thread: 1 -> Exception occured, but application is continuing. Exception: System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: The type VRage.Serialization.SerializableDictionary`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[VRage.Serialization.SerializableDictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], VRage.Library, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically
...
at Sandbox.Engine.Utils.MyConfigBase.Save()

It's this one basically:

SerializableDictionary<int, SerializableDictionary<string, float>> VoxelHandSettings

STR:

1. Load any creative world that has voxel hands enabled.

2. Equip any voxel hand shape.

3. Press the voxel hand settings key (K default) and change any slider to anything.

4. Save world which triggers a client config too.

Now you have the above stacktrace in your SE log and any changes to the config will not save because it will error every time until game is closed.

Replies (1)

photo
1

Hello Digi,

thank you for reaching our forum with this.

We have reproduced this problem on our side and put it into our internal system.

Kind Regards

Keen Software House: QA Department

Leave a Comment
 
Attach a file
Access denied