-
Notifications
You must be signed in to change notification settings - Fork 111
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
Cannot decode UTexture2D #13
Comments
what's the full code |
error is fixed now but thank you anyways :) |
The issue is happening again after verifying my game files, here is the full code: var provider = new DefaultFileProvider(@"C:\Program Files\Epic Games\Fortnite\FortniteGame\Content\Paks", SearchOption.TopDirectoryOnly, true);
provider.Initialize();
var guid = new FGuid("00000000000000000000000000000000");
var aes = new FAesKey("3FE5C589D219E71EE15FEB8FA9BC6B6224BB58AA826A0FA1D997D92E0D8DB23A");
provider.SubmitKey(guid, aes);
var texture = provider.LoadObject<UTexture2D>(@"/Game/UI/Foundation/Textures/Icons/Backpacks/T-Icon-Backpacks-773-Carabus-L"); //error throws on this line |
provider.LoadMappings() after submitkey |
the exception still gets thrown |
I just tested it and there's absolutely no issue if you do everything right |
Did I do everything correctly in the code I provided above? I'm really not sure what else there is to do. Is your working code different than mine? |
Also, you can't see it in the code snippet but as I mentioned earlier, the exception isn't thrown when the texture is loaded, it's thrown when I called the Decode method |
because you have no mappings |
idk man, even with loading the mappings the exception still throws:
|
... |
still throws even if i put it after submitkey lol |
then paste and edit https://github.com/FabianFG/CUE4Parse/blob/master/CUE4Parse.Example/Program.cs |
Hello, I'm trying to export a texture icon as UTexture2D, and when calling
Decode()
it throws this exception:System.ArgumentNullException: Value cannot be null. (Parameter 'source') at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable 1 source, Func 2 predicate, Boolean& found) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable 1 source, Func 2 predicate)
The exception is thrown at line 113 of
UTexture2D.cs
And this is how I'm loading the texture:
Thank you, I hope I was able to be descriptive on my issue, and hopefully it's just me doing something wrong.
The text was updated successfully, but these errors were encountered: