Code Monkey home page Code Monkey logo

mta-compile-scripts's Introduction

MTA:SA Script Compiler

Overview

MTA:SA Script Compiler is a Visual Studio Code extension that streamlines the compilation process for Lua scripts used in Multi Theft Auto (MTA). It uses the official Lua compilation API provided by MTA, the same one used in the Compile Lua File web page.

Parameters used in compilation:

{
    compile: 1,
    debug: 0,
    obfuscate: 3,
}

Installation

You can install the extension directly from the VSCode Marketplace.

Features:

  • Compilation from meta.xml:

    • This method will read and parse all scripts listed with type client or shared, and compile all of them, creating a copy of each file, but compiled. This method also replaces the meta.xml to use the .luac version instead of the original source. That is, you will be able to keep the original source file, but as it won't be listed in meta.xml anymore, it won't be sent to the client.
  • From Lua Script:

    • This method will only compile the selected file, and won't make any changes to meta.xml, that is, you have to change meta.xml manually if needed.

Usage

Compile through meta.xml

  1. Right-click your meta.xml file in the Explorer.
  2. Click the Compile Client Scripts button from the context menu. Check the video
from-meta.mp4

Compile through Lua script

  1. Right-click your Lua script file in the Explorer.
  2. Click the Compile Script button from the context menu. Check the video
from-lua.mp4

Contribution

This extension is open-source, and contributions are welcome. You can submit issues, pull requests, or even create your own version based on it.

GitHub Repository: brenodanyel/mta-compile-scripts

Disclaimer

This extension does not receive or store your source files. The source files are sent directly to the MTA API for compilation. Check the source code if you want to see how it is implemented.

mta-compile-scripts's People

Contributors

brenodanyel avatar

Stargazers

 avatar  avatar  avatar

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.