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.

FindLoc MEMORY_FILE

Featured Replies

  • Author
  • Localization

zgoro, posted Mon Jun 07, 2021 2:21 pm (64575)


Hi guys,

Regarding FindLoc, I'd love to ask how to pass a dynamic byte array stored in MEMORY_FILE to a variable:

The idea would be on a loop, to log each binary array into a MEMORY_FILE, after each line is logged, start a second loop to scan for duplicates.

I've thought about findLoc current line array from the beginning of file until current line but unable to pass it into a variable.
  • Author
  • Localization

aluigi, posted Mon Jun 14, 2021 9:14 am (64679)


Unfortunately I don't have a solution for handling arrays.
Sometimes I have formats that use a "combo" of hashes and filenames that obviously require a long operation like search the hash and replace with the filename.

The only work-around I found was to store hashes as binary or hex sequence (after all it has a fixed size) and filenames followed by a dividing character (like ';') in a memory file.
Not sure if that's what you want but an example script is http://aluigi.org/bms/new_sword_legends.bms

Even if in my tests the script was very fast, it looks like it's still very slow with about 300'000 filenames:
https://www.zenhax.com/viewtopic.php?p=64017#p64017
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.