Coder Social home page Coder Social logo

mcnbt's People

Contributors

tseian avatar xadillax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcnbt's Issues

Tag type 31 is not supported by this module yet

Hello! Found an error.
There are two files:
colony 1.dat
colonies.dat
Both read correctly. And there is one file, as I understand it, it contains both of these files.
capabilities.dat

When I try to read it, I get an error:

D:\Projects\Colonial-Therapist\preload.js:44 TypeError: Tag type 31 is not supported by this module yet.
    at BaseTag.getNextTag (D:\Projects\Colonial-Therapist\node_modules\mcnbt\lib\base_tag.js:269:13)
    at NBT.loadFromBuffer (D:\Projects\Colonial-Therapist\node_modules\mcnbt\nbt.js:28:29)
    at D:\Projects\Colonial-Therapist\node_modules\mcnbt\nbt.js:157:12
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)

I tried manually setting the int type in the tags.js file. Then it comes out similar but with id 75.

Mod repository link:
https://github.com/ldtteam/minecolonies/tree/1be0c6afa7ddd93c3ddfd17dff5653c9e468bcf0

https://github.com/ldtteam/minecolonies/blob/1be0c6afa7ddd93c3ddfd17dff5653c9e468bcf0/src/api/java/com/minecolonies/api/util/constant/NbtTagConstants.java

I couldn't find types there, I don't understand java.

NBTExplorer opens all three files correctly.

Thanks for the library
dat.zip
!

Installing this package in Windows leads to a error

Installing this package leads to this error:

npm ERR! code 1
npm ERR! path C:\Users\User\Desktop\test\node_modules\mcnbt
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c C:\Users\User\AppData\Local\Temp\postinstall-125135a6.cmd
npm ERR! 'rm' is not recognized as an internal or external command,
npm ERR! operable program or batch file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Local\npm-cache\_logs\2022-12-29T08_36_16_662Z-debug-0.log

Are you sure you checked support for Windows? "rm" sounds like a linux command

"postinstall": "rm -f package-lock.json"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.