Page 1 of 1

Fixed plPythonPack and plFileSecure projects

Posted: Mon Apr 18, 2011 4:54 pm
by Mystler
Heya,
i have fixed the linker errors in the .vcproj-files for plPythonPack and plFileSecure. Here is a small guide on how to compile and use them.

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.

If you have any questions or corrections, just post them here. Have Fun! :D

Re: Fixed plPythonPack and plFileSecure projects

Posted: Tue Apr 19, 2011 7:57 am
by Mac_Fife
Thanks! I've copied this into a wiki page, so we don't "lose" these instructions as new threads appear: http://wiki.openuru.org/index.php?title ... e_projects.

We'll maybe get your "dropbox" files moved into the site assets, so we have a permanent palce to link to for those files you created.

Re: Fixed plPythonPack and plFileSecure projects

Posted: Tue Apr 19, 2011 8:40 pm
by a'moaca'
Mac_Fife wrote:We'll maybe get your "dropbox" files moved into the site assets, so we have a permanent palce to link to for those files you created.
No!

These should be checked into the repository. That is what it is for. I will do it as soon as I get a chance to test them (unless someone else does it first (hint, beg, plead)). I have already looked at the diffs.

- a'moaca'

Re: Fixed plPythonPack and plFileSecure projects

Posted: Thu Apr 21, 2011 9:38 pm
by a'moaca'
Having heard no objections, and having fought with Mecurial (and lost), I have reviewed, tested, and committed the two project files to the CWE repo.

Congrats! You might want to edit the wiki/your post to say a separate download isn't necessary if you get at least changeset 8.

- a'moaca'

Re: Fixed plPythonPack and plFileSecure projects

Posted: Fri Apr 22, 2011 1:14 pm
by Mystler
Okay, great, thank you! I edited the wiki page. Everything should be fine now. :)