Space Engineers

Space Engineers

310 ratings
[Obsolete] Natural Gravity - make asteroids have ship-pulling gravity
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Block, Script, Other, Obsolete
File Size
Posted
Updated
206.093 KB
19 Jan, 2015 @ 12:34pm
17 Mar, 2016 @ 2:50pm
48 Change Notes ( view )

Subscribe to download
[Obsolete] Natural Gravity - make asteroids have ship-pulling gravity

Description
Since the addition of planets in the game this is now obsolete
It should still work but there's no reason to work on it anymore XD


This mod enables the option to add natural spherical gravity to certain asteroids which basically turns them into planets/planetoids/moons but without atmosphere (you can use other mods to add skies and stuff).

Works on both DX9 and DX11.

The gravity itself is a custom spherical gravity generator (to enable proper walking) along with a script that pulls ships too without the need of mass blocks.

Asteroids not included :P but you can grab the Ebon Hawk.

If you have any issues or even suggestions, please post in the Discussions tab.

Configuring

Adding gravity to an asteroid is as simple as going near it and typing '/ng create' in chat, you must be the host or an admin to do this.

You can also edit things like strength, radius, toggle them on/off and remove them, type '/ng' to see all available commands.

Most commands are only for admins only, but some are available for players too, like '/ng settings'.

Additionally, the mod can automatically add gravity to asteroids with certain prefixes, by default 'gravity_' prefixed asteroids have gravity added to them.

You can rename asteroids but it involves renaming the .vx2 files and renaming them in the SANDBOX_0_0_0_.sbs file, if you don't know what you're doing then just use the commands.


Server-side config file

This mod has a server-side configuration file which is created when running the mod, this file only gets created and only works on the server machine.

Config is in: %AppData%/SpaceEngineers/Storage/378084827.sbm_NaturalGravity/config.txt
If you're running dedicated just go to /SpaceEngineersDedicated/Storage instead.
You can paste that path in a folder's address bar or in an open dialog for notepad or any text editor.

You can also change/save/reload/reset these settings in-game using the /ng commands.


Special rules for heavy objects

NOTE: All of these are configurable now in the server config!

Since a really heavy ship can't support itself by any block (literally melts under its own weight), this mod can apply less force to heavier objects.

By default, if an object exceeds 200,000kg (the gravitational mass of 4 large mass blocks) then the diference between its mass and the 200,000kg limit will be divided by 10 and added to the mass, exact formula: if mass > 200000 => mass = 200000 + ((mass - 200000) / 10)

So for an 500,000kg object, the mass used in the gravity calculation is 230,000kg so it will fall like an 230,000kg object. Or an 10,000,000kg object will fall like an 1,180,000kg object.

And like I said, you can edit these or even disable the behaviour in the server config (see above).


Effects on characters and jetpack

Players can be affected by gravity even with their jetpack on, in the server config file you can chose in what conditions they are attracted by gravity.


This affects gameplay, be prepared!

Even on 0.333G, if your ship does not have enough thrust to push against the gravity, it will be stranded.

For example, a 11,000kg small ship requires 4 small thrusters downwards to lift off in 0.333Gs.


Mass blocks

Mass blocks are affected in addition to the natural gravity because I'm using a game gravity generator for this.

If you want more weight to your cars in natural gravity you can add some mass blocks on them, but with the nice bonus of not floating away if they're turned off or run out of power.


Source code on github
https://github.com/THDigi/NaturalGravity


TO-DO
- DONE Make the gravity structure indestructible
- DONE Server-side config


Thanks
midspace - for their help on finding the center of asteroids.


Related mods
Enhanced Gravity Generators - pulling ships together, literally
Gravity Collector - pulls and collects floating objects
Popular Discussions View All (19)
21
6 Jun, 2015 @ 12:59am
Dedicated Server issue
Blazio
7
28 May, 2015 @ 10:48am
Gravity not affecting blocks...
NyxeonFox
6
24 Oct, 2015 @ 8:53am
Align Station grid
Arbiter
363 Comments
Victoria, Angel of the void 8 Jun, 2022 @ 11:17am 
Probably works better than actual planets.
:steammocking:
Fullercloth2201 28 Nov, 2021 @ 12:14am 
could still be used as you can make a real big asteroid witch has its own gravitational pull like irl
vizthex 4 Nov, 2020 @ 12:26pm 
it's hard to believe planets are already 4 or 5 years old, damn.
Novum33 22 Mar, 2020 @ 1:05pm 
please fix it
sakuhanaX3 18 Nov, 2018 @ 3:30pm 
doesent work :steamsad:
Renay Edor 3 Aug, 2018 @ 9:19pm 
Could you still update this? Even if planets make it defunct, asteroids with their own gravity is still semi-realistic, and as some others have said, their computers can't handle planets but still want the fun of fighting against natural gravity wells
Lysander 29 May, 2018 @ 2:51pm 
Please keep this going. My computer cant handle planets. This is the only way for me to simulate it...
Ducky 2 Feb, 2018 @ 5:43pm 
i wish this mod would update, had so much fun back in the day.
:(
Novum33 16 Jan, 2018 @ 5:10pm 
:(
Novum33 16 Jan, 2018 @ 5:10pm 
:(