Search found 1923 matches

by JackZ
Sun Jul 25, 2021 6:14 pm
Forum: Lua and API Scripting Help
Topic: static data load(): PATH limited to resource folder ONLY?
Replies: 21
Views: 460

static data load(): PATH limited to resource folder ONLY?

Hi again Corjan I am trying to retrieve a file located somewhere in the Xplane folder. Since AM has no way I know of to retrieve the current XPlane installation path (such feature would be GREATLY useful), I ended up by writing a two line FlywithLua script to get the current path. The FlywithLua is ...
by JackZ
Sun Jul 25, 2021 12:37 pm
Forum: Under development and finished work
Topic: T-6A Texan II Radio Management Unit (RMU)
Replies: 18
Views: 607

Re: T-6A Texan II Radio Management Unit (RMU)

Some progress is made, I have implemented lots of functions as per the real manual that were not present in the addon:* - STARTUP (PFT) test page - UHF Memory page - (Dummy) ATC setup page - Dimming function & backlighting, - (Dummy) Squelch for VHF & UHF pWC6B-UUTbA talking about the backlighting, ...
by JackZ
Sat Jul 24, 2021 11:17 am
Forum: Lua and API Scripting Help
Topic: xpl_command "ONCE" & "PRESS"?
Replies: 9
Views: 270

Re: xpl_command "ONCE" & "PRESS"?

@Ralph At least modify the Wiki page with the workaround, as the actual « BEGIN » and « END » example are kinda useless at the moment without an actual way to use them?

Thanks

Jacques
by JackZ
Fri Jul 23, 2021 5:30 pm
Forum: Lua and API Scripting Help
Topic: xpl_command "ONCE" & "PRESS"?
Replies: 9
Views: 270

Re: xpl_command "ONCE" & "PRESS"?

@Keith Baxter
exactly.

But in xpl_command(), the only two parameters available are 1 for "BEGIN" (and I found out that it continuously fires "ONCE" after the initial "BEGIN"), and 0 for "END" (that fires only "END"). If I try to replace the integer parameter by those string, Lua throws an error
by JackZ
Fri Jul 23, 2021 3:31 pm
Forum: Lua and API Scripting Help
Topic: xpl_command "ONCE" & "PRESS"?
Replies: 9
Views: 270

Re: xpl_command "ONCE" & "PRESS"?

I answered myself, as I found after LOTS of trial and error a workaround kinda. When one uses a "BEGIN" with the 1 parameter , AM sends to Xplane "BEGIN" and some "ONCE" (every frame?) as long as it doesn't sends an "END" function (0 parameter). So to emulate a "COMMAND PRESS" function that is neede...
by JackZ
Fri Jul 23, 2021 11:02 am
Forum: Lua and API Scripting Help
Topic: xpl_command "ONCE" & "PRESS"?
Replies: 9
Views: 270

xpl_command "ONCE" & "PRESS"?

Hi Corjan In the wiki page http://siminnovations.com/wiki/index.php?title=Xpl_command, i can see that xpl_command() can have additional properties, such as BEGIN and END, but i found out that the commands "ONCE" and "PRESS" can also be sent to XPlane. I have this particular problem in an instrument,...
by JackZ
Thu Jul 22, 2021 9:39 am
Forum: Lua and API Scripting Help
Topic: Course Deviation line in 'dots'
Replies: 4
Views: 181

Re: Course Deviation line in 'dots'

Great! Really comforting to know that Tony has actually come to a solution. This simple fact actually solves the whole issue and the problem of the OP, as usual. For my part, I am pleased to announce that I solved the problem of hunger in the whole world, and the end of all wars at the same time, an...
by JackZ
Wed Jul 21, 2021 10:27 am
Forum: Under development and finished work
Topic: T-6A Texan II Radio Management Unit (RMU)
Replies: 18
Views: 607

Re: T-6A Texan II Radio Management Unit (RMU)

Thanks. It's still a WIP, the Datarefs are tricky to find and use, some buttons only have commands.
And not all the functions are implemented in the addon, as far as I can see

Jacques