Cannot read property 'setDimensions' of null

I get this error whenever I start my game or walk into another room, is there a way to fix it? Here's some screenshots of the error and the console page and my plugins:
1677243416116.png

1677243485037.png

1677243515117.png
can you show a screenshot of the event that uses the plugin command?
as it is possible you miss some settings there.
can you show a screenshot of the event that uses the plugin command?
as it is possible you miss some settings there.
I bel
I believe it is this event that is not working
1677244528595.png
your problem might be on "erase Picture 2" as it wont run when you
run the parallel process.

remove "Erase Picture 2" and set trigger to "autorun" or leave at
parallel, but replace the last line with "Erase Event" which remove
the picture once you leave the map (if I understand it correctly) as
helpfile/document isn't on the web anymore.
your problem might be on "erase Picture 2" as it wont run when you
run the parallel process.

remove "Erase Picture 2" and set trigger to "autorun" or leave at
parallel, but replace the last line with "Erase Event" which remove
the picture once you leave the map (if I understand it correctly) as
helpfile/document isn't on the web anymore.
When I do autorun, my player can't move in the map and when I do erase event this happens to the parallax and map:
1677245939618.png

It is using the parallax from the first map and when I walk through the door, it is glitching out and showing this instead of transferring me to the other map
It does look like from your event that you don't correctly understand what autorun and parallel events do.

Both of these events will run continuously, looping themselves, once per frame (60 times a second) until you stop them.

This is definitely not what you want to be happening.

The difference between them is that autorun locks the player input while it's running but parallel does not. That's why you use autorun for cutscenes. But in your case you don't want the event to keep running 60 times every second, so it doesn't matter whether you use autorun or parallel.

You stop these events in one of two ways:
- Put an Erase Event command at the bottom. That will cause the event to run one time then automatically come back the next time you're on the map.

- Create a second, blank event page. At the end of your first page you do something (a self switch, a switch, a variable) that causes the second page to become active. This will be permanent unless you undo that condition.

In this case, I'd bet your error is coming from continuously trying to show and erase the same picture, and at some point something is trying to reference a picture you erased.
Why are you trying to erase this picture right after creating it in the first place? I haven't used BindPicturesToMap, but from what I understand it just makes it so that a picture moves with them map - you're not meant to remove it unless you want to switch to a different with fewer layers. What happens when you just remove the "Erase picture" command from the event?
It does look like from your event that you don't correctly understand what autorun and parallel events do.

Both of these events will run continuously, looping themselves, once per frame (60 times a second) until you stop them.

This is definitely not what you want to be happening.

The difference between them is that autorun locks the player input while it's running but parallel does not. That's why you use autorun for cutscenes. But in your case you don't want the event to keep running 60 times every second, so it doesn't matter whether you use autorun or parallel.

You stop these events in one of two ways:
- Put an Erase Event command at the bottom. That will cause the event to run one time then automatically come back the next time you're on the map.

- Create a second, blank event page. At the end of your first page you do something (a self switch, a switch, a variable) that causes the second page to become active. This will be permanent unless you undo that condition.

In this case, I'd bet your error is coming from continuously trying to show and erase the same picture, and at some point something is trying to reference a picture you erased.
Whenever I do the erase event, it ends up doing what I showed before with the red overlapping in the wrong map. Sorry, I am new to this so I don't really understand what I am doing. All I know is that the red layer doesn't connect to the correct map when I go through a door or transfer after two tries if that makes sense.
Why are you trying to erase this picture right after creating it in the first place? I haven't used BindPicturesToMap, but from what I understand it just makes it so that a picture moves with them map - you're not meant to remove it unless you want to switch to a different with fewer layers. What happens when you just remove the "Erase picture" command from the event?
It just does the same thing as before, it ends up using the red layer for the wrong map. The Erase Picture worked yesterday and now its not working anymore, that's why I had it in the first place.
Just as a reminder, we're not supposed to double post. You can click the Edit button if you want to add something, and you can respond to multiple people by clicking Reply on each post, using the +Quote button, or @tagging them.

I don't remember if this was said in your last thread, but you might want to do some more tutorials on how events work before trying to implement more complicated things into your game.

Some of the things you're trying as fixes objectively don't make sense - making it be a parallel event with no end; calling erase picture immediately after drawing it would logically mean you never even see it.

I'd suggest you look up on YouTube some practice stuff about event, event commands, autorun and parallel, and do them as practice.

Then have another careful read through the instructions of the plugins you're trying to use (I'm not sure you've ever provided a link to the pictures one). Make sure you're using it correctly.
@ATT_Turan the document in the plugin BindPictureToMap = limited to none,
there was a PDF with the entire structure how it worked, but I dont know if
some still has this PDF to read through.

@allergyy on your other post, you use Qcollision plugin, which should not
be seen, so you might have a wrong configure in the parameters.

I dont know if the 2 are conflicting, but you could try to move BindPictureToMap
below Q plugins to see what happens than, see if the error is the same or is
different than before.
@ATT_Turan the document in the plugin BindPictureToMap = limited to none,
there was a PDF with the entire structure how it worked, but I dont know if
some still has this PDF to read through.

@allergyy on your other post, you use Qcollision plugin, which should not
be seen, so you might have a wrong configure in the parameters.

I dont know if the 2 are conflicting, but you could try to move BindPictureToMap
below Q plugins to see what happens than, see if the error is the same or is
different than before.
The issue still is happening when I put the 'BindPictureToMap' Plugin below, I just don't see the red now. But, I was able to fix the parallax mapping part with a door event and by putting 'Erase Picture' in the door event. I'm not sure how that worked and it not working in my other event, but it did.
Just as a reminder, we're not supposed to double post. You can click the Edit button if you want to add something, and you can respond to multiple people by clicking Reply on each post, using the +Quote button, or @tagging them.

I don't remember if this was said in your last thread, but you might want to do some more tutorials on how events work before trying to implement more complicated things into your game.

Some of the things you're trying as fixes objectively don't make sense - making it be a parallel event with no end; calling erase picture immediately after drawing it would logically mean you never even see it.

I'd suggest you look up on YouTube some practice stuff about event, event commands, autorun and parallel, and do them as practice.

Then have another careful read through the instructions of the plugins you're trying to use (I'm not sure you've ever provided a link to the pictures one). Make sure you're using it correctly.
I will definitely check out more tutorials. Thank you for your help, both of you 😀 I am not getting the error anymore so I seemed to have fixed it
if that solves it, I would put the event more in a corner to control this,
rather than on the door transfer itself.

but taking some tutorials or from a plugin if they are out there to get
the hang of it.

if a plugin is added and crashed, try re-arranging it (above/below others)
and see if it solve it or not.

its easy that some plugin can conflict if its uses the same methode, or
function (not aliased) for some reason or has too, so its a good idea
to double check.

by a conflict of 1 or plugins, we can see if we could patch it so it can work
together, but sometimes, if its conflict, a plugin need to be minor to heavely
rewritten to make them play nicely, but that is only possible if we see what
is conflicting.

if the error is solved and work as expected, than good luck with your project ^^

Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-setdimensions-of-null.155258/