Jump to content
The simFlight Network Forums

Testing TripleUse.lua fail


mtjoeng

Recommended Posts

Testing TripleUse.lua

load In the FSUIPC7.ini:

[LuaFiles]
1=ipcReady
2=LINDA
..
10=TripleUse
11=Asobo737
..

ipcReady.lua

ipc.runlua('linda')
ipc.runlua('TripleUse')

tried 2 buttons from 4=Logitech G940 Throttle and  6=DSD Flight Series Button Controller

THUS line 21 / 22 in TripleUse.lua

joy = 4
btn = 6

or the other one, these values the only changes in TripleUse.lua and per the FSUIPC button recognition:

joy = 6
btn = 17

the default actions per TripleUse.lua tried in MSFS default B787 from default cockpit view:

	if timebutton(false) then
		-- First press / release counts: see if there's another
		if timebutton(true) then
			-- got another press in time, look for release
			if timebutton(false) then
				-- this was a double press, send VIEW RIGHT
				ipc.control(65676)
			end
  	else	
			-- This was a single press, send VIEW LEFT
			ipc.control(65680)
			ignorepress = false
		end
	else
		-- This was a longer press, send VIEW FORWARD
		ipc.control(65674)
	end

does nothing

what am I missing?

?

 

Link to comment
Share on other sites

Try activating logging for Lua Plugins and Events, and see if you can figure out what is happening. As this script also use Linda, I'm not sure I can help that much. Try logging to see if anything stands out, but it may be worth posting in the User Contributions thread for this script to see if the author can help you.

John

Link to comment
Share on other sites

The 'universal' TripleUse at Github showed a [auto] entry in the FSUIPC7.ini, u need that and the TripleUseAssignments.lua will work
This is not in the download sample files!

 
[Auto]
1=TripleUse

now TripleUseAssignments.lua
 

btnFunc = {
	{ 6, 17, "_FLAPS_INCR", "_FLAPS_DOWN", "_FLAPS_UP"}
}

does that, single, double tap, long tap

Link to comment
Share on other sites

19 minutes ago, mtjoeng said:

This is not in the download sample files!

 
[Auto]
1=TripleUse

If the lua file is called TripleUseAssignments.lua, then the Auto section should be:

[Auto]
1=Lua TripleUseAssignments

But the lua in the original post was TripleUse.lua, so if using that it would be

[Auto]
1=Lua TripleUse

i.e. Lua followed by the lua filename without the extension

John

Edited by John Dowson
Further info added
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.