Jump to content
The simFlight Network Forums

andhog

Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by andhog

  1. Is it correct that it's only possible to set LVars using "Execute calculate code", not getting their value?
  2. The concept of LVar files sounds promising! Another thought is having a WAPI function to provide the module with a list of the variables of interest (like SetLVarList(const std::vector<std::string> &interesting_lvars))
  3. I'm at work at the moment so I can't check, but it's more than 1000. Most of them are not interesting for my purpose but they are scattered all over the place, some being at the end of the list. But if I want to access those I'll have to make my own WASM module I guess.
  4. Would it be possible to increase the number of possible LVars that can be read/set by the module? I just noticed that some of the CRJ LVars can't be accessed since it has more variables than the WASM module can read.
  5. Thank you sir! Much appreciated. I'm planning on some further development to make it possible to save the cockpit state of other models as well. I will include your WASM module and give you the creds you deserve, it's an awesome API!
  6. I'm a Linux developer, but against those odds I managed to create a simple little app using the WAPI. It's called PersistentCRJ and has two buttons, one that reads the LVars of almost every switch and knob in the CRJ and stores those values in a file. The other button loads the values from the file and write them to the LVars, giving you the cockpit state you saved. Now to my question (that I would probably have asked before), what kind of license is the WAPI and module released under? I've uploaded it to flightsim.to (pending approval) and in the info (and readme) I have credited @John Dowson but did not include the WASM module since I didn't know if I was allowed to, instead I added the link to this forum. It would be easier for the users though if I could include the WASM module in my zip file. Would that be ok?
  7. Thank you for clearing that out! Much appreciated.
  8. I see. I was under the impression that all it took was a WASM module and an evt file, just like with the Mobiflight module. But I have to admit that even though I have a fair amount of programming experience my knowledge about these particular things is very limited.
  9. Anyone tried the WorkingTitle HEvents? I made a WASM module to expose them as described here: https://forums.flightsimulator.com/t/demo-lvar-write-access-for-any-aircraft-control/353443 Made an evt file with the events but I haven't been able to make it work in FSUIPC.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.