Space Engineers

Space Engineers

Not enough ratings
[BROKEN] Evil Sensor (Dispenser Sensor)
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Block, Script
File Size
Posted
Updated
337.018 KB
9 Nov, 2014 @ 11:26pm
10 Jan, 2015 @ 6:15pm
9 Change Notes ( view )

Subscribe to download
[BROKEN] Evil Sensor (Dispenser Sensor)

Description
[BROKEN]
[Broken in an undefinable manner due to updates since development]
[Will be investigated by developer ASAP and any further developments will be in comments]
My original intention was just to update the Dispenser - ModAPI example to get it working. Through playing around with the API, I found there were a few features I wanted to add. Since permission was given by Ondrej Petrzilka to re-use the code, I'm creating my own mod from it since it is now going past the original functionality of the example. The original mod/example can be found here. Since this is going to be an extension of that example, I've named it after the class found in the example code (EvilSensor).

I removed the quote with the original mod's instructions since it may be confusing as the instructions have changed.

To get this mod to work, you just have to rename the sensor according to the examples and instructions found below.

Added Features:
  • Ability to specify amount of ore dropped, the distance from the sensor, and the position in relation to the sensor to have it spawned.
  • Ability to spawn components and ingots as well as ore.

Instructions: Some examples are shown below. The type, amount, distance from the sensor, and direction from the sensor can all be specified. The tags are "TYPE:", "AMT:", "DST:", and "DIR:". You need to specify at least one and you can put them in any order, and in any combination. They can be separated by a semi-colon or a comma (if you use a semicolon, use all semicolons. Same for commas. Unexpected errors may occur if you mix semicolons and commas in the same name). They MUST all be surrounded by square brackets as shown below. The rest of the name outside the brackets no longer matters to the mod. Lastly, don't use square brackets anywhere else in the name.

Important Note: Capitalization generally doesn't matter for this but looks more uniform. There is one place that the capitalization needs to be correct and that is the second part of the type (the "Magnesium" in "Ore/Magnesium"). Forward slashes or back slashes can be used in the type specification.

Defaults:
Type: Ore/Iron Amount: 100 Distance: 1.5 meters Direction: FRONT

Valid Examples (You'll want to name the sensor something like this):
Stuff Dispenser [TYPE:Component/Steel Plate,AMT:1000,DST:5] Whatever [TYPE:Ingot/Iron;AMT:1000;DST:35] IronDispenser[DST:5;DIR:BACK] [TYPE:Ore/Magnesium;AMT:1000] Dispenser Iron [AMT:1000,DST:5] SensorIron[DST:5] [TYPE:Component/Medical] Uranium [TYPE:Ore/Uranium,DIR:LEFT] [AMT:2500;DIR:DOWN;TYPE:Ore/Platinum] Spawn Chunks Of Evil Platinum [DST:100,AMT:4000,TYPE:Ingot/Magnesium] Magnesium Powder

Valid directions for "DIR:" tag
UP DOWN FRONT BACK LEFT RIGHT
Ore/Component/Ingot types (as they are needed to be typed into the name of the sensor):
Component/Construction Component/MetalGrid Component/InteriorPlate Component/SteelPlate Component/Girder Component/SmallTube Component/LargeTube Component/Motor Component/Display Component/BulletproofGlass Component/Computer Component/Reactor Component/Thrust Component/GravityGenerator Component/Medical Component/RadioCommunication Component/Detector Component/Explosives Component/SolarCell Component/PowerCell Ore/Stone Ore/Iron Ore/Nickel Ore/Cobalt Ore/Magnesium Ore/Silicon Ore/Silver Ore/Gold Ore/Platinum Ore/Uranium Ingot/Stone Ingot/Iron Ingot/Nickel Ingot/Cobalt Ingot/Magnesium Ingot/Silicon Ingot/Silver Ingot/Gold Ingot/Platinum Ingot/Uranium
[/list]

You can also use the names of components from mods. This mod will print out a list of available component and ore names when you walk into range of any sensor into the log file found in %APPDATA%/Roaming/SpaceEngineers/Storage .

Planned Features:
  • Ability to change the distance the ore drops from the sensor as well as the amount using a format like "Iron Dispenser [AMT:1000;DST:5]" to drop 1000 ore 5 meters in front of the sensor. Added in Update: Nov 11 @ 9:12pm
  • Possibly the ability to spawn components as well as ore (I need to examine the API further to be sure) Format would be something like "[TYPE:Component/Steel Plate;AMT:1000;DST:5]" to spawn 1000 Steel plate 5 meters from the sensor. Added in Update: Nov 15 @ 6:15am Thanks to tyrsis for helping me with the list of component names.
  • Possibly the ability to change where in relation to the sensor the ore spawns (front, back, left, right, up, down) Format would be similar to "[TYPE:Ore/Iron;AMT:1000;DST:5;DIR:UP]" to spawn 1000 iron ore 5 meters "above" the sensor. Added in Update: Nov 14 @ 12:13am

Known Issues:
  • Seems to work fine on locally loaded worlds, but on the dedicated server there's an issue. It drops 2 items, one of which you can pick up and the other you can't. They disappear on log out and log in, but still not 100%. Fixed in Update: Nov 10 @ 4:55am

Incremental patches documenting the changes can be found in the changelogs. I've decided to discontinue the full patches.The last full patch from the original mod to Update: Nov 14 @ 12:13am of this mod can be found here[pastebin.com]. All patches are in unified diff format.
61 Comments
Trophy Wife 17 Nov, 2017 @ 2:02pm 
This would be evil to do by putting one in someone's ship and putting missiles in it since missiles explode when they hit the ground as an object
neotheshitman 17 Sep, 2016 @ 4:01am 
awesome if we can do anything to help out just say it man you can do it
BlazR  [author] 16 Sep, 2016 @ 7:41pm 
I'll give it a look. I think there's only one part that's wrong that I can't figure out. Once I get that right though, it may highlight other problems. LOL. I'll definitely look further into it though. :steamhappy:
neotheshitman 12 Sep, 2016 @ 11:46pm 
some one posted a evilSensor2016 i give it a look but all it did was spawn in stone but maybe it can help you find out wat is wrong i loved this mod ever sins it came out it's bin a big help to are RP survival series and i hope you can get it working again best of luck we beleave in you :Fleur_de_Lys:
BlazR  [author] 6 Sep, 2016 @ 1:34am 
Tried for a few hours to fix it. It would seem the Mod API has changed quite a bit since I worked on this originally. I can't really figure out what I'm doing wrong since there are no errors and I don't understand the API well enough to figure it out. If anybody has the talent or inclination, just message me for a copy of the current source.
BlazR  [author] 5 Sep, 2016 @ 7:32pm 
Worked on it a bit today. It doesn't give any errors any more, but it also still does not work.
BlazR  [author] 4 Sep, 2016 @ 2:49am 
So, to answer your question, NO. It was reported as broken and I have not fixed or updated it in quite some time. I will do so as soon as I can and post back here with the results of my investigation.
BlazR  [author] 4 Sep, 2016 @ 2:46am 
Excuse the typos, but ya get what I mean.
BlazR  [author] 4 Sep, 2016 @ 2:44am 
I haven't chekced it sine the last report it was broken. I'll give it a look sometime in the near future. I said I'd look at it before, but working full-time, going to school, and just maintainging regular life takes a lot (most) of my time. I'll get it going as soon as I can once I brush up on my C# again. It's been a while so bear with me. I'm no professional and tracking down bugs in a language I only basically grasp can be a task. I'll get there though since I feel bad for letting my subscribers hang for so long with a broken product.
weaselslider 3 Sep, 2016 @ 5:21pm 
only reason i considered this mod: wanted to do a skyblock type world with no ores, and a couple mods including the obsidian ingot mod, and i thought this would be gr8... then i saw someone say this mod is broken. tell me if it has been fixed?