PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Combining Runtime and PPL file?

Had an idea just now, would it be possible to be able to put a PPL file in the runtime exe as a resource, and have PPL load it from there - so in effect you can just distribute one file for your program? It'd also serve as a (very weak) method of keeping people out of your code, at least if people realize it's a PPL app.
This is a very good idea but for now PPL offers a three ways to distribute your code.

1. PPL generates a .ppc (compressed and encrypted) file automatically when a source file is compiled or ran. Include all needed .ppc files in a project directory with the PPL.exe.

2. You can generate an .exe containing the main project file code and the PPL runtime all together. The other code files are still .ppc files.

3. If you don't mind distributing your source files, just dump all .ppl files with the PPL.exe in a directory and you are all set. However you might need to add all the extra libraries that are needed for compiling. In number 1 and 2 above, you don't need extra libraries because the necessary information is already added to the .ppc files.

However it would be a very good idea, like you have suggested, to be able to add other files to the .exe. I might add an inject() function to allow to add multiple files instead of just the main code file. :wink: Why not!
Ah, forgot about the .ppc format. Basically, I'd like to be able to just distribute the PPL .exe, and have the code integrated right into the .exe, so there's just one file like any other eVC app. (I'm thinking about whipping up a frontend in PPL for the recently released PocketPC Duke3D port)
You can do just that with the MakeExe() function, which can, btw, easily done with the PIDE or the main pocketPC interface for PPL.

If you #include all your code into the main code file, you will get one .ppc file that you can turn into an .exe.
Oh cool, I get it now, thanks!
There is going to be a pre-release update tomorrow or monday, make sure you grab it. Beta 0.8 will be available very soon too.