Jump to content

J900

Members
  • Posts

    73
  • Joined

  • Last visited

Everything posted by J900

  1. A few cockpit shots, still lots of work to do but getting there:
  2. Thanks, if this problem had not cropped up a lot of progress could have been made. Hopefully it can be sorted out...
  3. Unfortunately updating to 2.5.5 has created some unexpected problems mainly for systems code but otherwise progressing steadily.
  4. J900

    Hawker Sea Fury

    Ah ok that's more like how mine seems..
  5. Ahh that makes more sense, strange as still has issue with gear where gear is actually up but extends straight away without input. Tried changing the GEAR_STATE values around for post initialize function and even removed the GEAR_STATE = 1 value altogether but seems unaffected.. One thing i did notice was that when the gear state values were swapped around the gear was already in down position when air starting as opposed to lowering, can't seem to get the gear to stay in although once it has initially lowered it does function perfectly up and down afterwards ...:helpsmilie: Regards
  6. This code seemed to work well before updating, will give that a try.. dofile(LockOn_Options.script_path.."command_defs.lua") dofile(LockOn_Options.script_path.."devices.lua") local gear_system = GetSelf() local dev = GetSelf() local update_time_step = 0.01 local sensor_data = get_base_data() make_default_activity(update_time_step) local GEAR_COMMAND = 0 local GEAR_STATE = 0 local Gear = 68 --internal DCS ID local GearElem = 3001 -- clickable pointer element ID local GEAR_TIME_IN = update_time_step / 5 -- 5 reps sec. local GEAR_TIME_OUT = update_time_step / 3 -- 3 reps sec. local GEAR_TIME_PARAM = update_time_step / 2 -- 2 reps sec. local GEAR_WEIGHT = sensor_data:getWOW_LeftMainLandingGear() -- checks if gear suspension is in place, needed for ground check dev:listen_command(Gear) function SetCommand(command,value) local wowml = sensor_data.getWOW_LeftMainLandingGear() if wowml > 0 then if command == Gear or GearElem then if (GEAR_COMMAND == 0) then GEAR_COMMAND = 1 else GEAR_COMMAND = 0 end end end if command == Gear or GearElem then if (GEAR_COMMAND == 0) then GEAR_COMMAND = 1 else GEAR_COMMAND = 0 end end end function update() if (GEAR_COMMAND == 1 and GEAR_STATE > 0) then GEAR_STATE = GEAR_STATE - GEAR_TIME_IN end if (GEAR_COMMAND == 0 and GEAR_STATE < 1) then GEAR_STATE = GEAR_STATE + GEAR_TIME_OUT end set_aircraft_draw_argument_value(0, GEAR_STATE) set_aircraft_draw_argument_value(3, GEAR_STATE) set_aircraft_draw_argument_value(5, GEAR_STATE) end need_to_be_closed = false
  7. Hmmm gear is now up when air starting but extends straight away to lowered position and just blows up when starting from runway...:ranting:
  8. J900

    Hawker Sea Fury

    I already have it but does not look as good as on the above image! Colors seem more realistic..
  9. Other things i have noticed so far are model is rotated wrong way with no option to set it as before in export options so scenes will need rotating and landing gear is now up when should be down so that will also have to be changed..hopefully future sim updates wont affect things so much...:cry:
  10. The gun mount name i was using temporarily to set up the guns had been removed in the update so failed to load..
  11. Found the problem, working now.. :doh:
  12. Hoping someone might be able to help shed a little light on this, WIP Meteor was working fine until i updated to dcs 2.55 and even though i installed the latest edm tools and re exported the .EDM's dcs fails to load at all now? I was wondering if there were any other known issues with mods as a result of updating to 2.55. Thanks :joystick:
  13. J900

    Hawker Sea Fury

    The ground textures in the screenshot look good is there a mod to make them like that?
  14. Base gear, airbrake & flap systems are now working with clickable cockpit controls. Big thanks to Sirius.
  15. Got landing gear working at last :beer: now to get the remaining systems working and tailor them to the aircraft...:book:
  16. The guide is brilliant thank you!:thumbup:
  17. Thanks will get studying...:book:
  18. Ok thanks, this is how command_defs is currently. Have got the airbrakes, gear and flap levers working as clickeable in cockpit, just need to try figure out a basic working code and go from there. Keys = { PlanePickleOn = 350, PlanePickleOff = 351, PlaneFireOn = 84, PlaneFireOff = 85, PlaneFlaps = 72, PlaneFlapsOn = 145, PlaneFlapsOff = 146, PlaneGear = 68, PlaneGearUp = 430, PlaneGearDown = 431, PlaneAirbrake = 73, PlaneAirbrakeOn = 147, PlaneAirbrakeOff = 148, } start_command = 3000 device_commands = { flaps = start_command + 1; Gear = start_command + 2; Airbrake = start_command + 3; Button_4 = start_command + 4; Button_5 = start_command + 5; Button_6 = start_command + 6; Button_7 = start_command + 7; Button_8 = start_command + 8; Button_9 = start_command + 9; Button_10 = start_command + 10; Button_11 = start_command + 11; Button_12 = start_command + 12; Button_13 = start_command + 13; Button_14 = start_command + 14; Button_15 = start_command + 15; Button_16 = start_command + 16; Button_17 = start_command + 17; Button_18 = start_command + 18; Button_19 = start_command + 19; Button_20 = start_command + 20; Button_21 = start_command + 21; Button_22 = start_command + 22; Button_23 = start_command + 23; Button_24 = start_command + 24; Button_25 = start_command + 25; Button_26 = start_command + 26; Button_27 = start_command + 27; Button_28 = start_command + 28; Button_29 = start_command + 29; Button_30 = start_command + 30; Button_31 = start_command + 31; Button_32 = start_command + 32; Button_33 = start_command + 33; Button_34 = start_command + 34; Button_35 = start_command + 35; Button_36 = start_command + 36; Button_37 = start_command + 37; Button_38 = start_command + 38; Button_39 = start_command + 39; Button_40 = start_command + 40; Button_41 = start_command + 41; Button_42 = start_command + 42; Button_43 = start_command + 43; Button_44 = start_command + 44; Button_45 = start_command + 45; Button_46 = start_command + 46; Button_47 = start_command + 47; Button_48 = start_command + 48; Button_49 = start_command + 49; Button_50 = start_command + 50; Button_51 = start_command + 51; Button_52 = start_command + 52; Button_53 = start_command + 53; Button_54 = start_command + 54; Button_55 = start_command + 55; Button_56 = start_command + 56; Button_57 = start_command + 57; Button_58 = start_command + 58; Button_59 = start_command + 59; Button_60 = start_command + 60; Button_61 = start_command + 61; Button_62 = start_command + 62; Button_63 = start_command + 63; Button_64 = start_command + 64; Button_65 = start_command + 65; Button_66 = start_command + 66; Button_67 = start_command + 67; Button_68 = start_command + 68; Button_69 = start_command + 69; Button_70 = start_command + 70; Button_81 = start_command + 81; Button_82 = start_command + 82; Button_83 = start_command + 83; Button_84 = start_command + 84; Button_85 = start_command + 85; Button_86 = start_command + 86; Button_87 = start_command + 87; Button_88 = start_command + 88; Button_89 = start_command + 89; Button_90 = start_command + 90; Button_91 = start_command + 91; Button_92 = start_command + 92; Button_93 = start_command + 93; Button_94 = start_command + 94; Button_95 = start_command + 95; Button_96 = start_command + 96; Button_97 = start_command + 97; Button_98 = start_command + 98; Button_99 = start_command + 99; Button_100 = start_command + 100; Button_100 = start_command + 100; Button_101 = start_command + 101; Button_102 = start_command + 102; Button_103 = start_command + 103; Button_104 = start_command + 104; Button_105 = start_command + 105; Button_106 = start_command + 106; Button_107 = start_command + 107; Button_108 = start_command + 108; Button_109 = start_command + 109; Button_110 = start_command + 110; Button_111 = start_command + 111; Button_112 = start_command + 112; Button_113 = start_command + 113; Button_114 = start_command + 114; Button_115 = start_command + 115; Button_116 = start_command + 116; Button_117 = start_command + 117; Button_118 = start_command + 118; Button_119 = start_command + 119; Button_120 = start_command + 120; Button_121 = start_command + 121; Button_122 = start_command + 122; Button_123 = start_command + 123; Button_124 = start_command + 124; Button_125 = start_command + 125; Button_126 = start_command + 126; Button_127 = start_command + 127; Button_128 = start_command + 128; Button_129 = start_command + 129; Button_130 = start_command + 130; Button_131 = start_command + 131; Button_132 = start_command + 132; Button_133 = start_command + 133; Button_134 = start_command + 134; Button_135 = start_command + 135; Button_136 = start_command + 136; Button_137 = start_command + 137; Button_138 = start_command + 138; Button_139 = start_command + 139; Button_140 = start_command + 140; Button_141 = start_command + 141; Button_142 = start_command + 142; Button_143 = start_command + 143; Button_144 = start_command + 144; Button_145 = start_command + 145; Button_146 = start_command + 146; Button_147 = start_command + 147; Button_148 = start_command + 148; Button_149 = start_command + 149; Button_150 = start_command + 150; Button_151 = start_command + 151; Button_152 = start_command + 152; Button_153 = start_command + 153; Button_154 = start_command + 154; Button_155 = start_command + 155; Button_156 = start_command + 156; Button_157 = start_command + 157; Button_158 = start_command + 158; Button_159 = start_command + 159; Button_160 = start_command + 160; Button_161 = start_command + 161; Button_162 = start_command + 162; Button_163 = start_command + 163; Button_164 = start_command + 164; Button_165 = start_command + 165; Button_166 = start_command + 166; Button_167 = start_command + 167; Button_168 = start_command + 168; Button_169 = start_command + 169; Button_170 = start_command + 170; Button_171 = start_command + 171; Button_172 = start_command + 172; Button_173 = start_command + 173; Button_174 = start_command + 174; Button_175 = start_command + 175; Button_176 = start_command + 176; Button_177 = start_command + 177; Button_178 = start_command + 178; Button_179 = start_command + 179; Button_180 = start_command + 180; Button_181 = start_command + 181; Button_182 = start_command + 182; Button_183 = start_command + 183; Button_184 = start_command + 184; Button_185 = start_command + 185; Button_186 = start_command + 186; Button_187 = start_command + 187; Button_188 = start_command + 188; Button_189 = start_command + 189; Button_190 = start_command + 190; Button_191 = start_command + 191; Button_192 = start_command + 192; Button_193 = start_command + 193; Button_194 = start_command + 194; Button_195 = start_command + 195; Button_196 = start_command + 196; Button_197 = start_command + 197; Button_198 = start_command + 198; Button_199 = start_command + 199; Button_200 = start_command + 200; }
  19. Hi Sirius, thanks for your help. no luck yet! Checked the air brake animation on the model by dropping into the su25t and works ok and created an externalanimations.lua which now has the contol surfaces working well. The hold up now seems to be getting an initial control response to the main systems. Wouldn't have thought it would make a difference but i wonder if making a clickeable control lever would help?
  20. Hi, new to scripting & trying to get the airbrakes.lua to operate either on/off before trying to add parameters for extend time/effect etc bot so far no luck.. Command defs.lua PlaneAirBrake = 73, PlaneAirBrakeOn = 147 PlaneAirBrakeOff = 148, device.init.lua creators[devices.AIRBRAKES] = {"avLuaDevice" ,LockOn_Options.script_path.."Systems/airbrakes.lua"} airbrakes.lua dofile(LockOn_Options.script_path.."command_defs.lua") local dev = GetSelf() local update_time_step = 0.1 make_default_activity(update_time_step) local sensor_data = get_base_data() local Airbrake = 73 local AirbrakeOn = 147 local AirbrakeOff = 148 dev:listen_command(Airbrake) dev:listen_command(AirbrakeOn) dev:listen_command(AirbrakeOff) function SetCommand(command,value) if (command == AirbrakeOn) then dispatch_action(nil,iPlaneAirBrakeOn) elseif (command == AirbrakeOff) then dispatch_action(nil,iPlaneAirBrakeOff) end end need_to_be_closed = false -- close lua state after initialization Thanks.
  21. I had hoped to have cockpit textures finished finished by end of July to show finished vc but decided to make progress in other areas. Still a bit of work to do on them but not a great deal.
×
×
  • Create New...