YEP_GridFreeDoodads - TypeError

Hello there,

so when I turn on the 'YEP_GridFreeDoodads.js' and 'YEP_X_ExtDoodadsPack1.js' I get the following error:

TypeError: Cannot read property 'id' of null
​
Spoiler: Console
Console.PNG

  • NEW ERROR! While writing this thread I went and made a screenshot of the console, but now it shows new errors that were not there before! The three 'Failed to load ressource: ...' errors are new and I have no idea why they showed up now.
  • Even if I trun off the extention plugin and only run only the main plugin it still give me this error.
  • If I make a new project and only put in the 'YEP_CoreEngine.js', 'YEP_GridFreeDoodads.js', 'YEP_X_ExtDoodadsPack1.js' it works absolutly fine. So the problem happens only in this project.
  • I turned all non-Yanfly plugins off and it still happens.
  • I turned off all plugins except the 'YEP_CoreEngine.js', 'YEP_GridFreeDoodads.js', 'YEP_X_ExtDoodadsPack1.js', the error still occurs.
  • I checked the plugin-order, nothing.
  • I made sure the 'Doodads.json' is in the 'data' folder and the 'doodads' folder is in the 'img' folder and the path, to the 'doodads' folder, in the plugin parameters is correct.
  • I reinstalled the plugins, by downloading them all again, so they would be up-to-date. At first only the doodad-related plugins, nothing changed. Then I reinstalled all plugins, the error came again.
  • I restarted MV, Steam and even my pc, but nothing.
  • The 'SRD_TitleCommandCustomizer.js'-Error is somthing I have yet to fix. I wanna make it show the help file ('YEP_HelpFileAccess.js'). But it should not be relevant, since even with the plugin turned off the error still happens.
  • RPGM MV is version 1.5.1
So can anyone help me out here. Right now for me it's 06:40 am and I haven been trying to solve this problem since about 22 pm. (in other words: I have been at this all night.)
I have looked around the froums and the net in general, but could finde nothing helpfull. I found similiar problems, but no solutions from these helped.
I'm probably just an idot for not figuring it out, but well I tried all I could think of.

What more is there to tell?
I had the doodads once, but the game would freeze after a minute or two and I had to restart the game. Since I didn't fell like placing one doodad at a time, I removed it. (Why have it in the gamefolder, if I don't use it.) Maybe the error stems from there.

Now I looked at my maps and thought: "These do are kinda s***y ... what now?". Well I went and got myself all the doodads things again and now this ...


Links to the plugins:
Yanfly's Plugins - yanfly.moe
SumRndmDde's Plugins - sumrndm.site
'MadeWithMV' and 'No Autoshadow' came with MV - I don't have links for those at hand
'TerraxLighting' - No link at hand right now.

Please excuse spelling and grammar mistakes, I'm not a native english speaker. If you need to know more, please tell me what you need and I will provide you with it.

Spoiler: Plugin-List
*Note: the 'single image'-version was to big*
PluginManager.PNG

PluginManager02.PNG

PluginManager03.PNG

PluginManager04.PNG

PluginManager05_2.PNG
Don't worry about the Failed to load resource: errors that stem from PIXI, these are harmless. They occur everytime you open a console, close it and then open it again. But don't worry about them.

This will be very difficult to patch though, because you have a custom updated version of PIXI, so who knows what kinds of edits have you made there to make the custom PIXI version work.
If you don't know, RPG maker MV does use PIXI, but it uses PIXI adapted for its' own needs, which means it redefines certain things and some even deletes entirely. And until version 4.6.0 the previous versions of default PIXI haven't been fully compatible with RMMV.
Thanks for the reply.
Okay so I don't have to worry about the 'failed to load' errors.

I don't have made edits to PIXI myself. I think the edits come from 'Yanfly’s Desktop Optimized Version Update – RPG Maker MV1.5.1'. Since I have no intrest in mobile, I put it in. So that's most likely where the PIXI edits stem from.

--- EDIT 2017-11-13-02-04 ---

So I have decided to start over the game in a new project. I wanted to improve/redo the maps again anyways and I can copy over the database . And I can still use the old project as a guide. I hadn't done much eventing anyway.

So thanks for the reply Poryg and I think this thread can be closed.
Hey, I hope it's okay if I post here. I have the same problem.

I want to use the GridFree Doodads on my project. But when I start my game, the screen is black and there's an error saying "Cannot read property "id" of null". So it's the same as you @BlackRubyRaven.
Did you figure out a way to fix this? I really don't want to start a new project ^^"

I also made a screenshot if the Pixi-thing. Maybe it helps somebody figuring out what is wrong.
Spoiler: Screenshot of the bug
freegriddoodadsbugfnuhf.png
I could not really fix it. I made a new project and copied the .json files from the old project over. (Excluding the mapXXX.json's and mapInfos.json) That way I still had my database. Then I put new copies of my plugins in and set them up as I needed them. Now I'm remaking my maps. (I have the old project open as referrence)
I wanted to redo the maps anyway and I hadn't done much eventing. So far it's working for me.

I don't know how far you are into your project, so it might be a lot of work for you to redo all your maps and events.

And it seems that it's better to set up all your plugins first, instead of adding them later. (Some guy in a RPGM chatroom said that to me - Edit: Don't know if that is really so or if he was just saying things.) So maybe get all the plugins you want in your project first and then do the maps and events.

For me things are working out now (so far).

Hope that helped.

PS: If you want I can write all this again for you in german.
I could not really fix it. I made a new project and copied the .json files from the old project over. (Excluding the mapXXX.json's and mapInfos.json) That way I still had my database. Then I put new copies of my plugins in and set them up as I needed them. Now I'm remaking my maps. (I have the old project open as referrence)
I wanted to redo the maps anyway and I hadn't done much eventing. So far it's working for me.

I don't know how far you are into your project, so it might be a lot of work for you to redo all your maps and events.

And it seems that it's better to set up all your plugins first, instead of adding them later. (Some guy in a RPGM chatroom said that to me - Edit: Don't know if that is really so or if he was just saying things.) So maybe get all the plugins you want in your project first and then do the maps and events.

For me things are working out now (so far).

Hope that helped.

PS: If you want I can write all this again for you in german.

Thanks for the quick reply! 🙂

Well, I guess I will have to start over then. Fortunately for me I wanted to recreate some of my maps too xD. Maybe I can improve my maps overall this way.
I don't know why that error came out but I think one of the plugins I used messed something up. With that in mind it really seems to be better to include all wanted plugins first in case something gets messed up because of it.

P.S.: Up next is some German so don't be confused if you can't read it.
Ich habe mir schon gedacht, dass du deutsch bist, da ich das "Dokumente" im Titel deines Screenshots gesehen habe ^^. Wir sind im gleichen Alter, aus demselben Land und haben das gleiche Problem... irgendwie gruselig xD
Und ich dachte mir, es wäre besser, meine Antwort in englisch zu verfassen, damit anderssprachige das Ergebnis unseres Gesprächs verstehen können.
Glad I colud help and I hope it works for you.


If you would like to exchange ideas or get outside input on things or such, wirte me a pm and if you like I can send you my discord tag.
What about ordering of plugins? Is it correct?
I know that I may be necroing a bit here, but I am not sure if this problem still occurs for more persons.
So I had this problem aswell, so I looked over all my files related to map ID's, and managed to figure out that the error was related to the Yanfly Doodad plugin. Then I found in my /data folder inside the MapInfo.json one almost empty line which only had:
Null,
written in it. It was between the map ID's 77 and 79, so apparently 78 got missing after I deleted a map I no longer needed (was a map for testing some stuff), and the Yanfly Doodad plugin tried to access this line of code but of course failed, and therefor couldnt start the game. So simply delete this line and all works again.
So yea, again sorry for posting in a topic which wasnt used for 3 months, but maybe this helps some users.
Necro-post notice: Skirata

Original thread: https://forums.rpgmakerweb.com/threads/yep_gridfreedoodads-typeerror.87068/