Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Could one export a non-editable HTML version, for publishing one's world on the WWW?

(+1)

Yes, this would be great!

Deleted 1 day ago

I've looked at this file pretty closely. It's pretty trivial to throw this up and static host it.

Ok, great! What would be needed to make it either non-editable in hosted mode, or secure for editing by the owner/admin?

(1 edit)

You have to understand this really cant be truly made "non-editable" as anyone could bypass it easily in the Chrome console. It's more about preventing someone from accidentally editing it. You have to lock the CSS and do a JS bypass.

Since the OP hasn't made the project open source, they will have to be the one to make the changes they deem necessary to do a static host. But if it's done right, the end result would be one static html file you could either host somewhere or just email to your players.

Sorry if I was unclear… what I meant was — like the JSON export, a static HTML export. So keep the data, the CSS, etc., and just create a new self contained HTML file?

I knew what you meant. Same still applies. To get the HTML file so that it's not immediately editable from the front, you have to do some things in the css and a bit of Java trickery. But, even then it can be bypassed and made editable from the console on the browser.