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

Audio goes silent when importing or replacing new tracks #42

Open
F121Live opened this issue Jan 31, 2022 · 24 comments
Open

Audio goes silent when importing or replacing new tracks #42

F121Live opened this issue Jan 31, 2022 · 24 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@F121Live
Copy link

I tried to import tracks for a mobile game called Sonic Runners (which is no longer playable, but we have a custom server going on) but whenever I test it in-game it just goes silent.

The game uses ecrypted hca's, we know the key.
Maybe adding re-encryption could fix this?

game download at sonicrunners.com
ACB and AWB files I tested are "BGM_menu.acb" and "BGM_menu_streamfiles.awb"
can be found here: https://cdn.discordapp.com/attachments/587967279845867520/936577801270751242/Audio.zip

@F121Live
Copy link
Author

Help would be greatly appreciated as we have source code of this game and are trying to develop new content for, the only thing holding us back at the moment is audio :/.

@TehFridge
Copy link

In the topic of Sonic Runners`s HCA files:
When encrypting the hca, which is needed to play properly, when setting it to loop, it displays an error.
Also when replacing only one track with ACE, it silents the whole file
image
image

@LazyBone152
Copy link
Owner

I've had no experience with encrypted hca files so far so I wasn't entirely sure how to handle them.

It now looks like it would be fairly simple to implement though. Decrypt upon ACB load, save key somewhere, and then just re-encrypt when saving. Add in a menu somewhere for changing/viewing the ACBs encryption key.

This approach would fix the loop issue too. I run my own setup for setting HCA loops (couldn't figure out how VGAudio loops worked...) which doesn't account for any encryption, so that is why that wont work currently.

@LazyBone152 LazyBone152 added bug Something isn't working enhancement New feature or request labels Jan 31, 2022
@Crafty-The-Fox
Copy link

i have this same issue execpt it isnt encrypted, its with another game. however the .acb is baked in a UEXP (just remove the file header in hxd and add it back after editing)

@LazyBone152
Copy link
Owner

Can you please test this build out and tell me if the audio now works in game?

It should automatically select the encryption key when adding new tracks, but there is also a encryption key editor in the tool menu where you can manually type them in and give them names.

ACE.zip

@F121Live
Copy link
Author

Thanks, I'll test this as soon as I get home today!

@TehFridge
Copy link

image
error when saving.... or maybe i did something wrong

@TehFridge
Copy link

ace_log.txt
here is the log file

@F121Live
Copy link
Author

F121Live commented Mar 24, 2022

Hi, the audio is still muted on my end

Edit: It mutes all of the tracks, not just the one I added

imagen

@LazyBone152
Copy link
Owner

The save issue should now be fixed, and if I'm right about what the silencing issue is caused by, then the original cues should all now work, but any added ones will be silent.

ACE.zip

@F121Live
Copy link
Author

F121Live commented Mar 24, 2022

Tested the latest build, it's still muted, if you want to be in more direct contact with me for testing you can add me on Discord _F121_#0220

@F121Live
Copy link
Author

Update: Attempting to replace audio using the encryption key still mutes the whole file

@LazyBone152
Copy link
Owner

If no edits are made to the file at all (just load & save), does it still go silent?

@F121Live
Copy link
Author

I'm sorry for the late response, will try ASAP

@F121Live
Copy link
Author

Hi, I tried opening and saving and now the file crashes my app somehow xD.

@Crafty-The-Fox
Copy link

If no edits are made to the file at all (just load & save), does it still go silent?

Just tested, it dosent go silent

@TehFridge
Copy link

If no edits are made to the file at all (just load & save), does it still go silent?

yes

@F121Live
Copy link
Author

If no edits are made to the file at all (just load & save), does it still go silent?

Just tested, it dosent go silent

You're probably using a different file than the one I linked in the post

@Crafty-The-Fox
Copy link

If no edits are made to the file at all (just load & save), does it still go silent?

Just tested, it dosent go silent

You're probably using a different file than the one I linked in the post

i AM using a different file than the one you linked, but im having the same issue as you. Its for a completely different game.

@Crafty-The-Fox
Copy link

actually funny thing is that this happenes with a non encrypted acb/awb too, but the thing is that it has streaming awbs

@F121Live
Copy link
Author

Issue is still present on latest update

@LazyBone152
Copy link
Owner

LazyBone152 commented Sep 24, 2022

The silencing issue is really similar to issue #58. I think they may be the same.

I've implemented a possible fix for the issue but it needs testing. Here is the build:
ACE Test.zip

@F121Live
Copy link
Author

F121Live commented Nov 1, 2022

Hi, tried 1.0.0 and the issue is fixed but only when I add it as a .wav file, the moment I add an .hca the file breaks and the game crashes.

Even with the .wav there's a small possibility of the game crashing too.

But it's better than nothing, thank you for your hard work, I'll keep exploring the update.

Additional notes:
It seems that adding cues using the button causes issues, I'd rather copy and paste existing cues to then replace the tracks inside them, no idea why this happens.

@BonQerss
Copy link

BonQerss commented Jan 6, 2023

Still having this issue with 1.0.0. Playing P4G and attempting to edit the acb and awb to add new cue files to import custom tracks, but the entirety of BGM is muted.

Using the button to add new cues mutes the entire track.
Copy and pasting existing cues causes the game to crash upon loading past the intro FMV.

I've attempted both options in various ways and it's always either of those two results. Is anyone having a similar issue?

Here are the files I'm using:
https://www.mediafire.com/file/laehiicqbg1crrg/bgm.7z/file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants