![]() |
|
Whats the formula for travel time on SG Hyperdrives and Warp Drives? - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Help and Support (https://teamscm.co.uk/forum-8.html) +--- Thread: Whats the formula for travel time on SG Hyperdrives and Warp Drives? (/thread-3829.html) Pages:
1
2
|
Whats the formula for travel time on SG Hyperdrives and Warp Drives? - Tox - 26-08-2026 was wondering the formula on the above drives, as it would be useful for synchronizing jumps with a fleet of ships etc. RE: Whats the formula for travel time on SG Hyperdrives and Warp Drives? - Caprica - 26-08-2026 https://wiki.astralconstellation.space/index.php/Ship_Drives has the basics copied mostly from the entities page, however for the speciifc calculation: Destination, Angle Offset are the two important wire inputs. Destination is simply where the Hyperdrive will end up, the transportation vehicle of choice (e.g. warp_drive) will have its ents pos set to the Destination, Angle offset is not the absolute angle, but rather the warp drives angle + offset E.g. If you set the Destination value to (1000,0,0), and Angle Offset to (90,0,0), and the current pos is (0,1000,0 and angle is (45,0,0) then the new posistion/angle will be (1000,0,0) and (135,0,0) respectively. Actually calculating valid warp points is kind of tricky. KAISER and similar implement defined warp points, so they pick places in universe and always warp there. The issue is your ship may not fit, or may collide with another but its less of a problem on smaller ship. Larger ships have to employ complicated calculation methods. My starfall finds a random point in space, and checks to see if its in bounds, if it hits a planet, etc, etc. Its not so simple as it sounds as you have to factor in the ship size, but if you're new to starfall picking a spot from a predefined list, making a small-ish ship, and before warping seeing if anyone is there will get you 80% of what you want RE: Whats the formula for travel time on SG Hyperdrives and Warp Drives? - The17thDoctor - 26-08-2026 I think the question was to get the formula to calculate the time spent in hyperdrive / QSD / Warp. Its obvious that they depend on distance / speed but the exact formula would be abit annoying to find by measuring. RE: Whats the formula for travel time on SG Hyperdrives and Warp Drives? - Caprica - 26-08-2026 If someone does it, the energy cost would be nice to know, or if Person from above can give us the lua RE: Whats the formula for travel time on SG Hyperdrives and Warp Drives? - Tox - 27-08-2026 yeah, I dont wanna do the manual testing and just get the exact formula if it turns out to not be a linear scale in terms of travel time as thatd prob take forever RE: Whats the formula for travel time on SG Hyperdrives and Warp Drives? - Tox - 27-08-2026 (26-08-2026, 06:15 PM)The17thDoctor Wrote: I think the question was to get the formula to calculate the time spent in hyperdrive / QSD / Warp. Its obvious that they depend on distance / speed but the exact formula would be abit annoying to find by measuring. also yes, I forgot to add QSD in there too, I havent seen it used in ages but might as well just in case RE: Whats the formula for travel time on SG Hyperdrives and Warp Drives? - Caprica - 27-08-2026 I have done some math on the Hyperdrive and Warp Drive. The Hyperdrive and Warp Drive have different 'velocities' with 'Speed' not effect the Hyperdrive. The hyperdrive takes 2 seconds to enter and exit the window, and once in transit has a velocity of 1,230 hu/s. The Warp Drive is effected by 'Warp Factor' and has a 3 second warp in animation, and a 2.5 warp out animation. The velocity is not linear for the most part and if you map it to a polynomial you get -72 + 480x + 5x^2 hu/s where x is the warp factor. E.g. for warp factor 1 the velocity is 420 hu/s, and for warp factor 10 its 5240 hu/s. You can mostly use a linear scale if you want the variation is not that much. Both drives have an energy cost of 32,700 energy units regardless of speed, distance, etc. RE: Whats the formula for travel time on SG Hyperdrives and Warp Drives? - Caprica - 27-08-2026 Person has clarified that the energy usage is proportional to ship size, (I dont have the data for that). Hyperdrive range is 0 to 1, not 1 to 10, so the maximum velocity is 1,230 hu/s. I havent measured it below 1 RE: Whats the formula for travel time on SG Hyperdrives and Warp Drives? - Tox - 28-08-2026 (27-08-2026, 02:51 PM)Caprica Wrote: I have done some math on the Hyperdrive and Warp Drive. thank you for some general numbers on this, ideally most will be activating their drives at maximum speed outputs, and for the other reply in my testing the hyperdrive at 0.1 is slower than warp 1 by far, ill just post my raw numbers for travel between Earth and Hiigara, which i measured via comparing curtime when the Active output changes on FTL drives. but seeing as my suspicion is confirmed in terms of it not being linear, I am not sure how I should go about this. ideally most people in a fleet will be at max speed, but I would still need to get the slowest in a fleet of ships. Someone raised that a bit of delay would be fine not only in functionality, but it may look more interesting instead of every ship dropping out at the same time. BSG: 2.5049999440089s Hyperdrive @ 1: 16.994999620132s Hyperdrive @ 0.1: 133.75499701034s QSD: 18.73499958124s Ship Drive: 20.009999552742s Spore Drive: 5.9999998658895s Warp @ 9.975: 8.5499998088926s Warp @ 1: 43.604999025352s RE: Whats the formula for travel time on SG Hyperdrives and Warp Drives? - Person8880 - 28-08-2026 The answer to this is not to provide a formula that is subject to change, but instead a way to get the estimated travel time for a given position on every drive. Feel free to raise a suggestion on the issue tracker for that. |