Space Engineers

Space Engineers

Not enough ratings
Talaria Thruster Power Management
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
812.900 KB
25 Sep, 2015 @ 2:01pm
1 Change Note ( view )

Subscribe to download
Talaria Thruster Power Management

Description
In Greek mythology, Talaria were winged sandals that granted the wearer great speed and the power of flight. And now, we at Mighty Mage Industries have harnessed this awesome Divine power to give your ships the stellar performance they deserve.

Pretty much every conventional-drive ship reserves some reactor power for turning -doing otherwise puts your reactors in overload, draining the thrust of all of your engines and killing your maneuverability. But reactors are heavy, so every kilowatt you don’t use is just dead weight slowing you down, only useful in a turn. If only we could cut that margin down a bit -have the power for turning when we need it, but not have to carry all that spare reactor weight around when we don’t need it!

Enter the winged sandals.

The Talaria script gives you the ability to run your ship on a tighter power budget by shifting power around when and where you need it most. When Talaria detects that your reactors are overloaded, like in a high-energy turn for instance, it steals power from a few user-selectable forward thrusters and gives it to the maneuvering thrusters. Talaria takes only just enough power to get out of overload, reducing the forward thrust slightly but ensuring your maneuvering thrusters get all the go-juice they need. When the turn is done, Talaria returns that power to the forward thrusters, and off you go!

Talaria allows ship designers the freedom to give their ships a much smaller power reserve than most conventional ships would need -which means they can be lighter, faster, and more maneuverable than their over-budgeted brethren. And in a race or a dogfight, that little extra edge can mean the difference between glorious victory and crushing defeat!


Installation Instructions:
1) You’ll need a programmable block, of course, and a timer block set up to Run on the programmable block (no arguments) and Trigger Now on itself.

2) Set up the thrusters you want Talaria to steal power from by naming them individually or adding them to a group (you can set the name inside the script). Normally this would be some of your forward thrusters. Remember that Talaria doesn’t make extra power, it just redistributes power more efficiently, so if you want it to work properly you need to give it enough thrusters to steal from that it can balance out any demand it might see.
---For example, if you have six forward thrusters and two side thrusters and you want to make sure the side thrusters get all the power they need while turning, you would need to give Talaria at least three forward thrusters to work with. (2 side thrusters * 1.5 normal power for inertial damping = 3 normal thrusters’ worth of power).

3) You’ll need to set the power threshold that will tell Talaria to release control of your thrusters. This is what power levels drop to after you’ve completed your maneuver, and depends on how many turning thrusters you have. This parameter is set inside the script, and it’s very easy to find so don’t let the code scare you if you’re not familiar with scripting! I find that 92% works well, but you’ll want to tailor it to your own ship for best results.
---Note: I recommend that you have at least 3% reserve power left on your reactors when running all your forward thrusters at once. Talaria won’t do you much good if you’re in overload all the time!

4) Start the timer block, and fly!

CAUTION: If you set all of your forward thrusters to be controlled by Talaria, your ship may not decelerate immediately when you release the forward key. This is because scripts currently can't read keyboard input, so Talaria has to guess what you want to do by your ship's power demand. If you give Talaria all of your forward thrusters, it can't make a good guess, and there might be a 2-3 second delay before it hits the brakes.


Want an example of how Talaria works? Check out the Hermes racer that uses this script:
http://steamproxy.net/sharedfiles/filedetails/?id=524583940


-- Special thanks to Craig Perko, who graciously provided some of the utility functions that make this thing go. Check out his page!
http://steamproxy.net/profiles/76561198015244798/myworkshopfiles/?appid=244850


Known Bugs/Issues:
1) No support for batteries -- Unfortunately there is an issue with how batteries report their power output that sometimes causes Talaria to stutter, or flash the engines on and off very quickly. Until I figure out why, Talaria won't work with ships that only use batteries. (If you use a mix of batteries and reactors, that should work fine).

Found a bug? Tell me in the comments below! And please, try to give me as much detail as possible about what you were doing, what happened, and how your ship is configured. That will really help me figure out what’s wrong and how to fix it!

Happy flying!
13 Comments
MCzenman 6 Aug, 2020 @ 8:09am 
No longer works.
Program(49,74): Error: 'IMyBlockGroup' does not contain a definition for 'Blocks' and no accessible and no accessible extension method for 'Blocks' accepting a first argument of type 'IMyBlockGroup' could be found (are you missing a using directive or assembly reference?)
toxikaraidur 10 Apr, 2020 @ 6:14am 
Good concept overall, I like it. I came here hoping to find a mod that could maybe act as a dimmer switch for the power applied to thrusters on a scale of 1 (10%) to 10 (100%). Ever tried to build a massive cargo ship planetside? i had to calculate the minimum number of thrusters for the maximum amount of cargo i wanted to carry. now the ship slams on the speed at 50 m/s at a tap of the buttons and makes docking a pain in the backbone.
. 17 May, 2019 @ 8:09pm 
is there going to be an updated version?
jokerace45 6 Nov, 2015 @ 4:33pm 
Ok, Tnxs for the info.
DaMightyMage  [author] 6 Nov, 2015 @ 3:30pm 
Hopefully the Devs will add keyboard input to the scripting API someday...
DaMightyMage  [author] 6 Nov, 2015 @ 3:29pm 
I did some further testing and confirmed that giving Talaria all of your forward thrusters WILL cause a delay in slowing down when you release the forward key. This is because Talaria can't read keyboard input, so it relies on the drop in power demand from the manually-controlled engines to know when to stop overriding thrusters and hit the brakes.

It will recover after 2-3 seconds, so if that delay doesn't worry you, then you're good to go! Otherwise, I'd recommend leaving at least one forward thruster under manual control to ensure a snappy response.
jokerace45 5 Oct, 2015 @ 8:42pm 
Oh i didn't sue it that way yet. But I figured power taken from 20 thrusters is better than 5 or some such. Considering my side thrusters are 8 in number.
DaMightyMage  [author] 5 Oct, 2015 @ 8:35pm 
Wow, that's quite a bit more than I expected anyone would use. I'm pleased it's working for you! I'll do some more testing and see if I can find any issues with that method. =)
jokerace45 4 Oct, 2015 @ 7:51pm 
Well actually I gave all foreward and reverse thrusters to Talaria for any needed pwoer for turning. I figured the mroe I gave to to use for possible needed pwoer in a side thruster turn the less of a noticeable effectit will have of a power drain from those drainable thrusters. I have twilve rear foreward thrusters and six front reverse thrust thrusters. Those are just the large thrusters. I also gave all the small thrusters to Talaria.
DaMightyMage  [author] 2 Oct, 2015 @ 10:03pm 
Yep, that's how thrust override works. If you override the thrusters on one side, the opposite side won't give you inertial dampening. Now, Talaria only overrides thrusters when it has to, so for normal flying you would never notice that this happens.

So, if you told Talaria to override, say, your right-side thrusters, then anytime you're in reactor overload (and Talaria is working its magic) your left-side thrusters would provide no inertial dampening. As soon as you come out of overload, Talaria releases control and your dampening is back to normal. Usually this wouldn't be a problem because the side Talaria is throttling is the same direction you're traveling. Are you doing something different?