Giter VIP home page Giter VIP logo

Comments (13)

4sval avatar 4sval commented on August 20, 2024

what's the full code

from cue4parse.

TheNaeem avatar TheNaeem commented on August 20, 2024

error is fixed now but thank you anyways :)

from cue4parse.

TheNaeem avatar TheNaeem commented on August 20, 2024

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

from cue4parse.

4sval avatar 4sval commented on August 20, 2024

provider.LoadMappings() after submitkey

from cue4parse.

TheNaeem avatar TheNaeem commented on August 20, 2024

the exception still gets thrown

from cue4parse.

4sval avatar 4sval commented on August 20, 2024

I just tested it and there's absolutely no issue if you do everything right
initialize the provider, submit keys, load mappings, load object

from cue4parse.

TheNaeem avatar TheNaeem commented on August 20, 2024

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?

from cue4parse.

TheNaeem avatar TheNaeem commented on August 20, 2024

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

from cue4parse.

4sval avatar 4sval commented on August 20, 2024

because you have no mappings

from cue4parse.

TheNaeem avatar TheNaeem commented on August 20, 2024

idk man, even with loading the mappings the exception still throws:

            var provider = new DefaultFileProvider(@"C:\Program Files\Epic Games\Fortnite\FortniteGame\Content\Paks", SearchOption.TopDirectoryOnly, true);
            provider.Initialize();
            provider.LoadMappings();

            var guid = new FGuid("00000000000000000000000000000000");
            var aes = new FAesKey("0x3FE5C589D219E71EE15FEB8FA9BC6B6224BB58AA826A0FA1D997D92E0D8DB23A");
            provider.SubmitKey(guid, aes);
            var texture = provider.LoadObject<UTexture2D>(@"/Game/UI/Foundation/Textures/Icons/Backpacks/T-Icon-Backpacks-773-Carabus-L");
            texture.Decode();

from cue4parse.

4sval avatar 4sval commented on August 20, 2024

provider.LoadMappings() after submitkey

...

from cue4parse.

TheNaeem avatar TheNaeem commented on August 20, 2024

still throws even if i put it after submitkey lol

from cue4parse.

4sval avatar 4sval commented on August 20, 2024

then paste and edit https://github.com/FabianFG/CUE4Parse/blob/master/CUE4Parse.Example/Program.cs

from cue4parse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.