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

World Neverland: Naruru Oukoku Monogatari Black Screen at startup #2642

Closed
daniel229 opened this issue Jul 6, 2013 · 9 comments
Closed

World Neverland: Naruru Oukoku Monogatari Black Screen at startup #2642

daniel229 opened this issue Jul 6, 2013 · 9 comments

Comments

@daniel229
Copy link
Collaborator

log:
http://pastebin.com/ZnSquJq7

but if I try run Patapon 3 -> stop Patapon 3 -> run World Neverland -> stop World Neverland -> run Patapon 3 -> stop Patapon 3 -> run World Neverland.
then It startup success.
01

@unknownbrackets
Copy link
Collaborator

Hmm, any chance you could bisect this and see when it was last working?

This screen looks familiar. I think I tried a demo of it not long ago and it was working.

-[Unknown]

@daniel229
Copy link
Collaborator Author

broken by this commit 30536fa
last working verson is v0.7.6-1178-g94cce21,next verson is v0.7.6-1192-g30536fa that doesn't wok.

@unknownbrackets
Copy link
Collaborator

It was this commit: 51d0f73

Reverting that fixes it, but it doesn't play the video. Before it was never even trying.

-[Unknown]

@unknownbrackets
Copy link
Collaborator

In the demo it hangs at the check at 0880B0C0, if that passes it will go through.

-[Unknown]

@unknownbrackets
Copy link
Collaborator

Apparently this is not affecting the US version of the game:
http://forums.ppsspp.org/showthread.php?tid=6278

-[Unknown]

@daniel229
Copy link
Collaborator Author

That's not this game.

@unknownbrackets
Copy link
Collaborator

Oh, so the names were just similar, my bad.

-[Unknown]

@unknownbrackets
Copy link
Collaborator

I'm not sure why, but in the demo, sometimes it hits an error:
52:39:246 TEST_MAIN_TH E[IO]: HLE\sceIo.cpp:997 sceIoLseek(4, ffffffffd7e3eaf2, 0) - ERROR: invalid file

Notably, that offset is clearly negative. Not sure what's up. Our behavior with negative values is correct, though, afaict.

Then it calls sceMpegRingbufferPut(0894a2f8, 32, 960), but always gets 0 packets. There are a few options here:

  • io is failing to give it packets.
  • the game is expecting the callback to be called multiple times if it doesn't produce enough output (we don't emulate this properly yet.)

Not sure. Also, on reset, the game does different things, so we're clearly not resetting some state...

-[Unknown]

@unknownbrackets
Copy link
Collaborator

Okay, so I narrowed this down to the scePsmf*EP functions which were "implemented" in scePsmf but actually are not implemented and just return completely uninitialized data. The game seems to use this EP map. Possibly affects others too.

Additionally, "headerOffset" is uninitialized somewhere and used, but that one is pretty easy to fix.

-[Unknown]

unknownbrackets added a commit to unknownbrackets/ppsspp that referenced this issue Jan 1, 2014
Rather than just having uninitialized values.

Fixes hrydgard#2642, World Neverland.
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