About Store Forum Documentation Contact



Post Reply 
pak encryption key
Author Message
VicToMeyeZR Offline
Member

Post: #1
pak encryption key
question. If i set a pak encryption key, the editor fails to launch, says it cant open engine.pk file. Where would I designate that key so it can be accessed by the client and the editor?
05-06-2012 06:18 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #2
RE: pak encryption key
IIRC, you can only set a key to secure your own Data. The engine.pak is a seperate file (outside of your data .pak) which you don't secure.
05-06-2012 06:30 PM
Find all posts by this user Quote this message in a reply
VicToMeyeZR Offline
Member

Post: #3
RE: pak encryption key
ok, but the question still remains. I didn't realize the engine.pak was a seperate file. When I create my own pak and encrypt it, where do I designate that key?
05-06-2012 06:41 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #4
RE: pak encryption key
When you make a .pak file for your data, your data is copied to that .pak file. Meaning you still have your original data folder.

You use this folder for the editor, NOT the .pak file.
05-06-2012 06:58 PM
Find all posts by this user Quote this message in a reply
VicToMeyeZR Offline
Member

Post: #5
RE: pak encryption key
Thank you, I understand all that.

I am trying to test the different features, so when I sent out the game, it needs to know what that key is.. It has to be designated somewhere, for the client to be able to run?
05-06-2012 07:10 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #6
RE: pak encryption key
Yes, indeed.

If you release your game, your .exe has to be able to access the data. For that, you have to declare and initialize a Secure object, like so:

Secure Key = Secure(000, 000, 000, 000, ......);

When you're working on your project, you would include your data like so:

DataPath("Path-To-Data");

However, now that you want to release your game (with the Data.pak), you change that line to:

Paks.add("Data.pak", &Key);

And you're done.
05-06-2012 07:19 PM
Find all posts by this user Quote this message in a reply
VicToMeyeZR Offline
Member

Post: #7
RE: pak encryption key
cool. thank you.
05-06-2012 07:26 PM
Find all posts by this user Quote this message in a reply
Post Reply