@etothepii/satisfactory-file-parser 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,7 +19,7 @@ U8 has read and write support for blueprints, but only read support for saves. M
19
19
  |:--------------:|:-----------------------------|
20
20
  | <= U5 | ❌ |
21
21
  | U6 + U7 | ✅ 0.0.1 - 0.0.34 |
22
- | U8 | ⚠️ >= 0.1.14 (readig for both saves and blueprints, writing only for blueprints) |
22
+ | U8 | ⚠️ >= 0.1.15 (readig for both saves and blueprints, writing only for blueprints) |
23
23
 
24
24
 
25
25
  ## Installation via npm
@@ -58,13 +58,13 @@ class BlueprintReader extends byte_reader_class_1.ByteReader {
58
58
  this.currentByte = this.compressionInfo.chunkHeaderSize;
59
59
  this.handledByte += this.compressionInfo.chunkHeaderSize;
60
60
  if (this.compressionInfo.packageFileTag <= 0) {
61
- this.compressionInfo.packageFileTag = chunkHeader.getUint32(0, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
61
+ this.compressionInfo.packageFileTag = chunkHeader.getInt32(0, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
62
62
  }
63
63
  if (this.compressionInfo.maxChunkContentSize <= 0) {
64
64
  this.compressionInfo.maxChunkContentSize = chunkHeader.getInt32(8, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
65
65
  }
66
- const chunkCompressedLength = chunkHeader.getInt32(33, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
67
- const chunkUncompressedLength = chunkHeader.getInt32(25, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
66
+ const chunkCompressedLength = chunkHeader.getInt32(32, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
67
+ const chunkUncompressedLength = chunkHeader.getInt32(24, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
68
68
  totalUncompressedBodySize += chunkUncompressedLength;
69
69
  const currentChunkSize = chunkCompressedLength;
70
70
  let currentChunk = this.fileBuffer.slice(this.currentByte, this.currentByte + currentChunkSize);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@etothepii/satisfactory-file-parser",
3
3
  "author": "etothepii",
4
- "version": "0.1.14",
4
+ "version": "0.1.15",
5
5
  "description": "A file parser for satisfactory files. Includes save files and blueprint files.",
6
6
  "types": "./build/index.d.ts",
7
7
  "main": "./build/index.js",