<>Crippler<> 0 Posted December 15, 2003 Hey Sorry if this has already been posted, but I've searched for what I need and with no luck, but apologies if its already been said. I'm having problems with a few instruments in my aircraft's cockpit- namely the radar altitude, the second rpm gauge and the vertical speed indicator. I've made these instruments just like I've done the other ones that work (e.g. the speed dial, clock), but they simply dont work The needle, that I created in O2, just isnt there on them. I've got all the needle's and their according axis in the Pilot view LOD. Here's what I've got in the config.cpp- class IndicatorSpeed { selection = "speed"; axis = "speed axis"; angle = 350; min = 10; max = 150; }; class IndicatorAltRadar { selection = "nm_alt"; axis = "osa_nm_alt"; angle = 350; min = 0; max = 340; }; class IndicatorRPM { selection = "rpm"; axis = "osa_rpm"; angle = 100; min = 0; max = 1; }; class IndicatorRPM2 : IndicatorRPM { selection = "rpm2"; axis = "osa_rpm2"; angle = 270; min = 0; max = 1; }; class IndicatorWatch { hour = "hodinova"; minute = "minutova"; axis = "osa_time"; reversed = false; }; class IndicatorCompass { selection = "kompas"; axis = "osa_kompas"; angle = -360; min = -3.1415926536; max = 3.1415926536; reversed = true; }; class IndicatorVertSpeed { selection = "vert_speed"; axis = "osa_vert_speed"; angle = -360; min = -45; max = 45; }; so the ones in bold are what I'm having trouble with- I've made sure that all the selections are named right etc, so I dont know what I'm doing wrong I've even tried putting their axis in the memory LOD, but still to no effect. Hope someone can help me Crippler Share this post Link to post Share on other sites
hardrock 1 Posted December 15, 2003 IndicatorRPM2 doesn't exist, unfortunately  at least it doesn't seem to work The other ones... I don't know, be sure they aren't in any hiddenSelections Array or something like that Do the instruments appear in the buldozer window? Share this post Link to post Share on other sites
BraTTy 0 Posted December 16, 2003 They look correct and I know you know what you are doing,should only need these gauges in the view lods I would try changing the values "angle" mainly,I have seen messing with these causing them to stop working But even the "min" and "max" settings Heres some from the F4U: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class IndicatorVertSpeed { selection = "vert_speed"; axis = "osa_vert_speed"; angle = 360; min = 8; max = -8; }; class IndicatorAltRadar { selection= "alt"; axis= "osa_alt"; angle= -360; min= 0; max= 304; }; Share this post Link to post Share on other sites
Trenchfeet 0 Posted December 16, 2003 I've nerver had the RPM gauge work? maybe it doesn't work with planes Share this post Link to post Share on other sites
<>Crippler<> 0 Posted December 16, 2003 Well the first rpm gauge works- I've got it as a throttle lever I wasnt sure it you could have a second rpm though- I think that must just be helicopters. @hardrock -they're not hidden selections or anything weird , just normal selections in O2- they show up in buldozer, so I assume it must be a problem with the cpp. I've tried making the angles as Trenchfeet suggests, but still to no avail I'll keep messing round though- and post the solution in here if I'm successful Share this post Link to post Share on other sites
hardrock 1 Posted December 16, 2003 I meant in the cpp: is there an array called hiddenSelections? Share this post Link to post Share on other sites
<>Crippler<> 0 Posted December 16, 2003 Yep there are some hidden selections on the aircraft- but nothing related to the instruments in any way- not even anything in the view Pilot LOD Share this post Link to post Share on other sites
hardrock 1 Posted December 16, 2003 Strange One last I can think of: Did you check the axis of the indicators? Sometimes you apply unintended 3 points to the selection, then the cursor will rotate on a different axis.... Share this post Link to post Share on other sites
Footmunch 0 Posted December 17, 2003 Crippler Don't define the needle selections in CfgModels or in the hiddenSelections - the game engine picks them up automatically (like klapka and vejskovka). IndicatorRPM should work, but RPM2 _does not_ work on planes (and believe me, I've tried) - like there's only one gun on planes, there's only one engine, AFAIK. If the needles have disappeared in game, that would suggest that the axes are badly defined and they are actually rotated somewhere you can't see. Check that you only have two points in the axis selection that are perpendicular to the needle, and that you are using the same name in the LOD and the CPP (check for underscores '_'). If the game can't find the axes, it will rotate the needles around the centre of mass (or zamerny, I think). The angle value is the amount that the needle goes round (ie 360 is a full circle). The min and max values depend on the value being indicated. Share this post Link to post Share on other sites
Trenchfeet 0 Posted December 18, 2003 Quote[/b] ]I've nerver had the RPM gauge work? maybe it doesn't work with planes woops hope that didn't confuse the topic  it should have been RPM2 And i havn't had it work since then  Share this post Link to post Share on other sites
<>Crippler<> 0 Posted December 18, 2003 ok I've realised what I've done wrong and its rather a stupid mistake- on the 'faulty' instruments, the needle was actually behind the face with the instrument texture- I didnt see this in buldozer as the textures sometimes come through each other,as seen in this case Thanks for your help though anyway guys -at least I've learnt a bit more about indicators from this problem sorry it was a fault on my part though. Thanks Crippler Share this post Link to post Share on other sites