[VSCode] Script Editor for RPG Maker XP, VX and VX Ace [v1.6.1]

Once again, thanks for your contribution. Hope you can spread the usage of your awesome plugin. I am planning to go 100% with my project in the next months and I'm thrilled to be working on it with VS and your plugin.

Idea:
To complement your new "create a bundle from only selected sections" function, any chance you could implement a general function to "deselect" and "select" marked sections? Perhaps in the context menu when doing a right click? So one could activate/deactivate the load status of several scripts with only one click instead of clicking on each one manually. Or is there already such a function? In that case, I'm blind 😀.
Once again, thanks for your contribution. Hope you can spread the usage of your awesome plugin. I am planning to go 100% with my project in the next months and I'm thrilled to be working on it with VS and your plugin.

Idea:
To complement your new "create a bundle from only selected sections" function, any chance you could implement a general function to "deselect" and "select" marked sections? Perhaps in the context menu when doing a right click? So one could activate/deactivate the load status of several scripts with only one click instead of clicking on each one manually. Or is there already such a function? In that case, I'm blind 😀.
Hi good luck with your project!

About your idea, unless I broke it in the last update it should allow you to check/uncheck several scripts at the same time.

Try selecting a group and right click -> Alternate Section Load Status...

You can also use a keybind to do this, I believe it is F4 by default, unless I set it to F4 for myself 🙂
Hi, unless I broke it in the last update it should allow you to check/uncheck several scripts at the same time.

Try selecting a group and right click -> Alternate Section Load Status...

You can also use a keybind to do this, I believe it is F4 by default, unless I set it to F4 for myself 🙂
Ah yes, you're completely right. F4 works and the "Alternate Section Load Status" is also there and does work. Must have overlooked it or haven't realized, the wording mean toggling the selection on/off.
Ah yes, you're completely right. F4 works and the "Alternate Section Load Status" is also there and does work. Must have overlooked it or haven't realized, the wording mean toggling the selection on/off.
Yeah now that you said it the wording is a bit odd and not clear, I may change it to "Toggle Section/s Load Status On/Off..." or something like that and push a quick update
New version 1.2.1 released, changelog notes below.

[1.2.1] - 02/03/2024​

Changed​

  • Renamed some commands to make them clearer
  • Improved the README file

Fixed​

  • Fixed toggle section command not toggling the tree item with right click
    • Toggling a section with the context menu (right click) did not work if a section was selected on the tree
This is so cool, thanks!

Will this allow us to use breakpoints/debug from within VS Code? I’m so desperate to be able to use breakpoints in my VXA scripts lol
This is so cool, thanks!

Will this allow us to use breakpoints/debug from within VS Code? I’m so desperate to be able to use breakpoints in my VXA scripts lol
Hi, You're welcome!

Sadly no, I tried to add debugging support before but it is complicated to do so, mainly because debugging Ruby requires installing and using a gem, and RPG Maker does not allow requiring gems, also since the game is an executable I don't have the necessary skills to attach the debug to the process, but I'm open to other ideas/feature requests tho.

PS: The only attempt I know about adding debugging support is SES Debugger
Ah, gotcha. Thanks for getting back to me! Really cool stuff 🙂
New version 1.3.0 released, changelog notes below.

Note: OpenVSX still has version 1.2.1 because there are some troubles with the servers and I could not push the new update, I'll release the new version there once the problem is fixed.

[1.3.0] - 20/06/2024​

Added​

  • The extension now automatically re-creates the script loader every time the user opens a folder if the scripts are already extracted
    • It is recommended to leave it active, so the extension can update the script loader between updates.
    • Optionally, it can be disabled, but the user will have to update the script loader manually with the corresponding command.
  • Added run game behavior option
    • The user can choose how the extension behaves when trying to launch the game again.
    • You can choose between the following behaviors:
      • Nothing: Does nothing, this how RPG Maker behaves (default)
      • Kill and Run: Kills the current game process and runs it again
      • Allow Multiple: Allows the user to start more than one game process at the same time
  • Added files EOL (End-of-File) option
    • Scripts are now created with the appropriate EOL characters
    • You can force the extension to use a specific EOL type (LF, CRLF)
    • You can also let the extension determine the appropriate EOL automatically
      • This is based on the operating system
  • Import scripts from bundle files
    • You can import all scripts inside an RPG Maker scripts bundle file
    • Optionally, you can allow whether to overwrite existing scripts or not
  • Added a file system watcher to detect the output file the game creates when an exception kills the game
    • In previous versions, the extension processes the game exception only it the game was launched from VS Code
    • If the extension is running. you can launch the game out of VS Code, and it will process the game output file
  • Added a new command to reveal a script or folder on the operating system file explorer
    • Available in the context menu when selecting a script or a folder in the script editor view
  • Added the possibility for developers to reload scripts on runtime (EXPERIMENTAL)
    • The script loader will load scripts again if a ResetLoader exception is raised
    • You can raise this exception anywhere on your code

Fixed​

  • The extension now gets the appropriate game process PID instead of the shell process PID
    • The game processes are now properly killed when closing VS Code or switching between projects
  • Fixed game process Errno::EBADF exceptions
    • Errno::EBADF was raised sometimes on RPG Maker VX Ace projects
      • The game fails to redirect output to the console output
    • Output is redirected to the null device if this happens to avoid crashes

Changed​

  • Changed extension's auto process game error option
    • If enabled, the extension will automatically show the exception without asking the user to peek the backtrace
    • If disabled, it will ask the user before showing the exception information.
New version 1.3.1 released, changelog notes below.

OpenVSX servers are still down

[1.3.1] - 21/06/2024​

Fixed​

  • Fixed an issue revealing script on the tree view
    • Due to VS Code limitations, the reveal depth allows up to three levels
      • The reveal operation failed when the script is deeper than three levels
  • Fixed a problem when collapsing and expanding folders
    • The extension did not update the collapsible status of the folder
      • When the tree was refreshed, the collapsible status was reset to the default state

Changed​

  • Changed debug to file option default value to false
    • Avoids unnecessary file write calls
    • Users can enable it manually when reporting bugs
Once again, thanks for your work. I can confirm, that VSCodium extensions are being updated again.
New version 1.4.0 released, changelog notes below.

[1.4.0] - 16/07/2024​

Added​

  • Added configuration to change the log files path
    • Moved all the extension's files and folders inside a parent folder to make it tidier
    • The script loader is now re-created when the game log file path is changed
  • Drag and drop sections (folder/scripts) on the VSCode editor
    • You can drop sections from the extension's tree view directly on the editor
      • When a folder is dropped it will open all sections inside recursively
      • You can drop sections on different columns
  • Compile enabled scripts using a keybind
    • You can use a keybind (CTRL+F5 by default) to quickly compile the current enabled scripts
    • The bundle file name is set to Scripts to match the RPG Maker bundle file name
    • You can use this to automatize the creation of a bundle file for game distribution.
  • Copy and paste sections on the extension's tree view
    • You can copy any section on the tree view
      • Copied folders will keep all child sections
      • All sections will be saved in the clipboard
    • Paste any saved section on the clipboard anywhere on the tree
      • Pasted sections will make sure not to overwrite existing sections with the same name

Changed​

  • Load order file uses the user selected EOL characters when created
  • Extension shows an error message when it is not possible to move sections
New version 1.4.1 released, changelog notes below.

[1.4.1] - 13/09/2024​

Changed​

  • Removed unnecessary refresh call on the editor section expand/collapse callbacks
    • Script reveals on the editor view should be faster now on projects with many subfolders in depth
  • Removed work-around to reveal editor section with 3 levels of depth or more

Fixed​

  • Tree data item not found errors when revealing script sections on the script editor view
New version 1.5.0 and 1.5.1 released, changelog notes below.

[1.5.1] - 19/05/2025​

Fixed​

  • Fixed input window not showing the full list of invalid characters

[1.5.0] - 19/05/2025​

Added​

  • Localization support
    • Added spanish localization
  • Cut & Paste operations on the script editor
    • You can select a list of sections to cut and paste in the extension's script editor
    • All sections will move to the target avoiding overwrites
  • Added a new command to copy the absolute path to the clipboard of a any section or sections
  • Added a new command to copy the relative path to the clipboard of a any section or sections
  • Added a new command to create a backup file of the current load order
  • Added script name validation setting
    • Allows the extension to validate script names to meet the requirements of RPG Maker based on the Ruby version used
  • Added a setting to insert encoding magic comment
    • Since v1.5.0 the enconding magic comment is no longer needed
    • Although, you can optionally enable this setting to insert them into scripts

Changed​

  • Changed loader script from using Kernel.require and Kernel.load to Kernel.eval to load script files.
  • Modified loader script to not suppress exceptions when creating the game log file
  • Improved regular expressions to match invalid characters, depending on RGSS version
    • Validation of invalid characters is much more permissive now, allowing wide characters when supported.
  • Modified section move operations to avoid overwriting sections in target folder
  • Forced import operations to always create a folder, avoiding overwriting sections
  • Improved script controller logic, should be more stable and efficient now
  • Removed section priority attribute and used the position in the children array to determine their priority
  • README has been improved to make it clearer and easier to read
  • Improved description for all extension settings

Fixed​

  • Fixed the problem that caused different scripts with the same name to be overwritten when extracting
  • Fixed bugged tree view editor when changing between workspace projects
    • The script editor view was unnecessarily re-created between workspace changes
  • Fixed drag & drop (section move) raising errors when the section was dropped in self or inside a child section
  • Fixed empty icons for separators

A few new fixes are available

[1.5.5] - 21/05/2025​

Fixed​

  • Fixed bad file descriptor errors in the extension script loader
    • File descriptor is redirected to null (supressed) until process allocates the console

[1.5.4] - 20/05/2025​

Fixed​

  • Fixed file system watcher resetting section load order

[1.5.3] - 20/05/2025​

Fixed​

  • Assign the appropriate loading status when creating new sections

[1.5.2] - 19/05/2025​

Fixed​

  • Fixed section checkbox state forced to true when creating sections

[1.6.0] - 19/08/2025​

Added​

  • Added script loader preload
    • You can preload scripts before loading the game's scripts
    • You can preload from the following sources:
      • Bundle file (rxdata, rvdata, and rvdata2)
      • Loose script file
      • Folder with a load_order.txt file
  • Added script loader logging
    • Useful for RPG Maker XP and VX
    • Enable/disable using an extension setting

Fixed​

  • Fixed load order recognized as a folder sometimes in the tree view
  • Fixed uncaught error when showing peek menu with an empty backtrace
  • Fixed the load order backups folder setting description
New version 1.6.1 released, changelog notes below.

[1.6.1] - 18/10/2025​

Fixed​

  • Redirects game's stdout and stderr properly in unix-like systems
    • Extension no longer creates a "CONOUT$" file in unix systems
  • Normalized load order entries path to ensure consistency
    • Extension failed to process the same load order between Windows and Linux
    • Load order entries will be written using the POSIX standard separator
    • Load order entries are processed based on the user's OS

Original thread: https://forums.rpgmakerweb.com/threads/vscode-script-editor-for-rpg-maker-xp-vx-and-vx-ace-v1-6-1.164586/