Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: MV TypeError: Cannot read property 'parent' of undefined
- Original author: ShadowDragon
- Original date: May 21, 2022
- Source thread: https://forums.rpgmakerweb.com/threads/typeerror-cannot-read-property-parent-of-undefined.147789/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
Hi community I get this weird error as it worked before (see image). { "lightbox_close": "Close",
Archived First Post
Hi community
I get this weird error as it worked before (see image).
Protected download
and when I change this "addChild" outside the update functions it works, but this part worked before.
I do not know why it doesn't work now, while it worked previousely.
Another not what is weird that the text starts BLACK as all text start of WHITE, this is only the first
line of text popping up.
as updateOpen does NOT exist in the window_Message, I needed to create that function in order
to work it correctly with it's name showing.
Otherwise, it shows up before the window was open.
does anyone knows a fix for this and why it happends?
EDIT:
As for the type error, I made 2 additional checks to get rid of it, but I dont
understand why the black text is given somehow as nowhere is set this part.
I get this weird error as it worked before (see image).
Protected download
and when I change this "addChild" outside the update functions it works, but this part worked before.
JavaScript:
Window_Message.prototype.createMessageBoxName = function(name) {
this._tBoxName = new Window_MessageBoxName(name);
this.updateOpen();
//this.addChild(this._tBoxName);
};
Window_Message.prototype.updateOpen = function() {
if (this._opening) {
this.openness += 32;
if (this.isOpen()) {
this._opening = false;
this.addChild(this._tBoxName);
}
}
};
I do not know why it doesn't work now, while it worked previousely.
Another not what is weird that the text starts BLACK as all text start of WHITE, this is only the first
line of text popping up.
as updateOpen does NOT exist in the window_Message, I needed to create that function in order
to work it correctly with it's name showing.
Otherwise, it shows up before the window was open.
does anyone knows a fix for this and why it happends?
EDIT:
As for the type error, I made 2 additional checks to get rid of it, but I dont
understand why the black text is given somehow as nowhere is set this part.
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...
