KermanIsPretty / SM-Extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project has been archived because the offical developers of this game releasing there own version!

SM Exenstion for Lua Language Server

An extension to provide type support and some documentation to Visual Studio code for the modding aspect of Scrap Mechanic.

Contributors

  1. HardCoded - (docs & tracer)
  2. TechnologicNick - help with some function docs

How to install

Requirements

  1. Visual Studio Code
  2. Lua Language Server extension (github)
  3. git

Step 1

Clone the repository to a memorable location using git. Ex: git clone https://github.com/KermanIsPretty/SM-Extension.git

Step 2

Open visual studio code and navigate to the settings of the Lua language server.

Step 3

Scroll in the settings until you see library.

Step 4

Click add item and type in the full directory path of your memorible location followed by SM-Extension\.vscode\lua\sm.lua An example would be E:\Docs\SM-Extension\.vscode\lua\sm.lua

Step 5

Press ok or enter when you are finished entering the library location.

Step 6

Open your mod folder or what scripts you want to edit.

Questions?

Contact me on discord: TwentyCharatersGreat#5716 or look me up using 195930934480994304

FAQ

I am missing some functions?

You will need to add other libraries (see step 2 - 5).

  1. Util - <REPLACE WITH SM INSTALL PATH>\Survival\Scripts\util.lua
  2. AnimationUtil (tools) - <REPLACE WITH SM INSTALL PATH>\Data\Scripts\game\AnimationUtil.lua