Fixed plPythonPack and plFileSecure projects

Discussions About CyanWorlds.com Engine Client & Plugin
Post Reply
User avatar
Mystler
Member
Posts: 27
Joined: Sat Apr 09, 2011 9:22 pm
Contact:

Fixed plPythonPack and plFileSecure projects

Post 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
User avatar
Mac_Fife
Member
Posts: 1239
Joined: Fri Dec 19, 2008 12:38 am
Location: Scotland
Contact:

Re: Fixed plPythonPack and plFileSecure projects

Post 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.
Mac_Fife
OpenUru.org wiki wrangler
a'moaca'
Member
Posts: 163
Joined: Sat Dec 13, 2008 11:22 pm

Re: Fixed plPythonPack and plFileSecure projects

Post 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'
a'moaca'
Member
Posts: 163
Joined: Sat Dec 13, 2008 11:22 pm

Re: Fixed plPythonPack and plFileSecure projects

Post 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'
User avatar
Mystler
Member
Posts: 27
Joined: Sat Apr 09, 2011 9:22 pm
Contact:

Re: Fixed plPythonPack and plFileSecure projects

Post by Mystler »

Okay, great, thank you! I edited the wiki page. Everything should be fine now. :)
Post Reply

Return to “CyanWorlds.com Engine - Client & Plugin”