Skip to content

The value of "offset" is out of range #79

@Markov-Andrey

Description

@Markov-Andrey

Hello!

Based on WC3MapTranslator, I have created a parser that converts all content of a map file to JSON and back. My issue is that when testing with different maps, I receive similar errors. This occurs in various formats (sometimes .w3u parses correctly, sometimes not, and other formats as well).

However, the error always appears. What could be causing this?

(My ultimate goal is to configure the program for my project.)

The current version of Reforged is being used.

Example console log errors:
PS C:\Program Files\OSPanel\domains\WC3MapTranslator> node decode.js
File w3\war3map.doo successfully converted to output\doodads.json!
File w3\war3map.imp successfully converted to output\imports.json!
Error processing file w3\war3map.w3a: The value of "offset" is out of range. It must be >= 0 and <= 36986. Received 36990
Error processing file w3\war3map.w3b: The value of "offset" is out of range. It must be >= 0 and <= 258. Received 260
File w3\war3map.w3c successfully converted to output\cameras.json!
File w3\war3map.w3d successfully converted to output\doodads.json!
File w3\war3map.w3e successfully converted to output\terrain.json!
Error processing file w3\war3map.w3h: The value of "offset" is out of range. It must be >= 0 and <= 976. Received 980
File w3\war3map.w3i successfully converted to output\info.json!
Error processing file w3\war3map.w3q: The value of "offset" is out of range. It must be >= 0 and <= 6173. Received 6175
File w3\war3map.w3r successfully converted to output\regions.json!
Error processing file w3\war3map.w3t: The value of "offset" is out of range. It must be >= 0 and <= 728. Received 729
Error processing file w3\war3map.w3u: The value of "offset" is out of range. It must be >= 0 and <= 16611. Received 16613
File w3\war3map.wts successfully converted to output\strings.json!
File w3\war3mapUnits.doo successfully converted to output\unitsDoo.json!

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