Publishing to HTML
indra.aziz
Member Posts: 102
Hey guys, is there a way to publish GS project to regular HTML?
Hey guys, is there a way to publish GS project to regular HTML?
Comments
Absolutely yes! just click "HTML5" in the publishing portal.
✮My Web Site✮ ✮My Full Games On Sale✮ ✮Follow Me✮ ✮My Video Channel✮ ✮Contact Me To Buy My GS Games✮
Hi @pinkio75 thank you for your reply!
Oh one more thing. About this:
Note: Your HTML5 app cannot be run by double clicking one of the index pages and vieweing locally. They will only run correctly on a server.
Can we change this so it will run without being on a server?
Or is it possible to change the file structure to follow this guide:
Put all your project files into a single folder if they are not already in one. The main file in your project needs to be called
index.html
. Subfolders are ok, but make sure all paths referenced in your code are relative (path/to/file.js
, not/path/to/file.js
).Sorry for the questions, I'm really curious. Thanks!
@indra.aziz can you let us know your specific use case?
If it's running inside a wrapped app, the files should work fine.
The main problem is loading through the browsers local file mechanism, as the browser doesn't consider it "secure" for the type of loading we're doing and shows errors.
I think the app wrappers like NW.js configure the browser so it's not a problem.
@adent42 thinking about making an interactive NFT on hicetnunc.art. It allows HTML, but when I upload the zip it says can't find index HTML.
This is the instruction on their github:
"Put all your project files into a single folder if they are not already in one. The main file in your project needs to be called
index.html
. Subfolders are ok, but make sure all paths referenced in your code are relative (path/to/file.js
, not/path/to/file.js
)."I honestly don't understand, but really wondering if it's possible :)
So it's possible as we have another user who has already done it. Rename sample-index.html to index.html and re-zip.
Try reaching out to @entersimon
https://forums.gamesalad.com/discussion/comment/616854#Comment_616854
@adent42 thank you so much! will do
@adent42 it works!!!
I'll let you know when I actually mint my NFT. I just tried minting my old GS app and it worked. It didn't work before even when I change the sample-index because I was using RAR, but now I'm using WinZip and it worked.
Will update!
Awesome! Share the link and we'll broadcast it on twitter!
Hi @adent42 sorry, it took a while to get back to you. here's the link to my NFT collection all made with GameSalad!
So what I do is just publish to HTML5 like the usual, and then I change the sample-index to index, use WinZip to zip the folder and upload/mint! Note that WinRAR doesn't work for this for some reason.
Thank you so much!
I'm about to tweet your collection and tag you. Are you @IndraAziz?
Yes I'm @indraaziz on Twitter. I saw the tweet thank you @adent42 !