GFX Posted June 14, 2022 Posted June 14, 2022 DCS fails to start if an external lua is installed, possibly because it looks for lua libraries in the wrong place. steps to reproduce: install scoop from https://scoop.sh/ in the terminal: scoop install lua attempt to start DCS you will be redirected to the login window (even if you've selected autologin before). after you've logged in, the game never starts. the following lines in the log suggest that the wrong lua is being read: 2022-06-14 02:17:14.989 ERROR Lua::Config: load error Config/main.cfg:error loading module 'optionsEditor' from file 'C:\Users\username\scoop\apps\lua\current': can't open 'C:\Users\username\scoop\apps\lua\current'. ... 2022-06-14 02:17:33.486 ALERT Dispatcher: Error running db_scan: error loading module 'i_18n' from file 'C:\Users\username\scoop\apps\lua\current': can't open 'C:\Users\username\scoop\apps\lua\current' the problem goes away if scoop's version of lua is uninstalled (via scoop uninstall lua), and autologin works again as well. possibly this is because scoop sets the LUA_PATH and LUA_CPATH environment variables: PS C:\> Get-ChildItem Env: ... LUA_CPATH C:\Users\username\scoop\apps\lua\current LUA_PATH C:\Users\username\scoop\apps\lua\current ... which can be verified in the lua package for scoop (https://github.com/se35710/scoop-main/blob/master/bucket/lua.json, i think), under env. log file attached. would be nice if this were fixed for those of us who need to use lua for other stuff. dcs.log
Flappie Posted June 14, 2022 Posted June 14, 2022 Now, that's a shame, because Scoop is supposed to avoid this sort of disagreements... 3 hours ago, GFX said: would be nice if this were fixed for those of us who need to use lua for other stuff. What do you mean by "fixed"? Do you have a solution already? This seems to be the DCS Lua path definition (from ./Config/main.cfg): package.path = package.path .. ';' .. './Scripts/?.lua;' .. './LuaSerializer/?.lua;' .. './MissionEditor/modules/?.lua;' ---
Recommended Posts