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

Build in the common z load first methods and forwarders #6545

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MjnMixael
Copy link
Contributor

@MjnMixael MjnMixael commented Jan 23, 2025

Most mods that have used scripting in the last decade have included the same z_load_first-sct.tbm file. I honestly forgot about that file, but even BtA uses it. So I took and look and thought we should really just build all this in to increase the QoL of our scripters.

The basic forwarders like print() -> ba.print() just make too much sense not to have. I could take or leave the Globals table but it's nice to have.

I then also added Nuke's include() method. I'm not sure that's really necessary since we have m!m's built-in require() forwarder that forwards Lua's require to our cfile system already. But it can't really hurt to have it and it's likely some mods have used it.

@wookieejedi wookieejedi added enhancement A new feature or upgrade of an existing feature to add additional functionality. cleanup A modification or rewrite of code to make it more understandable or easier to maintain. scripting A feature or issue related to LUA scripting labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup A modification or rewrite of code to make it more understandable or easier to maintain. enhancement A new feature or upgrade of an existing feature to add additional functionality. scripting A feature or issue related to LUA scripting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants