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 \ Adding 8 bytes to the beginning of the file. (*File size)

Featured Replies

  • Author
  • Localization

Alex_Abdulov, posted Wed Jul 06, 2022 8:03 pm (72494)


Hi guys.

Need a script that will add the file size to the beginning of this file. (*8 bytes)
--
The first 4 bytes are the file size in hexadecimal format, the remaining 4 bytes just zeros.
*In "Little Endian"
---
Example: D015020000000000
--
These 8 bytes are necessary for the proper work of the game. (*when using "ReImport2" in "QuickBMS")

Image

-
In zip archive 2 file, one without 8 bytes, the other with the addition of these 8 bytes, with the file size.

Thx
  • Author
  • Localization

spiritovod, posted Wed Jul 06, 2022 9:56 pm (72500)


You can use something like this:
Code:
get SIZE asize
append -1
put SIZE longlong

In case of integrating this in other script don't forget to disable append mode if needed and also change position to beginning of the file, because "put" writes to current position.
  • Author
  • Localization

Alex_Abdulov, posted Thu Jul 07, 2022 1:42 am (72505)


spiritovod wrote:
You can use something like this:
Code:
get SIZE asize
append -1
put SIZE longlong

In case of integrating this in other script don't forget to disable append mode if needed and also change position to beginning of the file, because "put" writes to current position.


ok, it works great.
Thank you very much! ;)
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.