Install Steam						
					
				
				
									login
											 | 
						language
						
																																					简体中文 (Simplified Chinese)
																													繁體中文 (Traditional Chinese)
																													日本語 (Japanese)
																													한국어 (Korean)
																													ไทย (Thai)
																													Български (Bulgarian)
																													Čeština (Czech)
																													Dansk (Danish)
																													Deutsch (German)
																																							Español - España (Spanish - Spain)
																													Español - Latinoamérica (Spanish - Latin America)
																													Ελληνικά (Greek)
																													Français (French)
																													Italiano (Italian)
																													Bahasa Indonesia (Indonesian)
																													Magyar (Hungarian)
																													Nederlands (Dutch)
																													Norsk (Norwegian)
																													Polski (Polish)
																													Português (Portuguese - Portugal)
																													Português - Brasil (Portuguese - Brazil)
																													Română (Romanian)
																													Русский (Russian)
																													Suomi (Finnish)
																													Svenska (Swedish)
																													Türkçe (Turkish)
																													Tiếng Việt (Vietnamese)
																													Українська (Ukrainian)
																									Report a translation problem
							
						
											

						
						
						





Hey, just figured I'd share what I needed your script for. Thanks again.
https://youtu.be/Fjx7adXu1sE?si=lVCmWRdE7j07LnaJ
Thanks for getting back so quick. Didn't expect it and it went over my head. I'll keep fiddling with it. I have a 6.3 million kilometers ship with I think... 36 large ion thrusters for forward thrust and only a few small ones for docking and final maneuvers in every other direction. It very much needs a script like this, and it also needs to be abortable both for combat and for asteroids. I sure don't know what I'm doing with C# to make it work my way, so I think I'm going to have to just use a timer to turn off gyro override and turn on thrust and just let that slide mentally as "this is the emergency button, you'll have to do a hard reset."
Still, if you're still updating/working on this I'll keep checking back. Thanks again. This is the only script I can find that does something like this.
But! It's not releasing control because it's trying to get your ship within .2 degrees of your original velocity before re-enabling all thrust. For some ships, this might be too narrow/too small of a tolerance.
Aside from slapping on more gyros, another thing to try:
1. Select the PB and edit its Custom Data
2. Add the following
cruiseMaxGyroError .05
3. Re-compile and try again. The number is the tolerance in radians. .05 radians is almost 3 degrees, which seems plenty tolerant.
Thanks very much for creating this, despite the issue.
At some point though, I started modding the game and adding my own Lua functions. I got tired of maintaining two branches of scripts (especially since they weren't public anymore in the first place). The scripts haven't been used in the vanilla game in a long while.