Blitz3D VSCode Support

The Wonderland Open Source Project

Moderators: ILoveWonderland, Sammy_P, Lazy Loof

Post Reply
User avatar
Lazy Loof
Rainbow Wizard
Posts: 462
Joined: Sun Nov 27, 2016 2:37 pm
Contact:

Blitz3D VSCode Support

Post by Lazy Loof » Fri Mar 22, 2024 2:09 pm

Hello everyone!

There's an interesting extension in VSCode marketplace which enables VSCode support for Blitz3D: https://marketplace.visualstudio.com/it ... es.blitz3d

However, currently the latest version will not work with OpenWA as it doesn't support arrays of custom types: https://github.com/denesfilotas/vscode-blitz3d/issues/3

There's a temporary workaround for this: Download the older version (v0.4.1), it also doesn't support arrays of custom types but OpenWA seems to work seamlessly atleast.

How to setup?
1) Download the extension from the links given above.
2) Make sure you have a working copy of Blitz3D, if not then install it somewhere, let's say "C:\Blitz3D".
3) Now add BLITZPATH environment variable and set it to the location of your Blitz3D installation, e.g "C:\Blitz3D".
4) Now create an entry in PATH enivornment variable and set it to "%BLITZPATH%\bin\"
5) Open Command Prompt/Windows Terminal/Powershell and enter "blitzcc -h", it should work.
6) Open your OpenWA folder in VSCode, the extension might ask for creating stubs, so allow it.

Done! There's basic IntelliSense support so you will see autocomplete, plus you can use all features of vscode.

Enjoy modding!
Previously known as Aryan101
User avatar
nasko222
Rainbow Master
Posts: 591
Joined: Sat Jul 07, 2018 1:22 pm

Re: Blitz3D VSCode Support

Post by nasko222 » Fri Mar 22, 2024 2:50 pm

i approve
Post Reply