Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

need help - repack bin file [kiniro no corda]

Featured Replies

  • Author
  • Localization

StreamThread, posted Wed Apr 19, 2017 8:53 pm (22437)


Test script for repack .bin files. May not work correctly, so be careful.

Usage: As "input" select a *.bin file, what you want to repack. As "output" select folder with extracted and edited files. Make sure, what in output folder count of files should be same what was when extracted. And don't rename them. Script can packing any files, but obvious game will crash if something will wrong.
Repacked file will created in output folder with "_repacked" prefix.


In that type of archive uses CRC_32 checksumm's instead original filenames. With full filenames all would be easiest.


Code:
log memory_file 0 0
log memory_file2 0 0
idstring "CDAR" 0
put 0x52414443 long memory_file
get VER long 0
put VER long memory_file
get FILES long 0
put FILES long memory_file
get DUMMY long 0
put DUMMY long memory_file
for i = 1 to FILES
    get NAME_CRC long 0
   put NAME_CRC long memory_file
next i
xmath mOffset "FILES * 12"
get mfSize asize memory_file
math mOffset mfSize
for i = 1 to FILES
scanDir "." sNAME sSIZE
log memory_file3 0 0

open "." sNAME 1
comtype zlib_compress
clog memory_file3 0 sSize sSize 1
comtype zlib

get zSize asize memory_file3
if zSize >= sSize
append
log memory_file2 0 sSize 1
append
put mOffset long memory_file
math mOffset sSize
put sSize long memory_file
put sSize long memory_file
else
append
log memory_file2 0 zSize memory_file3
append
put mOffset long memory_file
math mOffset zSize
put sSize long memory_file
put zSize long memory_file
endif
next i

get tmpSize1 asize memory_file2
append
log memory_file 0 tmpSize1 memory_file2
append

get tmpSize2 asize memory_file
get fName filename 0
string fName "_repacked"
log fName 0 tmpSize2 memory_file

  • Author
  • Localization

bam_bam, posted Fri Apr 21, 2017 1:19 am (22470)


Thanks. It works perfectly in all respects.
I appreciate your kindness.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.