Jump to content
The simFlight Network Forums

kaha

Members
  • Posts

    293
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by kaha

  1. The manual lists ipc.getInputEventValue but that function does not exist. However, there are 2 other functions that work: ipc.getinputeventvalue ipc.GetInputEventValue Karl
  2. Thank you! Karl
  3. Can I log the change of any Lvar? [LvarsLogged] only allows for 12 Lvars, but I want to log the update of any Lvar. Couldn't find this in the manual. Karl
  4. For some aircraft the values I get from those offsets are lower than in the in-sim EFB. I found this to be the case in the Carenado C172. I then searched for a standard aircraft and found the same for the DHC-2 Beaver. In the Carenado 182RG, as an example, the values are the same. This is a list of loaded fuel / fuel I get from offset 0x1264 (gallons): 100% 95 / 92 50% 48 / 44 10% 10 / 6 I'm at a loss here. I read using ipc.readUD(0x1264). Karl
  5. I don't need it, John. Just came across it when I was making some bindings. As far as I am concerned you may as well leave it as is. Kar
  6. Forgot: Tested in MSFS2020.
  7. Reload is new in the latest Alpha? It sometimes doesn't work, so no list of Lvars is displayed (with aircraft loaded). Do you need any log? Karl
  8. Right, sorry. Works. Something else here: Trying to use Right Alt ends in Left Ctrl + Right Alt.
  9. Perfect, this works. Thank you, Karl
  10. This works. Only one question left: I use a script to parse input events from the .log file. If LuaPath is used I don't know where's the installation folder. If the path is relative I could trace it back, but with an absolute path there's no chance.
  11. You are fast! Thank you.
  12. I could parse the .ini file and look for the LuaPath entry, but I don't know the location of the installation folder.
  13. I think there's only open, close, read, write and seek. Edit: well, some more, but no create folder function.
  14. Yes, I use relative paths. But the script is not portable. I made a script I want to publish. It will not work if different path values are used in the .ini file.
  15. If I change the parameter to 1 in the .ini file it shows in the Key Assignments window, but I cannot change it. FSUIPC7.zip
  16. I try to set a parameter other than o for a Key Assignment. Whatever I use, it's always 0 when I bring it up again. Karl
  17. I write and read files from lua scripts. I do this basically like this: os.execute("if not exist Aircraft_States (mkdir Aircraft_States)") filename = "Test" io.open("Aircraft_States/"..filename, "w") io.output(file) io.write("Test...\n") io.close(file) The os.execute statement creates subfolder "Aircraft_States" in the FSUIPC7 installation folder. The io.open statement opens file "Test" in subfolder "Aircraft_States", the complete path of the file is "C:\FSUIPC7\Aircraft_States\Test". It seems the line "LuaPath=Lua" in section [LuaFiles] changse the parent folder for the io.open statement to "C:\FSUIPC7\Lua". Is there a possibility to find the current directory where file open statements are done?
  18. I managed. Somehow I was fast enough when Defender popped up as I copied the exe to my sim PC. There was a possibility to allow the exe on my system before it was deleted. Anyway, it now works, Input Events bound to virtual buttons work after restarting the sim. Karl
  19. Sorry, I don't know how to do it.
  20. It doesn't let me, it deletes it anyway although I tell Defender to allow it on my system.
  21. Thank you, I'll test it as soon as Defender allows. Karl
  22. This now works. Thank you. Karl
×
×
  • 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.