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

[mfl][and] Ahoge Chanbara psb.m files issue #64

Closed
MishaIac opened this issue Aug 5, 2021 · 4 comments
Closed

[mfl][and] Ahoge Chanbara psb.m files issue #64

MishaIac opened this issue Aug 5, 2021 · 4 comments
Assignees
Labels
android android PSB is new and special audio psb.m about xxx_info.psb.m and xxx_body.bin question https://github.com/betaseeker/How-To-Ask-Questions
Milestone

Comments

@MishaIac
Copy link

MishaIac commented Aug 5, 2021

Ahoge Chanbara is a game developed by M2 in 2013 (iOS) and 2014 (Android)

Of course I understand that the game is already quite old, but will there be support for the files of this game? They have psb.m extension and have "mfl" in the header, while some have "mdf" in the header, but they also do not decompile.

Here is an archive with samples "mfl" and "mdf":
ahoge_chanbara.zip

@UlyssesWu
Copy link
Owner

psb.m = MT19937 MDF. It must be decrypted with a key. A key is a hex string like 523aad2de7132 or 38757621acf82. If you managed to find it (usually in game dlls), you can try the mdf file first (because mfl signature is not accepted for now).

EmtConvert mdf {file} -k {key} -l 131

If you cannot find the key, I may have a look into that game one day, but I don't have much spare time for now.

@MishaIac
Copy link
Author

MishaIac commented Aug 6, 2021

Not necessary. I just thought that these files were somehow compressed, but since they need a key, you don't need to bother with it. Anyway, thanks for your reply. Good luck!

@MishaIac MishaIac closed this as completed Aug 6, 2021
@UlyssesWu UlyssesWu added question https://github.com/betaseeker/How-To-Ask-Questions psb.m about xxx_info.psb.m and xxx_body.bin labels Aug 6, 2021
@MishaIac
Copy link
Author

By the way, I still managed to find the key for the archives of this game
Key: Rj9Pegoh4 (it is worth noting that the key consists of 9 characters, not 13 as usual)
Length: 97 (0x61)
mdf files are decrypted and unpacked without problems, but mfl is recognized by EmtConvert as mdf, and the output is a 1kb file with """""""""""0 inside.

@UlyssesWu UlyssesWu reopened this Dec 28, 2021
@UlyssesWu UlyssesWu changed the title Ahoge Chanbara psb.m files issue [mfl][and] Ahoge Chanbara psb.m files issue Dec 28, 2021
@UlyssesWu UlyssesWu added this to the v4.0 milestone Dec 28, 2021
UlyssesWu added a commit that referenced this issue Jan 2, 2022
@UlyssesWu UlyssesWu self-assigned this Jan 3, 2022
@UlyssesWu
Copy link
Owner

UlyssesWu commented Jan 3, 2022

All things should work now, including:

  1. mfl: just like mdf (mt19937), but uses FastLZ compression instead of deflate.
  2. map: e_viewer.psb.m is a "map" type PSB. Now images (tile) can be extracted.
  3. ogg/wav: audio files can be extracted from game.psb.m.

Since it's a game developed by M2, I doubt these special designs are just used in their only one or two games, perhaps it's not even worth my time.
I downloaded that game for research, and then FreeMote.FastLz was made for mfl. Anyway, I think I should focus more on newer PSBs rather than those made in 2017. Maybe M2 already abandoned those designs after that single try.

@UlyssesWu UlyssesWu added the android android PSB is new and special label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android android PSB is new and special audio psb.m about xxx_info.psb.m and xxx_body.bin question https://github.com/betaseeker/How-To-Ask-Questions
Projects
None yet
Development

No branches or pull requests

2 participants