Meatsauce Posted May 8, 2012 Share Posted May 8, 2012 (edited) This is my first plugin, so please be gentle. ***Not Really Working As Of 10-1-12******Pending Redo***I followed the generic plugin tutorial, and then had to come up with an idea to script. I got to thinking how cool it would be have some audible feedback based on flight conditions. I found one example but it didn\'t work past .13Knowing very little of unity and C#, I sought out some help from the community in IRC, and managed to bug Innsewerants into helping out. So, a massive amount of credit needs to be directed at Innsewerants, who set this up for me, and really helped me grasp some best practices. I\'ve updated the plugin to include an on/off switch so annoying is no longer a factor. I also adjusted some of the landing values. Now, it won\'t trigger an audible alert unless death is imminent, and immediate action is required. Currently includes three audible warning triggers; [list type=decimal][li]Vessel altitude is < 200 meters plays 'Warning Tone' [/li][li]Vessel vertical speed exceeds -2 m/s and altitude is < 150m plays 'Whoop Whoop Pull Up'[/li][li] Vessel alt <120 and vspeed is not 0, plays landing tones [/li]A fourth sound for distress signalling has been added, but currently does not work correctly. ScreenshotsVideov.01 v.012 Also added system messages;ALL SYS NOMINAL - no detection / triggersTERRAIN - prints when height about ground level triggers audible alertPULL UP - prints when alert is triggeredORBIT OPS - Alt > 70k (I know, not very practical but an alert nonetheless) DISTRESS - triggered when the distress button is pressed, using this for a later idea (not working completely)Usage:For lack of blender skills, the part model is a copy of the Linear RCS module. Place the part on your rocket or space plane to enable detection and audio playback. Move the icon to the bottom of the stack so it gets activated first.Future Plans;[li]On/Off button and/or key[/li][li]Additional notifications[/li][li]Custom models for inline/radial use[/li][li]GUI / control panel[/li][li]Your ideas & suggestions...[/li]The source is included in the zip.License: Free to use as you wish, but please credit Innsewerants and Meatsauce.Notes: I should have a few new sounds in just a few days. I\'m open to all sorts of ideas so please make them known. I think I have an idea on how to keep her silent (vspeed 0) while you\'re motionless. (good for landings) - also, I acknowledge that the earlier name was Betty, for the name given to such systems; even though there are a mix of sounds in here.Update: 5-26-12 (released - attached to thread)[li]Added button to silence system[/li][li]Added sounds will not play when vessel is stationary[/li][li]Added two new sounds[/li][li]Added new messages[/li] Edited October 1, 2012 by Meatsauce Link to comment Share on other sites More sharing options...
Elven_sword Posted May 8, 2012 Share Posted May 8, 2012 Oh this is good! We used to have custom no-drag chutes for this, but this is much better. Best of luck in your plugging-in endeavours! Link to comment Share on other sites More sharing options...
Emilio Posted May 8, 2012 Share Posted May 8, 2012 Noooooooo I\'m just coding an Altitude Warning System !!! Anyway, yours looks great !But i\'ll release mine :-[ Link to comment Share on other sites More sharing options...
Blinkin Posted May 8, 2012 Share Posted May 8, 2012 This is very nice. I\'ve been using the chute version of this idea a while ago and it\'s very useful.These sounds make it even better! Link to comment Share on other sites More sharing options...
Meatsauce Posted May 9, 2012 Author Share Posted May 9, 2012 Glad you folks like it. 8) Link to comment Share on other sites More sharing options...
Meatsauce Posted May 9, 2012 Author Share Posted May 9, 2012 Noooooooo I\'m just coding an Altitude Warning System !!! Anyway, yours looks great !But i\'ll release mine :-[Definitely release it, and I wouldn\'t mind collaborating either. Still learning. Link to comment Share on other sites More sharing options...
TheCardinal Posted May 9, 2012 Share Posted May 9, 2012 I like it!One addition i would like to have is an audible warning when ten seconds or less of thrust remains. Link to comment Share on other sites More sharing options...
togfox Posted May 9, 2012 Share Posted May 9, 2012 Very nice. You could test for hot components. Collisions with satellites. Stage ready to fire. Circularisation complete and orbit achieved. Structural breaking of parts. All sorts of things! Link to comment Share on other sites More sharing options...
Meatsauce Posted May 10, 2012 Author Share Posted May 10, 2012 I like the temp sensor idea a lot.My only area where I struggle is looking up these \'calls\' and properly working the syntax for the variables. Any clue on a direction to follow? Link to comment Share on other sites More sharing options...
sgtblazing Posted May 10, 2012 Share Posted May 10, 2012 I would love to be able to change when the warnings go off. E.G. on the Noyuz you are supposed to fire a trio of retro rockets just before touchdown to slow your landing, an I always do it too soon. It would be great if right at 10m agl a buzzer would go off to alert me. Link to comment Share on other sites More sharing options...
Meatsauce Posted May 10, 2012 Author Share Posted May 10, 2012 I would love to be able to change when the warnings go off. E.G. on the Noyuz you are supposed to fire a trio of retro rockets just before touchdown to slow your landing, an I always do it too soon. It would be great if right at 10m agl a buzzer would go off to alert me.10m seems short, right now she\'s alerts at 400, and 200m ( & vspeed is > -2) - adding another alt isn\'t difficult though. I\'ll put it in. I do want to add a 'contact light' ...actually, there are a ton of things I want to add; it\'s only a matter of figuring them out. I started on the gui, and did manage to get it to work. I think I need a checkbox rather than a button since the button code I have is only momentary. I also want to include visual cues (STALL - MSTR CAUTION - BINGO FUEL... etc) to display on its own control panel. A radar altimeter readout & alerts would be helpful also. Thing is, what I have only works on active stage. Link to comment Share on other sites More sharing options...
Volt Posted May 10, 2012 Share Posted May 10, 2012 Would it be possible to include some sort of small visual cue/initial sound for when you\'re on your last RCS/Fuel tank, please? Maybe even It\'s a feature I requested directly to Harv and I think I got a response but it\'ll take a fair ole\' lump of time. Link to comment Share on other sites More sharing options...
sgtblazing Posted May 11, 2012 Share Posted May 11, 2012 Ohh, bingo fuel would be good. Calculate how much deltaV the engines produce along with the current mass of the craft. Then find out how much fuel you need to return to an orbit that will resolve in a landing without skipping out of the atmo. (say 30km.) MechJeb essentially has the equation you need for the deltaV calc, I just don\'t know it. Add in some leniency and you really have a bingo fuel warning system. Link to comment Share on other sites More sharing options...
Hadlock Posted May 11, 2012 Share Posted May 11, 2012 Mechjeb landing autopilot has a neat warning that will tell you if you don\'t have enough thrust to land.It would be neat to see some sort of similar warning (pull up!) if you begin to approach this scenario (i.e. you\'re coming in hot), giving you a chance to kick on (or up) the engines. Link to comment Share on other sites More sharing options...
Meatsauce Posted May 14, 2012 Author Share Posted May 14, 2012 Preview of whats in the next version. Pic:Vid: Link to comment Share on other sites More sharing options...
Kreuzung Posted May 14, 2012 Share Posted May 14, 2012 It could warn a bit earlier if going straight down, maybe if -vertical speed*x>altitude, with x being defineable in the GUI, so it whould warn us if we whould be dead in x seconds... Link to comment Share on other sites More sharing options...
Emilio Posted May 16, 2012 Share Posted May 16, 2012 Hmm... i\'m hearing DGIV warning sounds in this video Link to comment Share on other sites More sharing options...
Meatsauce Posted May 16, 2012 Author Share Posted May 16, 2012 hahaI broke the update, and will seek some help on it once .15 is released. Link to comment Share on other sites More sharing options...
Meatsauce Posted May 26, 2012 Author Share Posted May 26, 2012 Packaging an update to this today. Link to comment Share on other sites More sharing options...
Meatsauce Posted May 26, 2012 Author Share Posted May 26, 2012 Ok updated and available for download in the first post. I need some help in a few areas;[li]User Defined Alert Values[/li][li]Radar Altimeter Readout[/li] Link to comment Share on other sites More sharing options...
rustymcclintock Posted July 1, 2012 Share Posted July 1, 2012 For a first its not bad at all. I don\'t like the audio quality but its more of a proof of concept anyway. Please make a better, more awesome version with different tones for things like;Your ship has been set on an intercept trajectory (or will fall into kerbin\'s atmos) plays a quick 3-5 tone alerting beat. no big deal.Your ship has entered the 40 km range on impact trajectory. more warning.Your ship has lost an engine or has been damaged. plays an appropriate AlertLife support has been damaged. ECTI would love to see this fleshed out. Link to comment Share on other sites More sharing options...
Meatsauce Posted July 5, 2012 Author Share Posted July 5, 2012 For a first its not bad at all. I don\'t like the audio quality but its more of a proof of concept anyway. Please make a better, more awesome version with different tones for things like;Your ship has been set on an intercept trajectory (or will fall into kerbin\'s atmos) plays a quick 3-5 tone alerting beat. no big deal.Your ship has entered the 40 km range on impact trajectory. more warning.Your ship has lost an engine or has been damaged. plays an appropriate AlertLife support has been damaged. ECTI would love to see this fleshed out.Thanks for the insight. I\'m going to revisit the concept after .16 is out Link to comment Share on other sites More sharing options...
lanka Posted July 27, 2012 Share Posted July 27, 2012 OT: I don\'t know why, but when I skimmed through the plugins forum and read this one, I got mental picture of craft sitting on ground with nice low tone ping ping ping going on for driver\'s door being open. (Like in cars, if you don\'t get it)/OT.Proof of concept, you can only improve on that. Link to comment Share on other sites More sharing options...
Meatsauce Posted July 28, 2012 Author Share Posted July 28, 2012 OT: I don\'t know why, but when I skimmed through the plugins forum and read this one, I got mental picture of craft sitting on ground with nice low tone ping ping ping going on for driver\'s door being open. (Like in cars, if you don\'t get it)/OT.Proof of concept, you can only improve on that.lol no, I get you perfectly. HAHA!A friend had a Nissan sentra and it had this silly little buzzer. bzzt...bzzt Link to comment Share on other sites More sharing options...
Lazurkri Posted July 31, 2012 Share Posted July 31, 2012 lolz, my car has a annoying buzzer just like that sentras.Would it be possible to add another computer voice message, but this one somewhat more... pithy?Essentially, if you are going above 275 meters and going more than, say 500 meters a second, which normally means you\'re going to crash, could you add the message 'Warning, warning; you\'re hosed, you\'re hosed'? ( Personally, I\'d prefer ' You\'re F----ed' instead of ' you\'re hosed')This would purely be for the lolz of course, but I\'ve played modded flight simulators before where the modders add in little pithy messages like ' Terrain, Terrain; You\'re screwed, you\'re screwed' when going to crash, so I thought it\'d be funny to have something like that added in. Link to comment Share on other sites More sharing options...
Recommended Posts