flyboy340 Posted 2 hours ago Report Posted 2 hours ago I have been using the fantastic FSUIPC 7 in MSFS2020 for some time now and have managed to create lots of “commands” using LVARs in myevents.txt and then map them to buttons in the sim. After creating many commands for several other aircraft, toggles, on or off and dimmers etc, I am now having an issue with an Auto-reset LVAR in the Inibuilds A350 INI_CKPT_LT_DU_MASTER_BRT_INC or INI_CKPT_LT_DU_MASTER_BRT_DEC. I can’t seem to get anything to work as the code resets before altering anything. Any advice would be much appreciated
John Dowson Posted 2 hours ago Report Posted 2 hours ago So it looks like those lvars are acting like a control/event - you set it to 1, this triggers the brightness increase or decrease and then the lvar gets reset back to 0. If you want to inc / dec again, you can set it to 1 again. Does it not work like that? If not, ask on the Inbuilds forums on how those lvars are supposed to work. I don't have this aircraft so cannot take a look here, sorry. John
flyboy340 Posted 2 hours ago Author Report Posted 2 hours ago 7 minutes ago, John Dowson said: So it looks like those lvars are acting like a control/event - you set it to 1, this triggers the brightness increase or decrease and then the lvar gets reset back to 0. If you want to inc / dec again, you can set it to 1 again. Does it not work like that? If not, ask on the Inbuilds forums on how those lvars are supposed to work. I don't have this aircraft so cannot take a look here, sorry. John Many thanks for the very quick reply. When I use it in myevents.txt, the line is DU_MasterBright_Bright# (>L:INI_CKPT_LT_DU_MASTER_BRT_INC, bool) and nothing happens, so I will try setting 1
John Dowson Posted 2 hours ago Report Posted 2 hours ago 2 minutes ago, flyboy340 said: DU_MasterBright_Bright# (>L:INI_CKPT_LT_DU_MASTER_BRT_INC, bool) and nothing happens, so I will try setting 1 Yes, you will need to give it a value...probably also a good idea to use repeat when assigning to that preset as well.
flyboy340 Posted 1 hour ago Author Report Posted 1 hour ago 13 minutes ago, John Dowson said: Yes, you will need to give it a value...probably also a good idea to use repeat when assigning to that preset as well. I have just tried that and unfortunately, it does not work (incl a repeat). When you turn the knob with a mouse you can see the LVAR go to 1 and straight back to zero. So in theory I thought a value of 1 would do it.
John Dowson Posted 1 hour ago Report Posted 1 hour ago 35 minutes ago, flyboy340 said: When you turn the knob with a mouse you can see the LVAR go to 1 and straight back to zero. So in theory I thought a value of 1 would do it. Yes, that sounds correct, as that lvar is documented as a BOOL. I have no idea why it isn't controlling the brightness. When you inc/dev the brightness in the VC, do you see the lvar change value (and reset)? As I said earlier, you should ask on the InBuilds support forums as I do not have this a/c.
flyboy340 Posted 18 minutes ago Author Report Posted 18 minutes ago 39 minutes ago, John Dowson said: Yes, that sounds correct, as that lvar is documented as a BOOL. I have no idea why it isn't controlling the brightness. When you inc/dev the brightness in the VC, do you see the lvar change value (and reset)? As I said earlier, you should ask on the InBuilds support forums as I do not have this a/c. Just to confirm the line in myevents.txt is DU_MasterBright_Bright#1 (>L:INI_CKPT_LT_DU_MASTER_BRT_INC, bool) & I tried DU_MasterBright_Bright# (>L:INI_CKPT_LT_DU_MASTER_BRT_INC, bool) 1 I also tried number instead of bool. I also tried the repeat checkbox. When I change the brightness using the mouse in the VC, with Dev Mode, behaviours window open, I can see the value go from 1 to 0 As you say, I will have to try the iniBuilds support forum
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now