hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.22k stars 2.17k forks source link

Tony Hawk's Project 8 - Always the Same Random Music Order #8612

Open Catarax opened 8 years ago

Catarax commented 8 years ago

Tony Hawk's Project 8 (USA/European Release)

Set Music to Random in options, save it. Reboot PPSSPP. The game will start with random music from the playlist but there will be always the same "random" music order. So the music is not completely random.

On the original PSP, the music is random at each new boot.

You can check if the music is random from the main screen menu if you want to reproduce the bug.

unknownbrackets commented 8 years ago

This is sorta "a feature, not a bug" territory. We intentionally start with a stable and predictable state, outside the system time, So that everything is reproducible. There are communities who find this very important.

I guess we could have a setting... doesn't seem like a useful thing to waste the confusion of another checkbox on, though... hmm.

-[Unknown]

hrydgard commented 8 years ago

I wonder what it uses to seed its random number generator..

unknownbrackets commented 8 years ago

Well, it would be this if it uses the vfpu:

https://github.com/hrydgard/ppsspp/blob/42c79935126990e8eedf3546ae30af0be8745db6/Core/MIPS/MIPS.cpp#L209

-[Unknown]

hrydgard commented 8 years ago

Oh yeah, there's that one, I almost forgot..

tilkinsc commented 7 years ago

If you don't seed a random time (yeah, two randoms yay) you get a random number that's the same each time. This is a feature across everything and is common in older systems without a clock to have problems with. For example, timed event exploits occurred because every save you could reboot and go back to whatever it is you were doing to get, for example, a huge sum of easy gold.

Catarax commented 2 years ago

Yes, tested on 1.13.1