Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Thank you for the Unity documentation.

Now you can try Valet again, which I have tried to adapt to Unity's needs.

As mentioned yesterday, the problem for me is unzipping the three files compressed by Unity when creating an HTML5 game in .gz format, starting with framework.js.gz. If it helps, here's the console report:


===============================================
  VALET - Lightweight Local Webserver
================================================

[CONFIG] Loading configuration from package.json...
[CONFIG] App: valet-app
[CONFIG] Main: index.html
[CONFIG] Title: Valet App
[CONFIG] Window Size: 960x720
[CONFIG] Browser: msedge

[SERVER] Auto-detected port: 8000
[SERVER] Starting HTTP server on http://localhost:8000
[SERVER] Serving files from: D:\UNITY\Valet
[INFO] Waiting for server to start...
[BROWSER] Found browser at: C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
[BROWSER] Launching C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
[BROWSER] Arguments: --app=http://localhost:8000/index.html --app-name=Valet App --window-size=960,720 --window-position=480,160 --disable-extensions --disable-translate --user-data-dir=D:\UNITY\Valet\.valet_data
[BROWSER] Browser launched successfully

================================================
  Application Running
  Press Ctrl+C or close console to exit
================================================

I also tried with a recompiled HTML5 version without compression in Unity, and it still doesn't work... It's surprising because my personal launcher works, but it's 11 Mo...

There are 2 options to make me understand the problem better:

1. Give me a simple demo version of your Unity game or any Unity game

2. Press F12 when using Valet for your game, see what is the error message 

https://1fichier.com/?qbdeco63m710b1ljy2yk 

Here's an example of a simple game not compressed by Unity, which limits the problems. If you manage to run it, I can give you a link to the same game but compressed by Unity and therefore smaller...

https://1fichier.com/?k9m7z59xvkaxbmpxfd12  

Here's an example of the same game compressed by Unity (.gz files), which causes problems for local servers. It's unfortunate because the file size is between 30 and 40% smaller, which has a considerable impact on 3D games.

Thanks to your sample, Valet can load Unity game successfully.

Please re-download latest version and let me know if you still have any issues.

Well done, even the compressed version works!!!  I just bought it so you can keep sharing cool apps ;)
By the way, is it possible to prevent the console message from opening on startup by modifying the .json file? It gets quite annoying having to close that window every time.