Universal Stellar Gravity (Experimental, for 1.6B2)

Post about your finished mods here.
Post Reply
User avatar
Shrike
Fleet Admiral
Fleet Admiral
Posts: 2705
Joined: Mon Aug 17, 2009 4:27 am
Location: Scouting the borders of sanity (there's a lovely view of the abyss).

Fri May 01, 2015 11:32 pm

This mod adds gravity wells to all the stars in the game. I liked the way it worked in Eternity Port, so I figured it might be worth fiddling with...and since stars in this game are all defined in one XML, it was fairly easy to make them all have gravity and killzones.

This mod is not scientifically accurate (but then again, gravity behaves oddly in T anyway and we don't have proper orbital mechanics), but the general pattern is that larger, brighter stars have bigger gravity wells than smaller ones. It's not as complex as RPC's old Gravity mod: it just uses the system George added for white dwarf stars and applies it to everything else by over-writing the default stars. It's experimental, but I really like flying with it so I'm releasing it here (Attached below).

UniversalGravity.xml
(8.53 KiB) Downloaded 55 times
Known issues:

-If killed by a star, it will be indicated as "Killed by a (type G star)" or whatever. May be fixable in the future, might not be.
-Random crashes may occur in systems with larger stars: Any object spawned into the killzone of a gravity-well will immediately crash the game. The wells should be small enough that this doesn't happen, but it's a possibility. I cannot fix this.
-Larger ships may not be able to escape the pull of gravity because of low acceleration and capped top speed. This is due to the game not allowing a transfer burn to get into orbit at low altitudes due to the speed limits. Install a drive, or fly more carefully.
-The gravity warning sounds too early, and you don't get another one when you're close to the killzone. This is an engine problem that I cannot alter.
-Wrecks will be sucked in even if they're plot critical. Don't let the Svalbard die in heretic!
-Arms cache encounters are almost certainly going to be sucked into the star if they spawn close to it.
-Stations orbiting close to larger stars may be impossible to safely visit. This is due to a lack of testing of these larger stars. If this occurs, note the type of star and let me know in this thread: I'll retune the values for gravity based on feedback.




Hints for flying with stellar gravity

-Don't try sitting on stars to refuel with solar panels.
-Orbiting close to a star is good for a refuel, but beware enemies with momentum weapons or EMP
-Getting EMP'd near a star is an instakill.
-Likewise, shooting out the drive on a large ship will usually doom it if you can keep it down.
-Ships destroyed by gravity do not leave wrecks.
-Don't leave stuff in crates/wrecks near stars
-The AI in combat will usually avoid gravity wells.
-The "killzone" extends a certain distance away from the star, influenced by mass. With small stuff (red and white dwarf) you can get very close and still slingshot away. With larger stars, attempting a close pass will kill you. Try to avoid doing this.

Have fun!
Last edited by Shrike on Sat May 02, 2015 5:16 am, edited 1 time in total.
Your friendly local genderqueer weapons designer & forum moderator. My pronoun is "They".

User avatar
JohnBWatson
Fleet Officer
Fleet Officer
Posts: 1372
Joined: Tue Aug 19, 2014 10:17 pm

Sat May 02, 2015 12:53 am

The AI in combat will usually avoid gravity wells.
Just curious, how'd you implement this?

User avatar
AssumedPseudonym
Militia Captain
Militia Captain
Posts: 961
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

Sat May 02, 2015 1:11 am

 The AI avoids gravity wells by default (sometimes better than others). That’s more a question for George than Shrike.
Image

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)

bzm3r
Militia Lieutenant
Militia Lieutenant
Posts: 100
Joined: Tue Oct 23, 2012 2:38 pm

Sat May 02, 2015 2:15 am

Awesome!

User avatar
Wolfy
Fleet Admiral
Fleet Admiral
Posts: 5351
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.

Sat May 02, 2015 2:42 am

:D yay *installs*
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'hycrotan 'nonBinary))
Image

User avatar
Shrike
Fleet Admiral
Fleet Admiral
Posts: 2705
Joined: Mon Aug 17, 2009 4:27 am
Location: Scouting the borders of sanity (there's a lovely view of the abyss).

Sat May 02, 2015 3:35 am

JohnBWatson wrote:
The AI in combat will usually avoid gravity wells.
Just curious, how'd you implement this?

Pretty much what AP says....it's default behaviour. I'm just noting it so people don't try using it as a weapon. Freighters on routes may have trouble though.
Your friendly local genderqueer weapons designer & forum moderator. My pronoun is "They".

PM
Fleet Admiral
Fleet Admiral
Posts: 2239
Joined: Wed Sep 01, 2010 12:54 am

Sat May 02, 2015 12:51 pm

Shrike wrote:-If killed by a star, it will be indicated as "Killed by a (type G star)" or whatever. May be fixable in the future, might not be.
noArticle="true" works for stars.
Download and Play in 1.7 Beta...
Playership Drones v7 (Beta): Acquire and command almost any ship in Stars of the Pilgrim or Eternity Port.
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Relive classic arcade gaming in a new Transcendence adventure!
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.

User avatar
Shrike
Fleet Admiral
Fleet Admiral
Posts: 2705
Joined: Mon Aug 17, 2009 4:27 am
Location: Scouting the borders of sanity (there's a lovely view of the abyss).

Wed May 13, 2015 10:50 pm

Ok, I'm not moving this past experimentals at this time. There are some game-breaking bugs I can't fix (they're engine-side):


-Escort targets do not avoid gravity wells
-Many ships cannot avoid gravity wells because of capped speed and low TWR.
-Some plot-critical stuff isn't anchored against gravity (might be able to do something to this)
Your friendly local genderqueer weapons designer & forum moderator. My pronoun is "They".

Post Reply