Invalid tag value

Open
#25 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
data, game-dev

Research direction

Start by reproducing the supplied configuration and inspect getTagType at nbt.js:15 and tagToRecord at nbt.js:28, then trace the calls through version2.js:49 and loader.js:45. Done means the reported .schem and .nbt inputs load without the Invalid tag value error.

Written by the indexing model from the issue text.

Description

Hey,

I tried to load a .schem file and a .nbt file and ran in both cases in this issue:

Error: Invalid tag value
at getTagType (nbt.js:15:9)
at nbt.js:30:12
at Array.forEach ()
at tagToRecord (nbt.js:28:20)
at loadVersion2 (version2.js:49:5)
at loadSchematic (loader.js:45:15)
at renderer.js:113:13
at Generator.next ()
at renderer.js:44:66
at new ZoneAwarePromise (zone.js:2702:25)

This is the configuration i used:

renderSchematic(document.querySelector('#schematicRenderer'), base64, {
        size: {
          width: 889,
          height: 500
        },
        corsBypassUrl: 'https://corsproxy.io/'
      });
Dominant language
TypeScript
Stars
76
Forks
7
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EngineHub/SchematicWebViewer

All issues in EngineHub/SchematicWebViewer

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.