Building the plPythonPack and plFileSecure projects

From OpenUru
Revision as of 00:55, 19 April 2011 by Mac Fife (talk | contribs) (Created page with "Here is a small guide on how to compile and use the plPythonPack and plFileSecure tools. == Prerequisites == * You should have compiled the CWE Client as it is described in cjk...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Here is a small guide on how to compile and use the plPythonPack and plFileSecure tools.

Prerequisites

  • You should have compiled the CWE Client as it is described in cjkelly1's tutorial once. (Link)
  • You need my fixed vcproj files: plFileSecure and plPythonPack

Compile them

plFileSecure

  1. Replace the file [CWE]\MOULOpenSourceClientPlugin\Plasma20\MsDevProjects\Plasma\Apps\plFileSecure\plFileSecure.vcproj with my one.
  2. Open the file with VS2003.
  3. Change the configuration to "Release".
  4. Right click on the Project and select "Build". Save the sln file, if VS asks you.
  5. Everything should work and the plFileSecure.exe should be in the Release folder.


plPythonPack (the same as for plFileSecure)

  1. Replace the file [CWE]\MOULOpenSourceClientPlugin\Plasma20\MsDevProjects\Plasma\Apps\plPythonPack\plPythonPack.vcproj with my one.
  2. Open the file with VS2003.
  3. Change the configuration to "Release".
  4. Right click on the Project and select "Build". Save the sln file, if VS asks you.
  5. Everything should work and the plFileSecure.exe should be in the Release folder.

Use them

You will get more information by running plFileSecure -h or plPythonPack -h in the command prompt but here's a small overview.

For packing a complete python.pak file you have to copy the whole Python source into a new folder. You can use the Python files from Cyan's scripts. (Link) Now, you can run the plPythonPack.exe in the new Python folder or run plPythonPack <PythonFolder> in the command prompt. The final python.pak file should be in the Python folder.


To encrypt files (e.g. for the MOSS auth server) you have to put your encryption.key to the folder where you are running plFileSecure. Then, open a command prompt and type:

plFileSecure <directory> <file-ending>

e.g.: plFileSecure . pak

Finally, you're files are "notthedroids"/ntd encrypted.


Based on mystler's forum post: http://forums.openuru.org/viewtopic.php?f=92&p=4205#p4205