Jump to content

jmossr

Members
  • Posts

    21
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. This looks a lot like the old api/signature we had before local ret, success = net.dostring_in(env, lua)
  2. We already had at least one return value. I used to use this call with a single return value as follows: local ret, success = net.dostring_in(env, lua) if success then ... Just tested both a failing call and a successful call and both still work as expected with a single return value. I haven't tried with more return values yet. And yes, I had to add the autoexec.cfg as specified. The only thing I had to change in my own code was replace "server" by "scripting" as mentioned by eekz. I'm not sure I understand the reasoning behind these changes.
  3. Sorry, I have no experience with this kind of switch. I hope someone else can help you. If not, in a few weeks I can have a look at the specs and dive into the Bort code to see if I can find something.
  4. I don't know if what you call a rotary switch is actually a rotary encoder. If so, you need special code for that. It is completely different from reading a potentiometer. Look here for info about reading a rotary encoder https://arduinogetstarted.com/tutorials/arduino-rotary-encoder
  5. You can access list_indication from within Hook like this: local function executeLuaIn(env, lua) local ret, success = dostring_in(env, lua) if success then return ret or success, nil else return nil, ret end end local indication, error = executeLuaIn('export', 'return list_indication(0)')
  6. Thank you all for your feedback. I'm glad I could contribute a little to this great community. Oh, and I still don't know who Eric and Patrick really are. They haven't contacted me yet.
  7. A new version, 1.3, is available that fixes the problem of the autopilot freezing when losing or shutting down an engine. https://www.digitalcombatsimulator.com/en/files/3330835/
  8. This is valuable information. I can reproduce the problem this way. Really weird - I'm looking into it.
  9. @Terry Dactil Your voice attack profile is very nice addition. Thank you! It may be just a typo. On my pc the folder is 'Saved Games\DCS.openbeta\Scripts'
  10. Was the radio dead too at that moment? Detection of the autopilot "switches" is tied to the radio indicator lights. So the radio needs to be powered and working for the autopilot commands to work.
  11. This mod provides a basic autopilot for the Mossie - It passes IC but works in single player sessions only: https://www.digitalcombatsimulator.com/en/files/3330835/ Enjoy!
  12. I'll try to set up something similar for the Mosquito too. [Edit:] Mosquito is supported now
  13. As the title says, this mod provides a basic autopilot for the Spitfire - It passes IC but works in single player sessions only: https://www.digitalcombatsimulator.com/en/files/3330835/ Enjoy!
  14. You could check out this mod - works in single player only: TF-51D/P51D Autopilot (digitalcombatsimulator.com)
×
×
  • Create New...