Coder Social home page Coder Social logo

trailmakers-api-luals's Introduction

Trailmakers API definitions

Unofficial Trailmakers modding API addon for LuaLS. Setups the LuaLS environment for development of Trailmakers mods

Features

  • Autocompletion, definitions and documentation of the modding API functions and types, as well as Moonsharp's additions that are enabled in game
  • Sets the language server to the correct Lua version used in the game
  • Removes definitions of functions and modules from the standard library that are disabled in game

Installation

  1. Install lua-language-server
  2. Clone this repository or download it as a .zip and unzip it. Place it inside a folder for LuaLS addons (e.g. ~/documents/LuaAddons/)
  3. Add the file path of the addons folder to the workspace.userThirdParty LuaLS setting
    • VSCode
      1. Open command palette (ctrl+shift+p) from your mods folder
      2. Select Preferences: Open workspace Settings
      3. Search for lua.workspace.userThirdParty
      4. Click "Add Item", enter the path of the addons folder, and click "Ok"
    • Other editors: set the value of the LuaLS setting Lua.workspace.userThirdParty to an array with the path of the addons folder. You might want to set this only in the workspace settings of your mods folder
  4. After opening a lua file in the mods folder, you should be prompted to enable the addon. Select "Apply and modify settings". If you aren't prompted to enable the addon, verify that the LuaLS setting workspace.checkThirdParty is set to true
  5. To remove duplicate documentation, remove the official documentation library file (trailmakers_docs.lua) from the mods folder

Updating

If you cloned the repository when downloading it, you can simply do a pull. If you downloaded it as a .zip, you need to redownload it and replace your local copy with the new version

trailmakers-api-luals's People

Contributors

alvaroping1 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.