Jesper-Hustad / NoPixel-minigame

https://jesper-hustad.github.io/NoPixel-minigame/index
119 stars 89 forks source link

[Puzzle / FiveM]: returning part of answer as undefined #33

Closed GeerdoDaGr8 closed 3 years ago

GeerdoDaGr8 commented 3 years ago

Certain ones are getting returned back undefined. The one i got a couple times with the number collor and the correct answer was yellow but it came back as undefined image

GeerdoDaGr8 commented 3 years ago

There is no spcific time or color that it does it on after quite a bit of testing. Seems to be random

Jesper-Hustad commented 3 years ago

So this happened because i added translation because someone requested it (so it's easier for spanish/italiens etc. to use), but i screwed up and misspelled one variable numer. So i changed the variable back to number now.

image

Side note this same issue was recently fixed except it was the website version, so it seems the FiveM version had the exact same issue. https://github.com/Jesper-Hustad/NoPixel-minigame/pull/32

What I'm trying to say is that software development can be a pain in the **s sometimes 😄

Thanks for mentioning the issue, it's very helpfull!

yamiM0NSTER commented 3 years ago

Oh, fivem script duplicates website code? Thought there would be some script to copy if that was the case. My bad.

Jesper-Hustad commented 3 years ago

Oh, fivem script duplicates website code? Thought there would be some script to copy if that was the case. My bad.

You are right, that's how it's supposed to be (i believe because of the way FiveM works you could even have it running directly from the site code), but alas that's not the way it is.

When a project starts as a one off thing and suddenly you are getting new issues weekly and maintaining code that's not really designed for scalibility 😅