Hi Pete, I have a couple of questions regarding macros using Lvars.
Also I must thankyou for the DEC,0 Action fix that you implemented in a recent update, that works perfectly now.
The Version I am running is 4.84, Just updated today actually.
I have two problems.
I am writing macros for the VRS Superbug and unfortunately none of the Lvar values are descriptive at all.
Here is an example that I posted a few weeks ago in regards to the Left DDI Mode knob.
It's a discrete 4 Position Knob & does not cycle, The Lvar is L:BCBGL, Values available are 0=Off 1=Night 2=Auto 3=Day
As the Lvar name is non descriptive I thought I would just create multiple macro files, as the macro file name comes up in FSUIPC pulldown list
and steer away from multi action macros.
So I created 4 Individual macros like so:
LDDIOff.mcro (Filename)
[macros]
1=L:BCBGL=SET,0
LDDINight.mcro (Filename)
[macros]
1=L:BCBGL=SET,1
LDDIAuto.mcro (Filename)
[macros]
1=L:BCBGL=SET,2
LDDIDay.mcro (Filename)
[macros]
1=L:BCBGL=SET,3
And to throw in for good measure, in case somebody would like to handle this function with a rocker switch to save inputs.
I created another 2 macros using the INC/DEC actions
LDDIModeIUp.mcro (Filename)
1=L:BCBGL=INC,3
LDDIModeDn.mcro (Filename)
1=L:BCBGL=DEC,0
As you can see to deck out the complete pit I will end up with a mother load of macro files & I seem to have found that the maximum number of macro
files that will populate in the ini file is 128.
I think I am probably pushing the use of the ini file over the edge but it seemed to be the only way to get nice descriptions against the macro actions.
Can you tell me what is the maximum number of macro files allowed is in the modules folder ?
I could not seem to find it in the docs & I did search them.
So I decided to revisit the Idea of multi action macros tonight but could not seem to get it to work on this version, I had done in an earlier version.
So I would just like to see if I am doing this correctly, this how I am writing the multi action macro.
LDDIMode.mcro (Filename)
[macros]
1=L:BCBGL
1.1=SET,0
1.2=SET,1
1.3=SET,2
1.4=SET,3
following the example in the manual which reads:
The multi-line macro format can still be used with the Lvar macros, as follows:
N=L:name
N.1=action1
N.2=action2
... etc.
I've been delving into Lua & I really think that Lua will be the solution using a Map of Parameter Values assigned to an action list.
I intend to publically post it all once completed at the VRS forums & here in the contributions area.
I am attempting to do all control via FSUIPC alone, so I don't have to run any other software.
I am just trying to work out the best way to tackle it.
Thanks for your terrific support.
Cheers Glenn.