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.

brink.bms - last file extraction bug

Featured Replies

  • Author
  • Localization

AnonBaiter, posted Thu Jul 26, 2018 12:48 am (37019)


uhh
not to ruin your fun or anything but for some reason, when using brink.bms[1] on some PSARC files, the last file will always have a MD5 hash as its filename when extracted even when said filename is there

sample file is in the attachment, just so anyone can reproduce this stupid bug for themselves

[1] i use "script 0.4.1" of brink.bms through quickbms 0.9.0
  • Author
  • Localization

AnonBaiter, posted Thu Jul 26, 2018 3:13 pm (37028)


okay, i'll just solve the bug myself

see this part of the brink.bms script?
Code:
[line 138-146]
for x = 0 < NAMES
   getarray TMP1 11 x
   getarray TMP2 12 x
   getarray TMP3 13 x
   if TMP1 == NAME_HASH || TMP2 == NAME_HASH || TMP3 == NAME_HASH
      getarray NAME 10 x
      break
   endif
next x
now let's take a closer look at line 138
Code:
for x = 0 < NAMES
see the "<" symbol? that's what causes the last file to be extracted with a MD5 hash kind of filename
here's how the script can be fixed, by replacing the "<" symbol with the "<=" symbol just like you're seeing below
Code:
for x = 0 <= NAMES
it was too damn easy a fix you wish this would have been solved by now
  • Author
  • Localization

aluigi, posted Fri Jul 27, 2018 6:35 am (37040)


I guess was necessary to restore the NAMES var after the cycle in the LOAD_FILENAMES functions, there is a "math NAMES - 1" that is not restored later
  • Author
  • Localization

AnonBaiter, posted Fri Jul 27, 2018 10:45 am (37048)


how are you going to "solve" this though?
  • Author
  • Localization

aluigi, posted Tue Jul 31, 2018 5:17 am (37125)


"math NAMES 1" at line 180 before "endif"
  • Author
  • Localization

AnonBaiter, posted Tue Jul 31, 2018 9:52 am (37127)


should be good enough
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.