Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Exporting to HTML doesn't work.

A topic by Boris Bezdar created Jul 31, 2023 Views: 288 Replies: 7
Viewing posts 1 to 2
(+1)

Hi, I'm having a blast with Decker, but unfortunately, I can't export the deck into HTML. It does save the file, but when I open it in the browser—it just shows a blank screen. It happens both with protected and unprotected files.

Web-decker opens the .deck file with no problems.

Developer

Could you describe in detail what you're doing to export to HTML?

What browser are you using? Are there any errors visible in the JS console?

What version of Decker are you using?

I'm saving the deck as an HTML file through the "protect" or "save as" function.

I've tried it on various browsers (Firefox, Opera, Chrome).

It's Decker version 1.22

I've noticed that when I open the deck in the WEB version of Decker, my cards just break—everything is ok until card #29. Further cards are empty, and all their content (widgets and images are mashed into two last cards. I'm attaching screenshots (from Firefox).

Developer

Hmm. Getting warmer. Can you post your .deck somewhere so I can examine it?

Sure. Uploaded on my Google Drive:

https://drive.google.com/file/d/12NOJVtMrx9ZNP9pVGqJMq4SKZpayk5H3/view?usp=shari...

Developer

I believe I have identified and patched the issue. Your card naming-scheme hit a nasty edge-case in web-decker's deck parser.

The version of web-decker on beyondloom (http://beyondloom.com/decker/tour.html) already includes the fix, so if you clear your browser's cache you should be able to import a deck there and re-save from it as an HTML export.

(+1)

Patch definitely worked in the way that now the deck doesn't get ruined when opened via Web Decker.
But exporting still didn't work. Renaming all of the cards also didn't help,

Eventually, I figured that the problem was in the first card's script. I wanted it to play a sound file on a loop during the title screen, and this made HTML file unplayable for some reason. Deleting the script solved the issue. I attached the sound to the "begin" button, so it's a decent compromise. :)

Thanks a lot for the assistance!


Developer

Ah, I see. It was possible for a background loop to be queued before Decker had set up an audio context. Fixed.

It's generally not a good idea to have background sound on the first card of a deck, because web browsers will often block audio playback until a user has "interacted" with a page, but Decker certainly shouldn't crash if a script attempts it anyway.