Page 1 of 1

[Genhis][2.0.8] Require() No Longer Works with Symbolic Links

Posted: Thu Oct 24, 2024 4:36 am
by Adamo
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:

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

Re: [Genhis][2.0.8] Require() No Longer Works with Symbolic Links

Posted: Tue Oct 29, 2024 2:07 pm
by Genhis
Thanks for the report, this should be fixed for the next release.

Ref. 116690