rpcs3 icon indicating copy to clipboard operation
rpcs3 copied to clipboard

(NHL 14) Custom cellMusic Only plays once, then LPCM decode failure

Open camsterguy opened this issue 3 years ago • 31 comments

Please do not ask for help or report compatibility regressions here, use RPCS3 Discord server or forums instead.

Quick summary

Using a few .mp3s to make custom goal horns in NHL 14, a goal horn (or a menu music song I add) only plays once before all of the custom music fails to play again until I relaunch.

Details

Please describe the problem as accurately as possible.

0. Make sure you're running with settings as close to default as possible

  • Do NOT enable any emulator game patches when reporting issues
  • Only change settings that are required for the game to work

1. Please attach RPCS3's log.

E SYS: 'sys_fs_open' failed with 0x80010006 : CELL_ENOENT, “/dev_hdd0/game/BLUS31179/USRDIR/fe/ion/artassets/playerheads/p0_4000/p1309.big” [1]
U cellMusicDecode TODO: cellMusicDecodeGetDecodeStatus2(status=*0xd003a660)
U cellMusicDecode TODO: cellMusicDecodeFinalize2()
U cellSearch TODO: cellSearchFinalize()
E SYS: Stat: 'cellMusicDecodeRead2' failed with 0x8002c10b : CELL_MUSIC_DECODE_ERROR_NO_LPCM_DATA [x3093]
U PPU TODO: Unimplemented syscall syscall_988 -> CELL_OK (r3=0x1, r4=0x0, r5=0x23df3d0, r6=0x7fefffffffffffff, r7=0x23df3d0, r8=0x7f7f7f7f, r9=0x7f7f7f7f, r10=0x0)
S sys_process: Process finished
E PPU: HLE callstack savestate is not implemented!

5. Please provide your system configuration:

  • Win10 21H2
  • AMD 5600x
  • 1080ti
  • Latest nvidia driver
  • etc.

Please include.

  • Anything else you deem to be important

camsterguy avatar Jul 05 '22 22:07 camsterguy

This is not a log file

Megamouse avatar Jul 06 '22 05:07 Megamouse

Sorry! will get the full one uploaded soon

camsterguy avatar Jul 06 '22 19:07 camsterguy

This is not a log file

RPCS3.log

I believe the error occurs at line 65694. it's near the end of the log and i paused the game and quit right after the goal horn failed to play. Thanks megamouse!

camsterguy avatar Jul 07 '22 20:07 camsterguy

Please try again and post another log if it still doesn't work

Megamouse avatar Jul 08 '22 10:07 Megamouse

Please try again and post another log if it still doesn't work

Hey Megamouse- I updated to the prompted version RPCS3 v0.0.23-13871-4b787b22 Alpha on launch and the same issue. First goal it plays, every goal after no dice. I quit as the second goal was scored, assuming the error is at line 39009.

Did you want me to manually merge the change you made to cellMusicDecode.cpp as opposed to just updating the client on launch? Just let me know. thanks again so much. this is incredible to even get to play this game on PC. RPCS3.log

camsterguy avatar Jul 08 '22 13:07 camsterguy

@Megamouse One thing i just noticed. After the first goal horn plays and I quit the game (but leave the rpcs3 menu up). I can't modify or delete the mp3 file i have in hdd0\music while rpcs3 is open (but only after the goal horn plays once). Maybe this issue is something related to the game reading and locking the mp3 when the goal horn is first called, and doesn't unlock it for the second + time?

camsterguy avatar Jul 11 '22 12:07 camsterguy

Please try again and post another log if it still doesn't work

@Megamouse Let me know if there's anything else I should try or if there's an update on this ticket. thanks!!

camsterguy avatar Jul 21 '22 15:07 camsterguy

The problem is really simple to understand and should be capable of being solved.

I just got a couple questions. When you say custom music do you mean that on an OFW PS3 you'll be able to select your own mp3's to play during these events. Or do you mean that you've modified the game from is original content to use what you want it to use? Does your PS3 like these modifications? Or does your PS3 have the same issues as RPCS3.

Darkhost1999 avatar Jul 21 '22 16:07 Darkhost1999

@camsterguy try with #12324 Its probably not gonna work but the log will help

Megamouse avatar Jul 21 '22 16:07 Megamouse

The problem is really simple to understand and should be capable of being solved.

I just got a couple questions. When you say custom music do you mean that on an OFW PS3 you'll be able to select your own mp3's to play during these events. Or do you mean that you've modified the game from is original content to use what you want it to use? Does your PS3 like these modifications? Or does your PS3 have the same issues as RPCS3.

Yes! Believe it or not, EA used to allow custom music and sounds. The OFW, real PS3 process for NHL 14 was put an mp3 on a usb, copy it to the music folder on XMB on the Ps3, then in game you can select the song or playlist and assign it to an event (like a goal song for a certain team) in the custom music settings. The game appears to treat additional folders in the hdd0/music directory as playlists, so a folder full of mp3s i called "Generic" inside the overall music folder will show in game during selection as a playlist called "generic" . It works fine on my real ps3. it plays without fail every goal, as well as the generic music in between.

This is pretty much what im trying to accomplish: https://www.youtube.com/watch?v=2H-hvpRSHbE&t=198s

i want to use this music pack which also details the setup process https://forums.operationsports.com/forums/ea-sports-nhl-sounds-forum/670769-cycloniacs-nhl-14-music-pack.html

Thanks!

camsterguy avatar Jul 21 '22 16:07 camsterguy

It's a possibility that the issue could be that the emulator grabs a mp3 file and locks it to play it and forgets to unlock it after it's done playing, because even after I close the game I cannot modify the mp3 file that plays once

camsterguy avatar Jul 21 '22 16:07 camsterguy

Thanks I'm hoping custom playlists start working in my games too. I wasn't quite sure if you had modded the game or not. That's an amazing feature for your game to have. If this issue gets resolved I'll test my games again see if I can get them working with custom playlists.

Darkhost1999 avatar Jul 21 '22 17:07 Darkhost1999

@camsterguy try with #12324 Its probably not gonna work but the log will help

Visual studio is straight up refusing to build for some reason. I'm not sure if you merged it in with the new update (I saw cellmusic stuff in the changelog) so here's the log for that. (v0.0.23-13956-086afbba Alpha)

RPCS3.log

camsterguy avatar Jul 21 '22 17:07 camsterguy

you can just download the build from the PR. I'm not gonna tell you how to navigate there though xD

Megamouse avatar Jul 21 '22 18:07 Megamouse

Scroll to the bottom of pr page and click Show all checks -> Windows -> View details -> View more details on Cirrus -> Artifacts -> Download the larger file.

MSuih avatar Jul 21 '22 18:07 MSuih

Got it! Thank you. I never knew this existed..... LOL

Loading up the game now!

camsterguy avatar Jul 21 '22 18:07 camsterguy

@camsterguy try with #12324 Its probably not gonna work but the log will help

line 81602 i believe (second goal), same issue. worked fine first goal. thanks everyone! RPCS3.log

camsterguy avatar Jul 21 '22 18:07 camsterguy

please try again with the latest build from https://github.com/RPCS3/rpcs3/pull/12324

Megamouse avatar Jul 21 '22 22:07 Megamouse

please try again with the latest build from #12324

still same issue with newest build RPCS3.log

camsterguy avatar Jul 22 '22 15:07 camsterguy

please try again with the latest build from #12324

i just tried again with a different mp3 file, compressed, same issue- plays only once before all cellmusic interaction dies

camsterguy avatar Jul 25 '22 23:07 camsterguy

Please try again

Megamouse avatar Jul 27 '22 15:07 Megamouse

Please try again

I'm using the master branch with autoupdate since it seems you merged 12324 into master- same issue (line 48940)

Is there an updated commit you wanted me to try?

Log here: RPCS3.log

Thanks again @Megamouse !!!

camsterguy avatar Jul 27 '22 18:07 camsterguy

What jumps out to me right away, is that it seems to think there's only 1 track in the playlist, from the very beginning:

·! 0:00:49.095094 {PPU[0x1000015] Thread (UserMusicFramework::DecodeCo) [HLE:0x025340ec, LR:0x01a60524]} cellMusicDecode: set_decode_command(START): context: .magic='SUS', .content_type=1, .repeat_mode=0, .context_option=1, .first_track=0, .tracks=1, .hash='music_selection_context_0', .playlist:

·! 0:00:49.095477 {PPU[0x1000015] Thread (UserMusicFramework::DecodeCo) [HLE:0x025340ec, LR:0x01a60524]} Media: audio_decoder: 1 entries in playlist. Start decoding...

Of course, now my tracks usually aren't playing at all (with an up-to-date build), and I'm getting:

·E 0:00:49.100573 {Music Decode Thread} Media: audio_decoder: Queuing error: -1094995529='Invalid data found when processing input' ·! 0:00:49.101133 {Music Decode Thread} Media: audio_decoder: stopping with error... ·! 0:00:49.101422 {Music Decode Thread} Media: audio_decoder: finished playlist ·! 0:00:49.101685 {Music Decode Thread} SIG: Thread time: 0.000000s (0.018810Gc); Faults: 0 [rsx:0, spu:0]; [soft:0 hard:0]; Switches:[vol:0 unvol:0]; Wait:[0.000s, spur:0] ·E 0:00:49.102709 {PPU[0x1000014] Thread (EAAudioCore Dac) [HLE:0x025340fc, LR:0x01a605cc]} SYS: 'cellMusicDecodeRead2' failed with 0x8002c107 : CELL_MUSIC_DECODE_ERROR_DECODE_FAILURE [1] ·E 0:00:49.108201 {PPU[0x1000014] Thread (EAAudioCore Dac) [HLE:0x025340fc, LR:0x01a605cc]} SYS: 'cellMusicDecodeRead2' failed with 0x8002c107 : CELL_MUSIC_DECODE_ERROR_DECODE_FAILURE [2] ·E 0:00:49.113705 {PPU[0x1000014] Thread (EAAudioCore Dac) [HLE:0x025340fc, LR:0x01a605cc]} SYS: 'cellMusicDecodeRead2' failed with 0x8002c107 : CELL_MUSIC_DECODE_ERROR_DECODE_FAILURE [3]

Kalkano27 avatar Feb 05 '23 20:02 Kalkano27

~~The issue is that the Qt decoder can't play certain files due to some idiotic metadata issues. It's not really our fault, it's some windows thing. You can probably easily play the song on linux.~~

oops, this is using ffmpeg. so no idea why it would fail to decode. probably still garbage files.

Megamouse avatar Feb 06 '23 18:02 Megamouse

Alright, well the decode issue aside, all of the logs in here seem to show a playlist size of 1.

Kalkano27 avatar Feb 06 '23 19:02 Kalkano27

those logs are super old. so not really helpful

Megamouse avatar Feb 06 '23 19:02 Megamouse

RPCS3.log

Here's one from yesterday.

Kalkano27 avatar Feb 06 '23 20:02 Kalkano27

It seems that this whole problem is probably caused by the creation of the playlist. No matter how many (or few) tracks I have in the music folder, the playlist is always 1 track long. I manually added a second one to the file, and set it to read-only, but the emulator just created a new file with 1 track.

Version: 1.0 FileType: Music Playlist ContentType: 1 ContextOption: 1 RepeatMode: 0 FirstTrack: 0 Tracks:

  • /dev_hdd0/music/All/Inevitable Struggle.mp3

I have a feeling that if the playlist creation was fixed, the files would play.

Kalkano27 avatar Aug 10 '23 19:08 Kalkano27

I still have the same problems with this.

WeirdnessUnfolds avatar May 21 '24 17:05 WeirdnessUnfolds

The PS3 does not appear to make playlists inside a physical path. You can create Playlists inside of VSH on RPCS3 just fine. But in my tests, I created on my real PS3 and used Webman mod for browsing paths where I just didn't see anything new created. On RPCS3 I created a playlist called ASDFGHI and then used the Everything app to search for this unique Playlist folder name and no results turned up at all. I believe what might need to be done is multiprocessing support anyway cause I don't think the games actually have any media player capabilities independently and they're just asking the PS3 interface to use its media player as apart of the system's firmware not the game.

Darkhost1999 avatar May 21 '24 18:05 Darkhost1999