@etothepii/satisfactory-file-parser
Advanced tools
Comparing version 0.4.12 to 0.4.13
@@ -26,4 +26,4 @@ "use strict"; | ||
static ReadHeader(reader) { | ||
const blueprintTypeOrWhat = reader.readBytes(4); | ||
const versionThing = reader.readBytes(2 * 4); | ||
const alwaysTwo = reader.readBytes(4); | ||
const objectVersion = reader.readBytes(2 * 4); | ||
const dimensions = util_types_1.vec3.ParseInt(reader); | ||
@@ -30,0 +30,0 @@ let itemTypeCount = reader.readInt32(); |
@@ -37,3 +37,6 @@ "use strict"; | ||
case "StructProperty": | ||
if (propertyName === 'mDestroyedPickups') { | ||
if (propertyName === 'mRemovalLocations') { | ||
property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => util_types_1.vec3.ParseF(reader)), ueType, index); | ||
} | ||
if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') { | ||
property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => GUID_1.GUID.read(reader)), ueType, index); | ||
@@ -78,3 +81,3 @@ } | ||
} | ||
else if (property.name === 'mDestroyedPickups') { | ||
else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') { | ||
property.values.forEach(v => GUID_1.GUID.write(writer, v)); | ||
@@ -81,0 +84,0 @@ } |
@@ -37,3 +37,4 @@ "use strict"; | ||
if (readBytes !== size) { | ||
if (size - readBytes === 4 && reader.readInt32() === 0) { | ||
if (size - readBytes === 4 || struct.subtype === 'ClientIdentityInfo') { | ||
reader.skipBytes(size - readBytes); | ||
} | ||
@@ -40,0 +41,0 @@ else { |
{ | ||
"name": "@etothepii/satisfactory-file-parser", | ||
"author": "etothepii", | ||
"version": "0.4.12", | ||
"version": "0.4.13", | ||
"description": "A file parser for satisfactory files. Includes save files and blueprint files.", | ||
@@ -6,0 +6,0 @@ "types": "./build/index.d.ts", |
@@ -21,3 +21,3 @@ # Satisfactory File Parser | ||
| U8 | ✅ 0.1.20 - 0.3.7 | | ||
| U1.0 | ✅ >= 0.4.12 | | ||
| U1.0 | ✅ >= 0.4.13 | | ||
@@ -24,0 +24,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
678614
12516