Problems with sprites in html (SOLVED)

Sometimes in html some of my sprites is broken. Broken same sprites every time.
Strange log in html.

One time i see error. But now i don’t get any strange message in web console.

TypeError: Module.ccall is not a function dmloader.js:626:5
window.onerror
http://localhost:49636/html5/dmloader.js:626:5
 ReferenceError: GLFW is not defined dmloader.js:361:9
handleVisibilityChange
http://localhost:49636/html5/dmloader.js:361:9

Now i get that result every build.

Can you share then project? Does it happen on more than one machine?

1 Like

I will try other machines. Add your to project(dungeon crawler 2)

Looks good on my Mackbook:

And on Win 10:

PS You really should enable clang to speed up windows builds!

Aaaaand now I see that you mentioned HTML5 builds…

And I get the same weird texture in HTML5:

26

I also noticed that there is a gradient in the minimap on html5 but not on desktop:

28

1 Like

I resaved the tree.png sprite and now it’s working:

1 Like

Yes html. I think i find problem. If i checkout commit before update trim script(also update png) All worked. But i 100% sure that yesterday all worked.(i update that script in weekends)

Yes it is. For problem sprites DeepColor of png is 1 or 4 instead of 32.

2 Likes