Delegating to C in Lua, 'require' functionality and RunScript
Posted: Thu Mar 24, 2022 3:21 pm
Hi there! First, I'd like to congratulate the team on Command: Modern Operations. Really excellent stuff! The amount of work you have put into this software is very admirable 
Just some clarification... I'm somewhat familiar with Lua and have only just started using it within CMO for some of my scenarios and I had some questions:
Just some clarification... I'm somewhat familiar with Lua and have only just started using it within CMO for some of my scenarios and I had some questions:
- Is the Lua 'require' function supported at all? If not, why?
- It's possible to call in to C functions from Lua, provided it has been enabled on the Lua-side. Is it possible to run C from Lua in the CMO implementation? This would be very useful for more intensive sorts of analysis.
- Lastly, I've noticed when executing an external script via ScenEdit_RunScript that syntax errors are not reported in any way back to the main lua console, which makes it a bit awkward to bug test. Something I am missing?