Having a little fun with the broswer embed depoyment. I have an apache server running on localhost. Package is built and signed, IE 9 opens the page with nothing showing, Firefox does the same, Chrome brings up the Panda pic and start button and when I click on it I get a boxed message saying there is a new Panda app that is unsigned and nothing seems to happen after that.
Is there a specific ssl certificate process or setting (like sha1) required for Pandaruntime?
I added the following to
in the HTML page and that stopped scripting errors, but still no displays.
Followed the signing process, now it seems Chrome thinks the Pandarun time is not there. In the deploy file, what option do I use to point to the runtime (FILE or DIR)? Neither seem to be working now.
Does anyone have a simple gane (Rooming Ralph) they have a tutorial on embedding?
Deploy file? FILE or DIR? I have no idea what you’re talking about.
The p3d file is embedded in a HTML page using the tag, as described in the manual. Whatever means you used to embed it successfully the first time should also work now that it is signed. The browser knows nothing about the signing; that’s evaluated by the Panda3D runtime itself.
I suggest starting with a simple p3d file first, one that you can build using the packp3d command so it doesn’t require a pdef file.
You should be able to run the p3d file with the panda3d command. If you do this in the command shell, you will see the program output, which will help you diagnose why the file is not running (if it does not). You can also embed the p3d file in a web page, but this is more complicated so I’d hold off on this until you know you can run it directly first.
Once you have mastered constructing a p3d file with the packp3d command, then you can build your more complicated one with a pdef file and the ppackage command (if you need that level of complexity). Again, try to run it with the panda3d command from the command shell first, before you try to embed it in a web page.
Good idea. It looks like the problem is Panda3d gets downloaded to “C:Program Files (x86)” and the path environment variable can not have spaces. I am still getting used to windows 7 and a 64 bit machine. By chance do you know of a quick fix?
The Windows path environment variable can certainly contain spaces, and this directory name has never caused problems for anyone else. What problem exactly are you seeing?
I just opened a command window as administrator and entered packp3d -h, check this output the system did a down load, gave me an entry point error then listed the help list. Is this normal? (I have a running game that I used 1.6.2 for and it works fine.)
This command will pack a Panda application, consisting of a directory
tree of .py files and models, into a p3d file for convenient
distribution. The resulting p3d file can be run by the Panda3D
runtime executable, or by the Panda3D web browser plugin.
Also see ppackage, a more powerful (but more complex) tool that can
also be used to build p3d applications, using a pdef description file.
Usage:
packp3d.p3d [opts] -o app.p3d
Options:
-o app.p3d
Specify the name of the p3d file to generate. This is required.
Yes, that seems normal (mostly). It’s a little strange it’s so noisy about all of the hash checks, but I think that’s OK. If you run it again the same way, it should skip all the downloading and hash checking and go straight to the application output.
So, for some reason you’re not able to run it from your own username. Is there something wrong with your c:/Users//AppData/Local/Panda3D folder? Hmm, you don’t, by chance, have a username that contains international characters in it, do you? (There’s a bug in 1.7.2 that doesn’t work with non-ASCII usernames, but it will work in the next update.)
Under C:\Users I have Default, Owner, Public and under each of these I have NO Appdata\Panda folder. Interesting because packp3d is saying it is downloading files to an AppData… folder
I reran packp3d -h in command window with no responses
Then reran as administrator in the command window and got the following error followed by the help info.
Sorry I can’t cut and paste the message the system will not let me, here goes
P3DPYTHON.EXE Entry point not found. The procedure entrypoint GetFileVersionInfoExW could not be located in the dynamic link Library Version.dll
Windows 7 on Dell Inspion 64 bit AMD, 4 gigs,
I have been just using admin.
The game runs (at least under 1.6.2) without the modules. I looked at the api and found the class for one missing modules. Is there a way to find which package (from ?) the modules are in currently?
I packp3d the Roaming Ralph sample and am trying to get that running on a web page using simple object. I think I have a server ssl setup issue which I hope to resolve today.
Panda3D 1.6.2 didn’t support the p3d system, are you sure you mean that version? Or do you mean 1.7.2?
If the game runs, then don’t worry about the missing modules report. They’re not really missing. The packp3d system doesn’t always know which modules are required, and some of the “problems” it reports aren’t actually problems at all.
This gives me the following files: certficate file server.crt, a server.key, and privkey.pem
Is the server.key file the same as public pem, which files do I need to multify (sign) the p3d file with?
Do the file types matter?
Good news is that IE 9 runs the p3d just with http not https (yet), the browser asks if I want to open or save the p3d file. Which means a user could save the game file which would not work for a pay as you go operation. Does runContent embed resolve this?
You seem to be reporting problems all across the board. I urge you constrain yourself to solving one problem at a time; you’ll never get to a solution if you throw the whole thing at the wall and poke at it at random.
It works in the 1.6.2 SDK. Great. Does it work in the 1.7.2 SDK? Don’t proceed to step 2 until the answer is yes.
It works in the 1.7.2 SDK. Great. Does it work in a simple p3d packaged with packp3d, with no certificate, and run with the panda3d command? Don’t proceed to step 3 until the answer is yes.
It works with a simple p3d. Great. Can you sign the p3d file with a certificate and run it with the panda3d command and the -S option? Don’t proceed to step 4 until the answer is yes.
It works with a signed p3d. Great. Can you embed it in a web page?
If you skip straight to step 4, and it doesn’t work, you’ll never know what part of the system didn’t work. That’s why it’s important to resolve it step-by-step.
I think you need “-S server.crt,privkey.pem”. But I could be wrong. Since this is just a self-signed cert anyway, you could just use the commands exactly shown in the manual to create a custom self-signed cert for this purpose.
Yes, but all of these files are PEM encoded certificates. I don’t know why you use a different file extension for each one.
Sounds like you didn’t embed the p3d file in an HTML page; you’re just typing the URL to the p3d file directly. Or, perhaps it means you don’t have the Panda3D runtime properly installed. Can you run the embeded p3d files under the gallery on this site?
Embedded the p3d file properly will stop the browser from automatically offering a download, but there’s nothing you can do prevent the user from download the p3d file if he wants to. This is a reality of client-side computing, which is what an embedded p3d file is: the program runs entirely on the client’s computer, and you no longer have control over what he does with it.