Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Softlock #1

Open
mattbruv opened this issue Feb 8, 2021 · 7 comments
Open

Softlock #1

mattbruv opened this issue Feb 8, 2021 · 7 comments

Comments

@mattbruv
Copy link

mattbruv commented Feb 8, 2021

I just experienced a softlock on my first playthrough, it's stuck executing in a loop from B8DB-B8DE

This is the screen it froze on

@mattbruv
Copy link
Author

mattbruv commented Feb 8, 2021

Had this happen again, basically it seems to happen on the pyramid level after I've bought the second bomb, and spam press A to rapidly drop bombs. The second time it also is stuck in the same loop

@1r3n33
Copy link
Owner

1r3n33 commented Feb 8, 2021

Hello @mattbruv,
Thank you for reporting this issue.
I have been able to reproduce the softlock but got stuck at a different address.
However, like in your case, it seems to be always happening in spcProcessStream (snesmod library) while syncing with the SPC:

-:	cpx	REG_APUIO0		; wait for spc
	bne	-			;

I'll keep you posted on further investigation.

@mattbruv
Copy link
Author

mattbruv commented Feb 8, 2021

Thanks. I was trying to debug it earlier, but couldn't get the ROM to build correctly after fighting the makefile for a while. I'm interested to know what the problem/fix is.

@1r3n33
Copy link
Owner

1r3n33 commented Feb 9, 2021

@mattbruv

...couldn't get the ROM to build correctly after fighting the makefile for a while.

Would you please elaborate on what was preventing you from building?
Some requirements can be found in README.

@mattbruv
Copy link
Author

mattbruv commented Feb 9, 2021

Yeah, I already had PvSneslib installed, I was able to get the ROM to build but the makefile would still error after linking for some reason. When playing it there was something wrong with the sprites. When I dropped bombs the sprites weren't there or looked corrupted. It's like it was able to build, but not perfectly. I kind of gave up on trying to build it after fighting with it for a while

@1r3n33
Copy link
Owner

1r3n33 commented Feb 11, 2021

I see. The game requires a specific branch of pvsneslib: git clone -b local-dev-env [email protected]:1r3n33/pvsneslib.git
Unfortunately, the latest official version of pvsneslib produces the kind of glitches you described.

@mattbruv
Copy link
Author

Using an old version could be the reason for the softlock too, as when I tried to inspect the routine it hangs on in the latest branch, it appeared that the ASM is different

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants