Random weapons and armours appearing in inventory after first save

This is really bizarre and I'm baffled as to what can be causing it, so I thought I'll ask here, where surely someone will know :LZSwink:
This already happened in my previous game, but it was only casual clothes magically appearing in the inventory after the game was saved the first time (it didn't go on duplicating later), so I just left it (it sort of makes sense you'd have some casual clothes with you :LZSjoy:). Now I started working on a sequel, building up on the materials/scripts/maps from the first one. I was testing something and noticed that after loading, there are two bucklers (armour ID 41) and two weapons I haven't specified yet (IDs 63 and 73) in the inventory. Does anyone with a better understanding of the workings of the engine than me have any idea why this would happen? I'm using a script that allows naming saves (found here) and nothing else that should mess up saves, in my opinion, but who knows...
If my guess is right, you are exactly the third person reporting this problem - in almost twenty years.
I was the first, and there was someone else about five or ten years back with something similar.
and it could never be reproduced by anyone else.

if I remember correctly in my case it was entering a certain map that created the items, and it came down to a somehow damaged event that added the weapons despite having no event commands that did this - but a previous event version had, and in the end it was accidentally solved by deleting the event and completely re-doing it.

Please check with a new, empty map (no other events but one transferring back from there) and saving on that map.
If the problem happens there as well, then you'll have to check your saves and savescripts because it is something else.
if it doesn't happen then it most likely is a damaged event on the saved on map, and you'll have to search for that.
Thank you for the reply. I tried saving on three different maps, then setting the starting position on a map with no events on it and saving there, and it still happens. If at least it was just the casual clothes, that would point to something set specifically somewhere, but now it's the two weapons and two shields? It must be gremlins :LZSevil:

I hope there will be someone who can help.


Edited to add: I tried an older backup version and there it's casual clothes again :LZSooo:
You may have a similar situation that I had at one point. For whatever reason the rvdata2 files get corrupted. For me it was the actors.rvdata2 file. I changed some of the features of the actors and presto it was fixed. Found my info on that issue. I had removed the fix equipment on the actors.
You may have a similar situation that I had at one point. For whatever reason the rvdata2 files get corrupted. For me it was the actors.rvdata2 file. I changed some of the features of the actors and presto it was fixed. Found my info on that issue. I had removed the fix equipment on the actors.

OK, I think this might be going too fast for me. How do you find out if the files are corrupted? How do you then find what exactly the issue is? And do you then fix the file itself, or something in the maker? Thank you. I really need this explained as if I was five.
And do you then fix the file itself
like he said, the file is automatically rewritten if you change some of the content in the database that would go into that file.

basically you would have to go into your database, change some traits in each o the first option on each database page, and then save and exit.
test and if its gone then start the editor again and set the first object of each database page back to what you wanted it to be.

and delete all savegames as they would contain part of the corrupted database if that was the solution.
Thank you for the explanation. Before I read it I tried going through actor traits and removing them and got rid of the two weapons and one buckler that way (my problem was the dual wield trait). I'll continue changing stuff and hopefully that one buckler will go away too. Thank you everyone for your help :LZSsmile:


Edited to add: So the only way to get rid of the buckler was to remove it from the starting equipment of one of the characters. I guess it's no big deal, it can always be added when he joins the party, but it seems a weird thing to happen. Well, at least I know where to poke when it happens again.
I suspect that what actually happens is that your game loaded 2 map data, the original and another one after a few changes. It didn't happen in XP becauseit has a line of code that refreshes the map right after loading if the recently data's magic number doesn't match the editor's.

That would mean I was the third guy and you are the fourth that experienced this weird behavior.

When I said map data, it also includes the Game_Player. So you could force the refreshing of the map data right after loading as a precaution.
I suspect that what avtually happens is that your game loaded 2 map data, the original and another one after a few changes. It didn't happen in XP becauseit has a line of code that refreshes the map right after loading if the recently data's magic number doesn't match the editor's.

That would mean I was the third guy and you are the fourth that experienced this weird behavior.

When I said map data, it also includes the Game_Player. So you could force the refreshing of the map data right after loading as a precaution.

In my case it was the weapons/armours settings for the characters. Removing and then adding them in the database solved the problem. The last stubbornly remaining buckler was the result of my oversight - the character's weapons are claws, but by default those seal shields. I made the claw attack only happen once (the logic being my character has claws on one hand and is holding a shield with the other), but didn't notice the seal shield in the class features. Therefore, my initial equip went against the features and the buckler appeared in inventory. So if something like this happens to anyone else, and it's not the map problem mentioned by the others in this thread, I suggest checking the character and their class settings to see if there are any conflicts. I still think it's weird.

Original thread: https://forums.rpgmakerweb.com/threads/random-weapons-and-armours-appearing-in-inventory-after-first-save.148425/