xray-16 icon indicating copy to clipboard operation
xray-16 copied to clipboard

[FEATURE] Add gamedata as lua modules root.

Open Neloreck opened this issue 1 year ago • 0 comments

Changes

  • Adding string script to use $game_data$ as lua modules root
  • Allows usage of multiple files with custom game scripts using built-in lua tools without globals/patched GSC interceptors

Limitations

  • Lua does not check DB files so scripts called with require should be under gamedata/* root
  • Approach with monkeypatching does not work with locals/requires, but it is great for usage with tools like https://github.com/TypeScriptToLua/TypeScriptToLua

Neloreck avatar Feb 14 '24 00:02 Neloreck