Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hey, there, Casper! I just downloaded the latest version of this plugin, along with the latest Core, and I'm getting an error message in my project; 'Type Error; cannot read property 'split' of undefined.'

What's weird is...I can't recreate this issue in a blank project? And I've turned off all plugins in my own, but the error persists. (Minus this and your core.) Do you have any clues about what could be going on here?

My game runs fine once I turn off Dungeon Tools, but...I kinda really want to use it, lol! Any help is appreciated!

Hi, can you show the entire error trace from the dev tools console?

Sure thing! Do you mean this? (I copy/pasted what shows up in the image, in case it's too small to read.)

rmmz_managers.js:2080 TypeError: Cannot read property 'split' of undefined

    at Function.CGMZ_Utils.getImageData (CGMZ_Core.js:339)

    at CGMZ_DT_HookshotTool.initialize (CGMZ_DungeonTools.js:1504)

    at new CGMZ_DT_HookshotTool (CGMZ_DungeonTools.js:1484)

    at CGMZ_Core.createDungeonTools (CGMZ_DungeonTools.js:1643)

    at CGMZ_Core.initializeDungeonTools (CGMZ_DungeonTools.js:1629)

    at CGMZ_Core.createPluginData (CGMZ_DungeonTools.js:1606)

    at CGMZ_Core.createPluginData (CGMZ_LightEffects.js:354)

    at CGMZ_Core.createPluginData (CGMZ_Encyclopedia.js:8239)

    at CGMZ_Core.initialize (CGMZ_Core.js:1185)

    at new CGMZ_Core (CGMZ_Core.js:1178)

SceneManager.catchNormalError @ rmmz_managers.js:2080



(+1)

Does your hookshot not have a rope vertical or horizontal image set up?

....Well'p! That solves it, lol! Thank you so much for your help! I just have 1 issue left; I'm attempting to use the lantern's effect on an event, but it doesn't seem to work? I gave the event's initial page the comment; CGMZDT lantern (lantern being the symbol in the plugin's parameters) but not only does it not trigger the event's SelfSwitch, there is also no light from CGMZ Light effects on the player, either. (This is the case in a vanilla project, too.)  Do you know what I might be doing wrong?  I can send you a demo if that helps!

For the player light, make sure you type in a light effect id from [CGMZ] Light Effects into the "Light Effect" parameter of your lantern.

For the lantern not changing events' self switches, do you have a range set up on your lantern? Do you have the lantern equipped and did you use it via the use tool button?

Yus, I have a light ID set up, a range of 3 tiles is set, and it's equipped via the tool button. :)

Can you send me a demo via RM Web Forum DM or Discord DM? I can look into what is going wrong.
https://forums.rpgmakerweb.com/index.php?members/caspergaming.493/

Sent it! :D

Just wanted to reply here as well in case anyone else encounters this issue, but to use tools you need to make sure the player has access to them in game by using the "Change Tool Access" plugin command where you want the player to be able to use the dungeon tools.