@etothepii/satisfactory-file-parser 0.4.7 → 0.4.9
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 +1 -1
- package/build/parser/satisfactory/edit/edit-constants.d.ts +71 -0
- package/build/parser/satisfactory/edit/edit-constants.js +71 -0
- package/build/parser/satisfactory/objects/DataFields.js +9 -2
- package/build/parser/satisfactory/objects/property/special/SpecialAnyProperty.d.ts +10 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1711,6 +1711,10 @@ export declare const EDIT: {
|
|
|
1711
1711
|
readonly TYPE_PATH: "/Game/FactoryGame/Buildable/Factory/RadarTower/Build_RadarTower.Build_RadarTower_C";
|
|
1712
1712
|
readonly CLASS_NAME: "Build_RadarTower_C";
|
|
1713
1713
|
};
|
|
1714
|
+
readonly PROJECT_ASSEMBLY: {
|
|
1715
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Buildable/Factory/ProjectAssembly/BP_ProjectAssembly.BP_ProjectAssembly_C";
|
|
1716
|
+
readonly CLASS_NAME: "BP_ProjectAssembly_C";
|
|
1717
|
+
};
|
|
1714
1718
|
readonly EXTRACTOR: {
|
|
1715
1719
|
readonly MINER_MK_1: {
|
|
1716
1720
|
readonly TYPE_PATH: "/Game/FactoryGame/Buildable/Factory/MinerMK1/Build_MinerMk1.Build_MinerMk1_C";
|
|
@@ -1765,6 +1769,13 @@ export declare const EDIT: {
|
|
|
1765
1769
|
readonly PARTICLE_ACCELERATOR: {
|
|
1766
1770
|
readonly TYPE_PATH: "/Game/FactoryGame/Buildable/Factory/HadronCollider/Build_HadronCollider.Build_HadronCollider_C";
|
|
1767
1771
|
};
|
|
1772
|
+
readonly CONVERTER: {
|
|
1773
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Buildable/Factory/Converter/Build_Converter.Build_Converter_C";
|
|
1774
|
+
};
|
|
1775
|
+
readonly QUANTUM_ENCODER: {
|
|
1776
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Buildable/Factory/QuantumEncoder/Build_QuantumEncoder.Build_QuantumEncoder_C";
|
|
1777
|
+
readonly CLASS_NAME: "Build_QuantumEncoder_C";
|
|
1778
|
+
};
|
|
1768
1779
|
};
|
|
1769
1780
|
readonly STORAGE: {
|
|
1770
1781
|
readonly CONTAINER_MK_1: {
|
|
@@ -1855,10 +1866,70 @@ export declare const EDIT: {
|
|
|
1855
1866
|
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/CrabHatcher/Char_CrabHatcher.Char_CrabHatcher_C";
|
|
1856
1867
|
readonly CLASS_NAME: "Char_CrabHatcher_C";
|
|
1857
1868
|
};
|
|
1869
|
+
readonly BIG_CRAB_HATCHER: {
|
|
1870
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/CrabHatcher/Char_BigCrabHatcher.Char_BigCrabHatcher_C";
|
|
1871
|
+
readonly CLASS_NAME: "Char_BigCrabHatcher_C";
|
|
1872
|
+
};
|
|
1873
|
+
readonly FLYING_BABY_CRAB: {
|
|
1874
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Crab/BabyCrab/BP_FlyingBabyCrab.BP_FlyingBabyCrab_C";
|
|
1875
|
+
readonly CLASS_NAME: "BP_FlyingBabyCrab_C";
|
|
1876
|
+
};
|
|
1858
1877
|
readonly HOG: {
|
|
1859
1878
|
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Hog/Char_Hog.Char_Hog_C";
|
|
1860
1879
|
readonly CLASS_NAME: "Char_Hog_C";
|
|
1861
1880
|
};
|
|
1881
|
+
readonly ALPHA_HOG: {
|
|
1882
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Hog/AlphaHog/Char_AlphaHog.Char_AlphaHog_C";
|
|
1883
|
+
readonly CLASS_NAME: "Char_AlphaHog_C";
|
|
1884
|
+
};
|
|
1885
|
+
readonly CLIFF_HOG: {
|
|
1886
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Hog/CliffHog/Char_CliffHog.Char_CliffHog_C";
|
|
1887
|
+
readonly CLASS_NAME: "Char_CliffHog_C";
|
|
1888
|
+
};
|
|
1889
|
+
readonly NUCLEAR_HOG: {
|
|
1890
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Hog/NuclearHog/Char_NuclearHog.Char_NuclearHog_C";
|
|
1891
|
+
readonly CLASS_NAME: "Char_NuclearHog_C";
|
|
1892
|
+
};
|
|
1893
|
+
readonly JOHNNY_HOG: {
|
|
1894
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Hog/Johnny/Char_Johnny.Char_Johnny_C";
|
|
1895
|
+
readonly CLASS_NAME: "Char_Johnny_C";
|
|
1896
|
+
};
|
|
1897
|
+
readonly SPITTER_SMALL: {
|
|
1898
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Spitter/AlternativeSpitter/Char_Spitter_Alternative.Char_Spitter_Alternative_C";
|
|
1899
|
+
readonly CLASS_NAME: "Char_Spitter_Alternative_C";
|
|
1900
|
+
};
|
|
1901
|
+
readonly SPITTER_DESERT_SMALL: {
|
|
1902
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterDesert/Char_SpitterDesertSmall.Char_SpitterDesertSmall_C";
|
|
1903
|
+
readonly CLASS_NAME: "Char_SpitterDesertSmall_C";
|
|
1904
|
+
};
|
|
1905
|
+
readonly SPITTER_DESERT_ALPHA: {
|
|
1906
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterDesert/Char_SpitterDesertAlpha.Char_SpitterDesertAlpha_C";
|
|
1907
|
+
readonly CLASS_NAME: "Char_SpitterDesertAlpha_C";
|
|
1908
|
+
};
|
|
1909
|
+
readonly SPITTER_FOREST_SMALL: {
|
|
1910
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterForest/Char_SpitterForestSmall.Char_SpitterForestSmall_C";
|
|
1911
|
+
readonly CLASS_NAME: "Char_SpitterForestSmall_C";
|
|
1912
|
+
};
|
|
1913
|
+
readonly SPITTER_FOREST_ALPHA: {
|
|
1914
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterForest/Char_SpitterForestAlpha.Char_SpitterForestAlpha_C";
|
|
1915
|
+
readonly CLASS_NAME: "Char_SpitterForestAlpha_C";
|
|
1916
|
+
};
|
|
1917
|
+
readonly SPITTER_RED_FOREST_SMALL: {
|
|
1918
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterForestRed/Char_SpitterForestRedSmall.Char_SpitterForestRedSmall_C";
|
|
1919
|
+
readonly CLASS_NAME: "Char_SpitterForestRedSmall_C";
|
|
1920
|
+
};
|
|
1921
|
+
readonly SPITTER_RED_FOREST_ALPHA: {
|
|
1922
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterForestRed/Char_SpitterForestRedAlpha.Char_SpitterForestRedAlpha_C";
|
|
1923
|
+
readonly CLASS_NAME: "Char_SpitterForestRedAlpha_C";
|
|
1924
|
+
};
|
|
1925
|
+
readonly SPITTER_AQUATIC_SMALL: {
|
|
1926
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterAquatic/Char_SpitterAquaticSmall.Char_SpitterAquaticSmall_C";
|
|
1927
|
+
readonly CLASS_NAME: "Char_SpitterAquaticSmall_C";
|
|
1928
|
+
};
|
|
1929
|
+
readonly SPITTER_AQUATIC_ALPHA: {
|
|
1930
|
+
readonly TYPE_PATH: "/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterAquatic/Char_SpitterAquaticAlpha.Char_SpitterAquaticAlpha_C";
|
|
1931
|
+
readonly CLASS_NAME: "Char_SpitterAquaticAlpha_C";
|
|
1932
|
+
};
|
|
1862
1933
|
};
|
|
1863
1934
|
readonly ANIMAL: {
|
|
1864
1935
|
readonly LIZARD_DOGGO: {
|
|
@@ -1795,6 +1795,10 @@ exports.EDIT = {
|
|
|
1795
1795
|
TYPE_PATH: '/Game/FactoryGame/Buildable/Factory/RadarTower/Build_RadarTower.Build_RadarTower_C',
|
|
1796
1796
|
CLASS_NAME: 'Build_RadarTower_C'
|
|
1797
1797
|
},
|
|
1798
|
+
PROJECT_ASSEMBLY: {
|
|
1799
|
+
TYPE_PATH: '/Game/FactoryGame/Buildable/Factory/ProjectAssembly/BP_ProjectAssembly.BP_ProjectAssembly_C',
|
|
1800
|
+
CLASS_NAME: 'BP_ProjectAssembly_C'
|
|
1801
|
+
},
|
|
1798
1802
|
EXTRACTOR: {
|
|
1799
1803
|
MINER_MK_1: {
|
|
1800
1804
|
TYPE_PATH: TYPE_PATH_MINERMK1
|
|
@@ -1849,6 +1853,13 @@ exports.EDIT = {
|
|
|
1849
1853
|
PARTICLE_ACCELERATOR: {
|
|
1850
1854
|
TYPE_PATH: TYPE_PATH_PARTICLE_ACCELERATOR
|
|
1851
1855
|
},
|
|
1856
|
+
CONVERTER: {
|
|
1857
|
+
TYPE_PATH: '/Game/FactoryGame/Buildable/Factory/Converter/Build_Converter.Build_Converter_C'
|
|
1858
|
+
},
|
|
1859
|
+
QUANTUM_ENCODER: {
|
|
1860
|
+
TYPE_PATH: '/Game/FactoryGame/Buildable/Factory/QuantumEncoder/Build_QuantumEncoder.Build_QuantumEncoder_C',
|
|
1861
|
+
CLASS_NAME: 'Build_QuantumEncoder_C'
|
|
1862
|
+
},
|
|
1852
1863
|
},
|
|
1853
1864
|
STORAGE: {
|
|
1854
1865
|
CONTAINER_MK_1: {
|
|
@@ -1939,9 +1950,69 @@ exports.EDIT = {
|
|
|
1939
1950
|
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/CrabHatcher/Char_CrabHatcher.Char_CrabHatcher_C',
|
|
1940
1951
|
CLASS_NAME: 'Char_CrabHatcher_C'
|
|
1941
1952
|
},
|
|
1953
|
+
BIG_CRAB_HATCHER: {
|
|
1954
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/CrabHatcher/Char_BigCrabHatcher.Char_BigCrabHatcher_C',
|
|
1955
|
+
CLASS_NAME: 'Char_BigCrabHatcher_C'
|
|
1956
|
+
},
|
|
1957
|
+
FLYING_BABY_CRAB: {
|
|
1958
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Crab/BabyCrab/BP_FlyingBabyCrab.BP_FlyingBabyCrab_C',
|
|
1959
|
+
CLASS_NAME: 'BP_FlyingBabyCrab_C'
|
|
1960
|
+
},
|
|
1942
1961
|
HOG: {
|
|
1943
1962
|
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Hog/Char_Hog.Char_Hog_C',
|
|
1944
1963
|
CLASS_NAME: 'Char_Hog_C'
|
|
1964
|
+
},
|
|
1965
|
+
ALPHA_HOG: {
|
|
1966
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Hog/AlphaHog/Char_AlphaHog.Char_AlphaHog_C',
|
|
1967
|
+
CLASS_NAME: 'Char_AlphaHog_C'
|
|
1968
|
+
},
|
|
1969
|
+
CLIFF_HOG: {
|
|
1970
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Hog/CliffHog/Char_CliffHog.Char_CliffHog_C',
|
|
1971
|
+
CLASS_NAME: 'Char_CliffHog_C'
|
|
1972
|
+
},
|
|
1973
|
+
NUCLEAR_HOG: {
|
|
1974
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Hog/NuclearHog/Char_NuclearHog.Char_NuclearHog_C',
|
|
1975
|
+
CLASS_NAME: 'Char_NuclearHog_C'
|
|
1976
|
+
},
|
|
1977
|
+
JOHNNY_HOG: {
|
|
1978
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Hog/Johnny/Char_Johnny.Char_Johnny_C',
|
|
1979
|
+
CLASS_NAME: 'Char_Johnny_C'
|
|
1980
|
+
},
|
|
1981
|
+
SPITTER_SMALL: {
|
|
1982
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Spitter/AlternativeSpitter/Char_Spitter_Alternative.Char_Spitter_Alternative_C',
|
|
1983
|
+
CLASS_NAME: 'Char_Spitter_Alternative_C'
|
|
1984
|
+
},
|
|
1985
|
+
SPITTER_DESERT_SMALL: {
|
|
1986
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterDesert/Char_SpitterDesertSmall.Char_SpitterDesertSmall_C',
|
|
1987
|
+
CLASS_NAME: 'Char_SpitterDesertSmall_C'
|
|
1988
|
+
},
|
|
1989
|
+
SPITTER_DESERT_ALPHA: {
|
|
1990
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterDesert/Char_SpitterDesertAlpha.Char_SpitterDesertAlpha_C',
|
|
1991
|
+
CLASS_NAME: 'Char_SpitterDesertAlpha_C'
|
|
1992
|
+
},
|
|
1993
|
+
SPITTER_FOREST_SMALL: {
|
|
1994
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterForest/Char_SpitterForestSmall.Char_SpitterForestSmall_C',
|
|
1995
|
+
CLASS_NAME: 'Char_SpitterForestSmall_C'
|
|
1996
|
+
},
|
|
1997
|
+
SPITTER_FOREST_ALPHA: {
|
|
1998
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterForest/Char_SpitterForestAlpha.Char_SpitterForestAlpha_C',
|
|
1999
|
+
CLASS_NAME: 'Char_SpitterForestAlpha_C'
|
|
2000
|
+
},
|
|
2001
|
+
SPITTER_RED_FOREST_SMALL: {
|
|
2002
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterForestRed/Char_SpitterForestRedSmall.Char_SpitterForestRedSmall_C',
|
|
2003
|
+
CLASS_NAME: 'Char_SpitterForestRedSmall_C'
|
|
2004
|
+
},
|
|
2005
|
+
SPITTER_RED_FOREST_ALPHA: {
|
|
2006
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterForestRed/Char_SpitterForestRedAlpha.Char_SpitterForestRedAlpha_C',
|
|
2007
|
+
CLASS_NAME: 'Char_SpitterForestRedAlpha_C'
|
|
2008
|
+
},
|
|
2009
|
+
SPITTER_AQUATIC_SMALL: {
|
|
2010
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterAquatic/Char_SpitterAquaticSmall.Char_SpitterAquaticSmall_C',
|
|
2011
|
+
CLASS_NAME: 'Char_SpitterAquaticSmall_C'
|
|
2012
|
+
},
|
|
2013
|
+
SPITTER_AQUATIC_ALPHA: {
|
|
2014
|
+
TYPE_PATH: '/Game/FactoryGame/Character/Creature/Enemy/Spitter/SpitterAquatic/Char_SpitterAquaticAlpha.Char_SpitterAquaticAlpha_C',
|
|
2015
|
+
CLASS_NAME: 'Char_SpitterAquaticAlpha_C'
|
|
1945
2016
|
}
|
|
1946
2017
|
},
|
|
1947
2018
|
ANIMAL: {
|
|
@@ -161,7 +161,10 @@ class DataFields {
|
|
|
161
161
|
const transform = util_types_1.Transform.Parse(reader);
|
|
162
162
|
reader.readInt32();
|
|
163
163
|
const swatchSlotTypePath = reader.readString();
|
|
164
|
-
|
|
164
|
+
reader.readInt32();
|
|
165
|
+
reader.readInt64();
|
|
166
|
+
const patternPath = reader.readString();
|
|
167
|
+
const zeroes = util_types_1.vec2.Parse(reader);
|
|
165
168
|
const oneZeroOne = util_types_1.vec3.Parse(reader);
|
|
166
169
|
const unknownUseNumbers = [zeroes, oneZeroOne];
|
|
167
170
|
reader.readInt32();
|
|
@@ -176,6 +179,7 @@ class DataFields {
|
|
|
176
179
|
swatchSlotTypePath,
|
|
177
180
|
paintFinishPath,
|
|
178
181
|
recipeTypePath,
|
|
182
|
+
patternPath,
|
|
179
183
|
});
|
|
180
184
|
}
|
|
181
185
|
property.buildables.push({
|
|
@@ -369,7 +373,10 @@ class DataFields {
|
|
|
369
373
|
util_types_1.Transform.Serialize(writer, instance.transform);
|
|
370
374
|
writer.writeInt32(0);
|
|
371
375
|
writer.writeString(instance.swatchSlotTypePath);
|
|
372
|
-
|
|
376
|
+
writer.writeInt32(0);
|
|
377
|
+
writer.writeInt64(0n);
|
|
378
|
+
writer.writeString(instance.patternPath);
|
|
379
|
+
util_types_1.vec2.Serialize(writer, instance.unknownUseNumbers[0]);
|
|
373
380
|
util_types_1.vec3.Serialize(writer, instance.unknownUseNumbers[1]);
|
|
374
381
|
writer.writeInt32(0);
|
|
375
382
|
writer.writeString(instance.paintFinishPath);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Transform,
|
|
1
|
+
import { Transform, vec2, vec3 } from '../../../structs/util.types';
|
|
2
2
|
import { ObjectReference } from '../../values/ObjectReference';
|
|
3
3
|
export type SpecialAnyProperty = {} | PowerLineSpecialProperty | PlayerSpecialProperty | ConveyorChainActorSpecialProperty | BuildableSubsystemSpecialProperty;
|
|
4
4
|
export type PowerLineSpecialProperty = {
|
|
@@ -35,15 +35,17 @@ export type ConveyorChainActorSpecialProperty = {
|
|
|
35
35
|
lastChainItemIndex: number;
|
|
36
36
|
items: ConveyorItemSpecialProperty[];
|
|
37
37
|
};
|
|
38
|
+
export type BuildableTypeInstance = {
|
|
39
|
+
transform: Transform;
|
|
40
|
+
unknownUseNumbers: [vec2, vec3];
|
|
41
|
+
swatchSlotTypePath: string;
|
|
42
|
+
paintFinishPath: string;
|
|
43
|
+
recipeTypePath: string;
|
|
44
|
+
patternPath: string;
|
|
45
|
+
};
|
|
38
46
|
export type BuildableSubsystemSpecialProperty = {
|
|
39
47
|
buildables: {
|
|
40
48
|
typePath: string;
|
|
41
|
-
instances:
|
|
42
|
-
transform: Transform;
|
|
43
|
-
unknownUseNumbers: [vec4, vec3];
|
|
44
|
-
swatchSlotTypePath: string;
|
|
45
|
-
paintFinishPath: string;
|
|
46
|
-
recipeTypePath: string;
|
|
47
|
-
}[];
|
|
49
|
+
instances: BuildableTypeInstance[];
|
|
48
50
|
}[];
|
|
49
51
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etothepii/satisfactory-file-parser",
|
|
3
3
|
"author": "etothepii",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.9",
|
|
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",
|