Space Engineers

Space Engineers

Themis Stability Script (no longer supported)
65 Comments
DaMightyMage  [author] 16 Apr, 2018 @ 6:37pm 
That'd be because Space Engineers development has been going downhill for a few years now, and because Keen gave me a giant F*%& You when I complained about the removal of the GetFreeDestination function. Just tired of having to abandon projects and fix bugs every update.
Penis Compliance Officer 14 Apr, 2018 @ 1:08pm 
Whyyyy
DaMightyMage  [author] 26 Nov, 2017 @ 2:38pm 
I'm no longer supporting my Space Engineers scripts. Anyone who wishes to keep them going is welcome to use/modify the source code.
HighScorz 24 Nov, 2017 @ 3:32pm 
does this script still work? im getting compilation errors and it doesnt seem to recognise the remote control block
DaMightyMage  [author] 1 Jan, 2017 @ 3:37pm 
The script is in working order last time I checked, Saki. I don't plan to make any updates to it for a while, though.
Saki 22 Dec, 2016 @ 9:30pm 
any word on this awsome script
Shameless Gamer 17 Oct, 2016 @ 3:47pm 
THANK YOU FOR FIXING THIS MANY OF MY FAVORITE CRAFTS USE THIS.
DaMightyMage  [author] 12 Oct, 2016 @ 8:05pm 
I've also updated the Demo World, so all of the example ships on there should work once more. The new version of Themis also (hopefully) removes the need to manually set status logging to True or False. Themis will now search for an appropriately named textpanel and, if one is available, she'll log her status information to it automatically. Enjoy!
DaMightyMage  [author] 12 Oct, 2016 @ 7:51pm 
Sorry for the wait, everyone! I had hoped to incorporate the scripting API fix and some new features at the same time, but the API change proved to be a bit more complicated than I thought, and I've been really strapped for time. So until I get a handle on this, I've uploaded a temporary patch which makes Themis work again. See the changelog for more details. Stay tuned for a proper update... sometime in the next couple months. =P
DeathsEye 7 Oct, 2016 @ 12:59pm 
any news on this script working again? :) this was and still is one of my favorite scripts!~
DudemanGT 25 Aug, 2016 @ 6:59pm 
@DaMightyMage, Hope you feel better and things calm down.

And i really do think that would be a great feature! To have a way to set the angle with an argument instead of having to step it to where it needs to be. That way if, for example, John Doe's ship gets the best forward momentum with no load at 67 degrees and maximum thrust, he can save that command as a hotbar, as well as the return to 0 and 20% thrust to just hover.
DaMightyMage  [author] 25 Aug, 2016 @ 6:49pm 
btw, I will work on fixing Themis to function properly with the new scripting API in a couple weeks. Been both busy and sick lately. :(
DaMightyMage  [author] 25 Aug, 2016 @ 6:47pm 
@Dudeman, there's currently no way to go straight from any nacelle angle directly to 90 with one button press. If folks would consider that a useful feature, I may consider adding it in the future.
DudemanGT 24 Aug, 2016 @ 4:22am 
Redundant use of button is redundant
DudemanGT 24 Aug, 2016 @ 4:22am 
Hey Mage, is there a way to hotbar preset throttle and nacelle angles? The would be a great feature to hit a button and swing the nacelles to 90° with one button.
DaMightyMage  [author] 21 Aug, 2016 @ 2:17pm 
@lostsoul, thanks for the comment! I haven't tested Themis since the API changes, so thanks for poking me to go do that, and providing a starting point. ;)
lostsoul3471 17 Aug, 2016 @ 11:02pm 
Ha! Got it working! But I had to comment out the whole section that checks/handles groups, lines 839-885. Way cool script, but Clang will come for you in MP eventually. ;)
lostsoul3471 17 Aug, 2016 @ 9:47pm 
Stumbled across this as I was surfin for scripts, and just from the video, this is some pretty slick stuff. Unfortuately I think the code may be bit dated at this point after the couple API changes that Keen made. When I try and fire this up to test, I get a compile failure about block groups (something about missing using a assembly ot directive.) It could also not be compatible with the dev branch as well--dunno without firing up the stable branch. If that is the case, you may want to update the notes about this being for stable only.
Shameless Gamer 8 Aug, 2016 @ 11:14am 
i can tell this is going to work perfectly thamk you i was begining to think this didnt exsist
Raziel 18 May, 2016 @ 6:32am 
Please check out what works thanks to your help. Thanks again.
http://steamproxy.net/sharedfiles/filedetails/?id=686816877
Raziel 18 May, 2016 @ 12:22am 
Ah. ok. Thank you.
DaMightyMage  [author] 17 May, 2016 @ 4:32pm 
For that, you need a mod. There is no way to give scripts access to keyboard or joystick input without mods.
Check this mod out here: http://steamproxy.net/sharedfiles/filedetails/?id=655948251
Raziel 17 May, 2016 @ 6:28am 
My native Language is German.^^ And i need the Keyboard/Joistic Controll on attached components. So if i press Space they should give thrust.
DaMightyMage  [author] 17 May, 2016 @ 6:15am 
Once again, I don't understand your question. I'm guessing English isn't your native language, yes? Are you trying to control the thrusters attached to the rotor heads? What kind of control do you need?
Raziel 17 May, 2016 @ 6:01am 
It works (matze.Happy();) But one question. How can i controll thrusters behind Rotors? So if the thrusters behind the rotors Me Grid and if not caan i convert it to Me grid?
Raziel 16 May, 2016 @ 8:40pm 
Thank you verry much. you have help me a lot.
DaMightyMage  [author] 16 May, 2016 @ 8:21pm 
@Raziel, I think I understand now. The pendulums won't work. That was the first thing I tried when I was writing Themis, but they don't update fast enough and they give bad data. You really need to use the remote control block. Line 307 to Line 330 of my script uses the remote control to get pitch and roll. Try looking at that.

If you're trying to make the script rotate the engines, you just need to set the rotor position to match the pitch or roll reported by the remote control. Look at Line 589 to Line 596 in my script to see a simple example of how to control rotor angle. Good luck mate!
Raziel 16 May, 2016 @ 6:47pm 
Ok. I would build a ship with thrusts an motors there exaust alltimes show to the gravity however i roll or pitch the ship but i cant read from an remote block. So i must make it with pendels. I have write an simply script but i never lern programming rigth so i look at other scripts and uste this, what i understand. ive delate the ship soon but i build you an exemple to show you what i mean.
DaMightyMage  [author] 16 May, 2016 @ 4:44pm 
@Veritas, I don't plan to add gyroscope stability control as an option to Themis, since there are other scripts out there which do that and you don't really need both on the same ship.

@Raziel, sorry, I don't understand your question. Can you try to explain a little more clearly?
Raziel 15 May, 2016 @ 6:35pm 
Do you cna make so an script for Motor Connectet Thrusters too? i've test it wit two pendels (pitch, roll) and called by name motors so "if (roll < (curAng +0.025){ motor.SetValueFloat("Velocity" ,5.0)}" the same in the other right and axis and an toleranz to stop rotors if they nearby the same right. but ti dont works. Iman an beginner and dont have learn it right. I lern it with show ohter scripts.
Omega 13 May, 2016 @ 9:56pm 
Great mod but can you add the gyroscope stability option?
TX 7 Apr, 2016 @ 8:43am 
DaMightyMage: Thanks for the info m8. I guess i will have to look on. Atm its messy in atmosphere to have a stable mining platform, that stays leveled. Gyro or thruster, doesnt matter, but something to keep it from tiltning really would help.

Thanks for the fast reply btw :)
DaMightyMage  [author] 6 Apr, 2016 @ 4:18pm 
TX: Themis can't use body-mounted thrusters for balancing because they don't apply any torque, unless you have Digi's realistic thruster mod: http://steamproxy.net/sharedfiles/filedetails/?id=575893643 .
With the advent of manual locking of rotors and pistons, Themis is pretty much obsolete now.
TX 6 Apr, 2016 @ 3:27am 
To someone who uses this (or the creator): Is it possible to use this without the "rotor"-part?

As in, build a "normal" ship, that uses thrusters on the ship itself to balance this?
I was hoping to use such a script to balance a mining ship, so its always level with the horizon, for ex.
CazGrode 9 Mar, 2016 @ 11:07pm 
nice video :steamhappy:
DaMightyMage  [author] 17 Feb, 2016 @ 7:36pm 
Alrighty ladies and gentlemen! Themis v1.1 is now live! And along with her, I've uploaded a new demo world to give you some examples of how to set Themis up and use her features. Additionally, I finally got my screencapture program to cooperate, and the video tutorial is being uploaded as I type. Expect it to be live about an hour from now. Enjoy!! :steamhappy:
Eddy 16 Feb, 2016 @ 1:14am 
make power point presentation x]
DaMightyMage  [author] 15 Feb, 2016 @ 4:48pm 
Funnily enough, that's exactly what I'm using.
buder28 15 Feb, 2016 @ 3:42pm 
you can try OBS
DaMightyMage  [author] 15 Feb, 2016 @ 3:35pm 
Just in case anyone was wondering, I haven't published the tutorial video yet because my friggin' screencapture program won't capture the screen. Oh it works fine when I'm testing it, but as soon as I go for the real deal, nothing. I've got plenty of audio clips if anyone wants to hear me blab to a black background, though. =P
kris220b 12 Feb, 2016 @ 10:36am 
Thank the Omnissiah!
DaMightyMage  [author] 11 Feb, 2016 @ 2:55pm 
@Eddy, sorry for the wait! School semester started up so I've been a bit too busy to work on the demo video. I'll try to finish that up soon. Themis uses rotor- or piston-mounted thrusters to keep a grid level with respect to local gravity. It doesn't use inertial dampers, although turning those on will certainly make Themis work more smoothly.
Eddy 11 Feb, 2016 @ 2:07am 
Hi, im very interested in your script but im bit confused (waiting for example video =P pls include rotor setting if something). So in terms of roborics, is this a active balance system which is using thrusters to keep the balance? From what I understand the script is to keep balance according to the gravity pull, however I came to understand that it can enable inertia dampeners for thrusters rigged on rotor. Can you clear this out for me please? I would like to use it for my v-tol (as prefered) crafts and perhaps I could make my 'mech work in natural gravity =P
DaMightyMage  [author] 4 Jan, 2016 @ 4:02pm 
Ah, I understand. I've seen this issue before with torpedo ships. I'll see if there's anything I can do to work around it, but since it's a bug in the game itself, I doubt there's much I'll be able to do.
Trozzo 3 Jan, 2016 @ 11:49pm 
If you add more then a merge block on the same grid, groups will disrupt when merge blocks detach and the grid is divided. This happen when more then 1 merge block exist or when attaching on the main grid different grids that didn't exist before group creation.
That's a common issue. Groups still exist on different grids but if they share any element belonging different grids, once detached groups will disrupt and won't come back.
DaMightyMage  [author] 3 Jan, 2016 @ 7:49pm 
Trozzo, can you describe this issue with merge blocks? I haven't tested merge blocks with the Themis script.
Trozzo 23 Dec, 2015 @ 12:21pm 
OK... I was waithing for that by eras! If you mind that this script could work also with timers that group thrusers like "groups" does, you can solve also the issue of multiple merge blocks distrupting groups... and that will extend the usability of the script at infinite levels of creativity.
Anyway, subscribed and liked! GOOD JOB!
artiedee 20 Dec, 2015 @ 6:56am 
wow. gonna try it out!
DaMightyMage  [author] 19 Dec, 2015 @ 10:07pm 
The update to the example ship will have to wait a bit... having issues getting Steam to update it correctly.