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

Digi shared this bug 5 months ago
Solved

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 (2)

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

photo
2

Hello Engineer,

We would like to inform you that the issue you reported was fixed in the 1.206 (Hotfix 2)

While reviewing a list of resolved tickets, we noticed that we hadn’t posted an update here earlier — our apologies for the delay.

If you encounter any other problems, please don’t hesitate to create a new thread.

I’ll now close this one as solved.


Kind Regards,

Ludmila Danilchenko

Head of Space Engineers QA Department

Leave a Comment
 
Attach a file