Skip to content

Commit

Permalink
Updated recipes and icons for Satisfactory 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andev0 committed Sep 10, 2024
1 parent 2dab3f3 commit 511f1df
Show file tree
Hide file tree
Showing 57 changed files with 82,756 additions and 64,602 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ A tool for planning Satisfactory production chains with convenient sankey diagra

The tool: [https://sankeyfactory.github.io](https://sankeyfactory.github.io).

The recipes are up-to-date with Satisfactory version `0.8.3.3` (Update 8 latest patch).
The recipes are up-to-date with Satisfactory version `1.0` (The first version of the released game).

[![Static Badge](https://img.shields.io/badge/Buy%20me%20a%20coffee-Donate-green?style=for-the-badge&logo=buymeacoffee&logoColor=green)](https://buymeacoffee.com/andev0)

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
147,344 changes: 82,750 additions & 64,594 deletions src/Tools/SatisfactoryRecipeExporter/Docs.json
100644 → 100755

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Tools/SatisfactoryRecipeExporter/DocsTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type DocsPowerGenerator = DocsBuilding & {
mFuel: DocsFuel[];
mSupplementalToPowerRatio: string;
mPowerProduction: string;
mFuelResourceForm: string;
mAllowedResourceForms: string;
};

type DocsFuel = {
Expand Down
10 changes: 4 additions & 6 deletions src/Tools/SatisfactoryRecipeExporter/Exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fs from 'fs';
// "Satisfactory/CommunityResources/Docs/Docs.json"
let docsPath = "src/Tools/SatisfactoryRecipeExporter/Docs.json";
let satisfactory = JSON.parse(fs.readFileSync(docsPath, "utf-8")) as Docs;
let gameVersion = "0.8.3.3";
let gameVersion = "1.0";

function parseMachinesList(docsMachines: string): string[]
{
Expand All @@ -24,7 +24,7 @@ function parseResourcesList(docsResources: string): RecipeResource[]
{
let result: RecipeResource[] = [];

let resourcesRegex = /\(ItemClass=.+?'\\?".+?\.(.+?)\\?"',Amount=(\d+)\)/g;
let resourcesRegex = /\(ItemClass=".+?'\\?.+?\.(.+?)\\?'",Amount=(\d+)\)/g;

let match: RegExpExecArray;
while (match = resourcesRegex.exec(docsResources)!)
Expand Down Expand Up @@ -63,7 +63,7 @@ function getMachinesRecipe(machineName: string, allRecipes: Recipe[], alternate:

function getMachineDescriptorId(machineId: string): string
{
let idRegex = /Build_(.+?)_/;
let idRegex = /Build_(.+?)_C/;
let match = idRegex.exec(machineId);

if (match == null)
Expand Down Expand Up @@ -339,11 +339,9 @@ let powerGenerators: Building[] = satisfactory
fixCubicMeters(byproduct, byproductDescriptor);
}

let resourceForm = docsPowerGenerator.mFuelResourceForm.replace("RF_", "") as ResourceForm;

for (const fuelType of fuelTypes)
{
if (fuelType.energyValue === 0 || fuelType.form !== resourceForm) continue;
if (fuelType.energyValue === 0) continue;

let productionDuration = fuelType.energyValue / producedPower;

Expand Down

0 comments on commit 511f1df

Please sign in to comment.