Workshop.codes
Login
Create
Makee_

Guess the Hero (Icon)

+ 1 sources

This code is over 6 months old. The code may have expired and might no longer function.

5 Comments

Log in or Sign up to leave a comment.
Dropthatbeat over 1 year ago

hey if you want to compress your arrays to be less elements you can try this method of doing things i linked below. itll let you cover all the heroes and possibly more in the future as well! cool concept :D

https://workshop.codes/wiki/articles/how-to-compress-arrays

Makee_ creator about 1 year ago

Yes thank you. I have now gotten the data in the game with much fewer elements, even though it was a struggle. I think I found a stable way to let the data decompress without crashing. I'll have to create the random selection and rework the HUD, and then I'll be updating the game.

Dropthatbeat about 1 year ago *

If you need further compression you could do what labbed did in his bomberman gamemode. Where basically instead of compressing vectors he compressed a string of a grid. And for you, you could assign color values to each value in array. https://workshop.codes/XFZXQ
This could allow you to go to 16x16 resolution or 16x15 or etc. If you need some for hud.

Makee_ creator about 1 year ago

I haven't checked how labbed did it but I did get the decompression to work but it was really expensive for the server so right now it mostly crashes when I start the server (even when I have given it time to do stuff). If I remember correctly I compress one line of colors (basically vectors) at a time in my 11x11 icon screen (128 icon limit) in to a string and then just split the numbers into an array, but then I still have to convert the strings into an actual number which is the most expensive part. Decompressing one image wouldn't be that bad but when there are what 43? heroes to go through with 121 pixels in each image it can't handle it with my current approach.

Dropthatbeat about 1 year ago *

i recommend reaching out to the workshop.codes discord community in help-workshop. or reaching out to labbed directly through the server.

edit: id also recommend trying out the string compression in overpy, as it might be helpful and more streamlined for this kind of project.

Workshop.codes