Avorion

Avorion

Not enough ratings
Braking Distance Display
   
Award
Favorite
Favorited
Unfavorite
Mods: Mod
File Size
Posted
Updated
38.630 KB
30 Sep, 2021 @ 5:29am
4 Oct, 2021 @ 11:37am
4 Change Notes ( view )

Subscribe to download
Braking Distance Display

Description
Displays the current braking distance below the velocity bar.

  • 1.0 Release
  • 1.1 Added Icons and Sound when on a collision course with an object
    • Yellow: the object is within twice the braking distance, slowing down or adjusting course recommended
    • Red: the object is within braking distance, unless you execute evasive maneuvers, a collision is very likely
    • 1.1.1 Added options tab in the player menu (default: P)
      • added option to turn off the alert sound
41 Comments
Enlonwhite 24 Aug, 2023 @ 2:50am 
You know this idea of braking distance is actually really good, I like it!
thelich 29 Jul, 2022 @ 5:50am 
@Sineme Looks like brake thrust is greater when ship velocity exceeds it's maxVelocity (i.e. when boost is active). Aprox. by 1.7 (may depend on ship mass).
Kirona 28 Nov, 2021 @ 5:26pm 
Just to be absolutely sure I ran a few tests with only your mod active on a new save - I used Creative to build but installed no subsystems or anything.

At 170% engineer workforce, a deceleration rate of 48.4m/s2, and a boosted speed of 3934m/s I got an estimated 159.92km stopping distance but stopped in about 34km.

I also tested the workforce by taking the same ship and cutting down to 100% workforce. Deceleration still 48.4m/s2, boosted speed was 2316m/s, mod said I'd need 55.43km to stop and I stopped in a bit under 13km.

I do think the low brake force is contributing though - I slapped on a huge inertial dampener and tested again and got a much better result. At a speed of 2315m/s and a deceleration rate of 254.4m/s2, the mod said I'd need 10.54km to stop and I stopped in about 9km. Still not *exact* but close enough that I'd never notice outside of specifically testing things.
Sineme  [author] 28 Nov, 2021 @ 2:02am 
I tested velocity bypass system and increased workforce at 8k m/s, 4k m/s and 1k m/s with a brake thrust of 450 m/s² in all cases the braking distance was as (in)accurate as I expected it to be (i.e. off by a few km) but not 140km like in your case. Maybe it is inaccurate due to the low decceleration, I will have to test that later. Also the engineers didn't make a difference in decceleration but I wasn't sure when I replied to you.
Kirona 27 Nov, 2021 @ 4:34pm 
Since I can't edit my comment I wanted to add on, does a higher engineer workforce also impact acceleration/deceleration or just max speed?
Kirona 27 Nov, 2021 @ 4:33pm 
I use a number of mods but nothing that touches velocity/acceleration/deceleration. I'm also not using any speed-adjusting systems, including the Velocity Security Control Bypass.

My ship has been edited a bit since last night but I did another test. I have engineers at 194% workforce, and with a velocity of 4216m/s (boosted to max) and a deceleration of 50.4m/s2 listed in the build menu, this mod claim a braking distance of 176.36km. Actual braking distance was closer to 38km.

Without boosting I had a velocity of 1053m/s (which fits the build menu's max velocity of 542m/s and my engineers at 194%), deceleration still 50.4m/s2, and the mod showed a braking distance of 11km when I braked in about 8km. So it looks like it gets dramatically worse while boosting or traveling at higher speeds.
Sineme  [author] 27 Nov, 2021 @ 5:01am 
@Kirona, wow, I totally missed adding the description.
150km sounds like a lot. I haven't tested the mod with Velocity Security Control Bypass Systems. What was your velocity and what is your decceleration? Are you using mods that increase velocity/accelleration/decceleration or add systems that do? Or were you using vanilla Systems that alter these values? Do you have more Engineers, i.e. >100% efficiency?
Kirona 26 Nov, 2021 @ 10:37pm 
I'm getting some seriously inaccurate distance values. A test I did just now displayed a braking distance of over 150km, but I actually came to a stop in about 35km. The visual warnings also don't have a working text description, it's just BrakingDistanceDisplay3 or BrakingDistanceDisplay5.
Aranos 5 Oct, 2021 @ 1:52pm 
The issue does not occur for me anymore. So my find was correct and my modconfig was the problem.
Aranos 5 Oct, 2021 @ 10:16am 
I will test it later but I think the issue was more with how I configured the modconfig.lua and how it was used. As you can see in the path I posted it was using \ and / and combining both is not a good idea. I think this might be a bug in Avorions path validation code as I didn't put the paths manually but it combined the two formats by itself.
Now the mod is loaded from //G//Steam//steamapps//workshop//content//445220//2615158540 (I guess the // are for escaping purposes) so only / is used.