ROM Hack Tutorial
Updated
How to find the seed (like a password) needed to extract alldata.bin and alldata.psb.m, which contain retro game rom data
sorry for my poor english
Tutorials in Japanese
https://yyoossk.blogspot.com/2023/03/romalldatabinalldatapsbm.html
Download & unzip hactool from the following link
https://github.com/SciresM/hactool/releases
Extract the main file from Section 0 in the Program nca file with NxFileViewer
https://github.com/Myster-Tee/NxFileViewer/releases
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVNApZRwQeh9mr1a3Pb8jIOw_MPvCkpKLQZyIeHbVI3CpbwMS_kgB6qLlBT4UNt1pyySE4m3heDy2evU3MT5z11EL8SNBOjIgOrqIW92S5B7Lf65KckJBAkDywdTSkglQhIYBcbgMV3Z9s0_iUZi_0Kyh_pUAx1lLeX2XgzRTYM-IxSRYs0OfY9SNN/s320/%E6%96%B0%E3%81%97%E3%81%84%E3%83%93%E3%83%83%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8.bmp)
https://github.com/Myster-Tee/NxFileViewer/releases
cmd
hactool.exe --uncompressed=main_uncompressed -t nso0 main
If you open the main_uncompressed file in the Hex Workshop Hex Editor, you can see the contents in a composite form.
http://www.bpsoft.com/downloads/
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLsBEcE40c8vjQ5K-IEdLDc6UQPCkooLAs8m17m0-r4sL92xsCSjoMQ-cK-65uIpl4T5nn4YCfeWH1mJ3ETyEXgrjDLrtqejTJeFk45agMTUcA6FdEV5U7EtKWQK45tCrjZD31pmiXGk9LDmPHnAi84P4P6I_WZeO7LahaNcdJn2TdcgmtqYg_Owc/w400-h89/%E6%96%B0%E3%81%97%E3%81%84%E3%83%93%E3%83%83%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%20(2).bmp)
Click on the binocular-like icon at the top
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhftGn_W8x1rIh_09HYuezisj-uiCkJWTGDBwDcEa97bsaJUlVpXQuesxSb3jjv53OLpRJbOSVlkYEi2G-w8fZAEqOsTySI3hvw7fdPqnjVW7TKP71Ub24VcTcIKeq2pgV_SzS604OBZ5R8Hlow9AW7C6WlhGtWaJh_Qc1uqopbbkRW9T_P67u0wkPG/w400-h361/%E6%96%B0%E3%81%97%E3%81%84%E3%83%93%E3%83%83%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%20(3).bmp)
Change Type to Text String, type 【RightAnalogStick】 in Value, and click OK.
or type 【25G/】 in Value, and click OK.
This means to search for RightAnalogStick in the text (characters).
This is because the seed for the other game I referred to was found around the RightAnalogStick text.
Depending on the games that will be released in the future, it may not be in that vicinity.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidjs5QvNkDRENXzNxZNAsywbah-80ibiJ9aU7Vzkpk4MKP38koVdwXa1f8BRpNW1dnheZVwKrjPSHT6gqoRhKsXCwBvxvoH-xV3bJKTDPsuteeock7AWSVeVmtZ8rUf-CBu2EOThgzFcy6N_bezZ_VLaw35TAMexyB-N7dhqnf9sdalkh9ekYUL8yJ/s320/%E7%94%BB%E5%83%8F_2023-03-12_030649637.png)
In the example image, you can see the string 25G/xpvTbsb+6 just above it
This is the seed needed to expand alldata.bin and alldata.psb.m
Extract the alldata.bin and alldata.psb.m files from Section 1 in the Program nca file with NxFileViewer
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSOfoFx4W8zC98v_0ruoa3n0WwAIZI2kdThTH1wG7-LixBSkRGFgepFpX3omv6GBujfpJXocFOsjMJD3Fl7s-2VDk988Ka4GFY7g_Wz6zsm6eGqbaFYNlljUn5tdaFL4qs8JtQEA14Z1A39qusgXNlt732LK3ghrt3WBLrKnpenwXNEXZ8OrZfXO2b/s1600/%E6%96%B0%E3%81%97%E3%81%84%E3%83%93%E3%83%83%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8.bmp)
Download & install .NET Core from the following link
https://dotnet.microsoft.com/download
Download & unzip MArchiveBatchTool from the following link
https://github.com/farmerbb/RED-Project/releases
Copy the two files "alldata.bin" and "alldata.psb.m" into the MArchiveBatchTool folder.
cmd
MArchiveBatchTool.exe fullunpack --keep alldata.psb.m 【zlib】 【seed】 64
zlib is a compressed format, and I think it's usually zlib, but it could be different for some games.
For example, for the Mega Drive Mini, it was zstd.
Example
MArchiveBatchTool.exe fullunpack --keep alldata.psb.m zlib 25G/xpvTbsb+6 64
It will be extracted in the alldata.psb.m_extracted folder
Most of them are
alldata.psb.m_extracted/system/roms
folder, which contains the rom files for retro games and sometimes bios files
Tutorials in Japanese
https://yyoossk.blogspot.com/2023/03/romalldatabinalldatapsbm.html
Download & unzip hactool from the following link
https://github.com/SciresM/hactool/releases
Extract the main file from Section 0 in the Program nca file with NxFileViewer
https://github.com/Myster-Tee/NxFileViewer/releases
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVNApZRwQeh9mr1a3Pb8jIOw_MPvCkpKLQZyIeHbVI3CpbwMS_kgB6qLlBT4UNt1pyySE4m3heDy2evU3MT5z11EL8SNBOjIgOrqIW92S5B7Lf65KckJBAkDywdTSkglQhIYBcbgMV3Z9s0_iUZi_0Kyh_pUAx1lLeX2XgzRTYM-IxSRYs0OfY9SNN/s320/%E6%96%B0%E3%81%97%E3%81%84%E3%83%93%E3%83%83%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8.bmp)
https://github.com/Myster-Tee/NxFileViewer/releases
cmd
hactool.exe --uncompressed=main_uncompressed -t nso0 main
If you open the main_uncompressed file in the Hex Workshop Hex Editor, you can see the contents in a composite form.
http://www.bpsoft.com/downloads/
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLsBEcE40c8vjQ5K-IEdLDc6UQPCkooLAs8m17m0-r4sL92xsCSjoMQ-cK-65uIpl4T5nn4YCfeWH1mJ3ETyEXgrjDLrtqejTJeFk45agMTUcA6FdEV5U7EtKWQK45tCrjZD31pmiXGk9LDmPHnAi84P4P6I_WZeO7LahaNcdJn2TdcgmtqYg_Owc/w400-h89/%E6%96%B0%E3%81%97%E3%81%84%E3%83%93%E3%83%83%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%20(2).bmp)
Click on the binocular-like icon at the top
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhftGn_W8x1rIh_09HYuezisj-uiCkJWTGDBwDcEa97bsaJUlVpXQuesxSb3jjv53OLpRJbOSVlkYEi2G-w8fZAEqOsTySI3hvw7fdPqnjVW7TKP71Ub24VcTcIKeq2pgV_SzS604OBZ5R8Hlow9AW7C6WlhGtWaJh_Qc1uqopbbkRW9T_P67u0wkPG/w400-h361/%E6%96%B0%E3%81%97%E3%81%84%E3%83%93%E3%83%83%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%20(3).bmp)
Change Type to Text String, type 【RightAnalogStick】 in Value, and click OK.
or type 【25G/】 in Value, and click OK.
This means to search for RightAnalogStick in the text (characters).
This is because the seed for the other game I referred to was found around the RightAnalogStick text.
Depending on the games that will be released in the future, it may not be in that vicinity.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidjs5QvNkDRENXzNxZNAsywbah-80ibiJ9aU7Vzkpk4MKP38koVdwXa1f8BRpNW1dnheZVwKrjPSHT6gqoRhKsXCwBvxvoH-xV3bJKTDPsuteeock7AWSVeVmtZ8rUf-CBu2EOThgzFcy6N_bezZ_VLaw35TAMexyB-N7dhqnf9sdalkh9ekYUL8yJ/s320/%E7%94%BB%E5%83%8F_2023-03-12_030649637.png)
In the example image, you can see the string 25G/xpvTbsb+6 just above it
This is the seed needed to expand alldata.bin and alldata.psb.m
Extract the alldata.bin and alldata.psb.m files from Section 1 in the Program nca file with NxFileViewer
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSOfoFx4W8zC98v_0ruoa3n0WwAIZI2kdThTH1wG7-LixBSkRGFgepFpX3omv6GBujfpJXocFOsjMJD3Fl7s-2VDk988Ka4GFY7g_Wz6zsm6eGqbaFYNlljUn5tdaFL4qs8JtQEA14Z1A39qusgXNlt732LK3ghrt3WBLrKnpenwXNEXZ8OrZfXO2b/s1600/%E6%96%B0%E3%81%97%E3%81%84%E3%83%93%E3%83%83%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8.bmp)
Download & install .NET Core from the following link
https://dotnet.microsoft.com/download
Download & unzip MArchiveBatchTool from the following link
https://github.com/farmerbb/RED-Project/releases
Copy the two files "alldata.bin" and "alldata.psb.m" into the MArchiveBatchTool folder.
cmd
MArchiveBatchTool.exe fullunpack --keep alldata.psb.m 【zlib】 【seed】 64
zlib is a compressed format, and I think it's usually zlib, but it could be different for some games.
For example, for the Mega Drive Mini, it was zstd.
Example
MArchiveBatchTool.exe fullunpack --keep alldata.psb.m zlib 25G/xpvTbsb+6 64
It will be extracted in the alldata.psb.m_extracted folder
Most of them are
alldata.psb.m_extracted/system/roms
folder, which contains the rom files for retro games and sometimes bios files
Last edited by yyoossk,