Jingle Posted May 28, 2022 Report Posted May 28, 2022 (edited) Is there a list available somewhere with info about address type and size? { name: 'transponderState', address: 0x0B46, type: 'int', size: 1 }, Edited May 28, 2022 by Jingle
John Dowson Posted May 28, 2022 Report Posted May 28, 2022 Try the offset status document, installed with the rest of the FSUIPC documentation under your documents folder. John
Jingle Posted May 29, 2022 Author Report Posted May 29, 2022 @J Dawson Thanks for your reply. I'm using that document as a reference. It shows address and size but there's no info about type (int, string, etc..) Other sources don't seem to give that info either. https://docs.flightsimulator.com/html/Programming_Tools/SimVars/Simulation_Variables.htm https://www.projectmagenta.com/all-fsuipc-offsets/ I'm writing a client for Paul Henty's included websocket server which asks for a type when declaring an offset. // create the request object var request = { command: 'offsets.declare', name: 'myOffsets', offsets: [ { name: 'altitude', address: 0x0570, type: 'int', size: 8 }, { name: 'avionicsMaster', address: 0x2E80, type: 'uint', size: 4 }, { name: 'heading', address: 0x0580, type: 'uint', size: 4 }, { name: 'aircraftName', address: 0x3D00, type: 'string', size: 256 }, ] } // send to the server as a JSON string if (ws) { ws.send(JSON.stringify(request)); } http://fsuipcwebsockets.paulhenty.com/#cmdoffsetsread
John Dowson Posted May 29, 2022 Report Posted May 29, 2022 5 hours ago, Jingle said: Other sources don't seem to give that info either. https://docs.flightsimulator.com/html/Programming_Tools/SimVars/Simulation_Variables.htm That is the definitive source for the MSFS variables, so use that... it gives the original variable type.. 5 hours ago, Jingle said: Other sources don't seem to give that info either. Which is why I don't in the documentation...!
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