

jmossr
Members-
Posts
21 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Changes to the behaviour of net.dostring_in()
jmossr replied to BIGNEWY's topic in Scripting Tips, Tricks & Issues
This looks a lot like the old api/signature we had before local ret, success = net.dostring_in(env, lua) -
Changes to the behaviour of net.dostring_in()
jmossr replied to BIGNEWY's topic in Scripting Tips, Tricks & Issues
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. -
Nice. Thanks!
-
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.
-
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
-
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)')
-
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.
-
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/
-
This is valuable information. I can reproduce the problem this way. Really weird - I'm looking into it.
-
@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'
-
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.
-
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!
-
Autolevel autopilot mod available for the Spitfire
jmossr replied to jmossr's topic in DCS: Spitfire L.F. Mk. IX
I'll try to set up something similar for the Mosquito too. [Edit:] Mosquito is supported now -
You could check out this mod - works in single player only: TF-51D/P51D Autopilot (digitalcombatsimulator.com)