Log In  

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?

P#20628 2016-05-15 23:33 ( Edited 2016-05-17 06:50)

1

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?

P#20641 2016-05-16 11:06 ( Edited 2016-05-16 15:06)

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

P#20643 2016-05-16 11:13 ( Edited 2016-05-16 15:13)

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.

Cart #20624 | 2016-05-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
16

P#20647 2016-05-16 12:14 ( Edited 2016-05-16 16:14)

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?

P#20648 2016-05-16 12:43 ( Edited 2016-05-16 16:44)

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.

P#20652 2016-05-16 13:07 ( Edited 2016-05-16 17:10)

.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.. :/

P#20668 2016-05-16 18:03 ( Edited 2016-05-16 22:10)

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.

P#20676 2016-05-16 20:40 ( Edited 2016-05-17 00:40)

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.

P#20679 2016-05-17 02:50 ( Edited 2016-05-17 06:57)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-18 19:34:38 | 0.012s | Q:25