many mods having same error: type or member is prohibited

Mark McCorkle shared this feedback 17 months ago
Submitted

Synopsis:

When mods are loaded in Space Engineers on a dedicated server, many of the mods are throwing a similar error in the logs and not behaving as expected in the game experience.

This is as of today's economy update (which is f'ing awesome, btw). I just miss my mods.


SEDS Game Version: 1.192.19

Torch Version: v1.3.1.69-master

Machine: i7-6700k with 16GB of ram

OS: windows 10 Pro


How to reproduce:

* Setup a dedicated server with the BuildAndRepair mod (id 857053359): https://steamcommunity.com/sharedfiles/filedetails/?id=857053359

* Log into the server and build a single BuildAndRepair mod block.

* attempt to enable the block. I will not enable or attempt to do any building. You can identify this by looking for the block status in the bottom right display area in the control panel for your BuildAndRepair block.

* Let the server run for a bit, and then check your dedicated server log.


What I expected to happen:

* Space Engineers to run on my dedicated server with all of my mods still behaving as they did yesterday.


What happened:

* many mods are running with diminished or no functionality at all.

* my logs are filled with warnings.


Debugging details:

Details are in the log attached -- but this is mostly what you'll see:

17:05:54.1675 [DEBUG] Keen: MOD_ERROR: Nanobot Build and Repair System
17:05:54.1675 [DEBUG] Keen: in file: 
17:05:54.1675 [DEBUG] Keen: C:\Users\mccorkle\Desktop\torch\Instance\content\244850\857053359\Data\Scripts\NanobotBuildAndRepairSystem\NanobotBuildAndRepairSystemTerminal.cs(2117,48): Error: The type or member 'void IMyTerminalControls.AddControl<IMyShipWelder>(IMyTerminalControl item)' is prohibited
17:05:54.1675 [DEBUG] Keen: MOD_ERROR: Nanobot Build and Repair System
17:05:54.1675 [DEBUG] Keen: in file: 
17:05:54.1675 [DEBUG] Keen: C:\Users\mccorkle\Desktop\torch\Instance\content\244850\857053359\Data\Scripts\NanobotBuildAndRepairSystem\NanobotBuildAndRepairSystemTerminal.cs(2117,59): Error: The type or member 'IMyShipWelder' is prohibited

And this is the particular line (2117) from NanobotBuildAndRepairSystemTermina.cs:

MyAPIGateway.TerminalControls.AddControl<IMyShipWelder>(propertyNC4B);

The above example is for Nanobots, but it happens for many other mods as well:

20:21:54.8611 [DEBUG]  Keen:             MOD_ERROR: Paint Gun - realistic painting for suvival + special creative features
20:21:54.8611 [DEBUG]  Keen:               in file: 
20:21:54.8611 [DEBUG]  Keen:               C:\Users\mccorkle\Desktop\torch\Instance\content\244850\500818376\Data\Scripts\PaintGun\PaintGunMod-Utils.cs(114,72): Error: The type or member 'MyFontEnum' is prohibited
20:21:54.8611 [DEBUG]  Keen:             MOD_ERROR: Paint Gun - realistic painting for suvival + special creative features
20:21:54.8611 [DEBUG]  Keen:               in file: 
20:21:54.8611 [DEBUG]  Keen:               C:\Users\mccorkle\Desktop\torch\Instance\content\244850\500818376\Data\Scripts\PaintGun\PaintGunMod-Utils.cs(114,83): Error: The type or member 'string MyFontEnum.White' is prohibited
And I pulled up the code for PaintGunMod-Utils.cs at line 114: 

        public void ShowNotification(int id, string text, string font = MyFontEnum.White, int aliveTime = TOOLSTATUS_TIMEOUT)
        {
            if(text == null)
            {
                if(toolStatus[id] != null)
                    toolStatus[id].Hide();

                return;
            }

            if(toolStatus[id] == null)
                toolStatus[id] = MyAPIGateway.Utilities.CreateNotification(text, aliveTime, font);

            toolStatus[id].Font = font;
            toolStatus[id].Text = text;
            toolStatus[id].AliveTime = aliveTime;
            toolStatus[id].Show();
        }