Hello ,
I'm trying to make a weather injector for fsx , where the user inputs for , for example, the surface wind and the program injects that into the simulator. I am very unsure about how this is done, Looking at the FSUIPC for programmers pdf I found the offsets list , after successfully getting the airspeed from the simulator from an offset i went to Changing the surface temperature , as this is one of the options available in my program. I found the offset 0EC0.
int token = -1;
int dwResult = -1;
fsuipc.FSUIPC_Write(0x0EC0, 10, ref token, ref dwResult);
This is an extract from my inject function. Using the included example project I was able to produce this. My questions are , what is int token used for ? All other variables in the example project where commented apart from token however I couldn't figure out what token was used for. In addition to this regarding the weather aspect of the offset list , how do I tell whether I am getting or setting a value. Is this surface temperature being set globally or for the nearest weather station? Is there an easier way to search for the offsets I need ? I also noticed it would be 10*256 as the actual temp in the simulator , is this correct?
Many thanks,
Arun