[SMBX2] Section in new level won't load

Moderators: Semi-moderatos, Moderators, SMBX2

Animebryan
Topic author, Good citizen
Good citizen
Animebryan
Topic author, Good citizen
Good citizen
Reputation: -1
Posts: 27
Joined: 9 Jun 2017

Post #1by Animebryan » 13 Oct 2019, 20:08

I'm making my series of Toad Houses for all my worlds but hit a roadblock with my W9 Toad House. For some reason, the 2nd section (Section 1) won't load when I try to enter the door. The music for that section loads but the screen remains black & eventually the game crashes with no proper error report. I went back & tested my W8 Toad House but there were no problems so it must have something to do with that section. I don't have a special layers or events set up so its pretty basic. None of my previous Toad Houses have given me this kind of problem & the set ups are nearly the same, so I have no clue as to why it won't load.

Perhaps maybe you can find the cause that I couldn't.

World 9 Toad House.zip
(42.53 KiB) Downloaded 142 times

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #2by Wohlstand » 13 Oct 2019, 20:41

I see here is a strong memory leak of the game happens which fills memory up to 1GB+ and crash happens once it reaches the maximum.

I did a research, and the blame on your custom "background2-5.png" which has a width smaller than a screen size (I.e. it MUST be 800 pixels or wider). It's problem is because it's horizontally non-repeatable background and it should be longer than section. In result, internal memory overflow happens because of a bug.

Added after 2 minutes 20 seconds:
So, take the fixed image:
background2-5.png

And retry a game ;-)
For SMBX2 guys I'll leave a report about this bug.

Animebryan
Topic author, Good citizen
Good citizen
Animebryan
Topic author, Good citizen
Good citizen
Reputation: -1
Posts: 27
Joined: 9 Jun 2017

Post #3by Animebryan » 13 Oct 2019, 22:09

I just realized something else. The background2 image is in png format instead of gif. Could that be part of the problem? Because apparently a bug with having background2 images (and I think a certain type of World Map graphic too) being png instead of gif causes problems.

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #4by Wohlstand » 14 Oct 2019, 0:16

Animebryan wrote:The background2 image is in png format instead of gif. Could that be part of the problem?
Since MAGLX3 and PAL it's no more a problem. It's no matter which PNG or GIF. It's matter the width of picture: it shouldn't have width less than 800 and it shouldn't have a length less than 600 (except of SMB3 hills/plains, etc. are two-row backgrounds).

Animebryan
Topic author, Good citizen
Good citizen
Animebryan
Topic author, Good citizen
Good citizen
Reputation: -1
Posts: 27
Joined: 9 Jun 2017

Post #5by Animebryan » 14 Oct 2019, 18:47

Width & Length? Aren't those the same thing? Which one is Height?

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #6by Wohlstand » 15 Oct 2019, 1:24

Animebryan wrote:Width & Length? Aren't those the same thing? Which one is Height?
Both meaning same, yeah, I have just phrazed not so accurate. But, speaking about height, it's also suggested to keep height bigger than screen size. The only exception is SMB3 hills/planes where you are required to use a fixed height value to make your background work correctly with it.


Return to “SMBX2 Troubleshooting”

Who is online (over the past 5 minutes)

Users browsing this forum: 2 guests