[SOLVED] Creating offline versions in the best customer oriented way

As a (for the present) 50$ paying customer, I am not satisfied with your strategy on Self Hosting/Offline options.
The Self-hosting | Learn PlayCanvas Web Server option lacks a lot of service, when it comes to accesibelity. When the so called Easy part, is not fully explained (one needs for instance to install PuTTy, which is not put forth) somethings is not right.

Why not be strategic and make a export version, that simply works offline, without server connection - the user still needs to develop in here anyways???

Can expand on this in more detail please? The export has to hosted by a server somewhere be it on the local machine or remote.

The export option was never meant to an ‘offline’ option. It’s for uploading to your own server rather than using PlayCanva’s (for speed, control, CDN, accessibility within some countries like China etc).

Re: the easy method. You shouldn’t need putty :thinking: Just Python.

Fundamentally, it’s a web library and there designed to be served from a web server.

If I want to persuade people off the magic of PlayCanvas, they might want to ask if it can run offline. Here it would be nice to have the same functionality of a simple index.html-file, but I guess all the fuzz of not letting that happen rest upon the browsers security-levels etc.?

I use a Windows computer not a Linux, that is already suited for Node.js and so on.
The “python -m SimpleHTTPServer” command does not work on my windows computer.

Unfortunately, the engine is not designed to be ran like that as it uses http requests to download the assets during preload and during runtime.

You can either install python or use XAMPP (a portable no install version can be found here https://portableapps.com/apps/development/xampp) or use a node module like this to
create a server that points to a local path https://www.npmjs.com/package/http-server

You could wrap the PlayCanvas app with a ‘wrapper’ and make it an executable. Use something like Electron (http://www.html5gamedevs.com/topic/36381-why-is-it-so-difficult-to-make-an-exe-from-a-html5-project/)

ok, thanks - will look into with the XAMPP-approach then … :slight_smile:

PS: referred to putty as in this guide (https://www.youtube.com/watch?v=nY5dUy-xq8w) to set up a httpserver in python

Looks like they used putty to log into a remote Linux VM which you don’t need to do if you are running the server locally.

1 Like