Organizing Data Manager

Hey guys,

I've noticed some of the stuff in my data manager is kind of all over the place, namely skills and items. I could probably move things around on my own, but just copying and pasting is very tedious. How can I make my stuff neater faster?
Internally, all database entries are referenced by their unique ID.

Let's say the first two Weapons in your database are:
  1. Dagger
  2. Sword
If you swap them, then the IDs will be:
  1. Sword
  2. Dagger
Then every reference to "Dagger" in your game will now be a reference to "Sword", and vice versa.

As such, you will also need to update all relevant references. For event commands, I imagine it's possible to make some kind of automated system to do so; for arbitrary script calls, that's impractical.

The player never sees the database, so you probably don't need to tidy it up at all. Many games have messy databases, including unused content. Do you have a good reason to make it "neater"?
As @caethyril said, database entries are ID-based so if you change the order of the things, all of your references will be pointing at other stuff unless you update them.

Really, the best way to organise your database is to have a structure in place when you start. It's a lot harder to do after the fact.
Yeah, if you feel the need to clean up, you'll have to do it manually. It's like throwing your toys all over the place and then trying to get around having to store them neatly on your shelf again. Ain't gonna happen.

If you want a neat shelf, gotta do the sorting, or not throw around your toys all over the place to begin with.


This sort of thing seems to exist for MV and MZ, but admittedly I have no idea how well it works or the extent of its capabilities so might not be the best option, but figured I'd at least put it out there, haha. But it claims to auto-update the ids of things if you change the order around and reflect it in various events.

The description is a little light on details and the screenshots being in Japanese certainly doesn't help but it at least suggests that you can edit most aspects of the database, even the ones it doesn't say, like skills, etc.

Otherwise, yeah, echoing the others--it's probably better to practice more organised database organisation just to avoid things getting too out of hand since this sort of thing is a crutch at best and might not be 100% foolproof.
as all of the posts above say it is a bad thing to reorganize your database late in development.
but that is because you're prone to errors like every human, and no one can remember every use of an ID.

That said, there is a way to clean up - but it is still critical.
you can open the json files directly and preferable with a program that can analyse them.

The big problem here is that the internal structure only uses the IDs, and you can't directly tell if the ID 1 in the map file is used for event commands add-armor(1), add-weapon(1), add-item(1) or add-actor(1).
so you can't search for the ID numbers alone but have to analyse each number's context.
Which is why I said this needs specialized programs
The player never sees the database, so you probably don't need to tidy it up at all. Many games have messy databases, including unused content.

Well, that's a good point 🙂

The approach I had considered was just copying the stuff I wanted to organize, pasting it under some "header", and then deleting the other copies. But like I said, it's tedious, and there's a bit of a risk of accidentally deleting something you didn't copy, or overwriting a copy before deleting what you thought you had before.
Really, the best way to organise your database is to have a structure in place when you start. It's a lot harder to do after the fact.

Yeah, I think next time I create a game in RPG Maker, I'll organize my database items before I start.

Thanks 👍
So one thing that has not been pointed out yet;
Organizing the database after the fact, as mentioned, is a bad idea. But suffering with a mess is not required entirely.

You can use the find function by using ctrl+f to open a find window and search the current database tab for whatever thing you are looking to edit/modify/reference.
This ctrl+f can be used in nearly all windows, including switches, variables, and the database.
So one thing that has not been pointed out yet;
Organizing the database after the fact, as mentioned, is a bad idea. But suffering with a mess is not required entirely.

You can use the find function by using ctrl+f to open a find window and search the current database tab for whatever thing you are looking to edit/modify/reference.
This ctrl+f can be used in nearly all windows, including switches, variables, and the database.
Thanks for the tip! I'll definitely keep that in mind 🙂

Original thread: https://forums.rpgmakerweb.com/threads/organizing-data-manager.168507/