Achievement not declared bug on itch.io

Hi, I uploaded my game on Itch.io with a compressed zip file, containing one html file and two images. For some reasons, when I test the game out, it shows this.

When I tried the html file, it worked fine. I also ran a quicktest and a randomtest on CSIDE. It’s only when I uploaded the zip that it had a problem.

My code looks like this:

  • In the startup file:
*achievement secretsanta visible 10 Secret Santa Thief
    
    Your glasses come back, out of no where!
  • In the main file
*page_break Happy ending!
*achieve secretsanta

So far the problem only arises with this achievement. It works with other ones.

Typically under the achievement line you need 2 descriptions, one to display when they haven’t achieved it, one to display when they have.

The other possibility is if you’re using an old save from before this achievement was added; choicescript loads everything from the startup.txt and doesn’t check for new permanent additions after, so you’d to restart your save.

1 Like

I think this might be the reason. The descriptions are not mandatory, I believe.

I’m experiencing the same issue, and it can’t be caused by an old save file since I only uploaded the game to itch.io recently. I actually found this post thanks to a comment someone left on my project page. If anyone figures out a fix, I’d really appreciate hearing about it.

The bug is kind of weird. I had it on my computer but when I played the game on my phone, it worked fine. But now on the phone, it has the same bug with a different achievement, which on the other day worked just fine (I did update the game a little but I didn’t even change the code in the file.)

Yeah, it’s definitely weird. If you check my project page, the screenshot the player posted showing the bug is from a phone… meanwhile, another user—who ran into a completely different issue (which was my fault) much later in the game—was playing on a computer. So it looks like you and I aren’t seeing this bug on the same type of device :-/

Hey @Lacewing, have you been able to find a solution or a workaround? I opted to give the option to disable the achievements, but it’s quite annoying… :smiling_face_with_tear: