Skip to content

Error Parsing Models from GTA III and VС #12

@AlterSDB

Description

@AlterSDB

There is an ERR_OUT_OF_RANGE error when trying to parse .dff models from GTA III and Vice City. I tested this with the Infernus and Admiral from Vice City, as well as the player model from GTA III.
I think I'll find a solution myself soon.

RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 97412. Received 97416
    at boundsError (node:internal/buffer:88:9)
    at Buffer.readUInt32LE (node:internal/buffer:222:5)
    at ByteStream.readUint32 (C:\Users\1\Documents\GitHub\rw-parser\src\utils\ByteStream.js:20:35)
    at DffParser.readMesh (C:\Users\1\Documents\GitHub\rw-parser\src\renderware\dff\DffParser.js:324:31)
    at DffParser.readBinMesh (C:\Users\1\Documents\GitHub\rw-parser\src\renderware\dff\DffParser.js:248:30)
    at DffParser.readGeometry (C:\Users\1\Documents\GitHub\rw-parser\src\renderware\dff\DffParser.js:218:28)
    at DffParser.readGeometryList (C:\Users\1\Documents\GitHub\rw-parser\src\renderware\dff\DffParser.js:140:37)
    at DffParser.parse (C:\Users\1\Documents\GitHub\rw-parser\src\renderware\dff\DffParser.js:69:41)
    at C:\Users\1\Documents\GitHub\rw-parser\main.js:75:39
    at step (C:\Users\1\Documents\GitHub\rw-parser\main.js:33:23) {
  code: 'ERR_OUT_OF_RANGE'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions