Skip to main content

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

Luna Engine MV

A script that modifies RPG Maker MV UI easily · By Archeia

Bug " Cannot read property 'call' of undefined" Locked

A topic by Lu_7 created Nov 05, 2019 Views: 1,102 Replies: 10
This topic was locked by Archeia Nov 19, 2019
Viewing posts 1 to 3

Hayoo, yesterday I got LunaEngine as a gift and today I wanted to try it out!  The menu etc is working but when I want to start a battle I get this bug  " Cannot read property 'call' of undefined". I turned off all of my plugins and still the same. Here is the console part:

TypeError: Cannot read property 'call' of undefined
    at eval (eval at m (bindData.js:94), <anonymous>:3:31)
    at m (bindData.js:102)
    at SpriteLunatic.js:244
    at Array.map (<anonymous>)
    at e.value (SpriteLunatic.js:244)
    at e.value (SpriteGrid.js:40)
    at e.value (SpriteLunatic.js:65)
    at SpriteGrid.js:143
    at Array.forEach (<anonymous>)
    at e.value (SpriteGrid.js:133)

Can someone help me out?

Developer (2 edits)

What's your plugin order? Do you  have SceneBattle.yml?

Show me a video of your entire project settings. The error doesn't really tell me anything right now.

(1 edit)

Luna is at the bottom. The rest is turned off. my Index.html looks like the index.html of the sideview template. I'm using the SceneBattle.yml of the sideview template.

Which settings do want to see?


Edit:

If I am using the SceneBattle.yml out of the Luna Base sample its working. After turning on the yep_core and battlecore I get this offset error.

If I use the SceneBattle.yml out of the sideview template I get this "call of undefined" bug even if yep_core and battlecore is turned off.

 

Developer (1 edit)

We wrote in the documentation, that if you are using YEP_Battle Engine Core you need the sideview SceneBattle.yml. However, the Sideview template is working in your copy right?

(1 edit)

I know. But if I use the SceneBattle.yml I get this bug. Maybe coz I am not using LunaBattlerPosition.js ?

Edit:

Misunderstood. Yeah the Sideview Templaze Sample project is working. Btw I dont want to change the battle screen but I have to use a battlesceen.yml otherwise it will crash or am I wrong?

Developer

Yes. Because you're using Yanfly's Battle Engine Core, you need to add special exceptions so Luna won't crash. We're still working on it but we're quite busy right now due to crunch time.

I found it. I was missing the LunaComboSnip. Can I adjust the windows to my likings? Or will it crash again?

Developer

Oh Disable it. It needs a specific script from Yanfly.

But if I turn LunaComboSnip off it crashes

Developer (1 edit)

You will need to modify sceneBattle to not use it. Luna Engine isn't plug and play as you think it is. It's a UI Customizer and the same project is just there to give you an idea how you can do that. If you're using Yanfly's Buff and States Core heavily and using combos, then yeah it can stay.

Yeah I know that it aint Plug and Play. And I am using Yanflys Buff and Status core. I will leave ComboSnip in and will try to use it. Thanks for your help

Developer locked this topic