#Prosim Variables - what type are they?

1 messages · Page 1 of 1 (latest)

lucid fern
#

Hey guys, I am new to Mobiflight, so bear with me if I am asking silly questions 🙂 I am having Skalarki hardware and FS2024 with Prosim (converted from P3D + JeeHell this year), and I am having a Lua script which is using a lot of events to trigger checklist and other sounds. As JeeHell was providing a lot of offsets that I was able to read and use in my script (e. g. reading LED status for APU master switch or A/BRK MAX etc.), these are gone with ProSim.

ProSim instead has with around 4300 variables a lot more information to offer, but not in Offsets but in "variables". I have seen that Mobiflight can read all these variables that I can do further processing with these values.

Can anybody tell me what kind of variables these are? Are these scoped Lvars? My preferred option would be to read and process them within my Lua script.

Thanks a lot!

austere meteor
#

My understanding is Prosims runs a process outside of the simulator. There is a way the plane communicates with that outside process.

The prosim 4300 variables are inside that separate outside process. MobiFlight communicates with that process. So nothing related to the flightsim process, no LVARs and stuff.

bold stream
lucid fern
#

here is an example of a few of those variables. They are all listed in Mobiflight if you select ProSim DataRef.

I thought I would need Mobiflight to extract some of these values to convert them to an offset for example which can then be used in a Lua script. Of course it would be better to have access to these variables directly within the Lua script, but I suppose that's not possible.

Meanwhile I have found that within Prosim unter combined config, I can also define custom offsets for all indicator type variable, so Prosim is then writing its variable value in the assigned offset.

small river
#

I mean you could make output configs for these, and if you need to make a variable accessible to your Lua script, you could use the Display -> Input action functionality to send the value to a L-var or fsuipc offset.

But I am not sure if this is just overly complicated, as I think you can also configure any varialbe to a FSUIPC offset in Prosim itself. This would be totally outside MobiFlight though.

bold stream
#

I am under the impression you don't actually need to send values to a Lua script, as Mobiflight can talk to ProSim directly.
The variable names you showed look suspiciously identical to Fenix A320 variables

lucid fern
#

The requirement is to have some of these Prosim values available in a Lua script where they would function as trigger for sound outputs for example. I have achieved this now by assigning FSUIPC offsets to those indicators within the Prosim software and by reading the offsets within the Lua script.
The question was if it would be possible to access those Prosim values directly in the Lua script without the roundabout way of assigning offsets in Prosim, and also without MobiFlight 🙂 That's why I asked which type of variables these are, since Mobiflight obviously can handle them.

bold stream
#

Afaik, Lvars are global and they exist for as long as the Sim session lasts, regardless of what aircraft is actually loaded.

lucid fern
#

Yes, but those Prosim variables are not LVars. They don't show up if you load and list all Lvars

bold stream
lucid fern
#

thanks, indeed I was not aware, I would have of course posted there. Can't see it even now... Is it under "Support Topics"? Only can see Mobiflight, msfs2020, msfs2024 and mobiflight-shop there. Sorry, but I am not yet so familiar with this Discord structure

bold stream
#

Under the Mobiflight server properties, look for Channels and Roles

#

And then enter the All Channels tab

lucid fern
#

ok, that one checkbox made the difference 🙂 thanks, Jaime

small river
#

dang that is one of the annoyances in discord, sometimes people dont see all channels

austere meteor