Skip to content

Commit

Permalink
feat: add UE 5.4 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
rancoud authored Jan 2, 2024
1 parent 145b244 commit 84595fd
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
15 changes: 10 additions & 5 deletions dist/uasset-reader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* uasset-reader-js (v1.0.0)
* uasset-reader-js (v1.0.1)
* https://github.com/blueprintue/uasset-reader-js
*
* MIT License
Expand Down Expand Up @@ -162,6 +162,7 @@
PACKAGE_FILE_TAG_SWAPPED: 0xC1832A9E
};

// https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Runtime/Core/Public/UObject/ObjectVersion.h#L83
var EUnrealEngineObjectUE4Version = {
VER_UE4_OLDEST_LOADABLE_PACKAGE: { value: 214, comment: "Oldest package managed by Unreal Engine" },
VER_UE4_BLUEPRINT_VARS_NOT_READ_ONLY: { value: 215, comment: "Removed restriction on blueprint-exposed variables from being read-only" },
Expand Down Expand Up @@ -476,6 +477,7 @@
VER_UE4_AUTOMATIC_VERSION: { value: 522, comment: "Fixed corrupt licensee flag in 4.26 assets" }
};

// https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Runtime/Core/Public/UObject/ObjectVersion.h#L39
var EUnrealEngineObjectUE5Version = {
VER_UE5_INITIAL_VERSION: { value: 1000, comment: "The original UE5 version, at the time this was added the UE4 version was 522, so UE5 will start from 1000 to show a clear difference" },
VER_UE5_NAMES_REFERENCED_FROM_EXPORT_DATA: { value: 1001, comment: "Support stripping names that are not referenced from export data" },
Expand All @@ -487,11 +489,14 @@
VER_UE5_FSOFTOBJECTPATH_REMOVE_ASSET_PATH_FNAMES: { value: 1007, comment: "Replace FName asset path in FSoftObjectPath with (package name, asset name) pair FTopLevelAssetPath" },
VER_UE5_ADD_SOFTOBJECTPATH_LIST: { value: 1008, comment: "Add a soft object path list to the package summary for fast remap" },
VER_UE5_DATA_RESOURCES: { value: 1009, comment: "Added bulk/data resource table" },
VER_UE5_AUTOMATIC_VERSION_PLUS_ONE: { value: 1010, comment: "Last version +1" },
VER_UE5_AUTOMATIC_VERSION: { value: 1009, comment: "Large world coordinates converts a number of core types to double components by default." }
VER_UE5_SCRIPT_SERIALIZATION_OFFSET: { value: 1010, comment: "Added script property serialization offset to export table entries for saved, versioned packages" },
VER_UE5_PROPERTY_TAG_EXTENSION_AND_OVERRIDABLE_SERIALIZATION: { value: 1011, comment: "Adding property tag extension, Support for overridable serialization on UObject, Support for overridable logic in containers" },
VER_UE5_AUTOMATIC_VERSION_PLUS_ONE: { value: 1012, comment: "Last version +1" },
VER_UE5_AUTOMATIC_VERSION: { value: 1011, comment: "Large world coordinates converts a number of core types to double components by default." }
};

/* eslint-disable */
// https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h#L116
var PackageFlags = {
PKG_None: { value: 0x00000000, comment: "No flags" },
PKG_NewlyCreated: { value: 0x00000001, comment: "Newly created package, not saved yet. In editor only." },
Expand All @@ -504,7 +509,7 @@
PKG_UncookedOnly: { value: 0x00000100, comment: "Loaded only in uncooked builds (i.e. runtime in editor)" },
PKG_Cooked: { value: 0x00000200, comment: "Package is cooked" },
PKG_ContainsNoAsset: { value: 0x00000400, comment: "Package doesn't contain any asset object (although asset tags can be present)" },
PKG_ExternallyReferenceable: { value: 0x00000800, comment: "(Not Implemented) Objects in this package can be referenced in a different plugin or mount point (i.e /Game -> /Engine)" },
PKG_NotExternallyReferenceable: { value: 0x00000800, comment: "Objects in this package cannot be referenced in a different plugin or mount point (i.e /Game -> /Engine)" },
PKG_Unused_1000: { value: 0x00001000, comment: "Unused" },
PKG_UnversionedProperties: { value: 0x00002000, comment: "Uses unversioned property serialization instead of versioned tagged property serialization" },
PKG_ContainsMapData: { value: 0x00004000, comment: "Contains map data (UObjects only referenced by a single ULevel) but is stored in a different package" },
Expand All @@ -520,7 +525,7 @@
PKG_Unused_1000000: { value: 0x01000000, comment: "Unused" },
PKG_Unused_2000000: { value: 0x02000000, comment: "Unused" },
PKG_Unused_4000000: { value: 0x04000000, comment: "Unused" },
PKG_Unused_8000000: { value: 0x08000000, comment: "Unused" },
PKG_CookGenerated: { value: 0x08000000, comment: "This package was generated by the cooker and does not exist in the WorkspaceDomain" },
PKG_DynamicImports: { value: 0x10000000, comment: "This package should resolve dynamic imports from its export at runtime." },
PKG_RuntimeGenerated: { value: 0x20000000, comment: "This package contains elements that are runtime generated, and may not follow standard loading order rules" },
PKG_ReloadingForCooker: { value: 0x40000000, comment: "This package is reloading in the cooker, try to avoid getting data we will never need. We won't save this package." },
Expand Down
2 changes: 1 addition & 1 deletion dist/uasset-reader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uasset-reader-js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Read .uasset files from Unreal Engine in javascript",
"scripts": {
"test": "jest --coverage --coverageDirectory=./coverage -- tests/main.test.js",
Expand Down
13 changes: 9 additions & 4 deletions src/js/enums/enums.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 84595fd

Please sign in to comment.