The case for a 1 file HTML export

Discussion and feedback on Construct 2

Post » Fri Nov 30, 2012 2:56 pm

So I love the export features in C2. There always seems to be be more added everytime I come back here. From a logistics point of view I think that a 1 file exporter would be an option to consider for the future.

First of all, as silly as this sounds, it is much easier to load one file instead of many. I know you just have to drag the folder over, however if everything is packaged like a flash game, it looks and feels easier.

If there was a single file exporter we could also site lock it just like flash games. I know this isn't full proof but it would be a lot better than the current standard.

Unity also has a web player which for the most part is one file.

I know this is harder to accomplish than it sounds. Is there anyway to access web folders from a zip file on the internet?

What does everybody think?
Posts: 413
Reputation: 9,310

Post » Fri Nov 30, 2012 3:19 pm

That's not how html5 works. And packaging it in some other fashion would require the user to download a plugin or something to read it properly.

So, sadly this won't work.
Posts: 1,012
Reputation: 18,537

Post » Fri Nov 30, 2012 3:19 pm

It's possible to export everything to a single HTML file using embedded data URIs for all the images and files, but I really don't think it's a good idea. It will probably make the load performance terrible: data URIs are bigger than a binary file, there will be no loading progress (just downloading a single humungous HTML file), and some mobile devices might even freeze or run out of memory since HTML isn't designed to be so large. Also I do know that the Chrome Web Store disallows scripts in the same HTML page (they have to be separate .js files), so it could cause further problems there.

TBH I don't think it would help protect your resources or make sitelocking any more secure - Chrome's developer tools can still get around that, and it's best to rely on existing features like Closure Compiler obfuscation on export.
Scirra Founder
Posts: 24,765
Reputation: 197,354

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 22 guests