{"id":20651872,"url":"https://github.com/jingshing/bakinunpack","last_synced_at":"2026-02-09T12:02:29.967Z","repository":{"id":205731703,"uuid":"714942895","full_name":"JingShing/BakinUnpack","owner":"JingShing","description":"A repo for researching how to unpack game made of rpg developer bakin.","archived":false,"fork":false,"pushed_at":"2024-09-12T00:56:50.000Z","size":150,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T10:28:06.564Z","etag":null,"topics":["bakin","rpg-developer-bakin","sgb","unpack"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JingShing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-06T06:59:07.000Z","updated_at":"2024-11-21T12:22:03.000Z","dependencies_parsed_at":"2023-11-06T08:23:36.112Z","dependency_job_id":"70f74383-abdf-48e9-912d-9304d73efbed","html_url":"https://github.com/JingShing/BakinUnpack","commit_stats":null,"previous_names":["jingshing/bakinunpack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FBakinUnpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FBakinUnpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FBakinUnpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FBakinUnpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JingShing","download_url":"https://codeload.github.com/JingShing/BakinUnpack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242750785,"owners_count":20179257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bakin","rpg-developer-bakin","sgb","unpack"],"created_at":"2024-11-16T17:30:09.590Z","updated_at":"2026-02-09T12:02:24.739Z","avatar_url":"https://github.com/JingShing.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"English | [繁體中文](README_TCH.md)\n# I found a awesome bakin extractor\nAfter several months. I've found an awesome extractor by a clever engineer: [Bakin Extractor](https://github.com/HNIdesu/BakinExtractor/tree/main)\n\n* How to use：\n```bash\npython unpack.py rbpack_path output_directory\n```\n# BakinUnpack\nA repo for researching how to unpack games made in rpg develop bakin.\n\n# Why am I doing this?\nRPG Developer Bakin is a new game makeing engine.\n\nApearly there is nothing on the internet to show how to unpack game file of bakin games.\n\nI wondered how bakin packed game files and make its own struct, so I started to research their encoding and game files.\n\n# How to start?\nI know little about bakin. So I googled it and asked some of my friends who also know little about bakin.\n\nAll I got is that bakin is a new version of SGB, also known as Smile Game Builder.\n\nThere is less bakin discussion on internet. But there is more discussion about SGB.\n\n\u003e This section is based on [a tweet from x](https://twitter.com/KerokeroCoder/status/1120027976320421888).\n\u003e Also some of my inference.\nSGB uses a special file format called ```.sgbpack```. And it has a certain pattern in its encoding:\n* In the early edition of SGB using zip to pack its game file.\n  * But it changed the file header from zip: ```50 4B 03 04 14 00 00 00``` to its own header: ```59 55 4B 41 52 50 4B 47 (YUKARPKG)```\n* But soon official changes were made to the method of encoding:\n  * ```53 47 42 44 41 54 00 01 (SGBDAT)```\n  * Nobody knows how to deal with it.\n  * And there is a high chance that Bakin still uses this encoding.\n\nIn bakin I assume it uses ```.rbpack``` to pack game files.\n* I found that the header is ```42 4b 4e 50 41 4b (BKNPAK)```.\n![rbpack_hex](image/rbpack_hex.png)\n\n# temp file\nI found out that bakin will create temp files during games at the windows temp path:\n* ```C:\\Users\\{username}\\AppData\\Local\\Temp\\bakin_engine_tmp```\n\nThere are many ```.rbr``` files. Still have no clue how to deal with it.\n![temp_files](image/temp_files.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingshing%2Fbakinunpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjingshing%2Fbakinunpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingshing%2Fbakinunpack/lists"}