hreich Posted September 24, 2015 Posted September 24, 2015 Does anybody know why am i getting this error [sIGPIC][/sIGPIC] Pilot from Croatia
Ripcord03 Posted September 24, 2015 Posted September 24, 2015 is the script on the right the file listed in the error? also, could you upload the script so i can take a look at it? could be as simple as a missing } or ;
hreich Posted September 24, 2015 Author Posted September 24, 2015 (edited) Yes in that print screen is the whole script for my clean configuration..wit the posibikity to turn led on/off... The other example here is for my a-10c profile Here is script : include*"target.tmh" include*"DCS A-10C TM Profile PhoenixBvo.ttm" define*DEBUG_MODE*1*// 0 or 1 int*sensitivity;*// stores slew control sensitivity reduction // Function toggles slew control SCX SCY sensitivity in a cycle of 0 to -1 int*ToggleSensitivity() { *****sensitivity = sensitivity +1; ****if*(sensitivity >*2) *********sensitivity =*0; ****//sensitivity = !sensitivity; ******** ****if*(DEBUG_MODE)*****printf("Toggle Sensitivity to %d\xa", -sensitivity); ****SetSCurve(&Throttle, SCX,*0,*0,*0,*0, -sensitivity); ****SetSCurve(&Throttle, SCY,*0,*0,*0,*0, -sensitivity); }; int*Flash3; int*main() { ****/////////////////// Setup and initialisation /////////////////// ****Exclude(&HCougar); ****Exclude(&T16000); ****Exclude(&LMFD); ****Exclude(&RMFD); ****if(Init(&EventHandle))*return*1; ****SetKBRate(100,*60);*// Keyboard pulse and delay times in ms ****SetKBLayout(KB_ENG); ****SetShiftButton(&Joystick, S4,*0,*0,*0,*0);*// Pinky paddle as shift modifier for all layers ****ActKey(PULSE+KEYON+LED(&Throttle, LED_INTENSITY,*64));*// set Throttle backlight power to low ****ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1));*//set LED 1 OFF ****ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED2));*//set LED 2 OFF ****ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED3));*//set LED 3 OFF ****ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED4));*//set LED 4 OFF ****ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED5));*//set LED 5 OFF ****/////////////////// Joystick button mapping /////////////////// ****MapKey(&Joystick, TG1, TriggerStage1); ****MapKey(&Joystick, TG2, TriggerStage2); Flash3 = CHAIN( LED(&Throttle,LED_ONOFF,LED_CURRENT^0x333338),D(500), LED(&Throttle,LED_ONOFF,LED_CURRENT^0x333338),D(500), LED(&Throttle,LED_ONOFF,LED_CURRENT^0x333338),D(500), LED(&Throttle,LED_ONOFF,LED_CURRENT^0x333338),D(500), LED(&Throttle,LED_ONOFF,LED_CURRENT^0x333338),D(500), LED(&Throttle,LED_ONOFF,LED_CURRENT^0x333338),D(500) ); ****MapKeyIO(&Joystick, S1, ********SEQ(*//open the sequence ********CHAIN( ************EXEC(*// Curve 1 ****************"SetSCurve(&Joystick, JOYX, 0, 0, 0, 1, 0); SetSCurve(&Joystick, JOYY, 0, 0, 0, 1, 0);" ************), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1) ************), ********CHAIN( ************EXEC(*// curve 2 ****************"SetSCurve(&Joystick, JOYX, 0, 0, 0, 2, 0); SetSCurve(&Joystick, JOYY, 0, 0, 0, 2, 0);" ************), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED2) ************), ********CHAIN( ************EXEC(*// curve 3 ****************"SetSCurve(&Joystick, JOYX, 0, 0, 0, 3, 0); SetSCurve(&Joystick, JOYY, 0, 0, 0, 3, 0);" ************), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED2), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED3) ************), ********CHAIN( ************EXEC(*// curve 4 ****************"SetSCurve(&Joystick, JOYX, 0, 0, 0, 3, -1); SetSCurve(&Joystick, JOYY, 0, 0, 0, 3, -1);" ************), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED2), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED3), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED4) ************), ********CHAIN( ************EXEC(*// curve 5 ****************"SetSCurve(&Joystick, JOYX, 0, 0, 0, 4, -1); SetSCurve(&Joystick, JOYY, 0, 0, 0, 4, -1);" ************), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED2), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED3), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED4), ************LED(&Throttle, LED_ONOFF, LED_CURRENT+LED5) ************), ********CHAIN( ************EXEC(*// reset to straight ****************"SetSCurve(&Joystick, JOYX, 0, 0, 0 ,0, 0); SetSCurve(&Joystick, JOYY, 0, 0, 0 ,0, 0);" ************), ************LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1), ************LED(&Throttle, LED_ONOFF, LED_CURRENT-LED2), ************LED(&Throttle, LED_ONOFF, LED_CURRENT-LED3), ************LED(&Throttle, LED_ONOFF, LED_CURRENT-LED4), ************LED(&Throttle, LED_ONOFF, LED_CURRENT-LED5) ************) ********)*//close the Sequence ********, MasterMode ****);*//close the MapKey ****MapKeyIO(&Joystick, S2, NightVision, WeaponRelease);***// With Pinky: toggle night vision ****MapKeyIO(&Joystick, S3, L_CTL+'t', NosewheelSteering);*//with pinkie center trim ****MapKey(&Joystick, S4,*0); **** ****MapKey(&Joystick, H1U, TrimSwitchUp); ****MapKey(&Joystick, H1D, TrimSwitchDown); ****MapKey(&Joystick, H1L, TrimSwitchLeft); ****MapKey(&Joystick, H1R, TrimSwitchRight); **** ****MapKey(&Joystick, H2U, TargetManagementUp); ****MapKey(&Joystick, H2D, TargetManagementDown); ****MapKey(&Joystick, H2L, TargetManagementLeft); ****MapKey(&Joystick, H2R, TargetManagementRight); **** ****MapKey(&Joystick, H3U, DataManagementUp); ****MapKey(&Joystick, H3D, DataManagementDown); ****MapKey(&Joystick, H3L, DataManagementLeft); ****MapKey(&Joystick, H3R, DataManagementRight); **** ****MapKeyIO(&Joystick, H4U, USB[0x55], CounterMeasuresUp); ****MapKeyIO(&Joystick, H4D, USB[0x54],CounterMeasuresDown); ****MapKey(&Joystick, H4L, CounterMeasuresLeft); ****MapKey(&Joystick, H4R, CounterMeasuresRight); ****MapKey(&Joystick, H4P, CounterMeasuresPress); **** ****/////////////////// Joystick axes setup /////////////////// ****MapAxis(&Joystick, JOYX, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); ****SetSCurve(&Joystick, JOYX,*0,*0,*0,*0,*0); ****MapAxis(&Joystick, JOYY, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); ****SetSCurve(&Joystick, JOYY,*0,*0,*0,*0,*0); ****RotateDXAxis(DX_X_AXIS, DX_Y_AXIS, -05);*//simulate a -15 deg twisted centred stick for the A-10. **** ****/////////////////// Throttle button mapping /////////////////// ****//MapKey(&Throttle, MSU, MicSwitchUP); ****//MapKey(&Throttle, MSD, MicSwitchDown); ****//MapKey(&Throttle, MSL, MicSwitchLeft); ****//MapKey(&Throttle, MSR, MicSwitchRight);**** ****//MapKey(&Throttle, MSP, MicSwitchPress);*************// Teamspeak press-to-talk button MapKeyIO(&Throttle,MSU,F1, TEMPO(F1,L_SHIFT+F12,50)); MapKeyIO(&Throttle,MSD,F3,L_ALT+USB[86]); MapKeyIO(&Throttle,MSL,F4,L_SHIFT+USB[86]); MapKeyIO(&Throttle,MSR,L_CTL+F5,L_ALT+USB[87]); MapKey(&Throttle, MSP, EXEC("ToggleSensitivity();")); **** ****MapKey(&Throttle, SPDF, SpeedBrakeForward); ****MapKey(&Throttle, SPDB, SpeedBrakeBack); **** ****MapKey(&Throttle, BSF, BoatSwitchForward); ****MapKey(&Throttle, BSM, BoatSwitchCenter); ****MapKey(&Throttle, BSB, BoatSwitchBack); **** ****MapKey(&Throttle, CHF, ChinaHatForward); ****MapKey(&Throttle, CHB, ChinaHatBack); **** ****MapKey(&Throttle, PSF, PinkySwitchForward); ****MapKey(&Throttle, PSM, PinkySwitchCenter); ****MapKey(&Throttle, PSB, PinkySwitchBack); **** ****MapKey(&Throttle, CSU, CoolieHatUp); ****MapKey(&Throttle, CSD, CoolieHatDown); ****MapKey(&Throttle, CSR, CoolieHatLeft); ****MapKey(&Throttle, CSL, CoolieHatRight); **** ****MapKeyIO(&Throttle, LTB, TEMPO(L_ALT+F12, L_SHIFT+F12), L_ALT+F12);*// TrackIR reset, TrackIR pause **** ****MapKey(&Throttle, EFLNORM, LeftEngineFuelNorm); ****MapKey(&Throttle, EFLOVER, LeftEngineFuelOver); ****MapKey(&Throttle, EFRNORM, RightEngineFuelNorm); ****MapKey(&Throttle, EFROVER, RightEngineFuelOver); ****MapKey(&Throttle, EOLIGN, LeftEngineOperIgn); ****MapKey(&Throttle, EOLMOTOR, LeftEngineOperMotor); ****MapKey(&Throttle, EOLNORM,****LeftEngineOperNorm);**** ****MapKey(&Throttle, EORIGN, RightEngineOperIgn); ****MapKey(&Throttle, EORMOTOR, RightEngineOperMotor); ****MapKey(&Throttle, EORNORM,****RightEngineOperNorm); **** **** ****MapKey(&Throttle, APUON, APUStart); ****MapKey(&Throttle, APUOFF, APUOff); **** ****MapKey(&Throttle, LDGH, LandingGearToggle); **** ****MapKey(&Throttle, APPAT, AutoPilotPathHold); ****MapKey(&Throttle, APAH, AutoPilotAltHeading); ****MapKey(&Throttle, APALT, AutoPilotAlt); ****MapKey(&Throttle, APENG, AutoPilotEngage); **** ****MapKey(&Throttle, RDRNRM, RadarAltDisengage); ****MapKey(&Throttle, RDRDIS, RadarAltNormal); **** ****MapKey(&Throttle,EACON,CHAIN(DX24, LED(&Throttle, LED_INTENSITY,*129))); ****MapKeyR(&Throttle,EACON,CHAIN(PULSE+L_CTL+'a', LED(&Throttle, LED_INTENSITY,*0))); **** ****//MapKey(&Throttle, FLAPU, FlapsUp); ****//MapKey(&Throttle,**FLAPD, FlapsDown); ****//MapKey(&Throttle, FLAPM, FlapsMvr); // DirectX 11= Flaps Up // DirectX 12 = Flaps Down //When pushing to fwd position send DirextX 11 MapKey(&Throttle,FLAPU,DX11); //When switching to middle position I use release for FLAPU and send DirectX 12 MapKeyR(&Throttle,FLAPU,DX12); //When pushing to aft position send DirextX 12 MapKey(&Throttle,FLAPD,DX12); //When switching back to middle position I use release for FLAPD and send DirectX 11 MapKeyR(&Throttle,FLAPD,DX11); //Checking Flaps switch position at throttle and put switch in same position at game if(Throttle[FLAPU]) ActKey(KEYON+DX11); else*if*(Throttle[FLAPD]) ActKey(KEYON+DX12); **** ****MapKey(&Throttle, IDLELON, DX29); ****MapKey(&Throttle, IDLERON, DX30); ****MapKey(&Throttle, IDLELOFF, DX31); ****MapKey(&Throttle, IDLEROFF, DX32); **** ****/////////////////// throttle axes setup /////////////////// ****MapAxis(&Throttle, SCX, DX_XROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); ****SetSCurve(&Throttle, SCX,*0,*4,*0,*3, -3); ****MapAxis(&Throttle, SCY, DX_YROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); ****SetSCurve(&Throttle, SCY,*0,*4,*0,*3, -3); ****MapAxis(&Throttle, THR_RIGHT, DX_Z_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); ****SetSCurve(&Throttle, THR_RIGHT,*0,*0,*0,*0,*0); ****MapAxis(&Throttle, THR_LEFT, DX_ZROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); ****SetSCurve(&Throttle, THR_LEFT,*0,*0,*0,*0,*0); ****KeyAxis(&Throttle,THR_FC,'o',AXMAP2(7,USB[0x55] ,0,0,0,0,0,USB[0x54])); ****KeyAxis(&Throttle,THR_FC,'i',AXMAP2(3,CHAIN( L_CTL+'g',Flash3),0, CHAIN(L_SHIFT+'g',Flash3))); } int*EventHandle(int*type,*alias*o,*int*x) { ****DefaultMapping(&o, x); } Edited September 24, 2015 by hreich [sIGPIC][/sIGPIC] Pilot from Croatia
Recommended Posts