@etothepii/satisfactory-file-parser
Advanced tools
Comparing version 0.4.17 to 0.4.19
@@ -53,4 +53,3 @@ "use strict"; | ||
obj.specialProperties = DataFields.ParseAdditionalSpecialProperties(reader, typePath, remainingLen); | ||
const end = reader.getBufferPosition(); | ||
const remainingSize = length - (end - start); | ||
const remainingSize = length - (reader.getBufferPosition() - start); | ||
if (remainingSize > 0) { | ||
@@ -57,0 +56,0 @@ obj.trailingData = Array.from(reader.readBytes(remainingSize)); |
import { ByteReader } from "../../byte/byte-reader.class"; | ||
import { ChunkCompressionInfo } from "../../file.types"; | ||
import { ObjectReference } from "../objects/values/ObjectReference"; | ||
import { Level } from "./level.class"; | ||
import { RoughSaveVersion, SatisfactorySaveHeader } from "./save.types"; | ||
export type ReadMode = 'stream' | 'whole'; | ||
export declare const DEFAULT_SATISFACTORY_CHUNK_HEADER_SIZE = 49; | ||
@@ -22,4 +19,2 @@ export type ByteArray4 = [number, number, number, number]; | ||
header: SatisfactorySaveHeader | undefined; | ||
levels: Level[]; | ||
trailingCollectedObjects: ObjectReference[]; | ||
compressionInfo: ChunkCompressionInfo; | ||
@@ -26,0 +21,0 @@ static readonly EPOCH_TICKS = 621355968000000000n; |
@@ -17,4 +17,2 @@ "use strict"; | ||
this.onProgressCallback = onProgressCallback; | ||
this.levels = []; | ||
this.trailingCollectedObjects = []; | ||
this.compressionInfo = { | ||
@@ -54,3 +52,3 @@ packageFileTag: 0, | ||
readGrid(0); | ||
const unk5 = this.readInt32(); | ||
this.readInt32(); | ||
return grids; | ||
@@ -57,0 +55,0 @@ }; |
{ | ||
"name": "@etothepii/satisfactory-file-parser", | ||
"author": "etothepii", | ||
"version": "0.4.17", | ||
"version": "0.4.19", | ||
"description": "A file parser for satisfactory files. Includes save files and blueprint files.", | ||
@@ -24,9 +24,9 @@ "types": "./build/index.d.ts", | ||
"type": "git", | ||
"url": "git+ssh://git@gitlab.com/satisfactory-modding/satisfactory-file-parser.git" | ||
"url": "https://github.com/etothepii4/satisfactory-file-parser.git" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://gitlab.com/satisfactory-modding/satisfactory-file-parser/issues" | ||
"url": "https://github.com/etothepii4/satisfactory-file-parser/issues" | ||
}, | ||
"homepage": "https://gitlab.com/satisfactory-modding/satisfactory-file-parser#readme", | ||
"homepage": "https://github.com/etothepii4/satisfactory-file-parser#readme", | ||
"devDependencies": { | ||
@@ -33,0 +33,0 @@ "@types/jest": "^29.5.0", |
@@ -146,2 +146,5 @@ # Satisfactory File Parser | ||
# Changelog | ||
### [0.4.18] (2024-10-06) | ||
#### Migrated repo to public github | ||
### [0.4.17] (2024-10-05) | ||
@@ -148,0 +151,0 @@ #### updated README |
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
546929
110
196