MySeedItemDefinition is prohibited

Merii shared this bug 22 days ago
Not a Bug

I maintain a cargo sorting mod for SE1, and I'm trying to add support for the new seed and food items.


Generally how I build lists of "what stuff is" is by the definition type - e.g. `definition is MyComponentDefinition` which lives in the whitelisted namespace Sandbox.Definitions.


The seeds are not in the correct namespace. The MySeedItemDefinition type is in SpaceEngineers.Game.Definitions, which is not whitelisted, and when referenced, produces the following error:

Error: The type or member 'MySeedItemDefinition' is prohibited

The expected behavior is that the type is exposed to the modding framework and I can reference it in my mod code.

MyObjectBuilder_SeedItemDefinition is similarly not exposed correctly, so I can't fall back to `definition.Id.TypeId == typeof(MyObjectBuilder_SeedItemDefinition)` either.

Replies (2)

photo
1

Hello Merii,

Thank you for reaching out to us on the forum.

Could you kindly share the MOD where you are getting this error?

  • If the MOD is local, you can find it in your AppData\Roaming\SpaceEngineers\Mods folder. Please zip your MOD folder and attach it here.
  • If it’s published on Steam or Mod-io Workshop, please share the link instead.

This will help us investigate the issue further.

Kind regards,

Keen Software House: QA Department

photo
1

I have created an example, minimal reproduction mod.

In the zip file, this is the folder ExampleMod-49650.

Please place the folder ExampleMod-49650 in %appdata%\SpaceEngineers\Mods

There is also a folder called Example World 49650. This is an empty world save file with the mod loaded if you want it. It is not necessary, but you can put it to your save folder if you want to easily load the mod.

Repro steps:

  1. Open the example world.
  2. Check the log of the game.
  3. Search for "ExampleMod-49650"

Expected behavior:

The mod loads and prints out a list of all Seed and Consumable definition IDs.

Actual behavior:

The mod fails to load with the following error:

2025-09-26 10:45:38.746 - Thread:   1 ->  MyScriptManager.LoadData() - START
2025-09-26 10:45:38.876 - Thread:   1 ->     MOD_ERROR: ExampleMod-49650
2025-09-26 10:45:38.876 - Thread:   1 ->       in file: Unknown
2025-09-26 10:45:38.876 - Thread:   1 ->       Compilation of C:\Users\YourAccount\AppData\Roaming\SpaceEngineers\Mods\ExampleMod-49650_Example failed:
2025-09-26 10:45:38.877 - Thread:   1 ->        MOD_ERROR: ExampleMod-49650
2025-09-26 10:45:38.877 - Thread:   1 ->          in file: Unknown
2025-09-26 10:45:38.877 - Thread:   1 ->          C:\Users\YourAccount\AppData\Roaming\SpaceEngineers\Mods\ExampleMod-49650\Data\Scripts\Example\ExampleSessionComponent.cs(20,34): Error: The type or member 'MySeedItemDefinition' is prohibited

photo
1

Hello Merii,

Thank you for sharing the MOD and the world files.

Issue was successfully reproduced on our side and put into our internal system.

Kind regards,

Keen Software House: QA Department

photo
photo
1

Hello Merii,

After discussing this internally, we’d like to inform you that this is not an issue but expected behavior.

We no longer provide access to our new definitions, as maintaining public access created issues with code stability and the ModAPI. It’s not necessary to have access to the seed definition to create new seeds. To create new seed items, please use the SBC files, which are specifically prepared for that purpose.

Since this is expected behavior and not a bug or broken feature, we’ll be closing this thread as “Not a Bug.” However, if you experience any other issues, please feel free to open a new thread.

Thank you for your understanding.

Kind regards,

Keen Software House: QA Department

Leave a Comment
 
Attach a file