Skip to content

Loading Library into New-Mode Lua Script #2

@LH1138

Description

@LH1138

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions