DS-Homebrew / nds-bootstrap

Boot an nds file
https://wiki.ds-homebrew.com/nds-bootstrap/
GNU General Public License v3.0
1.17k stars 75 forks source link

Newer NSMB Crash W4 Title screen -- Skawo imagines it is that -- im using E rom B4DS #1487

Closed MegaloDawn closed 1 year ago

MegaloDawn commented 1 year ago

NDS bootstrap ver.0.66.0 DS Lite NO EXPANSION PAK Flashcard (R4 2021)

Newer DS crash When saving at W4 and going back into the title screen it crashes and I've reported to the Admin of Newer team and it was in fact NDS Bootstrap that is causing the problem and it's not his nor my ds at fault not even the Clone cart that I have Here are the images that show the crash report

TOP BOTTOM

MegaloDawn commented 1 year ago

I've fixed it via flashcard firmware

RocketRobz commented 1 year ago

Using the flashcard firmware does not fix the issue in nds-bootstrap.

MegaloDawn commented 1 year ago

I used The YSmenu firmware which fixed the crash bug and when switching back into NDS Bootstrap It crashes like the pictures that you see if you want video footage, I'll give the footage like I did for 'Multiple games has issues' bug section. And Skawo who I had emailed about had said that he thinks it is NDS Bootstrap causing the issue and that was indeed true with me testing it out also RocketRobz do you try B4DS On DSI or OG DS's first?

RocketRobz commented 1 year ago

I used The YSmenu firmware which fixed the crash bug and when switching back into NDS Bootstrap It crashes like the pictures that you see if you want video footage, I'll give the footage.

No need. Using the flashcard firmware only works around the issue. It does not really fix the issue within nds-bootstrap's B4DS mode. That said, the issue did not need to be closed.

RocketRobz commented 1 year ago

Also, the reason why the crash occurs is most likely due to the game's heap being shrunk. Inserting an expansion pak may fix this, as it cuts down shrinking the heap.

MegaloDawn commented 1 year ago

hold up, how does the flashcard firmware work around the issue (Not only that how does NDS Bootstrap work and how does TWL not use the ds's full power as a hardware option for games--this is out of topic)

RocketRobz commented 1 year ago

The flashcard firmware/kernel works differently from nds-bootstrap.

nds-bootstrap patches the actual SDK card functions to use custom code. In B4DS mode, we use the flashcard's DLDI driver. To use the DLDI driver in retail games, we shrink the game's heap so that it doesn't touch the DLDI driver and our custom code (and as a side effect, breaks some games which uses all of the heap). On DSi/3DS, the heap isn't shrunk due to more memory being available, and is also why Newer works on those consoles.

For the flashcard firmware/kernel, the patching works differently, as the SDK functions are not patched, due to flashcards having a feature to basically emulate an original cartridge. Because of that, the game's heap is untouched, and allows Newer to work on flashcards just fine.

RocketRobz commented 1 year ago

Should hopefully be fixed by 44c5a1aab4453bdf1cf1f207424cf3fd43c3d071

MegaloDawn commented 1 year ago

After the update the W4 menu screen works now!