Actium Posted April 19 Posted April 19 (edited) DCS 2.9.13.6818 introduced return value pass-thru for a_do_script() and a_do_file(): Quote Scripting API. Added possibility to pass args and return values from mission scripting a_do_script() and a_do_file() APIs. This worked up to and including 2.9.14.8394. However, DCS 2.9.15.9408 fixed a segfault within that function: Quote Scripting API. net.dostring_in("mission", "a_do_script(...)") causes SEGFAULT with non-scalar return values - fixed. net.dostring_in("mission", "a_do_script(...)") causes SEGFAULT with non-scalar return values - Game Crash - ED Forums Unfortunately, now the return value pass-thru does not work any more. Presumably a regression introduced by above mentioned fix. Steps to reproduce: Run the following code in the hooks (gui) scripting environment, e.g., using my WebConsole.lua: return {net.dostring_in("mission", "return a_do_script('return 42')")} Since 2.9.15.9408, the return value is: ["", true] However, the return value should be: ["42", true] This issue was first reported here by @MarcosR. P.S.: @ED Please implement proper unit testing in your CI/CD pipeline! The described regression seems like a bug that could have been easily caught by a very simple unit test. Edited April 19 by Actium 2 1
ED Team BIGNEWY Posted April 24 ED Team Posted April 24 This has been reported to the team for investigation, thank you for your report. Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, PIMAX Crystal
Recommended Posts