MV Ramza's Plugin Suite Support topic MEGATHREAD

As for your second question, I recall someone else having that same problem at some point, and it was a compatibility issue, but I don't recall what it was with. The actual numbers that should show up in the menu can be seen by calling actor.MHCalc() and actor.OHCalc(), as they are the same functions used in the damage calculation in battle. If they don't display properly in the menu, it could be that something else overwrote the change I'd made to the window that draws params, since what I did to draw them wasn't exactly best coding practice.

It appears to be the Yanfly Equip Core plugin, but oddly enough, the incorrect display for the mainhand when the 2H weapon has a atk mod on it only seems to happen during battle tests. if i start a playtest the issue isnt there. on top of that, its only a visual issue in battle tests, so i can more or less just ignore it since i know that the stats still function.

so you can create the effect you're talking about by using that tag on a two-handed weapon. If they can dual wield them, and they're only using one, it'll apply the two-handed modifier to the weapon attack, and if they're dual wielding them, the main hand will have normal atk on it, and the offhand will have the offhand modifier applied to it (if there is one).

I found my workaround. The 1H weaps i had before that gained atk when doublegripped were done that way so that any actor could make use of it monkey grip or not. then realized looking at the js in equip core in trying to find the source for the visual bug that i can set a custom parameter eval for the weapons i wanted the doublegrip effect on thats only active when the other hand is empty. It was something i completely forgot could be done. The idea you gave for the 2H weapons having modifiers for being 2handed and being offhanded in case theyre monkeygripped is still helpful. I can already use that for some other weapons. Now i can tell that i can have regular 1h weaps, 1h weaps with "doublegrip" for certain weapons for the weaker classes, 2H weaps with 2h bonus atk that take both hands unless youre on a strong class with monkeygrip in which case you may still use the offhand at the cost of the bonus atk, and "true 2H" that cannot have an offhand by any means outside of offhand shields.

If you wanted to stop certain weapons from ever being able to be monkeygripped, though, you can use the <forbidden wtypes: x> tag to prevent them from being dual wielded at all.

Thanks for mentioning the <forbidden wtypes> tag. I had saw it in the plugin descriptions but i had thought about its use all wrong. when i read it the first time i thought that you place it on weapons to blacklist all weapons in the forbidden weapons list from being equippable to the main hand while its an offhand, which would have been useless snice 2H weaps can only be in the main hand. Like, if you had a spear with swords forbidden, you couldnt have the spear as an offhand if the sword was the main, but you could still mainhand the spear and offhand the sword unless you made spears forbidden on the sword too. I didnt realize that if a mainhand weapon has a forbidden type, the forbidden weapons wouldnt be equippable at all as an offhand either. Had you not brought it up, i would had thought that in order to make a true doublehand only weapon Id have to move all the true 2H weapons into new true 2H weapon type versions of their previous types (I didnt differentiate between swords and greatswords for example) and then add the tag in the descriptions of all non true 2H weapons to make the true 2H weaps a forbidden main hand to everything else just to prevent monkey gripping another weapon while using them.

Thanks for the help! You're the best! I have a clear idea of what i have to do to get what i want working now.

Edit: I got the monkey grip plugin and it works like how i wanted it to but ive seem to run into another duping issue. Ive enabled 2H weaps in the offhand to allow monkeygrip enabled dualwielding but whenever i have any weapon in the main hand and a 2h weap in the off hand, removal of the mainhand removes both hands, returns both hands to the inventory, and gives additional copies of the offhand. do you have any ideas as to what causes this? ive removed all plugins besides yanfly's core, battle core, ramza DW, menuEx, and Monkeygrip and it still happens
Edit: I got the monkey grip plugin and it works like how i wanted it to but ive seem to run into another duping issue. Ive enabled 2H weaps in the offhand to allow monkeygrip enabled dualwielding but whenever i have any weapon in the main hand and a 2h weap in the off hand, removal of the mainhand removes both hands, returns both hands to the inventory, and gives additional copies of the offhand. do you have any ideas as to what causes this? ive removed all plugins besides yanfly's core, battle core, ramza DW, menuEx, and Monkeygrip and it still happens
That sounds like a bug I may have to squash. I think removing the main hand weapon while a two handed weapon is in the offhand removes the other weapon on purpose, to prevent actors from monkeygripping a single weapon and barehanded attacking with their main hand. The duplication sounds like an oversight on my part. I'll take a look and see what I can find out.
Ive played around with the twohanded mechanics a little more and ive found out details about that visual bug ive mentioned previously. its not just a bug that appears in battle tests. Its in playtests and builds too. I have been able to find out the apparent trigger for it though. It seems to be that whenever an actor without dualwield gets their hands on a weapon with any <TwoHanded Attack Modifier> on it, their equip screens ignore the bonus atk given by it. the status screens shows the correct values regardless of dualwield and the damage calcs use the correct values, but the equip screens doesnt.

The reason i only saw it in battle tests before was because i dont usually set up subclasses to actors for battle tests, but its the easiest way to get dualwield in my game. Meanwhile i always set subclasses in playtests. any time before where i tried looking for the bug in a playtest, dualwield was on the actor already through the subclass and I wouldnt get the bug. but it was always present in battle tests because i didnt try testing with the dualwield class as a main class since without subclassing another class, it cant use two handed weapons anyways

Probably unrelated to the cause, but a related effect: ive usually tested stuff before by changing classes and subclasses but ever since then ive made an accessory with dualwield to test with instead. The stat change preview that you usually get when highlighting an item to equip doesnt show the visual atk change that would happen on the dualwield accessory, but equipping it instantly updates the value to the correct one
@ramza Love your work!

So I tried this a bunch of different ways and I am getting NaN for MP in both categories

Spoiler: Pictures of The setups
1686673736237.png


This is my plugin setup:
1686674318005.png


and yours from the demo:
1686674365780.png


I copy and pasted the params from the help desc in here for mine:

1686674789239.png

The system is set to default and not the skyrim like as well.
Yours gets me a number for MP but mine only does HP, the only thing that I can tell is different is the version number, and the fact that I put in the CS_Core
@ChasingtheGale You have a typo in your notetag, the closing tag is incorrect. Try fixing that and see if it solves the problem - the RegEx that's reading the mp line is probably trying to continue and read that as a part of it.
@ATT_Turan @ramza

That was a dumb mistake thank you!😢 but the fixed one has the same error:
1686676472555.png

1686676720844.png
Did that item have any MP recovery on it to begin with? Maybe the trait is doing some weird math to a number that should be zero and coming out with a string or something.

edit:
More likely it's doing math on an undefined value because the base item never had any MP recovery on it. If that is the case, it would be a bug, since if the result item had no MP recovery on it, it should've made a new trait instead of adding to a non-existent old one.

Try putting +1 MP on the base item, and see if that still happens.
Thank you for the response!

Spoiler: Many images
1686682017649.png


1686682268162.png

1686682281807.png
Tried it on both the ingredients and on the made item (separately and together)
Interesting. I'll have to take a look and see if I typo'd something on that trait specifically.
@ramza
Found it I think!

1686689892180.png


1686689928106.png


Right here!

In your version it doesn't say .data I had to add it to the line so that it would say:
Code:
var effectAdd = {code: 12, dataId: 0, value1: result.CSU._mpRecovery.data[0], value2: result.CSU._mpRecovery.data[1]}

Instead of

Code:
var effectAdd = {code: 12, dataId: 0, value1: result.CSU._mpRecovery[0], value2: result.CSU._mpRecovery[1]}
@ramza
Found it I think!

View attachment 265221

View attachment 265222

Right here!

In your version it doesn't say .data I had to add it to the line so that it would say:
Code:
var effectAdd = {code: 12, dataId: 0, value1: result.CSU._mpRecovery.data[0], value2: result.CSU._mpRecovery.data[1]}

Instead of

Code:
var effectAdd = {code: 12, dataId: 0, value1: result.CSU._mpRecovery[0], value2: result.CSU._mpRecovery[1]}
That looks like it'll probably do it.
While I was sure I tested all of the traits as I put them in, I guess I must've missed that one. I'll push an update to the CS_Core later tonight, assuming that fixed the issue you were having, anyway.
It did work! I have given it several tests 🙂 Thanks for your work!
Hey hey, just bought the plugin and I'm having some issues. I followed this guide to help me wrap my head around the basics.

I have my new category working, the plugin command to call it works, the ingredients all show up in the menu. But, the attempt always fails, and I can't put multiples of an item into the menu when trying to craft the recipe.

These are the items I'm using, and the recipe that I setup with them.
Spoiler: Screenshots
1687599261106.png


1687599306168.png
1687599320152.png
1687599329305.png
Okay, well if you can't put multiples into the interface, that recipe won't work because it needs two of item ID 9 to work.

First, a couple of questions:
  • Is there a (x1) display next to the ingredients you're putting in?
  • If you press the right arrow key over one of those ingredients in the interface, does the quantity value change?
  • If you press the left arrow key over that item, does that value decrease, or if it's at 1, does it remove the item entirely?
  • After you put the first ingredient in the list, are you able to then select the same exact item again for the second ingredient slot?
If the quantity doesn't show on the window (the x1 text), and you are allowed to put the same item in multiple times, it sounds like you have DQ11 mode turned on in the plugin parameters. That mode has no quantities, but it allows you to use multiples of the same item to craft (i.e. potion = herb + herb + herb). If you were actually wanting to use DQ11 mode, you'll need to change your recipe to facilitate the lack of quantities in that mode, namely by changing it from a three ingredient recipe to a four ingredient recipe, requiring 1x item 5, 1x item 8, 1x item 9 and 1x item 9. Otherwise, turn that mode off and it should go back to working like the tutorial.

Also, sidenote, I'm not here to tell anyone what to do, and maybe you were just testing how to make a custom category, but potion brewing is alchemy, so, you didn't really need to give it a new category, unless you didn't like the name, that is.

~Ramza
x1 was displaying, I actually didn't know how to put in more than 1 at a time when originally testing it. It does work now with that info! My instinct was to use A & D, instead of the arrow keys. Thank you, I feel a little silly now lol.
Sorry for the double post, but I booted up my project and got this error, I included the list of plugins I'm using. I tried reorganizing things and nothing fixed it.
:
1687647685797.png
Spoiler: Plugins
1687647704159.png
The function that line is calling is a simple sort, it appears like it's somehow called a sort but only has an array of one item? The function is replacing placeholders from the plugin parameters with the actual item objects from your database, which it does on database load.

Is this error happening before the titlescreen? Is it getting to the titlescreen and then crashing on a new game? A loaded save file?
My gut is telling me you have a bad recipe which referenced an item that doesn't exist, and when the plugin loads the recipe list, it tries to grab an item that doesn't exist, and then tries to sort it into the above array and fails because 'nothing' doesn't have an item ID to sort by.

Double check any recent recipes you've made and make sure that all of the ingredients in them actually exist. If that doesn't work, backup your plugin settings (copy paste the plugin so there're two of them and then disable one of them) and then from the undisabled plugin entry, delete the last recipe you made, then try to launch the game again. If that works, you know which recipe was the problem. If it still doesn't load, keep deleting the recipes until it does load. Once you figure out which one is broken, you can remove it from the backed up copy (the disabled one) and then remove the undisabled plugin, and re-enable the backup.
Ah, I had changed some recipes to accept a category rather than a specific item for one of their ingredients. Apparently it did not like that, the error was before the title screen. Changing the recipes back fixed it.

I had also added some name prefixes prior to booting it up, so I assumed that had caused the issue.
Am I blind, but is there a way to increase the value of an item. My gold sword is going to be worth more than by copper sword.
Am I blind, but is there a way to increase the value of an item. My gold sword is going to be worth more than by copper sword.
Good question. I... Don't think there actually is. :3

Of all of the additive traits I added, value wasn't one of them. I can certainly put that in, I don't think it'd be particularly hard to implement. It might take me a bit to find the time, though.

Original thread: https://forums.rpgmakerweb.com/threads/ramzas-plugin-suite-support-topic-megathread.108140/