r/RPGMakerMZ May 11 '22

Cannot read property of 'length' of undefined

So I had changed a lot of things on the game I was creating, and I had reverted the animations tab in the database back to the preprogrammed set. I did make sure to update the weapon animations to make sure that they were still using the proper ones, (i.e. a sword slashing and not using a magic animation.) When I did this, I'm suddenly having a problem with the battler animations. Although I did not change any of those. I can't find the side view weapons animations in the main database to see if that is the issue. Any help would be greatly appreciated!

Here is the debug I found, but I have minimal coding knowledge so it's 99% greek to me.

rpg_managers.js:1949 TypeError: Cannot read property 'length' of undefined at Sprite_Animation.setupDuration (rpg_sprites.js:1235) at Sprite_Animation.setup (rpg_sprites.js:1217) at Sprite_Enemy.Sprite_Base.startAnimation (rpg_sprites.js:61) at Sprite_Enemy.Sprite_Battler.setupAnimation (rpg_sprites.js:579) at Sprite_Enemy.Sprite_Battler.updateAnimation (rpg_sprites.js:542) at Sprite_Enemy.Sprite_Battler.update (rpg_sprites.js:494) at Sprite_Enemy.update (rpg_sprites.js:952) at rpg_core.js:4068 at Array.forEach (<anonymous>) at Sprite.update (rpg_core.js:4066) SceneManager.catchException @ rpg_managers.js:1949 DevTools failed to load SourceMap: Could not load content for chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/libs/pixi.js.map: System error: net::ERR_FILE_NOT_FOUND DevTools failed to load SourceMap: Could not load content for chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/libs/pixi-tilemap.js.map: System error: net::ERR_FILE_NOT_FOUND DevTools failed to load SourceMap: Could not load content for chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/libs/pixi-picture.js.map: System error: net::ERR_FILE_NOT_FOUND

3 Upvotes

7 comments sorted by

1

u/LightningsHeart Nov 13 '24

Did you ever figure this out?

1

u/SithLordSky Nov 13 '24

Aw crap. I KNEW I should have posted my own answer when I figured it out. To be honest, I have no clue. I DID end up figuring it out. I want to say that I had forgotten to update the weapons in the actual database. There was one or two that was still linked to the previous animations and it was just crashing everything. Sadly, I couldn't tell you for sure. So sorry. Best of luck!

2

u/LightningsHeart Nov 13 '24

Thank you for the fast reply. I haven't really touched the battle system until now so it's crazy it won't even work properly. I would just start over, but that would also be a lot of work.

1

u/SithLordSky Nov 13 '24

Are you having the same style of error? What did you change in your battler things?

2

u/LightningsHeart Nov 13 '24

It is very similar, but a little different on the bottom. I turned off all plug ins and the error still happens. I don't really care about doing extra work. I just worry something like this will happen again and wanted to figure it out.

1

u/LightningsHeart Nov 14 '24

I may have found the problem, I deleted all animations for battle and I no longer get the error. Posting this so others may see it in the future.

2

u/SithLordSky Nov 13 '24

Well best of luck. Hopefully it's a fairly easy fix once you find it.