Jump to content

Rooks

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by Rooks

  1. I'm not familiar with that profile as I like to write my own using TARGET, but I'm also not sure how this solves the problem of discrete switch positions being replaced by toggles. ie APUOn and APUOff bindings replaced with a single APUOn/Off
  2. I have to jump in here for a +1. I've just started flying the MiG-21 again, took a break for a few years when the switches changed to a toggle, and this is still bothering me. I hope there is a chance these can be reinstated alongside toggles, please?
  3. Count me in as interested. Would love to have a proper hat - the current one bugs me. Subscribed to this thread
  4. Most definitely this. You will be amazed by what the warthog is capable of with scripting, the GUI doesn't even come close. Layers, long/short press, chains, sequences and even logic flags... I did exactly this with no programming/scripting experience just hacking through the manual and help from forum members. Good luck
  5. Erjdriver if Target is used it essentially takes over your hotas there is no "pass through" commands. If you don't define it in target, it is exactly the same as it not existing. Kind of all or nothing
  6. +1 I remember learning everything from Ironhand back on Flanker 2.5 Very easy to listen to and explains what you are learning. Fond memories
  7. Thanks The profile works fine bar the drop. I've tried numerous ways PULSE, UP/DOWN, D() etc and can't get it to go. Positive its me - but i can't work out what it needs to be
  8. I've been learning how to script in TARGET and I'm pretty happy with things so far. My problem is that I can't seem to punch off the centreline droptank on the MiG. I've got the binding right and even shows correctly in game but the damn things are still being complete limpets :) I'm sure it's the way I've written it that's the problem but despite my ham-fisted tinkering can't get it right. The grand idea S3 - Short press - centre TrackIR Long press sequence 1: Drop Wingtanks Long press sequence 2: Drop Centretank Any help greatly appreciated :shocking: Be forewarned scripting format may not be up to standard. Some things are over automated/complex as I try out new things MiG-21Bis Profile.rar
  9. Yeah just finding that out. Still work in progress I guess - here's hoping
  10. I'm making a profile for my Warthog and I can't seem to find a button for the Radio Station Control Panel (RV13). I'd like to be able to map the MSU/MSD to change radio stations quickly if needed. Is there some buttons I'm missing in the keylist?
  11. I was looking for this answer also
  12. Ok that is pretty cool and helped a lot. Last bit is just working out how to avoid CHAIN() in an EXEC() for the sub mode and I think I'm there.
  13. You'll probably find most people make a profile to suit their needs seeing as there is quite a few differences between the sticks. I'm in the process of doing precisely that, it takes a while given that I'm currently still learning the scripting.
  14. I guess my scripting could use a bit of clarity :wassat: Yeah just found a ton of basic errors too. Embarrassing... The point of this is really a working tutorial for me not to be super efficient, but still. The thing I can't get on my own is the 2 weapon lists using 2 indexes for cycling AA or AG (I know I only have one index listed there atm.) and then how to call each one up. I've tried numerous ways and now just stuck. The logic flags I've made much more progress over the weekend since I posted. Kept going over the manual examples and am reasonably confident with those now :blink: EDIT: Simply could I call up the functions as so using if/else? (or similar) I'm just stuck on the syntax for this one. int AAWeaponselect, AGWeaponselect, index1, index2; AAWeaponselect = SEQ(AA1, AA2, AA3, AA4, AA1_2, AA3_4); //index1 AGWeaponselect = SEQ(B1_2, B3_4, B1_4, S1_2, S3_4); //index2 EXEC("if([color="Red"]xxxx[/color]) ActKey(index1 = (index1+1)%6); ActKey(KEYON+PULSE+X(AAWeaponselect, index1)); else ActKey(index2 = (index2+1)%5; ActKey(KEYON+PULSE+X(AGWeaponselect, index2));"); //if xxxx is true then use index1 else use index2
  15. Ok so diving in the deep end way over my head again :doh: I'm trying to have 2 master modes AA & AG with 2 subtypes SAR/IR and Bomb/Rocket. Each master mode limiting weapon selection to just cycling AA or AG using logic flags. There is probably numerous ways to do it but I'm trying to learn different things, so flags it is this time. I'm running into problems on how to use functions & indexes properly (mostly syntax problems) and then how to use them with if/else. ie bolded sections may have gone overboard on functions Also is there are any other suggested reading you would recommend? Snippet: ... char AirGroundMode; //Air/Ground Master Mode Flag char Bomb_Missile; // Submode Flag [b]int AAWeaponselect, AGWeaponselect, index;[/b] int AAWeaponListFor, AGWeaponListFor, AAWeaponListBack, AGWeaponListBack, SARMode, IRMode, AGMode, BombMode; int main() //Mastermode Flags - AA=1/AG=0; Bomb=1/Rockets=0 *********** AirGroundMode=1; Bomb_Missile=1; [b]// AA/AG Weapon Selection List **************** AAWeaponselect = SEQ(AA1, AA2, AA3, AA4, AA1_2, AA3_4); AGWeaponselect = SEQ(B1_2, B3_4, B1_4, S1_2, S3_4);[/b] [b]AAWeaponListFor = EXEC("index = (index+1)%6; ActKey(KEYON+PULSE+X(AAWeaponselect, index));"); AGWeaponListFor = EXEC("index = (index+1)%5; ActKey(KEYON+PULSE+X(AGWeaponselect, index));"); AAWeaponListBack = EXEC("index = (index+5)%6; ActKey(KEYON+PULSE+X(AAWeaponselect, index));"); AGWeaponListBack = EXEC("index = (index+4)%5; ActKey(KEYON+PULSE+X(AGWeaponselect, index));");[/b] // SAR Master Mode *********** SARMode = CHAIN(PULSE+AAModeSAR, D(), PULSE+ASPModeMissileRockets, D(), PULSE+ASPModeShooting, D(), PULSE+ASPMainModeAuto, D(), PULSE+ASPModeMissile); // IR Master Mode ************ IRMode = CHAIN(PULSE+AAModeIR, D(), PULSE+ASPModeMissileRockets, D(), PULSE+ASPModeShooting, D(), PULSE+ASPMainModeAuto, D(), PULSE+ASPModeMissile); // Rocket Master Mode ******** AGMode = CHAIN(PULSE+AAModeNeutral, D(), PULSE+ASPModeMissileRockets, D(), PULSE+ASPModeShooting, D(), PULSE+ASPMainModeAuto); // Bombing Master Mode ******* BombMode = CHAIN(PULSE+AAModeNeutral, D(), PULSE+ASPModeMissileRockets, D(), PULSE+ASPModeShooting, D(), PULSE+ASPMainModeAuto, D(), PULSE+TacticalCoverOpen, D(), PULSE+TacticalReleaseOn); [b]//Weapon Selection List**************************************** MapKey(&Joystick, H2R, EXEC("if(AirGroundMode) ActKey(PULSE+AAWeaponListFor); else ActKey(PULSE+AGWeaponListFor);")); // forward MapKey(&Joystick, H2L, EXEC("if(AirGroundMode) ActKey(PULSE+AAWeaponListBack); else ActKey(PULSE+AGWeaponListBack);")); // backward //*************************************************************** [/b] //China Hat MapKey(&Throttle, CHF, CHAIN(EXEC("if(AirGroundMode) ActKey(PULSE+SARMode); else ActKey(PULSE+AGMode);"), EXEC("Bomb_Missile=1;"))); //SAR or Rocket Select MapKey(&Throttle, CHM, 0); MapKey(&Throttle, CHB, CHAIN(EXEC("if(AirGroundMode) ActKey(PULSE+IRMode); else ActKey(PULSE+BombMode);"), EXEC("Bomb_Missile=0;"))); //IR or Bomb Select //EAC MapKey(&Throttle, EACON, CHAIN(PULSE+MasterAir, EXEC("AirGroundMode=1;"))); // , PULSE+TacticalReleaseOff, D(), PULSE+TacticalCoverClosed)); MapKey(&Throttle, EACOFF, CHAIN(PULSE+MasterGround, EXEC("AirGroundMode=0;"))); MiG-21bis.tmc MiG-21bis.ttm
  16. Thanks for having a look at that for me. That example makes it much clearer thanks!. I only have the manual to go from so its a bit of trial and error when I get to something I don't quite understand. Still, I'm really amazed by the potential of scripting your own profile. I'll have a bit more of a plug today and see how I go. Thanks again for the pointers Cichlidfan Edit: Thanks! Got it working, I understand how it works now, you're right I misunderstood the manual.
  17. Hi, -posted from simhq a little while ago but haven't had a bite from there. I'm trying to write my own scripts in Target for a DCS: MiG-21bis profile (Script Editor not GUI). I have no prior programming experience so this is quite challenging and rewarding in itself as I chip away. I'm trying to replicate the listmode code on pg. 51 of the manual where you can cycle a list back/forwards The problem is after compiling and attempting to run the script I get: Runtime Error: Symbol not found: _11__S3_4 in main ( line 11 in MiG-21bis.tmc ). Even a copy/paste of the manual code has this problem. So I'm stuck I have no idea how to fix this. Any help would be much appreciated I'll include my woeful work in progress :D MiG-21bis.tmc MiG-21bis-Macro.ttm
  18. Glad it helped. Figured there might be some variation
  19. Try setting the throttle to a slider and add a 30% curve. Works spot on for me
  20. Ok it's a bit dirty but setting the throttle to a slider with a 30% curve will do the trick.
  21. Yeah, I would like to use the detent/gate as well. No idea if I need to do anything special to get there. 90% setup time - 10% what could loosely be called 'flying' :music_whistling: Still loving the -21 though
  22. Beczl is working on fogging effects for the MiG-21 canopy Sent from my Nexus 10 using Tapatalk 2
  23. This is amazing! Thanks for this great mod. I've now gone from uncontrolled crashes in open terrain to controlled flight into buildings pushing my manoeuvring skills :D
×
×
  • Create New...