Search found 1926 matches

by JackZ
Mon Jul 26, 2021 3:31 pm
Forum: Lua and API Scripting Help
Topic: static data load(): PATH limited to resource folder ONLY?
Replies: 21
Views: 896

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

Corjan I strongly disagree, but I understand this can be a problem with the tablet version, where there is no way to access the resource folder anyways. So in any case my instrument would not be deemed suitable for the store on that respect, since it would require the user to place a file in the re...
by JackZ
Mon Jul 26, 2021 12:23 pm
Forum: Lua and API Scripting Help
Topic: static data load(): PATH limited to resource folder ONLY?
Replies: 21
Views: 896

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

Hmmm thanks Corjan I was afraid of this answer. IMHO this is very limiting for development to say the least, as there are some configuration files which are part of an addon or directly XPlane that one needs to access in a way or another for an instrument to work. Here my problem is that I need to a...
by JackZ
Sun Jul 25, 2021 6:40 pm
Forum: General Discussion on Anything
Topic: DC6 BMEP gauges
Replies: 9
Views: 658

Re: DC6 BMEP gauges

Yes, and since you are at it, you could replicate the "real" cockpit at the time, which has not been the case of PMDG apparently. One can include the needle gauges vibrations, typical of an airplane of this era. I had published a tutorial on how to achieve this somewhere in the forum https://upload....
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: 896

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: 934

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: 431

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: 431

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: 431

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: 431

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,...