I followed the directions to export an HTML player for my game and it generated the .html and .js files but when I load them in my browser, P8 boots up to a command prompt and that's it. Shouldn't it load the cart automatically?
This happens when I load the file locally through file:// and also on my web server through normal http://
I put the .html, .js and even the *.p8.png in the same folder but no luck.
What step did I miss?
You need the HTML and JS file. If you typed "EXPORT TEST.HTML", for example, your files will be named test.html and test.js. You can find the files by typing "FOLDER" into PICO-8, which will open the folder where the files are located. Just in case, which browser are you using?
booting to the prompt? Wierd, the cart and logic is in the JS, so if there were only the HTML you wouldn't even get the boot & prompt.
Does your cart run in a loop or does it exit?
I've checked, if I export a game that exit, it will end with the blinking prompt.
What I don't understand is the .jpg file, unless you use the 0.1.7 (CHIP?) version and Zep changed something on the export, there is no jpeg file generated with the 0.1.6
My bad...I meant .js, not .jpg
I did the EXPORT and got the two files, that worked just fine. It's when I open the HTML that it doesn't work.
I get the Pico-8 boot screen and sound but then it just dumps the prompt. It doesn't load my game or anything.
I'm just trying to load the cart I just put out. It's loading fine here in the forum so it must be something weird with my setup. I guess my expectation would be if something was wrong, it won't load or do anything. Seems weird that it would boot but not load the cart.
I'm using Chrome but it's never had issue with other carts. I'll do more investigating tonight when I get home.
Weird, if it's the exact same cart/code as the one you just linked it works perfectly on my side:
http://box.godzil.net/p8/rgb.html
Can you copy the js file you get somewhere?
Same cart. Hmmm...I'll double check everything tonight, maybe I just goofed.
Here is the embed on my site, uploaded directly after exporting.
http://morningtoast.com/pico8/rgb.html
Only thing I see different in the one on your Box site is that the scores and numbers all have .429 decimal after them...you know why that is? That doesn't happen on my local version, nor the embed here on the forum.
.429?
I'm not sure of what you mean.
A quick look at the js generated on your side seems that the cart stored there is empty. Are you sure the game is loaded when you export it? (I know it's obvious but..)
Edit: yes the cart stored in the JS file is clearly empty.. :/
Okay, well, I'm an idiot I guess. I exported again tonight and it's working...so I'm guessing I did export without realizing the game wasn't already loaded. With all the loads/reloads I was doing after I got done last night, I just lost track.
Thanks for the help.
The decimals thing is a major bug in a recent version of Chrome. If you're on Windows, Mac, or Linux, just update Chrome and you'll be fine. If you're on Chromebook, well... you're screwed currently.
EDIT: 0.1.7 does fix the bug, but that's not officially released yet. The BBS player uses it, though, which is why the bug doesn't show up on the BBS player.
[Please log in to post a comment]