Database Organizer

Hello!

My game's database is a mess right now. Finding a certain item or skill can be a real challenge sometimes. -_-

I started searching on google for a database organizer plugin but I couldn't find anything useful.
I did find a database Organizer plugin but unfortunately, it was for VX Ace... T.T Here's a link to the plugin I'm taking about.

I want this plugin to do everything the VX Ace plugin linked above can do.
In other words, it should be able to move around the stuff in the following sections of the database without affecting the already existing events in game:

Actors
Classes
Skills
Items
Weapons
Armors
Enemies
Troops
States
Animations
Titesets
Common Events
Types
Switches
Self Switches
Variables

Just in case the explanation I gave above wasn't good enough, here's an exemple that I took from the post in the link above:
You have an event that gives the player one Potion. You later decide to cut and paste the Potion with the Antidote to swap them in the database. Now, anything that referred to the Potion will refer to the Antidote (and vice versa) since they were tied to the item ID, not the item. The event I mentioned will now give the player one Antidote instead of one Potion. This script allows you to swap the Potion with the Antidote while preserving all of the references you've made to both items in your project.

I sock at everything code related, so I don't know if a plugin like this would be hard to do, but one thing I do know is that having a database organizer plugin for MV would be very helpful for a lot of people!!
I sock at everything code related, so I don't know if a plugin like this would be hard to do
As someone who've been engaged with this, yes, it is going to be hard to do. Possible, but tedious. The fact that it is possible to do in Ace, it should be possible to do in MV, however, it is hard to do. Not to mention, the script will NOT change the reference to any external plugin you're using. So if a plugin references an ID in the database, you still have to change it manually.

I do wish the next RM could do a sort or filter for database for the easier organization though. So the ID remains the same, only the display is different.
I was thinking about that these days...
I manage to organize a little bit reference the items, variables and switchs with their names instead of Id.
But for that, I have to use script call for everything.

Sure it's possible, that when you change something in database, when you playtest the game it would change the json file that reference the item.
I think someting like that would work. But this requires that the item/variable/enemy not be referenced by it's iD, and yes by their name.
At least in my idea to implement this, thats how I think in short.
Sorry for the really late reply!

Thanks for the answers, guys!

So it's possible to make one but it would be difficult, huh? That means the chances that someone actually make this plugin for free are pretty slim... That really socks. :/ And I'm guessing that paying someone to do it would cost a lot, right?
I was actually thinking of making something like this myself, but it wouldn't be straight away. I think I actually started making one in Ace, but then the one above was released, so I didn't keep working on it.
Even if it takes a while, it would be great to have a plugin like this for free!
If possible, please notify me when you release it.
Until it is released what you may need to do is make a backup of your project, then organize it the hard way. It will take a while but the sooner you do it the less painful it is.
You're right. I'll work on it as soon as I have a good amount of free time(probably next weekend). Thanks for the advice, bgillisp! 🙂
*Recites a spell to revive this thread* There! Thanks to my necromancer powers, this thread is revived! Mwaaaaahahahahahaaa!!

Weird jokes aside, I just wanted to say that, while I was looking for free tilesets on itch.io, I found a plugin that does pretty much what I wanted. It doesnt work like the one that Gambit released for Ace, but honestly, that doesnt really matter! Im just glad that I finally found a database organizer plugin! Reorganizing the database manually every few weeks was really getting annoying! -_-

For those who would like to have the link to the plugin, well, here it is! 🙂 Thank you Eliaquim for making such a great plugin!
Wow! I really forgot about this thread xD
I will take a look at this vx ace plugin, maybe I can implement in my plugin this functionality too ^^

Edit

And the plugin name is almost the thread name. Maybe it got stuck on my subconscious xD
I remember seeing something on yanfly's website going into detail about better database organization.
It's under the starting tips, not that it's a form of discouragement I still glance at it a little bit and I've used RPG Maker since the original VX. There's tons of neat ways that even if it might take time and there's no plugins for it, can still be done.

I pretty much gave up on organizing my stuff long ago. It doesn't seem worth the effort to me, and the only downside of having things disorganized is that they are sorted by ID in the UI, which I've already fixed with SFG_SortKeys (I think I spotted another similar plugin out there too). If I need to find a specific skill in the list when editing the database, I can just Ctrl+F and search for it.

While Eli's plugin looks pretty useful, I did think it was kind of poorly named. Referring to things by their name is a great idea, though. It doesn't help as much as it should, since everything in the editor insists on using the number, but still... of course, it's also possible to have multiple objects with the same name, though. There are probably even valid reasons to do that (for example, a skill that levels up when you achieve certain objectives).

Not to mention, the script will NOT change the reference to any external plugin you're using. So if a plugin references an ID in the database, you still have to change it manually.
Incidentally, it would be possible for an intrusive organizer plugin (that is, one that actually overwrites your data files) to actually deal with this to some extent, by parsing the parameter declarations from the plugin files and, for any declared to be of an object type, altering the value in plugins.js. It wouldn't work for pre-1.5 plugins that weren't updated for the new plugin manager features, though.
Incidentally, it would be possible for an intrusive organizer plugin (that is, one that actually overwrites your data files) to actually deal with this to some extent, by parsing the parameter declarations from the plugin files and, for any declared to be of an object type, altering the value in plugins.js. It wouldn't work for pre-1.5 plugins that weren't updated for the new plugin manager features, though.

Wouldn't you just modify the JSON file at that point? I've seen how they're stored and they update in the database when modified (After reloading the project file). Just plop it in a text editor and go to town and as long as you make a back up of the original one in case you break something you could technically mod your database on the fly.
The major problem that I had organizing the database, is that when we change something that, in the order, it will change in-game references too.
So my first thought is to really overwrite the JSON files to reorganize the database. But this also requires that we have to search for all references inside all data and maybe, other plugins too.
This feature that I implement, adds a possibility for you to find an id through its name. So you can change the database order whenever you want, as long as you use the methods provided by the plugin to reference the objects inside the game.

. While Eli's plugin looks pretty useful, I did think it was kind of poorly named. Referring to things by their name is a great idea, though. It doesn't help as much as it should since everything in the editor insists on using the number, but still... of course, it's also possible to have multiple objects with the same name, though. There are probably even valid reasons to do that (for example, a skill that levels up when you achieve certain objectives).

I struggle every time I make a plugin when I have to choose a name xD hahaha

The editor using numbers, still a problem though. For that, I was planning to make plugin commands that replicate the event commands. I will do it for me, so I will share it. For strange as it seems, I do prefer using plugin commands rather than click an event command to select different things, in most of the cases, at least. Although still is an idea, the better shot is that this feature comes into the engine(maybe in Mz?).
I already have plans to add a second Id in the items through note tags, this will solve the issue of the duplicate name.
I struggle every time I make a plugin when I have to choose a name xD hahaha
Yeah that can be hard sometimes!

Wouldn't you just modify the JSON file at that point? I've seen how they're stored and they update in the database when modified (After reloading the project file). Just plop it in a text editor and go to town and as long as you make a back up of the original one in case you break something you could technically mod your database on the fly.
Yes. To be clear, by "intrusive organizer" I meant a tool that would search all your JSON files and modify them to update references to any moved items. You can do it by hand too, of course; but with simple search-and-replace in a text editor, it's not easy to distinguish which numbers reference which type of object, so you can't do a replace all, you need to review every single one.

An intrusive organizer would be a lot of work. There are a lot of things plugins do that make it difficult to handle every case, like pre-1.5 plugins or note tags. Maybe it wouldn't ultimately be worth the effort. But it would be possible.
IRL you can just grep it all if you are replacing proper nouns that are unique and not keywords. Here is the documentation for grep. Like was said above, make sure you backup first because there are often kinks that need working out, but it's totally useable. Keep at it! https://www.man7.org/linux/man-pages/man1/grep.1.html

EDIT: But you wanted an organizer. Yeah. Try looking up Castle database? http://castledb.org/
It's not quite what the OP was asking for. They already have items in the database, that are used in events. They want to reorganize the database without having to redo the events, or having the events refer to different items than originally intended.

Original thread: https://forums.rpgmakerweb.com/threads/database-organizer.118575/