Space Engineers

Space Engineers

Gravity Collector - pulls and collects floating objects
314 Comments
El Capitan Kirk 23 Aug, 2023 @ 6:21am 
For clarification, a mod at the top of the active mod list overwrites any mod that is below it if they change the same thing. They could improve the UI a little bit...
El Capitan Kirk 22 Aug, 2023 @ 7:51am 
Here's where this mod's files are on my pc for reference:
H:\Games\Steam\steamapps\workshop\content\244850\402858936\Data\Scripts\GravityCollector

And here's where my local mods need to go:
C:\Users\YourUserNameHere\AppData\Roaming\SpaceEngineers\Mods

Just copy the "402858936" folder to the local mod folder and rename it to something you'd recognize. It will show up in game as whatever you rename this folder to.
El Capitan Kirk 22 Aug, 2023 @ 7:42am 
@MrEdinLaw: Find "GravityCollector.cs" in this mod's folder and edit the values there at the top with a text editor. Any changes you make will be undone if the mod updates unless you copy this mod to your local mod folder and edit it there. Make sure your edited version loads after the original, or replace the original with your edited version.

These are where the range values are set; 40 for small grid and 60 for large:
public const float RANGE_MAX_MEDIUM = 40;
public const float RANGE_MAX_LARGE = 60;

There are other values you can change there, but the only ones I'd touch are the angles that determine how wide a cone the block will attempt to vacuum up items from. Those lines look like this:

coneAngle = MathHelper.ToRadians(30);

If you change the angle of the vacuum cone, don't go above 90 or items will get stuck on the sides that don't vacuum and just stick there. I'd recommend not going higher than 75.
MrEdinLaw 19 May, 2023 @ 3:20pm 
Any way to add it a bit more range?
Digi  [author] 8 Jan, 2023 @ 1:58am 
It has no reason to clash, it doesn't use anything from vanilla weapon code and it's a collector, not a sorter that WC uses as weapon platforms.
REV3LatioN 7 Jan, 2023 @ 4:34am 
will this mod clash with weapon core and its vast collection of supported mods do you know?
Digi  [author] 11 Jul, 2022 @ 3:57am 
Nothing I can do about that, I'm not hosting it :P
Von Ryan 10 Jul, 2022 @ 4:38pm 
Cant download. Others download no issues, some like this wont.
kullen 9 Jan, 2021 @ 9:21am 
build more collectors for more pulling power, 2 next to eachother will pull allmost anything lose componants along the ground to the collector on earth gravity. With 4 you almost pull componants from the grid it self:D
Digi  [author] 18 Dec, 2020 @ 11:33am 
I tried ejecting steel plates from a small grid connector (steel plates are too large for ejector) and a grav collector picked every single one.
Did you check if the grav collector's inventory was full?

If that's not it then I'm not sure what's going on, if you can reliably replicate it then set it up in an empty world and link it here :P
Rhaaka 18 Dec, 2020 @ 10:39am 
they were dropped by an ejector. with normal collectors they collect just fine, but with the gravity collectors, they stop floating towards the collector about 3-5m away the steel plates are just from vanilla SE. if I move the collector down, they get pushed away until they reach the same distance from the collector as before, but if I accelerate fast enough they get picked up.
Digi  [author] 11 Dec, 2020 @ 8:41am 
Sounds like a game bug, try the same steel plates that my mod can't collect with vanilla collector and it should be the same result.

See if you can find how those steel plates got spawned: dropped? container breakage? grinding with inventory full? etc, and bugreport it to devs :} ( support.keenswh.com )
Rhaaka 11 Dec, 2020 @ 8:23am 
Edit: but only sometimes, other times it collects them just fine
Rhaaka 11 Dec, 2020 @ 8:22am 
It seems to have problems collecting stacks of steel plates, do you know of any fixes?
Speed Racer-Zx10R 15 Nov, 2020 @ 2:20pm 
love this, so easy to eject my material verses connecting to storage holder, thank you for the nice mod
Digi  [author] 15 Mar, 2020 @ 3:07pm 
You can't expect mods to keep compatibility with that xD
But, feel free to download older versions from my github: https://github.com/THDigi/GravityCollector/commits/master and use as local mod (in %appdata%/SpaceEngineers/Mods/<ModName>/)
Reckless Laggard (Tirristhar) 15 Mar, 2020 @ 2:08pm 
kinda wish this still worked in DX9 32Bit Compatibility mode
TwitchingPsycho 24 Feb, 2020 @ 4:42am 
Finally updated the models, thank you so much!
The Nameless 5 Feb, 2020 @ 1:25pm 
I just realized what this is.

This is a...

Wait for it...

SPACE VACUUM!!!

Yeah, kind of an oxymoron. But that's what it IS!
The Nameless 5 Feb, 2020 @ 11:54am 
Wow. Works like a charm! I think I need to redesign my bow so that I only have ONE of them though. Having one mounted on each side results in my bridge being pelted with rocks, which then get stuck. XD
Rniessius 13 Nov, 2019 @ 9:20pm 
@Digi
I tested it on a planet and it works FANTASTIC! Just gotta set it up right. One of the most useful mods I have for this game now. Thank you very much! :D
Digi  [author] 10 Nov, 2019 @ 10:33pm 
@[1-7] Rniessius
It has no restriction on planets, only planet gravity strength dictates how useful they are, but frankly I've not really tested them there... worst case you'd need to use 200% strength xD
Rniessius 10 Nov, 2019 @ 4:12pm 
Can this be used on planets?
Alan_R_ 4 Nov, 2019 @ 7:42am 
doesnt move any trash from drones
Big145 7 Sep, 2019 @ 12:00pm 
So far so good. Haven't had an error yet.
Digi  [author] 6 Sep, 2019 @ 1:05am 
Oh I see the issue there, that error will be fixed. Not sure why it never happened to me as I loaded a world with ships that had grav collectors quite a few times.

I can't do anything about the game/steam's inability to download it xD
Big145 5 Sep, 2019 @ 10:01pm 
I had to delete and redownload 2 times to even get all the files to show up properly, but then I got this upon loading:

[21:56:12] Initialized
GameMode=Survival
OnlineMode=OFFLINE
Server=True
DS=False
Defined=STABLE,
[21:56:34] ERROR: System.NullReferenceException: block == null on entId=109735054322547995; modInstance=True
at Digi.GravityCollector.GravityCollector.SaveSettings()
at Digi.GravityCollector.GravityCollector.IsSerialized()


Your files are cursed, Digi.
Digi  [author] 5 Sep, 2019 @ 4:56pm 
That's a new one, it's also likely due to download issues and the usual DS failing to properly download mods on the first try (even if it says it downloaded it fine, I had that happen xD).

Does anyone still have the SE log for that failure to load? I would like it (or the errors from it) in order to figure out what happened :}

I just tested having a world with old gravity mod and then replacing the files with the new one and reloading, got no errors ( icon was hot pink for some reason, it got fixed on game restart), but that's in SP.

Pink construction model will be fixed soon.

Also sorry to whoever had the last comment, I accidentally clicked on the page exactly on the bin icon and it deleted it without confirmation :/
Big145 5 Sep, 2019 @ 10:31am 
I'm getting straight up "failure to load save" after removing the old collector, saving, reloading, placing a new collector, saving, and finally trying to load the save.
Kiithnaras 5 Sep, 2019 @ 8:06am 
Very much approve of the terminal sliders now as well. Ace job.
Kiithnaras 5 Sep, 2019 @ 8:04am 
Gorgeous new model. Unfortunately:
1) Attempting to load a world with existing gravity collectors causes a failure. It is necessary to unload the mod, load the world, save, and reload the world with the mod enabled. I also deleted the existing mod from the mod folder to force a new download to be safe.
2) Your construction model appears as a featureless purple cube for some reason.
Reckless Laggard (Tirristhar) 5 Sep, 2019 @ 2:33am 
yeah, sbc didn't update
Reckless Laggard (Tirristhar) 5 Sep, 2019 @ 2:04am 
5/16/2018 version - failed download (update)
Digi  [author] 5 Sep, 2019 @ 12:54am 
Updated models and code redesign so it has terminal UI and hidden saved settings (instead of in the terminal name).

There might be sync issues in MP, please tell me if you find any :}
TioTrix 11 Aug, 2019 @ 3:29pm 
ok nvm guess it works now.. i assorted my workshop many old stuff was there. now it works :D
Digi  [author] 9 Aug, 2019 @ 9:28am 
Can you try it again and if it's consistently doing it, can you send the world, that should be able to replicate it on my end and that'll allow me to find what causes it and therefore fix it :P
TioTrix 9 Aug, 2019 @ 7:03am 
dont have one because the game completly freeze. need to use alt+ f4
Digi  [author] 8 Aug, 2019 @ 10:42pm 
@TioTrix
The crash log will help.
TioTrix 8 Aug, 2019 @ 7:41pm 
my game crashed when i exit it without saveing. dont have this without the mod
Digi  [author] 13 Jul, 2019 @ 3:17am 
It works just fine here, I'll need more details if you want some fixes.
Nargle Eater 12 Jul, 2019 @ 10:30pm 
tried, mod does not work.
Dranseer 19 Jun, 2019 @ 5:26pm 
Is this mod still functioning?
Smart Bear 10 Mar, 2019 @ 5:48am 
Update the mod please.
Princess Celestia 12 Dec, 2018 @ 2:55am 
This ought to be a vanilla block with sliders for strength, cone radius, and cone range. Excellent work.
Mark F. Smith 16 Oct, 2018 @ 6:10pm 
Just a heads up btw. In-game mods list returns a blank "item #" for this, but it seems to still work.
Mark F. Smith 12 Oct, 2018 @ 3:36pm 
Any chance for a slightly longer pull ranger? :steamsad: Feels so puny.
Vas 17 Aug, 2018 @ 9:04am 
Any chance you can add a toggle option inside the mod to display its cone of effect for better placement of these?

And a power scale based on the strength and range settings? Perhaps even, a cone setting, so we can adjust the cone of effect.
jarhead 3 Aug, 2018 @ 9:04am 
Can you set this so that the angle is adjustable as well as the range (like the default grav gen).
Digi  [author] 3 Aug, 2018 @ 5:28am 
Nope he only changed the cone angle and range, he updated nothing.
yugomataio 3 Aug, 2018 @ 4:04am 
so the small collectors no longer produce Artificial Gravity :(
the guy may be a fraud who rereleased the mod but at least its being updated