Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add gamedata as lua modules root. #1610

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Neloreck
Copy link
Contributor

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

@Xottab-DUTY Xottab-DUTY added Enhancement Lua Modmaker Experience Modmaker experience with OpenXRay labels Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Lua Modmaker Experience Modmaker experience with OpenXRay
Projects
Status: To do
Development

Successfully merging this pull request may close these issues.

None yet

2 participants