hello,
maybe the subject it not the best
and maybe a similar thread already exist
i am sorry about that.
I wrote a small game in python
and now I want to compile it and send it to some friends.
But they don’t have python or panda3d.
How can I compile the project, that they do not need anything else without the installer/archive ?
optimal would be, if they just execute the game.exe to start the game.
Hi, as rdb said, pdeploy will build you a Desktop Installer for your application and place an icon on your desktop and stuff, packpanda will build you a p3d file that allows (users who have the panda3d web runtime, downloads page) to run it on there computer by double clicking or to run it in your own web page
If you build a panda application in C++ you could simply distribute the executable file that your compiler produces (and all the panda3d dll’s) and throw them in a zip for people (or like stated before use pdeploy to build an installer)
so to answer your question properly: C++ panda applications can just be distributed as ‘game.exe’ and all the associated panda DLL’s that you can copy yourself
Hi, I dunno for sure how you would go about loading the DLL’s from a seperate folder, I’m sure it’s possible, to be honest I’ve never played that much with C++
What you could do is place game.exe and all the DLL’s in the ‘bin’ folder, and then in the top-level directory place a ‘game.bat’ script that has the line ‘bin/game.exe’ in it (which would run the game executable), if you want to use this route you should probably just do a simple search online about windows bat scripting…
That’s only my idea, like I said I dunno much about dynamic loading in C++, maybe someone else will respond about that.
There is big problem here, as you would need to know exactly what to remove from the Panda3d folder, otherwise your game archive will end up unnecessarily huge. the packpanda script should do this, and it should also make a similar exe for you, but in the end it makes an NSIS installer. You could of course install that and use the extracted folder for the archive, but this isnt very elegant.
Hm, maybe we could make a script similar to packpanda which doesnt make an installer but an archive in the end, what do you guys think?