@etothepii/satisfactory-file-parser 0.1.13 → 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.
|
|
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.
|
|
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(
|
|
67
|
-
const chunkUncompressedLength = chunkHeader.getInt32(
|
|
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);
|
|
@@ -528,7 +528,6 @@ class StructProperty extends AbstractBaseProperty {
|
|
|
528
528
|
value = (size === 16) ? (0, util_types_1.ParseVec4f)(reader) : (0, util_types_1.ParseVec4)(reader);
|
|
529
529
|
break;
|
|
530
530
|
case 'Box':
|
|
531
|
-
console.error('found box here!!');
|
|
532
531
|
value = (size === 25) ? {
|
|
533
532
|
min: (0, util_types_1.ParseVec3f)(reader),
|
|
534
533
|
max: (0, util_types_1.ParseVec3f)(reader),
|
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.
|
|
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",
|