CUE4Parse
CUE4Parse copied to clipboard
Internal CLR error caused by LoadObject/LoadAllObjects
The following example provides all of the files needed to recreate the issue described in the title and below: With some .uasset files, calling LoadObject or LoadAllObjects will give an output that, when accessed in any way, will crash the program, this behaviour is also seen in fmodel. Minimal reproduceable example is attached.
const string objectPath = @"ShooterGame/Content/Mods/CrystalIsles/Assets/Environment/IsoStorage/Swamp/BogMyrtleBush_01/BogMyrtleBush_01";
const string objectName = @"BogMyrtleBush_01";
const string path = @"C:\Users\jorda\Desktop\CSMDE";
AbstractVfsFileProvider provider = new DefaultFileProvider(directory: path, searchOption: SearchOption.AllDirectories, isCaseInsensitive: true, versions: new VersionContainer(EGame.GAME_UE5_0));
provider.Initialize();
provider.Mount();
var export = provider.LoadObject(objectPath + "." + objectName);
Console.WriteLine(export.ExportType); // crash happens here
Alternatively, load the attached zip into fmodel. I will note that this is for ARK Survival Ascended, which uses UE5_0.
The full error given is this:
Fatal error. Internal CLR error. (0x80131506)
The other files are far too big to be uploaded on GitHub so I've uploaded them to Dropbox: https://www.dropbox.com/scl/fi/i2cjcu3jv5i4mlnrsiql2/CSMDE.zip?rlkey=ub3sxq2sjpcnzbb0n99niju0h&st=8czfefoi&dl=0
If instead you own and have installed ARK Ascended, you can use those files instead, just find the same path as in the code snippet with fmodel.