Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Achievements for Ren'Py

In-depth ingame achievement support for Ren'Py that plugs into the Steam backend. · By Feniks

Very nice tool. Great for "Joe Coder's" like me! How to change Three ??? ?

A topic by Dr Swo Boh Da created Dec 29, 2023 Views: 86 Replies: 4
Viewing posts 1 to 2

Great tool, thanks.

I had grabbed it off Git Hub, but after installing it, I sent you a donation for all your work on this cool system.

My first question is how/where do I modify the code to change the "Hidden Achievements" in Gallery from the current "???" to an actual line of text? I can't seem to find that code in your files.

Would like to replace ??? with a line of text stating achievement is hidden.

Second question. Where should I override the default fonts and font_size in both the Gallery and the Pop-Up?

Third question. Is it possible to replace the Pop-Up code in the base system with the Xbox Style code you have on your Git Hub?

Lastly, is the code that I just downloaded from itch.io newer than the code on your Git Hub?

Thanks again, and have a great New Year!

-David

Developer

Thank you for the donation! I hope you get good use out of the system :)

For your first question - you can provide the description to the hide_description property. See hidden_double_unlock for an example of this, though if you want the name to show, you won't also include hidden=True (which would show the name as ???). So it would probably look like hide_description=_("This achievement is hidden.") or similar.

Second question - if you hover over the text in question and hit shift+i, you'll see the styles applied to it. I don't use custom gui values for styling, so you can just directly specify the font on the screens themselves or in the styles the screens are using. By default it'll just use the font for your project.

Third question - you are welcome to adapt it to use that! You should keep the popup screen declaration provided in this code - i.e. the name of the screen + the arguments, and keep the timer at the bottom, but the styling itself can be copied over and the popup ATL transform adjusted to suit another popup animation. That's something that's out of the scope for me to help with here, though I may consider integrating the two better down the line.

Lastly - you can grab the system files from GitHub or itch.io; they both have the same code. I've updated both with a few fixes and updated features after release, with the last being about two months ago, so if you downloaded it earlier than that, you can check the devlog notes for what changed.

I hope you have a great new year also!

(1 edit)

Thank you so much for your reply.

I still have some unknowns with my first question. I have added hide_description=_("This achievement is secret. The more you play, the more likely you are to unlock it!") and it works as advertised. However, there is still the issue of the TITLE showing as ??? I want the Title to show Secret Achievement when locked. There doesn't appear to be a variable for that and I still don't understand where that ??? is originally generated. The hidden = True/False affects both values.

Using your TIP of Shift+I was new to me, so thanks for that.

Using that I see that bit of text is achievement_label_text

I then find:

style achievement_label_text:

    size 40 color "#ff8335"

But where is the ??? coming from? I tried adding a text parameter, but it was not the correct syntax. And even if I changed it there with proper syntax, how would I have another achievement with a hidden title of Bonus achievement and not Secret achievement?

Sorry for all the noob questions.


Developer

You can search the achievement backend file for ??? and update it to whatever you wish, or add your own field to specify a title for when the achievement is hidden. It is in the backend file marked for translation. It is not a priority for me to add this functionality to the system, but I will keep it in mind for future updates.

Thank you.