Getting Started with Visual Studio Code for SRB2 Lua

Getting Started with Visual Studio Code for SRB2 Lua

Kirber Burgy

Visual Studio Code shill
Kirber Burgy submitted a new resource:

Getting Started with Visual Studio Code for SRB2 Lua - A guide to creating Lua scripts in SRB2 using Visual Studio Code.

Getting Started with Visual Studio Code for SRB2 Lua Scripting​

This guide is derived from Ash's guide on the SRB2 Wiki, which can be found here.

Before I begin, I'd like to make note of the files required to follow this guide, as well as give credit where it is due.

Visual Studio Code may be downloaded and installed from this website.
The...

Read more about this resource...
 
this works for vscodium right? (the only reason i use that is because it doesn't have the copilot bs)
 
I have updated the extension and definitions so this thread is outdated until it gets updated.
Check here for the latest version.

A quick changelog:
  • The definitions are a lot, lot more complete now, very close to parity with the wiki.
  • The extension now handles SRB2's built-in numeric types better, so stuff like `2*FU` will usually say `fixed_t` instead of `unknown`.
  • There is now a SRB2-only `Weak Number Check` setting that makes it so that implicitly casting `INT32`s and `fixed_t` into each other no longer triggers a diagnostic (due to SRB2 nonsense like `painchance` etc.).
  • Setting `mobjinfo`, `states`, etc. no longer triggers the `missing-fields` diagnostic.
  • I added a little plugin.lua file that you can point the `Lua.runtime.plugin` setting to in order to get automatic autocompletion for the arguments to `addHook()`.
 
I've updated the guide to reflect the changes LJ Sonic mentioned.

Thanks again for your astounding work, LJ!
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top