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

Loading Library into New-Mode Lua Script #2

Open
LH1138 opened this issue Sep 23, 2022 · 0 comments
Open

Loading Library into New-Mode Lua Script #2

LH1138 opened this issue Sep 23, 2022 · 0 comments

Comments

@LH1138
Copy link

LH1138 commented Sep 23, 2022

Hello everyone,

I am trying to create my own new-mode script.

Setting up the new-mode worked perfectly, following the readme instructions here. I can select it in CM, and it starts running as expected.

However, I am now trying to use the ac_physics library in the script. As far as I understand the loading setup, for the new-modes the ac_physcis library is not loaded on startup of this type of script.
Therefore, I tried to load it manually using "require". When I asked for ac_physics or just physics, the Lua debugger app always gives the error that no such lib exist in the path or cpath.

Could you please help me with the right syntax for loading the libraries?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant