|
|
Joined: Dec 2010
Posts: 2
Junior Member
|
|
Junior Member
Joined: Dec 2010
Posts: 2 |
tried some of this programming but always get :
Runtime Error: Symbol not found: LED_INTENSITY in main ( line 10 in led test.tmc )
or somme such with the first line it encounters with the led commands
(new instal of Warthog and latest TARGET)
|
|
|
|
|
Joined: Nov 2010
Posts: 37
Junior Member
|
|
Junior Member
Joined: Nov 2010
Posts: 37 |
Make sure that the correct hid.tmh and target.tmh are present where you store your script files. I had the problem that the old (default) scripts were not removed when installing the newest version of TARGET software. And I got the same error when I ran a script. hid.tmh, 17.235 KB, 4-3-2011. target.tmh, 26.623 KB, 4-3-2011.
|
|
|
|
|
Joined: Dec 2010
Posts: 2
Junior Member
|
|
Junior Member
Joined: Dec 2010
Posts: 2 |
Thanks hsth, that was the fix. My scripts where residing in a non standard location on the disk. The instal of the new TARGET evidently did not know about it. Replacing those two files in the folder with my scripts did the trick. Now, not only the .fcf files but my programmed scripts' (tmc) LEDs light correctly. The files I transfered did not have the same weight as the ones you mentioned but the dates where the same (4-3-20011).
A word of warning about this before reinstalling TARGET from Thrustmaster would have been helpful; like in the instal file verbiage. I am sure putting hard worked on scripts out of harms way from loss in the 'standard' location is a frequent enough behavior of gamers....Rant out...
Thanks again hsth
|
|
|
|
|
Joined: Mar 2006
Posts: 102
Member
|
|
Member
Joined: Mar 2006
Posts: 102 |
Hi I need help to make a LED flash as long as a function is enabled(WeaponEnable) and stop when the flashing when WeaponDisable gets in effect. The function that allows me to have a kind of MasterArm for IL2. The code enable certain weapon fuctionality for 3 min (180000) when the MasterArm key is pressed. BTW I did not make the code MapKey(&Throttle, CHF, EXEC("WeaponsEnable(); DeferCall(180000, &WeaponsDisable, enablecount);")); // on CHF, enable weapons, then defer WeaponsDisable call after 180000ms (180s)
int enablecount; int WeaponsEnable() { enablecount = enablecount + 1; MapKeyUMD(&HCougar, S4, DX4, DX3, USB[0x05]); MapKey(&Throttle, CHB, DX7); //MapKey(&Throttle, CHB, PULSE+L_SHIFT+USB[0x18]); ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1)); }
int WeaponsDisable(int p) { if(p != enablecount) return 0; // take in account only the latest WeaponsEnable press MapKeyUMD(&HCougar, S4, USB[0x05], USB[0x05], USB[0x05]); MapKey(&Throttle, CHB, 0); ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1)); }
Will we EVER get a real Rainbow Six game again. One for the real Tactic fans? A WWII sim with a dynamic campagn. Games with deept?
|
|
|
|
|
Joined: Oct 2010
Posts: 83
Junior Member
|
|
Junior Member
Joined: Oct 2010
Posts: 83 |
Use the following code: int enablecount;
int WeaponsEnable()
{
MapKeyUMD(&HCougar, S4, DX4, DX3, USB[0x05]);
MapKey(&Throttle, CHB, DX7);
if(!enablecount) ActKey(KEYON+REXEC(0, 200, "ActKey(KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT^LED1));", RNOSTOP));
enablecount = enablecount + 1;
}
int WeaponsDisable(int p)
{
if(p != enablecount) return 0; // take in account only the latest WeaponsEnable press
MapKeyUMD(&HCougar, S4, USB[0x05], USB[0x05], USB[0x05]);
MapKey(&Throttle, CHB, 0);
StopAutoRepeat(0);
ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1)); // make sure the LED1 is off
enablecount = 0;
}
Last edited by Nicu; 05/23/11 09:41 AM.
|
|
|
|
|
|
|
|
|
|
|
HOA's
by Terl9999 - 09/18/26 04:12 AM
|
Football
by Terl9999 - 09/18/26 02:42 AM
|
Flags
by Terl9999 - 09/15/26 10:03 PM
|
|
|
|
|
|
|
|
|
|