Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The value of "offset" is out of range. It must be >= 0 and <= 3048. Received 3049 (Attached Files) #14

Open
frostbone25 opened this issue Feb 2, 2025 · 1 comment

Comments

@frostbone25
Copy link

frostbone25 commented Feb 2, 2025

Error Message

The value of "offset" is out of range. It must be >= 0 and <= 3048. Received 3049

NOTE: This is with the 2.0.0 Alpha, on a .uasset/.uexp extracted with ZenTools from FF7R Rebirth.

Expected Behavior

File to open and edit/preview data values.

Actual Behavior

Error log

Steps to Reproduce the Problem

  1. Download Attached .zip (containing .uasset and .uexp)
  2. Open the .uasset file.
  3. Error appears.

Error Stack

RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 3048. Received 3049
    at new NodeError (node:internal/errors:371:5)
    at boundsError (node:internal/buffer:86:9)
    at Buffer.readUInt8 (node:internal/buffer:252:5)
    at UAsset.readByte (C:\Users\david\Downloads\ff7r-data-editor-win32-x64\ff7r-data-editor-win32-x64\resources\app\lib\ufile.js:34:30)
    at UAsset.readFString (C:\Users\david\Downloads\ff7r-data-editor-win32-x64\ff7r-data-editor-win32-x64\resources\app\lib\ufile.js:74:21)
    at UAsset.read (C:\Users\david\Downloads\ff7r-data-editor-win32-x64\ff7r-data-editor-win32-x64\resources\app\lib\uasset.js:58:29)
    at UPackage.read (C:\Users\david\Downloads\ff7r-data-editor-win32-x64\ff7r-data-editor-win32-x64\resources\app\lib\upackage.js:17:18)
    at IpcMainImpl.openUPackage (C:\Users\david\Downloads\ff7r-data-editor-win32-x64\ff7r-data-editor-win32-x64\resources\app\main\index.js:153:22)

Specifications

  • Version: 2.0.0-a.0
  • Platform: win32 / Windows 10 Home

CameraSetting.zip - attached .uasset and .uexp

@jordanbtucker
Copy link
Owner

Thanks for the report. For now, this only works with Rebirth *.uasset files since they moved to IoStore packages. I recommend using FModel to extract the *.uasset file which will contain all the data for both the *.uasset and *.uexp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants