This Visual Studio Code extension provides IntelliSense for the King Arthur's Gold scripting manual. The goal is to provide everything a modder needs right inside their IDE and provide an alternative to KAG Tools.
- IntelliSense for the KAG scripting manual
- Command Palette commands for common modding tasks
- Enabling and disabling mods
- Navigating through the KAG scripting manual
- Running a KAG server and one or more clients
- AngelScript language parser for KAG's flavour of AngelScript
- Node.js
- TypeScript (
npm install -g typescript
)
- Navigate to the Visual Studio Code extensions directory
- Windows:
cd %USERPROFILE%/.vscode/extensions
- Windows:
- Clone this repo
npm install
npm run compile
- Launch or restart Visual Studio Code and open an AngelScript
.as
file - Acknowledge the prompt that appears asking you to specify the path to your KAG installation
- If it doesn't work, refer to the Troubleshooting section
git pull
- Delete
./node_modules
and./out
directories npm install
npm run compile
If you have an AngelScript .as
file open but the IntelliSense is not working, verify that Visual Studio Code has not mistakenly detected the file as an ActionScript file. The language Visual Studio Code has detected is stated to the right of the bottom status bar. The language of the file can be changed by doing the following:
- Open the Command Palette (Ctrl+Shift+P)
- "Change Language Mode"
- "AngelScript (angelscript)"
If IntelliSense still isn't working, verify that the KAG path set is to the folder that contains KAG.exe
rather than the Base
or Manual
folders. The path to your KAG installation can be changed by doing the following:
- Open the Command Palette (Ctrl+Shift+P)
- "Preferences: Open User Settings"
- Search for the "KAG.path" setting
- Make the necessary changes
- Restart Visual Studio Code