i may have found a bug but its just not consistent now, my project directory is set correctly as shown in the imgur link.
But i just ran:
for i, word in pairs(string.split(package.path, ";")) do
print(word)
end
sleep(2000)
and noticed the paths seems to be referencing the studio, not the project folder?
Program 'luart.exe' started in 'F:\PZHost\SCProject-LuaRT' (pid: 25760).
C:\ProjectsV2\LuaRT\LuaRT-Studio\bin\lua\?.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\bin\lua\?\init.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\bin\?.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\bin\?\init.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\bin\lua\?.wlua
C:\ProjectsV2\LuaRT\LuaRT-Studio\bin\?\?.wlua
C:\ProjectsV2\LuaRT\LuaRT-Studio\bin\..\modules\?\?.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\bin\..\modules\?\init.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\bin\..\modules\?.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\bin\..\modules\?.wlua
__modules\?\?.lua
__modules\?\init.lua
__modules\?.lua
__modules\?.wlua
__modules\?\?.wlua
.\?.lua
.\?.wlua
.\?\init.lua
./?.lua
./?/init.lua
./lua/?.lua
./lua/?/init.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\lualibs/?/?.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\lualibs/?.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\lualibs/?/?/init.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\lualibs/?/init.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\lualibs/?.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\lualibs/?/?.lua
C:\ProjectsV2\LuaRT\LuaRT-Studio\lualibs/?/init.lua
I also did move my lib into lualibs just to see if any change happens and now i also get:
F:/PZHost/SCProject-LuaRT/main.lua :5: module 'smol_api.lua' not found:
then moved it back out to the main directory and then it worked (without error) BUT my function does not work and calling it then results in the same not found error. if i just run (without debugger) it works but nothing happens, it just finishes
is there a file/folder structure i need to follow? or should i try a older version?