If you’re like me and you don’t like the somewhat recent addition of inhibitors to the MES framework here’s a quick basic fix that should work for all affected mods.
The Fix
خطوة 1: Navigate to your Steam folder
خطوة 2: From there navigate to the following path:
SteamApps\workshop\content\244850\1521905890\Data\Scripts\ModularEncountersSpawner\Manipulation\
خطوة 3: In the folder is a file called “ArmorModuleReplacement.cs” open this one with a text editor of your liking
خطوة 4: In the file find the following code:
SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Nanobots-Small")); SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-JumpDrive-Small")); SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Jetpack-Small")); SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Drill-Small")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Nanobots-Large")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-JumpDrive-Large")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Jetpack-Large")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Drill-Large"));
خطوة 5: Replace the code with:
/* SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Nanobots-Small")); SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-JumpDrive-Small")); SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Jetpack-Small")); SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Drill-Small")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Nanobots-Large")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-JumpDrive-Large")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Jetpack-Large")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Drill-Large")); */
خطوة 6: Save your changes.
خطوة 7: Reload your savegame or start fresh
خطوة 8: Bum rush the cargo ships and drill under those outposts for glory and motherland or don’t. It’s your choice now.
What Changes
This comments out the Inhibitors being registered with the Replacement logic and prevents them from being replaced by any Spawner trying to. No other functionality is affected.
Please note this only disables Inhibitors placed automatically via automatic Armor Module Replacement by spawners. Blocks manually added to ship blueprints are unaffected since the blocks themselves are still functional. Thus ships already flying around in your game world will not be affected by the change but any newly spawned ones are.
This fix will probably disappear and need to be reapplied when MES is updated or Steam decides to re-download it for whatever reason. Maybe MES will incorporate a config for stuff like this at some point for a more permanent solution or a mod appears to do it. Who knows.
خياري
If you only want some of the inhibitors gone while keeping others instead of replacing the code as shown above you can disable individual lines like this:
SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Nanobots-Small")); SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-JumpDrive-Small")); SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Jetpack-Small")); //SmallModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Drill-Small")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Nanobots-Large")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-JumpDrive-Large")); LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Jetpack-Large")); //LargeModules.Add(new MyDefinitionId(typeof(MyObjectBuilder_RadioAntenna), "MES-Suppressor-Drill-Large"));
This for example only disables the Drill Inhibitors while the others remain viable for auto-replacement.
هذا كل ما نشاركه اليوم من أجل هذا Space Engineers مرشد. تم إنشاء هذا الدليل وكتابته في الأصل بواسطة Brother Jason. في حالة فشلنا في تحديث هذا الدليل, يمكنك العثور على آخر تحديث باتباع هذا وصلة.