JoeFremont Posted April 12, 2022 Report Posted April 12, 2022 I have a program that reads and can set the fuel for each fuel tank in the sim. Recently I have gotten some complaints from users with the new DC Designs Concorde where apparently it has 13 fuel tanks, which more than seven I am currently reading. Is there a way to get these other tanks?
John Dowson Posted April 12, 2022 Report Posted April 12, 2022 7 hours ago, JoeFremont said: I have a program that reads and can set the fuel for each fuel tank in the sim. You don't mention which offsets/simvars you are using for this, which would be helpful. 7 hours ago, JoeFremont said: Recently I have gotten some complaints from users with the new DC Designs Concorde where apparently it has 13 fuel tanks, which more than seven I am currently reading. Is there a way to get these other tanks? Depends on how/where this information is held. If there are (indexed or not) simvars, then you can add these to FSUIPC offsets for both reading and writing (if the simvar is writable) - see the section entitled Adding Simulator variables (simvars) to FSUIPC offsets on page 34 of the Advanced User guide. Alternatively, if the values are held in lvars, then you can add the lvars to fsuipc offsets (also for reading and writing) using the Adding Lvars to Offsets functionality - see page 46 pf the same manual. John
JoeFremont Posted April 12, 2022 Author Report Posted April 12, 2022 Hi John I am using these offsets to get the maximal capacity of all tanks in gallons 0x0B78 0x0B80 0x0B98 0x0B88 0x0BA0 0x0B90 0x0BA8 0x1248 0x1250 0x1258 0x1260 And these to get percentage of fuel in tanks 0x0B74 0x0B7C 0x0B94 0x0B84 0x0B9C 0x0B8C 0x0BA4 0x1244 0x124C 0x1254 0x125C Sorry I am ready 11 tanks no the seven that I said before. I was not aware of the adding simulator variables but not sure if it would be useful for me as it would require the users of my program of to do the configuration themselves that than just having my program read using the standard offsets.
John Dowson Posted April 13, 2022 Report Posted April 13, 2022 8 hours ago, JoeFremont said: I am using these offsets to get the maximal capacity of all tanks in gallons 0x0B78 0x0B80 0x0B98 0x0B88 0x0BA0 0x0B90 0x0BA8 0x1248 0x1250 0x1258 0x1260 And these to get percentage of fuel in tanks 0x0B74 0x0B7C 0x0B94 0x0B84 0x0B9C 0x0B8C 0x0BA4 0x1244 0x124C 0x1254 0x125C The simvars that are used to populate those offsets are not indexed but individually named. 8 hours ago, JoeFremont said: Sorry I am ready 11 tanks no the seven that I said before. Ok, so there are 2 more fuel tanks, and you need the capacity and level for these two tanks. You first need to determine what, if anything, is holding this information. Does the aircraft provide additional simvars for these quantities, or are there any lvars available for these? I don't have this aircraft so I really can't help you with this. You need to determine what is holding these quantities before we can consider adding them to offsets. Maybe ask DC designs about this. 9 hours ago, JoeFremont said: not sure if it would be useful for me as it would require the users of my program of to do the configuration themselves that than just having my program read using the standard offsets. Why is this a problem? It is only a matter of providing one additional file (myoffsets.txt) which they either install in the FSUIPC7 installation folder, or append to their existing one. Anyway, before you consider this, you need to find out where the information is held. John
John Dowson Posted April 13, 2022 Report Posted April 13, 2022 2 minutes ago, John Dowson said: Anyway, before you consider this, you need to find out where the information is held. Ok - MSFS seems to have support for up to 20 fuel tanks - see https://docs.flightsimulator.com/html/Programming_Tools/SimVars/Aircraft_SimVars/Aircraft_Fuel_Variables.htm#fuel-tank-selection You probably want to use either one of the indexed variables FUEL SELECTED QUANTITY or FUEL SELECTED QUANTITY PERCENT to get the percentage, and maybe FUELSYSTEM TANK CAPACITY for the capacity (see https://docs.flightsimulator.com/html/Programming_Tools/SimVars/Aircraft_SimVars/Aircraft_Fuel_Variables.htm). There is no way I can add these to FSUIPC offsets for all users as this would generate too many errors (logged to the MSFS console) when using a plane without that many tanks. If you require this information, you should look into adding the required simvar (indices) to free FSUIPC offsets and you would need to provide appropriate instructions to the users of your program. John
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