ZenVirZan

Villager
Member
Joined
May 13, 2020
Messages
19
Reaction score
26
First Language
English
Primarily Uses
RMXP
RPG Maker XP Database Sort Tool

PxA7foA.png

Intro
RMXP DB Sort tool is a Ruby script that sorts the database, switch and variable entries by name. It also examines all database entries, maps, events and common events and updates the references so that no functionality is changed.

Prerequisites
  • A local Ruby installation to execute the script. This script was written using Ruby 2.7.1.
Usage
  1. Back up your project
  2. If you're sorting the project you're currently working on, make sure to close the editor first
  3. Run ruby rmxp-db-sort.rb <project directory> -o <output directory>
Use the --help argument to display all script parameters.

Note: As the IDs will be changing order, batch variable and switch assignment event commands may end up splitting into smaller groups, or individually, depending on how the sorted layout groups them together. By default, the best effort is made to keep them in bulk calls where possible, but this can be toggled to force any bulk commands that would be split into smaller bulk commands to instead be split individually.

Issues
Because this tool performs translations, it isn't able to translate what it isn't aware of. Custom scripts that reference database entries, switches or variables by ID will be incompatible, along with shortcuts used via event script calls. You will need to update them manually if you are using them.

To-do
  • Testing: I haven't tested this on a fleshed-out project yet
  • Allow the user to skip sorting for individual components
  • Add plugin support for text commands
  • Index mapping export, to accommodate manually updating external components based on what changed
Download
By using this script you are accepting the risks associated with it. Make sure to back up your data and test thoroughly.
View Releases on GitLab
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

I won't finish it today, I only will have time to work on that next Saturday, what a shame... :(
I made something for @LittenDev [as he requested]
It's been a weird while. I've been so torn down that even playing video games has been something I avoided. But I shouldn't forget two things. One, I love RPG Maker for a reason. Two, only way to eat an elephant is a bite at a time.
How do people even enjoy RGB keyboard and mouse lighting? It's distracting.

Forum statistics

Threads
111,385
Messages
1,060,710
Members
144,723
Latest member
IsisSwan
Top