@etothepii/satisfactory-file-parser 0.1.15 → 0.1.16

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.15 (readig for both saves and blueprints, writing only for blueprints) |
22
+ | U8 | ⚠️ >= 0.1.16 (readig for both saves and blueprints, writing only for blueprints) |
23
23
 
24
24
 
25
25
  ## Installation via npm
@@ -58,7 +58,7 @@ 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.getInt32(0, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
61
+ this.compressionInfo.packageFileTag = chunkHeader.getUint32(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);
@@ -120,7 +120,7 @@ class SaveReader extends byte_reader_class_1.ByteReader {
120
120
  this.currentByte = this.compressionInfo.chunkHeaderSize;
121
121
  this.handledByte += this.compressionInfo.chunkHeaderSize;
122
122
  if (this.compressionInfo.packageFileTag <= 0) {
123
- this.compressionInfo.packageFileTag = chunkHeader.getInt32(0, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
123
+ this.compressionInfo.packageFileTag = chunkHeader.getUint32(0, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
124
124
  }
125
125
  if (this.compressionInfo.maxChunkContentSize <= 0) {
126
126
  this.compressionInfo.maxChunkContentSize = chunkHeader.getInt32(8, this.alignment === alignment_enum_1.Alignment.LITTLE_ENDIAN);
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.15",
4
+ "version": "0.1.16",
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",