Slime Builder

gabko

  • *
  • Posts: 45
Just helped my son finishing his first game jam (itch.io space score game jam).

http://www.stencyl.com/game/play/43578

Luyren

  • *
  • Posts: 2806
Considering Flash is no longer supported on browser, you should post the itch.io link instead.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

gabko

  • *
  • Posts: 45
Ok, so here is the itch.io link:
https://teamcarrot.itch.io/slime-builder

But i am having problems getting it started there. Maybe somebody has faced similar problems and can tell me how to solve this.
(You can play it also here: http://www.slowakisch.co.at/test/)

Luyren

  • *
  • Posts: 2806
Quote
If the issue is what I think it is, then follow this post to replace the project template, but rather than remove the line in question, replace gzip with pak.
In reference to this forum post: http://community.stencyl.com/index.php/topic,59252.msg310481.html#msg310481

Try this. A future Stencyl update will let you chose the packaging method for HTML5 games, so in the meanwhile try this and see if it lets the game load.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

gabko

  • *
  • Posts: 45
Thanks a lot for the support!

So here is what I did:
I copied the file at [stencyl install]/sw.jar/res/templates/project.xml to [stencyl workspace]/templates/project.xml. (I had to make the directory "templates" there) Then, in the copied file, near the bottom, I changed the line <library name="default" type="gzip" if="publishing" /> to  <library name="default" type="pak" if="publishing" />.
The I started stencyl and "published" the game as htm5.

It did not solve the issue. The output was a zip file. On itch.io it still loads the game but gets stuck at the end of the loader and does not start.

« Last Edit: March 22, 2021, 12:00:29 pm by gabko »

Justin

  • *
  • Posts: 4716
You could also try deleting the line entirely.

What that changes is how the assets are packaged inside the .zip file of the game (looks for the lib or assets folder inside the zip file). The game will always be exported as a .zip file in the end.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

gabko

  • *
  • Posts: 45
Thank's for your help, folks, but that didn't help neither. Also, I don't think the way the zip is packed is the problem, because the preloader starts with an image so obiviously the files and subdirectories are being found. Just it doesn't get further than that on itch.io. On other servers it does.

Justin

  • *
  • Posts: 4716
If you open the web inspector for your browser, you should be able to view the console and network requests. Are there errors in the console? Do you see any network activity when the game is supposed to be loading?
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

Justin

  • *
  • Posts: 4716
Ah, I missed the fact that you had shared the game. I don't know if that's an old version of the game, but it's still using the gzip packing method. There's an error when trying to unpack the gzipped content. I'm not sure what the problem is yet, but I'll try to fix it in a later release.

Before uploading your game, you can confirm which packing method it used by opening [game name].zip/manifest/default.json, and seeing at the very end, "libraryArgs":["lib/default.pak","gzip"]. Here the packing method used is gzip.

« Last Edit: March 23, 2021, 06:08:26 pm by Justin »
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

gabko

  • *
  • Posts: 45
In the console i see two messages when the game is loading:
Quote
Uncaught incorrect header check 9053ef9e-2969-4c64-8b77-a92ca1b7d8fd:4737:111
    ka blob:https://v6p9d9t4.ssl.hwcdn.net/9053ef9e-2969-4c64-8b77-a92ca1b7d8fd:4737
    decompress blob:https://v6p9d9t4.ssl.hwcdn.net/9053ef9e-2969-4c64-8b77-a92ca1b7d8fd:1958
    decompress blob:https://v6p9d9t4.ssl.hwcdn.net/9053ef9e-2969-4c64-8b77-a92ca1b7d8fd:2486
    loadImage blob:https://v6p9d9t4.ssl.hwcdn.net/9053ef9e-2969-4c64-8b77-a92ca1b7d8fd:2510
    b blob:https://v6p9d9t4.ssl.hwcdn.net/9053ef9e-2969-4c64-8b77-a92ca1b7d8fd:2505
    complete blob:https://v6p9d9t4.ssl.hwcdn.net/9053ef9e-2969-4c64-8b77-a92ca1b7d8fd:2106
    load blob:https://v6p9d9t4.ssl.hwcdn.net/9053ef9e-2969-4c64-8b77-a92ca1b7d8fd:2355
    complete blob:https://v6p9d9t4.ssl.hwcdn.net/9053ef9e-2969-4c64-8b77-a92ca1b7d8fd:2106
    __loadData blob:https://v6p9d9t4.ssl.hwcdn.net/9053ef9e-2969-4c64-8b77-a92ca1b7d8fd:1913
Source-Map-Fehler: Error: request failed with status 403
Ressourcen-Adresse: blob:https://v6p9d9t4.ssl.hwcdn.net/9053ef9e-2969-4c64-8b77-a92ca1b7d8fd
Source-Map-Adresse: SlimeBuilder.js.map

Is there a programm or online tool with which i can change a gzip-File to a pak-File?

Justin

  • *
  • Posts: 4716
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

gabko

  • *
  • Posts: 45
It's a ted late but anyway: Thank you!!