Jump to content

Moonscript runtime resource


brightsun

Recommended Posts

Hello!

Recently I learned about a language that compiles to Lua called Moonscript.

I found a resource for MTA called "luna". This resource is created to execute Moonscript code without compiling it to Lua.

I downloaded this resource here: https://github.com/lemonade/luna

But the problem is I can't run any code this resource. When I try to call the exports.luna:execute() function, It always outputs an error:

Quote
ERROR: luna\execute.lua:7: [luna] [string "server:lpeg"]:2388: bad argument #1 to 'P' (lpeg-pattern expected, got nil)

So, maybe someone over here has a working version of this resource? Or a simmilar resource which can execute .moon files?

And yes, I'm aware of that I can compile .moon scripts with Moonscript compiler. But for resource I'm working on I need to execute Moonscript files without pre-compiling it!

Thank you!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...