System4 Extension for Visual Studio Code
This extension adds support for the AliceSoft's System 4 programming language.
Features
- Syntax highlighting for
.jaf source files
- Compiling
.jaf file with AinDecompiler
- Inline error messages
- Hover type information
- Jump to definition
Prerequisites
To use all the features of this extension, the following software is required:
- AinDecompiler
- System4-lsp
- For Windows, you don't need to install this separately because the extension bundles a prebuilt binary.
Getting Started
Assume you have installed Sengoku Rance at C:\Games\AliceSoft\戦国ランス and you want to edit the source code of the game.
Some setup steps are required before you can use this extension:
- Download AinDecompiler and unzip it somewhere.
- Decompile the game using AinDecompiler.
- Select "File" -> "Open Ain File" from the menu.
- Select
C:\Games\AliceSoft\戦国ランス\戦国ランス.ain .
- Select "File" -> "Decompile Code..." from the menu.
- Create a new folder named
src under C:\Games\AliceSoft\戦国ランス , select that folder, and click "Save".
- Once AinDecompiler finishes decompiling, close it.
Now your filesystem should look like this:
C:\
Games\
AliceSoft\
戦国ランス\
System40.ini
戦国ランス.ain
src\
戦国ランス.pje
classes.jaf
globals.jaf
...
...
You are ready to use this extension.
- Install Visual Studio Code.
- Install this extension from the Marketplace.
- In VSCode, open the
C:\Games\AliceSoft\戦国ランス\src folder.
- The extension asks you the path to AinDecompiler. Select the path to
AinDecompiler.exe .
- The extension asks you whether to set text encoding to Shift-JIS. Click "Yes". (Otherwise you'll see garbled text.)
- Open a
.jaf source file and edit it as you like.
- Once you are done, press
Ctrl+Shift+B (shortcut for "Run Build Task" command).
- Select "AinDecompiler: Quick Compile" from the list. AinDecompiler will compile the current
.jaf file and overwrite the .ain file.
- Run the game and check if it works as expected.
| |