Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Only running this plugin + Battle Engine Core/Core Engine and I get this error whenever I try to equip a weapon

TypeError: undefined is not a function

    at Window_EquipItem.isMHAllowedWithOffHandWtypeId (file:///E:/RPGMVProjects/Project2/js/plugins/Ramza_DualWield.js:1568:37)

    at Window_EquipItem.includes (file:///E:/RPGMVProjects/Project2/js/plugins/Ramza_DualWield.js:1608:33)

    at Window_EquipItem.<anonymous> (file:///E:/RPGMVProjects/Project2/js/rpg_windows.js:1972:21)

    at Array.filter (native)

    at Window_EquipItem.Window_ItemList.makeItemList (file:///E:/RPGMVProjects/Project2/js/rpg_windows.js:1971:40)

    at Window_EquipItem.Window_ItemList.refresh (file:///E:/RPGMVProjects/Project2/js/rpg_windows.js:2013:10)

    at Window_EquipItem.setSlotId (file:///E:/RPGMVProjects/Project2/js/rpg_windows.js:2474:14)

    at Window_EquipSlot.update (file:///E:/RPGMVProjects/Project2/js/rpg_windows.js:2391:26)

    at file:///E:/RPGMVProjects/Project2/js/rpg_core.js:7029:19

    at Array.forEach (native)

Greetings.

I'm sorry you're having this issue. But I am unable to reproduce the problem on my end, so it might be being caused by a bug with some configuration you're using.

  • Please ensure that you are starting a fresh savegame when you're testing this, as the equipment in an old saves database files may not contain all of the metadata that the plugin is expecting.
  • Did you use the <Forbidden Wtypes: x y z> note tag on any weapons that are currently equipped, or might show up in the equipment list?
    • If yes, can you temporarily remove that tag and test to see if the crash still happens?
  • How is dual wielding set on an actor? Is it on their class traits? Their actor traits? A piece of equipment? A weapon?
  • Does the crash happen when trying to equip a weapon in the main hand or offhand slot? Both?
  • Does the actor start with two weapons already equipped? Does the crash still happen if they have only one, or no weapons at all equipped?
  •  If you make your actors no longer dual wielding type (remove the trait), does the crash still happen?

Once I get a little more info, we'll try to get this sorted out for you.

~Ramza

Wow fast response, I fixed it just now by adding the Ramza_X_DW_MenuExtension plugin that I saw in the demo project. Maybe this is also mandatory? It wasn't mentioned in the required plugins.

That shouldn't be required, and isn't turned on in my test project where I was trying to duplicate your crash.

I'm glad it's working for you now, though. Let me know if you have any other issues.

(9 edits)

Thank you!

I have run into another issue. Two attacks are occurring despite the off hand having no weapon equipped, having a main weapon and a shield equipped or when wielding a two handed weapon. This second attack with a main+shield equipped has no animation.

The Barehanded Attack parameter doesn't change any of this for me.

  • Fresh game save
  • Did not use <Forbidden Wtypes: x y z> note tag
  • Dual wielding set on an actor by actor traits
  • Actor does not start with any weapons
  • Disabled all plugins aside from: Community_Basic, YEP_CoreEngine, YEP_BattleEngineCore, YEP_X__ActSeqPack1&2, Ramza_DualWield, YEP_SkillCore, Ramza_X_DW_MenuExtension
  • YEP_BattleEngineCore is set to "STB"