Space Engineers

Space Engineers

94 ratings
Vas's Ore Detectors
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Block
File Size
Posted
Updated
138.714 KB
7 Mar, 2019 @ 5:25am
10 Feb, 2021 @ 2:25pm
3 Change Notes ( view )

Subscribe to download
Vas's Ore Detectors

Description
So the game updated to add new research groups and all, so I re-created the long range ore detector mod to update it and impose my own little balance on it. :P

Sorry, KeenSWH has decided that it shouldn't be possible to create good mods for the game so they limited coding as much as they could and require anything that alters any block in the game to add a new function require modifying your core files in a dangerous and complicated way. So power usage for ore detectors is not possible. Blame Keen.

The "massive" detector will cause high CPU load, which will lag machines with a CPU that can't keep up. My laptop doesn't seem to notice when I use it on a planet, but then I've got an i7 running at 3.4GHz or maybe I just don't happen to notice much. The large ship massive detector may be too extreme for many CPUs, so be cautious when building this if your machine is weak.

Keen's source code for ore detectors;
https://github.com/KeenSoftwareHouse/SpaceEngineers/blob/master/Sources/Sandbox.Game/Game/Entities/Blocks/MyOreDetector.cs

-----------

If you're switching from "Long-Range Ore Detectors", then you'll need to update your save files to convert your detectors from theirs to mine with a find and replace all method.

KK4DUY_LR2x_LargeOreDetector to LargeBlockMediumOreDetector
KK4DUY_LR4x_LargeOreDetector to LargeBlockLargeOreDetector
KK4DUY_LR8x_LargeOreDetector to LargeBlockMassiveOreDetector

KK4DUY_LR2x_SmallBlockOreDetector to SmallBlockMediumOreDetector
KK4DUY_LR4x_SmallBlockOreDetector to SmallBlockLargeOreDetector
KK4DUY_LR8x_SmallBlockOreDetector to SmallBlockMassiveOreDetector

I may create a script for this later, but for now I'm tired. :P
37 Comments
Vas  [author] 22 Aug, 2021 @ 11:30pm 
It can't be optimized. The base game is hard coded to work a specific way with these. Its impossible for any modder to change this fact. The 4x and the 8x detectors will cause high server load. Simply turn them off when you aren't using them.
Syphond 22 Aug, 2021 @ 6:05pm 
Have this mod been optimized or does it still hit cpu with a large load?
draeath 8 Mar, 2021 @ 4:11pm 
Same. I think you'd have to create a child class of the existing OreDetector, but I've never worked with C# before - maybe someday I'll take a stab at it. If I figure it out I'll let you know!
Vas  [author] 8 Mar, 2021 @ 7:51am 
I only wish I could alter the power requirements of these so that they consume a larger amount of power.
draeath 7 Mar, 2021 @ 8:12pm 
For sure :)
Vas  [author] 7 Mar, 2021 @ 6:58pm 
I'll go ahead and keep maintaining this however. :P I'm sure people like using it.
draeath 7 Mar, 2021 @ 6:14pm 
I've finally gotten around to updating the original "Long-Range Ore Detectors" mod, FYI.
Vas  [author] 10 Feb, 2021 @ 2:27pm 
I have now updated this, with the help of Nukeguard, to work better with the g-menu.
Misha 10 Dec, 2019 @ 1:57am 
@Vas Heyho, so it turned out I must had done something wrong. I startet a World with only this mod. It works fine. It seems that my Antenna in my other World not working correctly.

As I said will be my mistake. Sorry! ^^' Now I just have to figure out why my Antenna ist not working right.
Vas  [author] 9 Dec, 2019 @ 6:27pm 
I don't know if Keen did something to mess it up or not, should be working. Did you add the mod to the world mod list when loading your map?