Forums » Technology » Flight Sim Controllers » T.A.R.G.E.T. (Thrustmaster) » 5 LED Programming Active Topics You are not logged in. [Log In] [Register User]
Page 3 of 3 < 1 2 3
Topic Options
Rate This Topic
Hop to:
#3240011 - 03/20/11 04:03 PM Re: 5 LED Programming [Re: komemiute]
Mistral Offline
Junior Member

Registered: 12/28/10
Posts: 2
Loc: QC, Canada
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)


Top
#3241098 - 03/21/11 05:49 PM Re: 5 LED Programming [Re: komemiute]
hsth Offline
Junior Member

Registered: 11/12/10
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.

Top

#3242238 - 03/22/11 08:26 PM Re: 5 LED Programming [Re: hsth]
Mistral Offline
Junior Member

Registered: 12/28/10
Posts: 2
Loc: QC, Canada
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

Top
#3300020 - 05/20/11 07:09 PM Re: 5 LED Programming [Re: komemiute]
Vierzinger Offline
Member

Registered: 03/06/06
Posts: 101
Loc: Denmark
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 WinkNGrin

Quote:

MapKey(&Throttle, CHF, EXEC("WeaponsEnable(); DeferCall(180000, &WeaponsDisable, enablecount);")); // on CHF, enable weapons, then defer WeaponsDisable call after 180000ms (180s)

Quote:

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?

Top
#3301410 - 05/23/11 05:41 AM Re: 5 LED Programming [Re: Vierzinger]
Nicu Offline
Junior Member

Registered: 10/31/10
Posts: 40
Use the following code:

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;
}


Edited by Nicu (05/23/11 05:41 AM)

Top
Page 3 of 3 < 1 2 3
Topic Options
Rate This Topic
Hop to:

Moderator:  531 Ghost, RacerGT 
 

Forum Use Agreement | Privacy Statement
Copyright 1997-2013, SimHQ Inc. All Rights Reserved.