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

How can I read/deserialize AssetRegistry into json? #46

Closed
Civ01 opened this issue May 24, 2022 · 7 comments
Closed

How can I read/deserialize AssetRegistry into json? #46

Civ01 opened this issue May 24, 2022 · 7 comments

Comments

@Civ01
Copy link

Civ01 commented May 24, 2022

No description provided.

@4sval
Copy link
Collaborator

4sval commented May 24, 2022

just like any other package

@Civ01
Copy link
Author

Civ01 commented May 24, 2022

It tries to find AssetRegistry.uasset:

var provider = new DefaultFileProvider(_gameDirectory, SearchOption.TopDirectoryOnly, true);
provider.Initialize();
//provider.SubmitKey(new FGuid(), new FAesKey(_aesKey));
provider.LoadMappings();
provider.LoadLocalization(ELanguage.English);
var allExports = provider.LoadObjectExports(_objectPath);

@4sval
Copy link
Collaborator

4sval commented May 25, 2022

@Civ01
Copy link
Author

Civ01 commented May 25, 2022

This links to a completely different repo

@4sval
Copy link
Collaborator

4sval commented May 25, 2022

things are the same

@Civ01
Copy link
Author

Civ01 commented May 25, 2022

Not really. It wast obvious from the short example that you need to explicitly mount provider.

@4sval
Copy link
Collaborator

4sval commented May 25, 2022

what?
the only thing you have to do is replace the last line by the snippet

@4sval 4sval closed this as completed May 26, 2022
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

2 participants