Equip Engine problem.

Apparently this isn't a script call problem so I was told to start a new topic. Does anyone have experience with Yanfly's Equip Engine?  https://github.com/Archeia/YEARepo/blob/master/Gameplay/Ace_Equip_Engine.rb

My problem is it looks like it is supposed to be able to change the usable equipment in your inventory and it does do that to a point. Yanfly's text says that the Actor's Equipment will take priority over Class and Default. Class Equipment takes priority over only Default. I placed the proper info in the Class notetags and it seems to work to an extent.

The Default list shows as:

Weapon

Shield

Headgear

Bodygear

Accessory.

I added Cloak, Necklace, Boots, Hands and Belt slot, and added another Accessory slot so 11 in total. Also I renamed the Headgear and Bodygear simply as Head and Body.

I only have 10 slots in total. They come out looking like this:

Weapon

Shield

Headgear (instead of Head)

Bodygear (instead of Body)

Accessory (instead of Belt)

Hands

Boots

Cloak

Accessory

Accessory

Necklace is completely missing. I have a Belt in my inventory, but since it reads as Accessory in slot 4, I can't equip the Belt. I even tried moving the info from Class Notetags to Actor Notetags and it doesn't make a difference.

Any help would be appreciated, Thank you!

Grey Stone

RPG.jpg

RPG2.jpg

RPG3.jpg
When asking for help with a particular script, please always provide a link to that script so that people can have a look at it without having to go hunting.

Because I can't see the script to check this, I may be missing the point, but:

You changed the name to Accessory and now your Belt won't go there - but you changed the name, so if it is still categorized as 'Belt' then it will no more go there than 'Helmet' would.

Categorize it as Accessory?
*Removed post as was inaccurate. Might post more when I return from work*
Two things I can see to check


1) you have spaces in front of the equipment slot names - please try to remove them and see if that solves the problem


2) Please give a second actor screenshot with the note field scrolled down so we can see the rest of the note - it might be a spelling error in the last lines that causes this.
ksjp17

Posted Today, 03:12 PM

When asking for help with a particular script, please always provide a link to that script so that people can have a look at it without having to go hunting.

I did add the link right after my first line so I'm not sure what you meant by this. And I changed the original Accessory to Belt but in game it shows up as Accessory and won't let me wear a Belt item. I thought the pics might help. I will add them again and maybe try to explain a little better.

RPG.jpg

This pic is to show the script in my game. The commented out 0-4 categories are the default and were exactly like that in the purple area just below. In this pic, you can see I changed Headgear to Head, Bodygear to Body and Accessory to Belt. The categories are numbered 0-9 now. Just above you can see I also adjusted the array so I have one of each category plus a second Accessory.

RPG2.jpg

This pic shows that I have the same setup under Actor Notetags with the <equip slots> at the top. I did originally have everything flush left but in Yanfly's script (I will post it again) https://github.com/Archeia/YEARepo/blob/master/Gameplay/Ace_Equip_Engine.rb

The lines 45-48 show the Actor Notetag setup and they were not flush left, so I tried typing it out the exact same way.

RPG3.jpg

This pic is to show what comes up In Game. You cannot see the "Weapon" or the second "Accessory" in this picture because they show up fine and I wanted to show what the problem is. As you can see, it still reads "Headgear", "Bodygear", and "Accessory" instead of "Head", "Body", "Belt".

Andar Posted Today, 05:16 PM Two things I can see to check1) you have spaces in front of the equipment slot names - please try to remove them and see if that solves the problem2) Please give a second actor screenshot with the note field scrolled down so we can see the rest of the note - it might be a spelling error in the last lines that causes this.

 

RPG4.jpg

Here is the pic you asked for showing the bottom of the Actor's Notetags. Also, I went ahead and made everything flush left and tried it In Game but the issue still stands.
If the link was there, I managed to miss it.  My bad.  Sorry for that.
Well, I sincerelly can't see anything wrong except the spelling error in the script, on the hash of the slot 8: "Neckace", which I'll assume you already corrected. I'd say that is the cause of your problem. As it's stated in the comments above that section, "Adjust them to match teir names properly".

I wouldn't dare to say that Yanfly have put a string check somewhere in his code because that would be a very risky decision, technically speaking... but who knows?

Now a hint about Yanfly's Equip Engine: I was using this same script from to add more accessory slots to allow the player equip more than one ring, for example, just like you did. But guess what: It doesn't work.

If you put more than one slot of the same type (as you did, two slots of the type "8"), the engine will duplicate any item equiped on one of those slots in the aditional ones. I don't know if I made anything wrong on the settings, but I've tried almost everything - and I say almost because I'm sure anything escaped me - and didn't managed to make it work as intended. So I just gave up.

Edit: Grammar.
Thanks to MadMaus for fixing the missing "Necklace" issue, thanks for that catch! However, it does not seem to duplicate any items like you said you had a problem with.
Thanks to MadMaus for fixing the missing "Necklace" issue, thanks for that catch! However, it does not seem to duplicate any items like you said you had a problem with.
Glad to hear it. 🙂  Looks like Yanfly did make a string check, then.

About the slot duplication, I might do some tests again to see what I've missed. Good that it wasn't a script flaw.
Have you tried to use the other method the script has; <equip: x> (x = whatever slot number)?

Also: why are you having both the class and actor note-box list the equips? Just curious. It might be the cause of your issue.
Have you tried to use the other method the script has; <equip: x> (x = whatever slot number)?

Also: why are you having both the class and actor note-box list the equips? Just curious. It might be the cause of your issue.
Yeah, I was curious too. If a class/actor will have the same slots you've set up on the script config, you don't need to list all of them in the class/actor note box, only if you want to certain class/actor to have different slots from each other.
On top of that, the Actor note-tags will overwrite the other note-tags. If each class has the same type of slots, it essentially makes it a waste to put them into both. It's also what led me to think it could just be a bug.
Have you tried to use the other method the script has; <equip: x> (x = whatever slot number)?

Also: why are you having both the class and actor note-box list the equips? Just curious. It might be the cause of your issue.
No, I haven't tried the other method, I kinda assumed it would come out the same way. I guess I'll give that a go next.

As for the Class and Actor notetags, I first tried using just the Class Notetags because it said the overwrite the default so I figured that was all I needed. When that did not work, I deleted the Class Notetags and moved them onto the Actor Notetags to see if that would make a difference and that is where I have left them. So I did not and do not have scripts in both Class and Actor, only one at a time.
No, I haven't tried the other method, I kinda assumed it would come out the same way. I guess I'll give that a go next.

As for the Class and Actor notetags, I first tried using just the Class Notetags because it said the overwrite the default so I figured that was all I needed. When that did not work, I deleted the Class Notetags and moved them onto the Actor Notetags to see if that would make a difference and that is where I have left them. So I did not and do not have scripts in both Class and Actor, only one at a time.
If all actors/classes will have the same type of equipment, you can leave their notetags empty and just set the extra-slots on the script. It's easier that way. Just remember to make sure the slot names on the notetags and on the script are the same. 😉
As for the Class and Actor notetags, I first tried using just the Class Notetags because it said the overwrite the default so I figured that was all I needed. When that did not work,
That looks as if something doesn't work when reading the notetags because it should have worked.


I think first you need to find out if that is an incompatibility with another script or if you made a script configuration error.


Go through these steps:


http://forums.rpgmakerweb.com/index.php?/topic/40589-how-to-use-a-script/


This goes especially for point 14 - you need to get that right before you can continue bughuinting in your own game project.
That looks as if something doesn't work when reading the notetags because it should have worked.

I think first you need to find out if that is an incompatibility with another script or if you made a script configuration error.

Go through these steps:

http://forums.rpgmakerweb.com/index.php?/topic/40589-how-to-use-a-script/

This goes especially for point 14 - you need to get that right before you can continue bughuinting in your own game project.
I think he already managed to solve the problem, as stated on post #8.
That looks as if something doesn't work when reading the notetags because it should have worked.

I think first you need to find out if that is an incompatibility with another script or if you made a script configuration error.

Go through these steps:

http://forums.rpgmakerweb.com/index.php?/topic/40589-how-to-use-a-script/

This goes especially for point 14 - you need to get that right before you can continue bughuinting in your own game project.
Thanks for this Andar. I will try placing the script in a new project and see if I can get it to work. Also, I know it isn't a clash with any other scripts because this is the only one I have. I did not see anywhere that said I needed "X" script to run the one I am using, so I don't think that is the issue either unless I missed it somewhere.

@MadMaus: No the problem still isn't fixed, post #8 only fixed the issue that the Necklace did not appear and that was a misspelling on my part. The other issues are still present.
Oh, I see. Got lost in the conversation and misunderstood it completely. Sorry about that.

Original thread: https://forums.rpgmakerweb.com/threads/equip-engine-problem.41579/