wawax Posted July 2, 2013 Report Share Posted July 2, 2013 Hello! I try to change fuel level in one of tanks. It's quite easy, thanks to you Pete, in FSUIPC - change some offsets and that's it. Unfortunately I have to do it in XML gauge. I created APU for VasFMC A320 panel and I'd like it to burn some fuel. I managed to get actual fuel level, change it, but I can't write it. I look for K:Variable, which is appropriate to write new fuel level. I know, it is called FUEL TANK LEFT MAIN LEVEL, and it is writable (as shown on ESP website, as well as in offset description in FSUIPC for programmers). But this is A:Variable. Do you know the name of K:Variable which is responsible for writing fuel level? I found only fuel selectors on list of events. Or maybe I should try to write it some other way? Link to comment Share on other sites More sharing options...
Pete Dowson Posted July 2, 2013 Report Share Posted July 2, 2013 Hello! I try to change fuel level in one of tanks. It's quite easy, thanks to you Pete, in FSUIPC - change some offsets and that's it. Unfortunately I have to do it in XML gauge. I created APU for VasFMC A320 panel and I'd like it to burn some fuel. I managed to get actual fuel level, change it, but I can't write it. I look for K:Variable, which is appropriate to write new fuel level. I know, it is called FUEL TANK LEFT MAIN LEVEL, and it is writable (as shown on ESP website, as well as in offset description in FSUIPC for programmers). But this is A:Variable. Do you know the name of K:Variable which is responsible for writing fuel level? I found only fuel selectors on list of events. Or maybe I should try to write it some other way? Sorry, you have me confused. I do not know anything about "K" or "A" variables. FSUIPC only has access to the regular values (via SimConnect in FSX, directly in FS9 -- you don''t even say what FS you are talking about ), and L:Vars, which are local panel variables which are exposed to other parts of the system. Regards Pete Link to comment Share on other sites More sharing options...
wawax Posted July 3, 2013 Author Report Share Posted July 3, 2013 Sorry, I have written too briefly. I use FS2004. Flight Simulator has different types of variables used in gauges. The best known are L:Vars (public variables set in gauges) and G:Vars (those stay only inside one gauge). A: E: and P:Vars are those, you can get from FS using offsets (the list is here: http://msdn.microsoft.com/en-us/library/cc526981.aspx). In gauges, they have own names, which can be used. The last type are K:Vars, which are nothing else than controls shown in FSUIPC documentation (http://msdn.microsoft.com/en-us/library/cc526980.aspx, and in FSUIPC file: List of FS2004 controls.pdf). One can read A, E and P variables, but changing them is possible only via K (events). It is easier in FSUIPC, because one may change offset directly. This way it isn't possible in XML gauge (as I know, but I hope to be wrong). Now I look for control (K:Var), which will allow me to change fuel level in tanks. In list of FS2004 control I found ADD_FUEL_QUANTITY, but as written in ESP, this only adds fuel. I look for something like REMOVE_FUEL_QUANTITY. Regards, Slawek Link to comment Share on other sites More sharing options...
Pete Dowson Posted July 3, 2013 Report Share Posted July 3, 2013 Sorry, I have written too briefly. I use FS2004. Flight Simulator has different types of variables used in gauges. The best known are L:Vars (public variables set in gauges) and G:Vars (those stay only inside one gauge). A: E: and P:Vars are those, you can get from FS using offsets (the list is here: http://msdn.microsoft.com/en-us/library/cc526981.aspx). In gauges, they have own names, which can be used. The last type are K:Vars, which are nothing else than controls shown in FSUIPC documentation (http://msdn.microsoft.com/en-us/library/cc526980.aspx, and in FSUIPC file: List of FS2004 controls.pdf). So, "K" means "KEY EVENT", as all of the controls have full names in the form KEY_XXXXX. One can read A, E and P variables, but changing them is possible only via K (events). It is easier in FSUIPC, because one may change offset directly. This way it isn't possible in XML gauge (as I know, but I hope to be wrong). Now I look for control (K:Var), which will allow me to change fuel level in tanks. In list of FS2004 control I found ADD_FUEL_QUANTITY, but as written in ESP, this only adds fuel. I look for something like REMOVE_FUEL_QUANTITY. Sorry, but the list of controls I publish is the complete list from FS itself. In FSX there is "FUEL DUMP TOGGLE", number 66651. I suppose you could try that number just in case, but it seems unlikely to be in FS9 as it isn't in the tables. Regards Pete Link to comment Share on other sites More sharing options...
wawax Posted July 3, 2013 Author Report Share Posted July 3, 2013 Thanks. That's pity. As I know, there are some gauges written in C, which are able to dump fuel. If that gauge could communicate via L:Var with XML gauge, I could send command to decrease fuel in certain tank. I must see whether such gauge exists. Unfortunately, I don't know C, so I'm unable to write one. Link to comment Share on other sites More sharing options...
Pete Dowson Posted July 3, 2013 Report Share Posted July 3, 2013 Thanks. That's pity. As I know, there are some gauges written in C, which are able to dump fuel. If that gauge could communicate via L:Var with XML gauge, I could send command to decrease fuel in certain tank. I must see whether such gauge exists. Unfortunately, I don't know C, so I'm unable to write one. You could have an L:Var which can be seen in FSUIPC, then have a Lua plug-in which reads that L:Var and write to the fuel offsets. Of course this needs a Registered install of FSUIPC too. Regards Pete Link to comment Share on other sites More sharing options...
wawax Posted July 3, 2013 Author Report Share Posted July 3, 2013 Thanks. That's other solution. Creating Lua will be easier for me than writing in C. Link to comment Share on other sites More sharing options...
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