How to use Yanfly Equipment Menu and Yami Equipment Learning together?

Hello everybody

It may be a dumb question, but I'm not a specialist in RGSSx at all and despite all my attempts, I can't put two scripts working together: Yanfly Ace Equip Engine and Yami Equipment Learning.

If I use YEA Ace Equip Engine, the "Learning Scene" from Yamis script doesnt appear. If I remove the Yanfly script, the "Learning Scene" appears. I want to use the scripts together. Maybe adding a custom command on Ace Equip Engine? Problem is, I don't know what code to write as custom command for Equipment learning.

Hope I'm being clear here.

Can someone help me? I tried to see if Yami posted something about that. But since Symphoria is down, I didnt found anything.

Link to the scripts

Yanfly Ace Equip Engine

https://github.com/Archeia/YEARepo/blob/master/Gameplay/Ace_Equip_Engine.rb

Yami - Equipments Learning

https://github.com/suppayami/rmvxa-collection/blob/master/Equipments%20Learning.rb

Thanks already
Did you try to exchange the order of the scripts? Try to make whatever of the script was above the other take a slot below.


From your description one of the scripts overwrites a function instead of aliasing it, and in a lot of times that can be solved by changing the script order.


If that does not help, please provide links to the scripts you're using.
I've encountered that before and you'd need an edit to yanfly's equip menu script in order to do that effectively... 

On my old project, what I did was to add a button handler to the A button so that if I press it, the window for the skills of the equipment will appear (over the actor parameters window coz we have no more space).. sadly, I don't have the project file anymore AFAIK.

So to get others to help you, please put a link to the scripts.
Did you try to exchange the order of the scripts? Try to make whatever of the script was above the other take a slot below.

From your description one of the scripts overwrites a function instead of aliasing it, and in a lot of times that can be solved by changing the script order.

If that does not help, please provide links to the scripts you're using.
Tried here and no luck. Still the same thing. 

The link for the scripts:

Yanfly Ace Equip Engine

https://github.com/Archeia/YEARepo/blob/master/Gameplay/Ace_Equip_Engine.rb

Yami - Equipments Learning

https://github.com/suppayami/rmvxa-collection/blob/master/Equipments%20Learning.rb

Thanks for the help 🙂

I've encountered that before and you'd need an edit to yanfly's equip menu script in order to do that effectively... 

On my old project, what I did was to add a button handler to the A button so that if I press it, the window for the skills of the equipment will appear (over the actor parameters window coz we have no more space).. sadly, I don't have the project file anymore AFAIK.

So to get others to help you, please put a link to the scripts.
Yes, I was thinking that theres no more space to show the skills learning. I really suck at scripting so pull out such thing is impossible for me. Edited the first page with the links, hope someone can help 😛

Thanks a lot 🙂
Is this called Necroposting? Well anyway, I found out how to make it compatible but still not figure out how to suit it with the Ace Equip Engine. Inside YSA Equipment learning script, on line 834 and 835, change the lines into this

Spoiler
@equip_learning_back#.hide
@equip_learning#.hide
However, this results the window to show in on the screen but located on top of the weapon stats.

EDIT: Found out a way to customize the script, replace line 816-817 with this

Spoiler
#--------------------------------------------------------------------------
# new method: create_equip_learning
#--------------------------------------------------------------------------
def create_equip_learning
wx = @item_window.width
wy = @item_window.y
ww = Graphics.width - @item_window.width
wh = @item_window.height
@equip_learning_back = Window_EquipLearningBack.new(wx, wy, ww, wh)
@equip_learning_back.viewport = @viewport
@equip_learning = Window_EquipLearning.new(wx, wy + 200, ww, wh - 24)
@equip_learning.viewport = @viewport
@equip_learning.help_window = @help_window
@equip_learning.actor = @actor
@item_window.equip_learning_window = @equip_learning
@slot_window.equip_learning_window = @equip_learning
#---
if $imported["YEA-AceEquipEngine"]
@equip_learning_back.hide
@equip_learning#.hide
end
end

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-yanfly-equipment-menu-and-yami-equipment-learning-together.35406/