Hi
I want to know how can i protect my packaged pak file from unpacking. people can easily extract assets from pak file and use it on another project…
Now, there is a small app that extract pak file (UE Viewer | Gildor's Homepage). is there any way to at least make it difficult to this app from unpacking?
To protect your content from exploration/extraction you can either modify a package/mesh etc formats or use encrypted UE4 paks. UModel doesn’t support encrypted paks and will never support.
Without that, anyone can open assets with unmodified or modified version of UE4 editor because the source code is available for everyone.
Hi, thank you very much for your answer. I searched the net for encrypted paks and modify a package/mesh formats but unfortunately I couldn’t find any document. Do you know any doc or tutorial about encrypted paks and modify a package/mesh formats?
Again, Glidor, thanks a lot for your helpful answer
Add #define AES_KEY “Some_Long_Key_String”
to the project’s build settings or to AES.h file.
Force “-encrypt” option for UnrealPak in some way (there’s no GUI for that). Either modify UAT call to UnrealPak, or modify UnrealPak itself (look for “bNeedEncryption” in UnrealPak.cpp). Also you may execute UnrealPak with this option using the command line.
I see from the source code that UnrealPak tool requires a command line option “-encrypt”. I’m unsure how it could be passed there from UnrealEd’s GUI, perhaps you will need to modify engine’s source code to include it.
One of possible places for modifications is UnrealPak tool itself. Modify it so it will think about all produced paks as encrypted. See “ProcessCommandLine” function, look for “Input.bNeedEncryption |= bEncrypt;” code there.
Just in case, source file location is:
Engine\Source\Programs\UnrealPak\Private\UnrealPak.cpp
You should follow discussion from this page - lots of information was pushed yesterday. Most likely you didn’t add “-encrypt” option to your UnrealPak.