Difference between revisions of "Building the plPythonPack and plFileSecure projects"

From OpenUru
Jump to: navigation, search
m (Use them: Typos)
(Update link to python source to point to the foundry copy.)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
== Prerequisites ==
 
== Prerequisites ==
  
* You should have compiled the CWE Client as it is described in cjkelly1's tutorial once. ([[Build_the_client_with_MSVC_2003|Link]])
+
You should have compiled the CWE Client (changeset 8 or higher) as it is described in cjkelly1's tutorial once. ([[Build_the_client_with_MSVC_2003|Link]])
* You need my fixed vcproj files: [http://dl.dropbox.com/u/743689/plFileSecure.vcproj plFileSecure] and [http://dl.dropbox.com/u/743689/plPythonPack.vcproj plPythonPack]
 
  
 
== Compile them ==
 
== Compile them ==
 
<u>plFileSecure</u>
 
<u>plFileSecure</u>
# Replace the file <code>[CWE]\MOULOpenSourceClientPlugin\Plasma20\MsDevProjects\Plasma\Apps\plFileSecure\plFileSecure.vcproj</code> with my one.
+
# Open <code>[CWE]\MOULOpenSourceClientPlugin\Plasma20\MsDevProjects\Plasma\Apps\plFileSecure\plFileSecure.vcproj</code> with VS2003.
# Open the file with VS2003.
 
 
# Change the configuration to "Release".
 
# Change the configuration to "Release".
 
# Right click on the Project and select "Build". Save the sln file, if VS asks you.
 
# Right click on the Project and select "Build". Save the sln file, if VS asks you.
Line 16: Line 14:
  
 
<u>plPythonPack</u> (the same as for plFileSecure)
 
<u>plPythonPack</u> (the same as for plFileSecure)
# Replace the file <code>[CWE]\MOULOpenSourceClientPlugin\Plasma20\MsDevProjects\Plasma\Apps\plPythonPack\plPythonPack.vcproj</code> with my one.
+
# Open <code>[CWE]\MOULOpenSourceClientPlugin\Plasma20\MsDevProjects\Plasma\Apps\plPythonPack\plPythonPack.vcproj</code> with VS2003.
# Open the file with VS2003.
 
 
# Change the configuration to "Release".
 
# Change the configuration to "Release".
 
# Right click on the Project and select "Build". Save the sln file, if VS asks you.
 
# Right click on the Project and select "Build". Save the sln file, if VS asks you.
# Everything should work and the plFileSecure.exe should be in the Release folder.
+
# Everything should work and the plPythonPack.exe should be in the Release folder.
  
 
== Use them ==
 
== Use them ==
 
You will get more information by running <code>plFileSecure -h</code> or <code>plPythonPack -h</code> in the command prompt, but here's a small overview.
 
You will get more information by running <code>plFileSecure -h</code> or <code>plPythonPack -h</code> 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. ([http://assets.openuru.org/cyan/Scripts.zip Link])
+
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. ([https://foundry.openuru.org/hg/MOULSCRIPT-ou/ Link])
 
Now, you can run the plPythonPack.exe in the new Python folder or run <code>plPythonPack <PythonFolder></code> in the command prompt. The final python.pak file should be in the Python folder.
 
Now, you can run the plPythonPack.exe in the new Python folder or run <code>plPythonPack <PythonFolder></code> in the command prompt. The final python.pak file should be in the Python folder.
  
Line 38: Line 35:
  
  
''Based on mystler's forum post: http://forums.openuru.org/viewtopic.php?f=92&p=4205#p4205''
+
''Based on Mystler's forum post: http://forums.openuru.org/viewtopic.php?f=92&p=4205#p4205''
  
 
[[Category:Cyan Worlds]]
 
[[Category:Cyan Worlds]]

Latest revision as of 23:14, 19 December 2011

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

Prerequisites

You should have compiled the CWE Client (changeset 8 or higher) as it is described in cjkelly1's tutorial once. (Link)

Compile them

plFileSecure

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


plPythonPack (the same as for plFileSecure)

  1. Open [CWE]\MOULOpenSourceClientPlugin\Plasma20\MsDevProjects\Plasma\Apps\plPythonPack\plPythonPack.vcproj with VS2003.
  2. Change the configuration to "Release".
  3. Right click on the Project and select "Build". Save the sln file, if VS asks you.
  4. Everything should work and the plPythonPack.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, your files are "notthedroids"/ntd encrypted.


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