Minimal working example (ready-to-use version attached):
mod_A/data.lua:
Code: Select all
require("__mod_B__.subfolder.some_script")
Code: Select all
require("subfolder.helper_script")
This situation leads to the following error (complete log attached):
Failed to load mods: __mod_A__/data.lua:1: __mod_B__/subfolder/some_script.lua:1: module subfolder.helper_script not found;
no such file __mod_B__/subfolder/subfolder/helper_script.lua
no such file __mod_A__/subfolder/helper_script.lua
no such file D:/Programme/Steam/steamapps/common/Factorio/data/core/lualib/subfolder/helper_script.lua