Git Product home page Git Product logo

auxlua's Introduction

Auxlua

Auxlua is a library for integrating lua scripting into BYOND projects. Internally, it uses Roblox's Luau to provide easy and reliable sandboxing to scripts.

Dependencies

The [Rust] compiler:

  1. Install the Rust compiler's dependencies (primarily the system linker):

    • Ubuntu: sudo apt-get install gcc-multilib
    • Windows (MSVC): [Build Tools for Visual Studio 2017][msvc]
    • Windows (GNU): No action required
  2. Use the Rust installer, or another Rust installation method, or run the following:

    curl https://sh.rustup.rs -sSfo rustup-init.sh
    chmod +x rustup-init.sh
    ./rustup-init.sh
  3. Set the default compiler to 32-bit:

    # Clone the `auxlua` repository to a directory of your choice
    git clone https://github.com/tgstation/auxlua.git
    # in the `auxlua` directory...
    cd auxlua
    # Linux
    rustup target add i686-unknown-linux-gnu
    # Windows
    rustup target add i686-pc-windows-msvc

Compiling

The [Cargo] tool handles compilation, as well as automatically downloading and compiling all Rust dependencies. The default configuration is suitable for use with any BYOND project. To compile in release mode (recommended for speed):

Linux:

export PKG_CONFIG_ALLOW_CROSS=1
cargo build --release --target i686-unknown-linux-gnu
# output: target/i686-unknown-linux-gnu/release/libauxlua.so

Windows:

cargo build --release --target i686-pc-windows-msvc
# output: target/i686-pc-windows-msvc/release/auxlua.dll

Installing

The auxlua binary (auxlua.dll or libauxlua.so) should be placed in the root of your repository next to your .dmb. There are alternative installation locations, but this one is best supported.

Included in the folder dmsrc is the file _hooks.dm. To use auxlua, copy-paste this file into your project.

Troubleshooting

You must build a 32-bit version of the library for it to be compatible with BYOND.

License

Auxlua is licensed under GNU AGPL v3.

auxlua's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.