DS-Homebrew / nds-bootstrap

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

Pokemon Soul Silver Randomized AP-Patched crashes into Red Screen (Data Abort) randomly #1489

Open mamoru800 opened 1 year ago

mamoru800 commented 1 year ago

Your console: Nintendo DSi

Launch Method: SD Card

Version used: TWL v25.5.0 and nds-bootstrap Ver. Release v.0.66.0

Game tested/used/applicable: Pokemon Soul Silver - Randomized AP-Patched Rom (US/EUR)

Save file:

Expected Behavior: Game runs normally.

Actual Behavior: Game crashes randomly, but especially when opening the Bag, Entering/Leaving Houses, Entering Battle, ...

Steps to reproduce

  1. Launch Game and Play for a random amount of time
  2. Red Screen appears showing "Data Abort"-Error 20221116_201035601_iOS 20221116_201045237_iOS

nds-bootstrap.ini

Logs

Other notes

Will you be available for future issues and/or replies? yes

RocketRobz commented 1 year ago

Does the same issue occur with the clean ROM?

mamoru800 commented 1 year ago

Wow you're fast to answer. Thanks a lot first of all. And Yes, it also happens to the non-randomized ROM.

The Images shown, are from 2 different crashes, showing (apparently) the exact same error.

RocketRobz commented 1 year ago

Weirdly, I'm not getting crashes on a clean HeartGold ROM, which means this is a difficult issue to fix.

RocketRobz commented 1 year ago

Please upload the save file.

mamoru800 commented 1 year ago

savs.zip

File "SS_AP_1" is the non-randomized rom.

File "SS_AP_R_1" is the randomized rom.

Edit 1: Save Files are "identical", since I copied them over and renamed them to the corresponding rom-name, to keep my progress.

Edit 2: And as I mentioned - Crashes appear sporadically and are sometimes difficult to reproduce. Sometimes after 1 Minute sometimes after 1 h of Playing.

Edit 3: Weirdly, I cannot seem to reproduce the error with another clean rom now, of which I also played a randomized version, which instantly crashed after 15/20 seconds.

So is really the Randomization the reason for crashing? That would be a pity, since I only really use it for increasing the trainer's pokemon levels to make it more challenging.

mamoru800 commented 1 year ago

Update: I just got another error on a clean Rom, using the savefile mentioned.

This time, the Screen reads as follows:

20221116_222127151_iOS

I don't know, if these repeating patterns in the RAM-Viewer mean anything to you, but just in case I uploaded them as well..

20221116_222531212_iOS 20221116_222543461_iOS 20221116_222608576_iOS

Epicpkmn11 commented 1 year ago

bump.

These things can take time, this is just a hobby and we've got lives outside of it – and Robz is the only person who really knows how to fix this kinda thing. bump messages don't help anything.

mamoru800 commented 1 year ago

Another maybe relevant piece of info is, that I started the game on an Emulator (Desmume) and then converted the .dsv into an .sav file online.

mamoru800 commented 1 year ago

Update: I copied the same rom onto a 3ds-system with the same save file. Beforehand I imported and exported the save-file using Desmume, then copied it onto the 3ds-system. I got the exact same error.

Purplened commented 1 year ago

I have the same error, non randomised rom of the game. It just happens sometimes and I don't recall having this problem the last time I played with my DSi and twilight menu ++

Purplened commented 1 year ago

Note: I updated twilight menu ++ manually because because I was getting freezing crashes before, and now those are gone but now I got this red screen error like 5-10 minutes after the last one. It's kinda annoying and makes it unplayable

RocketRobz commented 1 year ago

I have the same error, non randomised rom of the game. It just happens sometimes and I don't recall having this problem the last time I played with my DSi and twilight menu ++

Note: I updated twilight menu ++ manually because because I was getting freezing crashes before, and now those are gone but now I got this red screen error like 5-10 minutes after the last one. It's kinda annoying and makes it unplayable

Try re-dumping your ROM then.

Purplened commented 1 year ago

I have the same error, non randomised rom of the game. It just happens sometimes and I don't recall having this problem the last time I played with my DSi and twilight menu ++

Note: I updated twilight menu ++ manually because because I was getting freezing crashes before, and now those are gone but now I got this red screen error like 5-10 minutes after the last one. It's kinda annoying and makes it unplayable

Try re-dumping your ROM then.

I already did that, started a new save file too. Thank you for answering so fast, I understand this is not an easy task

RocketRobz commented 1 year ago

Are cheats enabled?

Purplened commented 1 year ago

Yes, only AP fix. I've tried without it and the error seems not related to that.

Purplened commented 1 year ago

One notable thing is that it only chashes when starting a battle, leaving a house, the bag and that kind of actions.

RocketRobz commented 1 year ago

You should keep it off then, as the ROMs are automatically AP-patched on the fly.

RocketRobz commented 1 year ago

One notable thing is that it only chashes when starting a battle, leaving a house, the bag and that kind of actions.

Your issue may be caused by SD load times. It may be slow enough to cause errors.

Purplened commented 1 year ago

Should I make a copy of my files and reformat my SD? I don't know if that helps. Btw I managed to take a picture of the error if it helps you identify something:

Purplened commented 1 year ago

IMG_20221225_045223

RocketRobz commented 1 year ago

Should I make a copy of my files and reformat my SD?

Maybe. Please follow this guide to do so: https://dsi.cfw.guide/sd-card-setup.html

IMG_20221225_045223

This is the exact same one as the photo by the OP. It could very well be a timing issue then.

Purplened commented 1 year ago

Is is because of our hardware or something wrong with the latest release? I didn't have this error when playing this exact ROM a couple of years ago, that's why it must be one of those. I'm updating how it goes as soon as I have the SD formatted and the game tested.

Purplened commented 1 year ago

As I feared, it appeared again. The SD seems intact in terms of speed (at least it's not obvious that it died like one I had some time ago). I don't know what to do now, the game runs flawlessly in every aspect but this.

RocketRobz commented 1 year ago

Try updating nds-bootstrap. If the issue persists, then turn on TWL clock speed in the per-game settings menu.

Purplened commented 1 year ago

Tried first the v0.68.0 you just released, then turned down the clock speed to 67MHz and the error still triggers after 2-3 minutes of gameplay. If you need more feedback ask me, any file or screenshot.

RocketRobz commented 1 year ago

Are you able to check if HeartGold also has this issue?

Purplened commented 1 year ago

I found the problem, in 5 minutes I'll explain what I think it happened.

Purplened commented 1 year ago

Ok so it seems like I was using a rom with an anti-freeze patch which worked a couple years ago, but now it doesn't. OP must be using the same rom, and the randomized one seems to be based on that rom with the patch. I've downloaded a clean rom, free of any patches and it works! I've been playing for 20 minutes PKMN SS (non patched) and also downloaded the HG rom (patched) which I'm testing now to confirm my theory. I'm uploading these roms if you want to check them up, but I feel like I wasted your time because I should have tried this in the first place. I still don't understand how this rom stopped working correctly, that's why I want to help finding the problem. Thank you so much for your atention and the time you dedicated to our case, you mean a lot to the latest DS scene.

With that being said here are the roms: This is the original one, this works 100%.

This is the patched one, worked for me some time ago but we started having issues recently:

After posting this I'm going to try Heartgold (patched) to check if I'm right, I'll report later.

Purplened commented 1 year ago

Note: They are in Spanish because it's my main language, but I wanted to share them with you if it helps finding what caused this much trouble in the code of the games.

RocketRobz commented 1 year ago

Please don't post links to commercial ROMs (patched or not).

Purplened commented 1 year ago

I'm sorry, didn't think about the community guidelines before posting that.

Purplened commented 1 year ago

As I expected, the problem seems to be the patched rom. HG (with the freeze fix) has the same behaviour as SS. So the solution is to use only original roms and if playing a randomized one, make sure it's based on the original game and not the one with the patch. @mamoru800 hope you see this before giving up. Again, thank you for doing this much for the community @RocketRobz , and the attention you give us.

RocketRobz commented 1 year ago

Unfortunately, randomized ROMs are not automatically patched, so the AP-fix which comes from the patcher tool would need to be fixed for nds-bootstrap.

Purplened commented 1 year ago

So the problem all this time was the AP-fix not working with custom roms? Makes sense, hope you find a way to fix it but at least you are now aware.

SrkiMecava commented 1 year ago

As I expected, the problem seems to be the patched rom. HG (with the freeze fix) has the same behaviour as SS. So the solution is to use only original roms and if playing a randomized one, make sure it's based on the original game and not the one with the patch. @mamoru800 hope you see this before giving up. Again, thank you for doing this much for the community @RocketRobz , and the attention you give us.

hey sooo,i bought a dsi yesterday,and was buged bcs i wanter the trade evolutions,so i downloaded all the roms(gen 4,5) but they didont have the trade requirement,so u can get gengar on lvl 37,and i just got the same error,im not a tech person and its hard for me to understand what u guys were sayng(soryyyy T.T) , is the solution to just get the normal version with the trade evolutions or is there a way to by pass that.

Purplened commented 1 year ago

As I expected, the problem seems to be the patched rom. HG (with the freeze fix) has the same behaviour as SS. So the solution is to use only original roms and if playing a randomized one, make sure it's based on the original game and not the one with the patch. @mamoru800 hope you see this before giving up. Again, thank you for doing this much for the community @RocketRobz , and the attention you give us.

hey sooo,i bought a dsi yesterday,and was buged bcs i wanter the trade evolutions,so i downloaded all the roms(gen 4,5) but they didont have the trade requirement,so u can get gengar on lvl 37,and i just got the same error,im not a tech person and its hard for me to understand what u guys were sayng(soryyyy T.T) , is the solution to just get the normal version with the trade evolutions or is there a way to by pass that.

It seems that the rom you're using has a patch or modification that makes it unstable. I suggest making a copy of your save file, download an original copy of the game (you can find it online, make sure it has NOT any anti-freeze patch or anything like that), and name the save file the same way as the game. In your SD, the same should be in roms/nds and the save file should be in roms/nds/saves. In case anything bad happens keep copies of your current .nds game and .sav files in a safe location of your pc. Just to sum up, you need another .nds game which works well and renaming the .sav file after making a copy in case it doesn't work.

SrkiMecava commented 1 year ago

fast boy tyty <3,os there a place were i can be sure there are no anti-freeze patch

SrkiMecava commented 1 year ago

and dose this generaly happen to hacked roms?, for year id play on an emulator and this is the first im using a hand held

Purplened commented 1 year ago

I can't tell you because of the rules of github, search for something like "Pokémon heartgold soulsilver rom" and try a few of them, may not work with the first one you find

Purplened commented 1 year ago

and dose this generaly happen to hacked roms?, for year id play on an emulator and this is the first im using a hand held

Yes it happened to me and OP because of the hacked rom, you must use an original one if you don't want this error to pop up

SrkiMecava commented 1 year ago

and dose this generaly happen to hacked roms?, for year id play on an emulator and this is the first im using a hand held

Yes it happened to me and OP because of the hacked rom, you must use an original one if you don't want this error to pop up

thank you for everyhing,i thought the dsi was broken and i dashed right on the internet,and ur my angel

Purplened commented 1 year ago

and dose this generaly happen to hacked roms?, for year id play on an emulator and this is the first im using a hand held

Yes it happened to me and OP because of the hacked rom, you must use an original one if you don't want this error to pop up

thank you for everyhing,i thought the dsi was broken and i dashed right on the internet,and ur my angel

No problem, hope you fix it pal

SrkiMecava commented 1 year ago

Downloaded a clean rom, used UPR mself and been crash testing it for the past 2h...looking good so far

Hardback247 commented 1 year ago

I'm getting this same issue with my copy of HeartGold that has Refined Gold patched into it. Where exactly can I find a ROM of HeartGold that doesn't have an anti-freeze patch? How would I know the difference? Is this really going to fix the red screen crashes? I'm using a ROM that I used NDSForwarder to put it on my home screen.

SrkiMecava commented 1 year ago

Hey do I just downloaded a few at one and just tested it for a few minutes,when u boot it up ,just enter and exit a building for a few minutes and If u don't get an error for a while ur good

On Sun, Feb 19, 2023, 9:49 PM Hardback247 @.***> wrote:

I'm getting this same issue with my copy of HeartGold that has Refined Gold patched into it. Where can I find a ROM of HeartGold that doesn't have an anti-freeze patch? Could someone at least point me in the right direction?

— Reply to this email directly, view it on GitHub https://github.com/DS-Homebrew/nds-bootstrap/issues/1489#issuecomment-1436089626, or unsubscribe https://github.com/notifications/unsubscribe-auth/A46IY4NAMQIEHXV575KAEO3WYKBPBANCNFSM6AAAAAASCUGRK4 . You are receiving this because you commented.Message ID: @.***>

Hardback247 commented 1 year ago

With the ROM I used, I actually got it to work for at least half an hour, until it crashed to the red screens when a battle started.

Hardback247 commented 1 year ago

Hey do I just downloaded a few at one and just tested it for a few minutes,when u boot it up ,just enter and exit a building for a few minutes and If u don't get an error for a while ur good On Sun, Feb 19, 2023, 9:49 PM Hardback247 @.> wrote: I'm getting this same issue with my copy of HeartGold that has Refined Gold patched into it. Where can I find a ROM of HeartGold that doesn't have an anti-freeze patch? Could someone at least point me in the right direction? — Reply to this email directly, view it on GitHub <#1489 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A46IY4NAMQIEHXV575KAEO3WYKBPBANCNFSM6AAAAAASCUGRK4 . You are receiving this because you commented.Message ID: @.>

I tried FOUR different HeartGold roms, all patched with the Gold Refined rom hack, and they ALL crashed with the red screens when I entered and exited a building a few times. They're the only ones I could find. I don't know what to do.

"4780 - Pokemon HeartGold(U)(Xenophobia)" "Pokemon HeartGold Version" "Pokemon - HeartGold Version (USA)" "Pokemon Heart Gold"

Fjami commented 1 year ago

Hey I’m having this problem and I have tried so much stuff and it’s so hard I have been struggling to fix this and asked so many specialists and tried everything and getting this red screen error. If any of you could please help, message me on discord please Species #9540 or instagram ferasjami

Fjami commented 1 year ago

Update: I am using physical cartridge and dumping it of heart gold and soul silver and black, I am also using digital copy and getting the crash, what can I do?

ALExxxLuna commented 9 months ago

So the problem all this time was the AP-fix not working with custom roms? Makes sense, hope you find a way to fix it but at least you are now aware. Purplened, I need your help