[Genhis][2.0.8] Require() No Longer Works with Symbolic Links
Posted: Thu Oct 24, 2024 4:36 am
I wonder if it is related to the change from 115137.
Require("file") works fine if the file.lua exists directly but does not follow symbolic links any longer even when file is on the same drive. The require() statement works with symbolic links if I include the "__mod-name__" path prefix, e.g. require("__mod-name__/file").
It returns the error:
Require("file") works fine if the file.lua exists directly but does not follow symbolic links any longer even when file is on the same drive. The require() statement works with symbolic links if I include the "__mod-name__" path prefix, e.g. require("__mod-name__/file").
It returns the error:
Code: Select all
Failed to load mods: __adamo-calibration__/data-final-fixes.lua:1: Invalid path, path is not within a valid mod folder. Path: factsheet.lua
stack traceback:
[C]: in function 'require'
__adamo-calibration__/data-final-fixes.lua:1: in main chunk