Dofile Library Directories #2193
Natejoestev
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
if i missed something in |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i'm a mod developer for a game Scrapmechanic. there is a main library
sm.lua
which works with theLua.workspace.library
setting.but they also have game scripts (eg:
$GAME_DATA/Scripts/gameFile.lua
) that you can include into your scripts withdofile
.it would be nice to have a setting like:
so if i have a file:
C:/Path/to/Game/Data/Scripts/main.lua
:it's like nodejs
require
, a class is only present when included into the file.i also have a regex to find the path, if the implementation would require that.
if this can't be acomplished i would be happy to make my own extension.
Beta Was this translation helpful? Give feedback.
All reactions