Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NightCorws uasset open failed #86

Closed
songyibug opened this issue May 3, 2023 · 0 comments
Closed

NightCorws uasset open failed #86

songyibug opened this issue May 3, 2023 · 0 comments

Comments

@songyibug
Copy link

songyibug commented May 3, 2023

NightCrows.zip
NightCorws uasset to json failed,UE Version 5.1
UsmapParser.cs need to modify to read mappings.usmap.
var enumCount = Ar.Read();
var enums = new Dictionary<string, Dictionary<int, string>>((int) enumCount);
for (var i = 0; i < enumCount; i++)
{
var enumName = Ar.ReadName(nameLut)!;

            //var enumNamesSize =  Ar.Read<byte>();
            var enumNamesSize = Ar.Read<UInt16>();
            var enumNames = new Dictionary<int, string>(enumNamesSize);
            for (var j = 0; j < enumNamesSize; j++)
            {
                var value = Ar.ReadName(nameLut)!;
                enumNames[j] = value;
            }

            enums.Add(enumName, enumNames);
        }

maybe the failed reason is here:
Package.cs:
// We don't support loading script packages, so just return a fallback
if (outerMostImport.ObjectName.Text.StartsWith("/Script/"))
{
return new ResolvedImportObject(import, this);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant