News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: repacking scenario_info.psb.m and scenario_body.bin for Kenka bancho otome  (Read 250 times)

sephurchin

  • Newbie
  • *
  • Posts: 1
    • View Profile
Hello everyone. I'm trying to repack these files for the vita game kenka boncho otome. so far this is what I've done:

Used Python 3.7

Used this program from http://asmodean.reverse.net/pages/exm2lib.html to unpack the

scenario files, scenario_info.psb.m and scenario_body.bin

Call with 'exm2lib.exe scenario_info.psb.m scenario_body.bin 1' to get a

bunch of "*.ks.scn.m" files that have a "PSB\x00" header.

used this http://hezer.naraku.org/fileshare/SCNTools/ks.scn_tools.7z  to get extract.py and psb.py

Then modified extract.py to comment out this line at the bottom of script: # if os.path.splitext(file)[1].lower() == '.scn':

Moved filelist.scn (wont extract all files if it is in same folder)


Call the extract script with 'extract.py *.scn.m'

Extracts all files into text files.

Next I can't get insert.py to reinsert the text files back. Need help with that as well.

Also you can use this, https://github.com/UlyssesWu/FreeMote ,  to extract the .ks.scn.m files and convert to .json files. Then repack.

Now I've seen this https://github.com/ajd4096/inject_gba/blob/master/inject_gba/psb.py#L1100 that says it can repack the scenario_info.psb.m

and scenario_body.bin, but I can't seem to get it to work.

Any help is appreciated. Thanks!!