Items database inquiry: Why "change maximum" and not use the "Reserved" area?

Hello,

I'm working on my first very short game, based off an old tutorial for VX Ace, most of which is still relevant today.

In making characters, as well as new items, I have found that I am supposed to "Change Maximum..." in order to add new items.

1) Why is there a set maximum per project, and why is it not just open, or showing a hard max?
2) Should I avoid using database items 0002 - 0005? (These are located under -----Reserved, which is entry 0001 in the database)

Attached is an image showing where I got in a hurry and put a new item in the 0002 slot, as at the time I interpreted "reserved" to mean reserved for a few specialty items I might like to add into the game 🙂 although I am sure that is not the case.

I can recognize why changing maximum and putting my special items at the end would be best practice, but I would like to better understand why.

Thanks,
hatesec

I've moved this thread to MZ Support. Thank you.

I believe the reserved section is there for items you'd like to always be at the top of the players inventory when present.

As far as the database entry limits, it's probably from general standars, both from a computational view as well as a practical view. The system probably doesn't need to keep track of more than 2000 items and we probably won't need that many separate items.

Also, a hard limit on entries makes looping over those arrays more efficient in the long run.
There are several reasons for your first question.

1. First, from the UX standpoint, it is easier to edit and navigate by clicking the database slot. You don't need to click "add new skill" every time you need a new skill. Just set the maximum, then click on the empty slot.
2. The "empty" slot is not actually empty. The data is saved as game data in JSON format. Setting it to a hard cap would increase an unnecessary save/load time.

For your second question, the only reserved slot in the database is just the first skill in the skill database used for the normal attack, the second slot for the guard skill, and the first state in the state database used for the KO state.
Attached is an image showing where I got in a hurry and put a new item in the 0002 slot
In addition to what the others have already said... "reserved" is a mistranslation. It should be "reserve" or "spare". There are sadly MANY TOO MUCH слишком много 多過ぎ VEELS TE VEEL TROP DE things that have been "lost" in translation.

The database of rpgmaker does not come with a display order field (As a database software vendor I could rant an hour about how archaic this is, but I'll spare you). As such, the items will appear in this exact order in your inventory. Should you, later in development, decide that you want something to appear at the top of your item inventory, you're basically toast if there weren't a couple of reserve or spare rows at the top.
In addition to what the others have already said... "reserved" is a mistranslation. It should be "reserve" or "spare". There are sadly MANY TOO MUCH слишком много 多過ぎ VEELS TE VEEL TROP DE things that have been "lost" in translation.

The database of rpgmaker does not come with a display order field (As a database software vendor I could rant an hour about how archaic this is, but I'll spare you). As such, the items will appear in this exact order in your inventory. Should you, later in development, decide that you want something to appear at the top of your item inventory, you're basically toast if there weren't a couple of reserve or spare rows at the top.
That's an issue I am already running into!

What I've done to get around it is copying and pasting rows, moving them down, and then clearing that space.

It is odd that after nearly 20 years certain basic "QoL" features like that have still not been added to the software.

I will say though that I am extremely happy with MZ and the vision it has enabled me to take on. I have not been this excited about a project since my friends and I first started our satire news site 15 years ago.
What I've done to get around it is copying and pasting rows, moving them down, and then clearing that space.
I hope you haven't made any references to any of the items yet... the internal ID (the KEY so to speak) is the record number. So if you shift items around all the references (like shops that you have created) will be garbled.

Happy to hear that you are enjoying MZ. It's not perfect but many of the things that take weeks to set up in other packages can be done in a matter of days.
In addition to what the others have already said... "reserved" is a mistranslation. It should be "reserve" or "spare". There are sadly MANY TOO MUCH слишком много 多過ぎ VEELS TE VEEL TROP DE things that have been "lost" in translation.

The database of rpgmaker does not come with a display order field (As a database software vendor I could rant an hour about how archaic this is, but I'll spare you). As such, the items will appear in this exact order in your inventory. Should you, later in development, decide that you want something to appear at the top of your item inventory, you're basically toast if there weren't a couple of reserve or spare rows at the top.
Editing this message to indicate I clicked reply on the wrong response. My reply is in response to your warning about internal IDs.

Wow! Okay, thanks for the heads up.

Do you know if that also applies to skills?

Because I have been copying and pasting those willy-nilly, as I create snd reorder them.

Follow up question to your point about the items database:
What effect does it have if I decide later to reorder items in my database? Would such an action cause my items to have incorrect display names or attributes? Because if the only thing that happens is when I reorder them in my database, it reorders them in my items lists amd vendors, that doesn't seem so bad. As long as I know to expect it. But maybe I misunderstood your meaning and the problems are more serious than that.
It is more serious than that.

Suppose your item 10 slot is for, say, Super Health Potion. If you have put it anywhere in the game when you change the order what you have put there is no longer Super Health Potion but e.g. Maxi Magic Potion. So if you change the order in the database, you will have to go through your whole game, find every instance of every item which has moved and change them so that the event is calling the correct item. Tedious, and highly prone to error. The only way to avoid this is to populate your data base before you do anything else, and leave lots of blank slots so that if you think of a new HP potion later on you can at least drop it into the same grouping.

This also applies to weapons, armour and skills. It is never the name which the engine searches for and applies, it is always the slot number, no matter what is now in that slot.
It is more serious than that.

Suppose your item 10 slot is for, say, Super Health Potion. If you have put it anywhere in the game when you change the order what you have put there is no longer Super Health Potion but e.g. Maxi Magic Potion. So if you change the order in the database, you will have to go through your whole game, find every instance of every item which has moved and change them so that the event is calling the correct item. Tedious, and highly prone to error. The only way to avoid this is to populate your data base before you do anything else, and leave lots of blank slots so that if you think of a new HP potion later on you can at least drop it into the same grouping.

This also applies to weapons, armour and skills. It is never the name which the engine searches for and applies, it is always the slot number, no matter what is now in that slot.
Thank you so much for the information.

So if I move a db item that I've used in various places in my game, it won't call the item by the wrong name, but it will use the correct names and information for the item that it does us, but the problem is that it's the wrong item, or skill, or whatever.

I'll create an example to be sure I understand you correctly (and I appreciate your patience with me):

If I place a potion in a chest, and later an elixir takes its place in that database row, the elixir won't be broken, and it won't misbehave, but it won't be a potion anymore. The game is going to show an elixir, and the player gets lucky because instead of a potion the dev intended to be there, it's an elixir now. Do I have that right?

I'll make another example, and correct me if I'm wrong...

I create a skill called Heal, and I put Heal in my level 1 guys toolkit. Later on, I move Heal down and put Death ahead of it. But unless there is an event in my game that called for Heal, I won't see any change other than the order on my move list. However, if I created an event that Heals my character when they walk over a tile, but Death has taken its place in the DB, my character is going to see a pretty green aura and pretty jingling noise, but they're also going to instantly die.

Do I understand this database issue correctly?

Is there anything else I should watch out for? Now I'm curious how far you guys got into development before you really got slammed with serious database issues. Any nightmare stories?
Thank you so much for the information.

So if I move a db item that I've used in various places in my game, it won't call the item by the wrong name, but it will use the correct names and information for the item that it does us, but the problem is that it's the wrong item, or skill, or whatever.

I'll create an example to be sure I understand you correctly (and I appreciate your patience with me):

If I place a potion in a chest, and later an elixir takes its place in that database row, the elixir won't be broken, and it won't misbehave, but it won't be a potion anymore. The game is going to show an elixir, and the player gets lucky because instead of a potion the dev intended to be there, it's an elixir now. Do I have that right?

I'll make another example, and correct me if I'm wrong...

I create a skill called Heal, and I put Heal in my level 1 guys toolkit. Later on, I move Heal down and put Death ahead of it. But unless there is an event in my game that called for Heal, I won't see any change other than the order on my move list. However, if I created an event that Heals my character when they walk over a tile, but Death has taken its place in the DB, my character is going to see a pretty green aura and pretty jingling noise, but they're also going to instantly die.

Do I understand this database issue correctly?

Is there anything else I should watch out for? Now I'm curious how far you guys got into development before you really got slammed with serious database issues. Any nightmare stories?
That is basically it, yeah. If you were doing anything in your game involving Potions, they will all now reference Elixirs instead.

Note that if your message for the chest said "Got a Potion!" it'll still say that despite it being an Elixir you get.

The general answer to your question is "We try to plan our databases carefully and avoid adding too much to them after the fact, and absolutely under no circumstances do things move slots if it can be avoided". 😛
I'll create an example to be sure I understand you correctly
I think you're just overcomplicating this to confuse yourself in your head. It's very simple.

Every reference to a database entry is by the ID. That's it.

Every shop that lists items for sale, every class that lists what skills you learn, every event command where you choose an actor, it's by the ID. Always.

Now I'm curious how far you guys got into development before you really got slammed with serious database issues.
I never have. By the time I did anything where I thought I might like things in a different order, I already had lots of the game built so I wasn't going to try to actually move the database entries and find/modify every reference in the game.

It's much simpler to make a line of code as a plugin that will, say, change how skills are sorted.
I think you're just overcomplicating this to confuse yourself in your head. It's very simple.

Every reference to a database entry is by the ID. That's it.

Every shop that lists items for sale, every class that lists what skills you learn, every event command where you choose an actor, it's by the ID. Always.


I never have. By the time I did anything where I thought I might like things in a different order, I already had lots of the game built so I wasn't going to try to actually move the database entries and find/modify every reference in the game.

It's much simpler to make a line of code as a plugin that will, say, change how skills are sorted.
I am not trying to confuse myself. I am trying to make sure I fully understand by providing examples with simple yes or no answers.
I am not trying to confuse myself. I am trying to make sure I fully understand by providing examples with simple yes or no answers.
In that case, the answer to your second question is no, that's wrong. You will see a difference when the actor learns Death instead of Heal, because that's the ID you listed in their Skills to Learn (presuming that's what you mean by "guy" and "toolkit").

That's why I suggested you were confusing yourself, because you are correct in one case and incorrect in the other. But it's all the same thing - it references the numeric ID.
In that case, the answer to your second question is no, that's wrong. You will see a difference when the actor learns Death instead of Heal, because that's the ID you listed in their Skills to Learn (presuming that's what you mean by "guy" and "toolkit").

That's why I suggested you were confusing yourself, because you are correct in one case and incorrect in the other. But it's all the same thing - it references the numeric ID.
Alright no that's not what I meant but thanks anyway, all input is helpful as - like I said - this is my first game and that's why I opened this discussion, and getting into these little details has opened my eyes to the nuances of database management.

My main takeaway is don't move stuff around, and simply add a new line, even if it means my databases are not as pretty as I'd like them to be.

To that end, however, I also take this to mean there is not much risk in shifting stuff around if I haven't started making calls to the database yet.
Correct, if there are no external references, then it doesn't matter what you put where.
Is there anything else I should watch out for? Now I'm curious how far you guys got into development before you really got slammed with serious database issues. Any nightmare stories?
The only thing that matters in the database is just the display because it is, by default, ordered by ID. That is something you need to plan. But for something mostly invisible like states, classes, animations, troops, enemies, and actors, you don't need to order. The only problem you might encounter is just development experience because it isn't ordered the way you like, but the game should be fine as long as you don't reorder things.

About the display order in-game though, it is not impossible to implement a plugin to make the display order in-game the way you like instead of using the ID/Slot order in the database.

Original thread: https://forums.rpgmakerweb.com/threads/items-database-inquiry-why-change-maximum-and-not-use-the-reserved-area.159570/