Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

satisfactory-json

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

satisfactory-json - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

5

lib/json2sav.js

@@ -457,2 +457,7 @@ "use strict";

writeRailroadSubsystemExtra(entity) {
// Workaround for broken savegames in the experimental version
if (entity.extra === undefined) {
this.buffer.writeInt(0);
return;
}
this.buffer.writeInt(entity.extra.trains.length);

@@ -459,0 +464,0 @@ for (const train of entity.extra.trains) {

13

lib/sav2json.js

@@ -188,2 +188,5 @@ "use strict";

saveJson.missing = this.buffer.readHex(this.buffer.buffer.length - this.buffer.cursor);
if (this.buffer.buffer.length - this.buffer.cursor > 0) {
console.warn('global missing data found: ' + saveJson.missing);
}
return saveJson;

@@ -252,2 +255,4 @@ }

entity.missing = buffer.readHex(missing);
console.warn('missing data found in entity of type ' + className +
': ' + entity.missing);
}

@@ -676,3 +681,3 @@ else if (missing < 0) {

case '/Game/FactoryGame/-Shared/Blueprint/BP_RailroadSubsystem.BP_RailroadSubsystem_C':
this.readRailroadSubsystemExtra(entity);
this.readRailroadSubsystemExtra(entity, length);
break;

@@ -751,3 +756,7 @@ case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':

}
readRailroadSubsystemExtra(entity) {
readRailroadSubsystemExtra(entity, length) {
// Workaround for broken savegames in the experimental version
if (this.buffer.bytesRead >= length) {
return;
}
const trainCount = this.buffer.readInt();

@@ -754,0 +763,0 @@ const trains = [];

2

package.json
{
"name": "satisfactory-json",
"version": "0.0.11",
"version": "0.0.12",
"description": "Convert Satisfactory save files to JSON and back",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc