Mirrored W❄️rld

Exporting a Web Build with Light.VN

Archived from Ko-fi, without images

Other Light.VN posts


A translation and commentary of the official wiki's web export page. This is not a 1:1 translation, and I've added my own opinion on things, so please don't take everything as an official advisory.

There's not a lot of Light.VN content in English so I figure out I should start contributing. Hopefully this will allow more people to discover this engine.

So you have finished your game. You want it to be browser-playable, perhaps embedded on itch.io. So you click on Settings->Publish, and... wait, why can't itch.io accepts your exported folder?

That's because there's a couple more steps to do before the build is truly fit for uploading. Fret not, some of these steps are only required for your very first web export.

But before that...

Technical Specs

The web version of Light.VN novels runs on WebGL. It should work on browsers with "WebAssembly" and "WebGL2" enabled, which is most Chromium-based browsers.

For iOS 12 to 14.8, you need to check Safari settings "advanced" > "experimental features" > " WebGL 2.0 ".

Difference from the desktop version

"Cross-Origin-Opener-Policy" set to "same-origin". "Cross-Origin-Embedder-Policy" set to "require-corp".

Publishing a Web Version

Ingredients:

Python

Bash/Shell

The official Light.VN dev recommends cmder, but you can actually use whatever you have. I happen to have Anaconda installed, but if you have Git installed you are likely to have Git Bash as well. In a pinch, Windows Powershell works too. Why you would use that ugly thing is beyond me, but you do you.

Setting up emsdk

Keep this newly updated emsdk_directory.txt somewhere easy to reach, as you can paste it to any project output from now on. You don't have to setup emsdk again.

Running a Test Play

Uploading to Itch.io (or similar sites)

If you're self-hosting the files, setup the response header and refer to "server.py" for further settings.

I hope this document is of some help to you. If time allows, I'll try to translate and annotate other parts of the wiki.

If you run into problem in any of the steps above, consider joining the Light.VN Discord server here, where you can consult directly with the developer.

#creation #evergreen #light.vn