NimrodX -> [FIXED] Minor Lua bug with ScenEdit_RunScript() (5/30/2018 7:21:47 PM)
|
This doesn't matter too much but I figured I'd report it anyway since it doesn't match the docs and could be an annoyance in some situations. quote:
>> ScenEdit_RunScript("cmano_helpers.lua") ERROR: Could not find a part of the path 'D:\Steam\steamapps\common\Command Modern Air Naval Operations\GameMenu_CMANO\Lua\cmano_helpers.lua'. It should be (in my case given how I have it installed) looking in 'D:\Steam\steamapps\common\Command Modern Air Naval Operations\Lua\' instead. It looks like it's trying to load from "Lua" as path relative to the current directory which was apparently set to blabla\GameMenu_CMANO when the autorun.exe launcher thing was run since thats where autorun.exe lives. I'm running this from Steam and that could be part of the issue. (Maybe this doesn't happen in standalone or where command.exe is run directly.) Normally I'd just never use ScenEdit_RunScript() and would just add the script to the scenario as an attachment, but right now I'm tinkering with writing some new functions and it's easier to edit a file on disk rather than keep pasting stuff into the lua console to test it or attaching an updated file. (The other case where someone might want to use the Lua directory is when they have a bunch of "scenario builder" functions that are like macros to automate scenario editing that don't actually need to be included in the scenario itself.)
|
|
|
|