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.
Take a look at this page and following manual pages.
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.
The pdef file is what I was refering to. Thus far all I get is the Panda and the play button.
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 uninstalled and resinstalled Panda3d 1.7.2 sdk and 1.0.3 runtime. Here is what I see
after executing a path then packp3d -h
C:\Program Files (x86)\Panda3D>path
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File
s (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Window
m Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Window
s Live\Shared;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared;C:\Pro
gram Files (x86)\Common Files\Roxio Shared\OEM\DLLShared;C:\Program Files (x86)
\Common Files\Roxio Shared\OEM\DLLShared;C:\Program Files (x86)\Common Files\Ro
xio Shared\OEM\12.0\DLLShared;C:\Program Files (x86)\Roxio\OEM\AudioCore;C:\Pr
ogram Files (x86)\Common Files\HP\Digital Imaging\bin;C:\Program Files (x86)\HP
Digital Imaging\bin;C:\Program Files (x86)\HP\Digital Imaging\bin\Qt\Qt 4.3.3;C
:\Program Files (x86)\Panda3D ;C:\Panda3D-1.7.2\python;C:\Panda3D-1.7.2\bin
C:\Program Files (x86)\Panda3D>packp3d -h
C:\Program Files (x86)\Panda3D>
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
Beside the entry point error I am getting this
There are some missing modules: [‘ElementPath’, ‘libdirect’]
How do I find which from ?? to add.
I used packp3d on romming ralp and it works fine, I’ll use it trying to embed in HTML
Ah, hmm. What version of Windows are you running?
It’s not AppData/Panda, it’s AppData/Local/Panda. Which is your user name when you’re not running as Administrator? Default?
Don’t worry about the missing modules, unless you know that you need one of them.
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.
The game runs under 1.6.2 but not p3d.
I have the roaming Ralph p3d running under IE 9 but having some I hope last issues.
I create the server certifcate and keys using the following commands on appache for win32 with ssl:
openssl req -config openssl.cnf -new -out server.csr
openssl rsa -in privkey.pem -out server.key
openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 365
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.
To answer your specific questions:
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.