Getting back into RPG Maker lately, and I have questions.

So, it's been a while since I've been on here. I've been getting back into RPG Maker lately, trying to better myself using resources. Things are good! I've got new generator parts and everything! I even have a recommended JavaScript book ordered, so that I can finally hopefully execute various Lunatic Modes from Yanfly's work without stumbling blindly. There's just one thing missing.

I want to add custom weapons to this project (less because I want to use them here specifically and more as a test to get it working for future projects so I know what I'm doing later). "Well, Little Adventurer," I hear you say, "That's easy! Here's some weapon resources, a convenient Yanfly plugin and a couple tutorials by Driftwood Gaming!" Great! but that's not the advice I'm looking for. What I've read is that RPGMMV only allows for 30 weapon images total in each project by default, but that this can be altered by opening a text editor (Notepad for instance) for your "system" in the "img" and adding to the "AttackMotion" and "WeaponImageId" arrays (albeit with the editor being blank on the new stuff apparently), the numbers you want in order to add more weapon images into your project (not the plugin JSON, the actual Game Project JSON). I also already have an img/weapons folder in this project (like the plugin suggests), so that's taken care of. I downloaded everything that whtdragon put out for custom weapons (70 pngs apparently!) a few years ago and stuck it in the folder.

To test this out, I add a Whipsword weapon to my database- Weapons tab, Classes tab so I can equip it, Types tab, and finally System tab, as well as making sure I typed in <Weapon Image: Whipsword> in the notetags of the weapon from Yanfly's Weapon Animations plugin. Battle Test shows me nothing. So what I obviously missed was that I forgot to add something in the system array in my text editor. But herein lies my questions:

1. I'm look at the particular arrays in the text editor now, and I'm wondering, "Do I just I just manually copy and paste the " [{"type":0,"weaponImageId":0}" over and over in the "AttackMotion" array (separated by commas of course) until I have all of them crammed in there with relevant numbers attached? Because if so, that's fine, but it's liable to take a while given how many whtdragon made. @_@

2. What is "[{"type":0,"weaponImageId":0}"? Is it a base empty template? Did I miscount how many of the standard default weapons there are? I don't think so, because then I'd be one off.

3. Why is the "railgun" weapon image a magic missile instead of a gun? I'm not complaining, mind you! But it's curious that it's clearly a magical blast instead of another gun.

4. I added the Cover Art Characters dlc to this project, and added their weapons to the fray because they're fun. Yet I replaced Weapons3 with that and deleted the old one, and yet Dilara's Book attack motion is still listed as [{"weaponImageId": 25"} in the editor, despite now being 29th on the list? I mean, it obviously still counted in the database, changing it to User Submitted 5, but wouldn't the editor update that too (unless it does and I only need to save the document)?

5. How come the Weapons2 stuff isn't already listed in the text editor for the system despite being able to be added by default anyway (again unless it does and I only need to save the document- I just closed it without saving and it notified me)?
RPG MAKER's design on weapon tile configuration is inherently wrong
The tile should be bound to the weapon
even tied to skills
I myself have written CODE to directly replace this piece
未命名.png
未命名2.png
未命名3.png
未命名4.png
“Default code bad” is not the answer I wanted. I’m not asking for it to be fixed, just wanting to know if I’m on the right track with what I’m doing, so I don’t mess anything up in the future.
I'll attempt to give a broad overview of Rpg Maker's Data structure.
When you create stuff in the database like actors and items, the data is all organized into arrays and objects.

actors = [0,1,2,3,4,5...]
0 = {name: "", face: "", class: "", ....}

If you were to open actors.json file in a text editor you'd see one big [array] of {objects}
[{Actor1 data}, {actor2 data}, {actor3 data}... ]

The RM's database tabs provide a UI to edit your project's data.

Every edition of Rpg Maker has slight changes to it's data structure. Sometimes actors include {svBattler: "filename"}, for example. RMXP didn't have side-view battlers, and the actor parameters were pretty different.

So weapons are also organized into an array with properties like {parameters: [atk,def,mag....], iconId:"2", weaponType: }

In MV and MZ, someone came up with assigning "types". I don't know who came up with this idea.
Here's a bad example: Item type; an Item can be Regular Item, Key Item, Hidden A, or Hidden B.
This is mainly to filter items for display, like if you were to have the player select an item from their inventory you can sort the inventory by type. This is a bad example because you can't create your own item types. But you can create your own weapon and armor types. Like General Armor, Magic armor, light armor, ect...

You should know Rpg Maker is not perfect. So, in the Weapons Database Tab, you can select "Weapon Type", but in the System2 Tab, where you can create new types, it's actually called [SV] Attack Motion.

"Weapon Type" and "[SV] Attack Motion" are basically same thing.
So in Weapons.json, each weapon is going to have an assigned weapon type, which is just number that corresponds to the System.json data that specifics the weapon type's motion (swing, thrust, missile) and the weaponimageID.
For whatever reason, in MV and MZ, when selecting the weaponImageID, it doesn't pull up a list of Weapon__.pngs in the system folder to select the image Id. Instead it uses a drop down list with hard coded names like "Dagger, Sword, ...Railgun...."
Selecting "Sword" just means WeaponImageId: 2
Selecting "Railgun" just means WeaponImageId: 23

If you want to add-on to the weapon data, you can add tags to the notebox.
So you CAN add something like <weaponImageId: 48>
So you might have a plugin that checks if a weapon has this custom data first, to use a different graphic, instead of pulling from the default assigned by the weapon type.

I mean, ideally you'd only want 1 type named "Sword". Not a type for each sword graphic.
It would be tedious to virtually assign every other weapon and armor types to an Actor. You want to just say [Can Equip: Sword]
not [Can Equip: Plain Sword], [Can Equip: Bone Sword], [Can Equip: Fire Sword], [Can Equip: Crystal Sword]...

Then again, you kind of already have to do that. Because when you create new armor in the database, the default armor type is [none]. Which is to say {armorType: 0}
and there is no trait that lets an actor equip armorType: 0.
What I've read is that RPGMMV only allows for 30 weapons total in each project by default
Just to mention it, this is really confusingly worded. You can have thousands of weapons in your project - it's not until later in the paragraph that someone would realize you're talking about weapon images.
To test this out, I add a Whipsword weapon to my database- Weapons tab, Classes tab so I can equip it, Types tab, and finally System tab, as well as making sure I typed in <Weapon Image: Whipsword> in the notetags of the weapon from Yanfly's Weapon Animations plugin. Battle Test shows me nothing. So what I obviously missed was that I forgot to add something in the system array in my text editor
I've only used it a bit, but I don't know where you're getting this stuff about editing the JSON files for Yanfly's Weapon Animation or only having 30 weapon images. The whole point of that plugin is that the notetags directly access image files, they don't have to have anything to do with any preloaded system images.

A few things you can try:
1 - Get in the habits of using play tests, not the battle test. Battle test doesn't load all plugins, so it can make things not work as expected.

2 - Make sure it's all correct. You need a .png with the name Whipsword, with that capitalization, and it needs to be in the custom folder you defined in the plugin parameters.
If you want to add-on to the weapon data, you can add tags to the notebox.
So you CAN add something like <weaponImageId: 48>
So you might have a plugin that checks if a weapon has this custom data first, to use a different graphic, instead of pulling from the default assigned by the weapon type.
Firstly, I appreciate the refresher. Some of it's stuff I already knew/figured, but still, technical stuff. Nice. Secondly, isn't that what I'm using Yanfly's Weapon Animation plugin for? Unless you're suggesting I use something else instead?

Which is to say {armorType: 0}
and there is no trait that lets an actor equip armorType: 0.
Technically, if your Actor is base naked, you haven't equipped any armor. 😉
Just to mention it, this is really confusingly worded. You can have thousands of weapons in your project - it's not until later in the paragraph that someone would realize you're talking about weapon images.
Whoops! I should fix that, yes. Edited. I apologize for being so wordy btw.

I've only used it a bit, but I don't know where you're getting this stuff about editing the JSON files for Yanfly's Weapon Animation or only having 30 weapon images. The whole point of that plugin is that the notetags directly access image files, they don't have to have anything to do with any preloaded system images.
I edited my post a bit, and I know I'm NOT messing with the plugin itself, which I clarified in said edit. Why would I do that? I know better. I'm not a complete nonce at this, surely. I'm just coming back to the community after a few years absence and want to know for sure what I'm doing, which is why I've been searching all day for posts like these: https://forums.rpgmakerweb.com/inde...rt-weapons-not-icons-into-rpg-maker-mv.55764/ https://steamcommunity.com/app/363890/discussions/0/217691032432470945/ https://forums.rpgmakerweb.com/inde...-weapons-and-armour-into-rpg-maker-mv.150552/ and just wanted clarification on what I'm doing before I tried it. If I came off as amateur in my post, I'm sorry, I just thought I'd try to explain where I was at.

Get in the habits of using play tests, not the battle test. Battle test doesn't load all plugins, so it can make things not work as expected.
Fair enough!

Make sure it's all correct. You need a .png with the name Whipsword, with that capitalization, and it needs to be in the custom folder you defined in the plugin parameters.
Aha! I just checked, and I think my notetags were wrong? Let's try it... *one play test later* Hmm. Still no image. Here are the weapon sheet in my "img/weapons" folder of that specific weapon and what the weapon looks like in the database. Yeah, I know, basic iconset. How dull. I'll change it later. Unfortunately, I was unable to get an image of my Battle Processing event during the Play Test because it kept pulling up the Developer Tools in another window instead of taking a typical Steam screenshot, but I hope you believe me anyway.

1661396684423.png
1661396616356.jpeg

EDIT: Okay! Good news and bad (but hilarious IMO) news.

I had a thought today, that maybe I should try tying the new test weapon (whipsword) to an existing weapon type to see if that does anything, and the good news is, it does exactly that! I see the images I wanted to see! The bad (but funny) news is that it's showing ALL of the whipswords at once when Harold strikes. I find that hilarious, mind you, but I also don't want that either. I added a 1 to the notetag, but that just made it invisible in the play test again, so obviously that won't work since the png isn't called that. Still, worth a shot, at least. If the answer is just "Separate each weapon into it's own individual sprite sheet ala what Yanfly did for his plugins," that's fine too.

EDIT 2: Editing the Project's System JSON in the data folder to add "WeaponImageId: x" to the AttackMotions array doesn't seem to be working? Every time I save my work in there, even with it in the proper place (I accidentally didn't put it in the correct place in the file the first time, it was outside the paramaters, so that's on me), it doesn't take and erases it from the file. At this point, I'm tempted to start a new blank project with just what I'm trying to add in...

EDIT 3: Started a generic Project1. Good news! Yanfly's weapons work perfectly! Whtdragon's though, still give me the funny glitch. I assume the reason why is because I need to separate the image sheets. That's fair, I guess. Just gotta figure out GIMP.

EDIT 4: Look what I did! Hooray! And it works! I've been at this for hours. I've done three spritesheets already, and still have yet more to do... This is liable to take a while.

Original thread: https://forums.rpgmakerweb.com/threads/getting-back-into-rpg-maker-lately-and-i-have-questions.150776/