Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Ren'Py Achievements Framework

A (hopefully) easy way to add achievements to your Ren'Py game · By bobcgames

Cool plugin but help?

A topic by Dragonheart4444 created Jan 02, 2024 Views: 84 Replies: 3
Viewing posts 1 to 3

This is great, I'm using this and the gallery one in my game, but when I add my achievements, it changes the order in the game itself. Even if I change the order in my script, something is changing the order back again. I'm not seeing anything that changes the order anyway in the code, any advice? 

Developer

Are you talking about the order that the achievements are shown on the screen bobcachievements? They should be shown in the order they were defined in BOBCACHIEVEMENT_LIST if you're running Ren'Py 8.1, but if they're not, there's a possibility I misunderstood something about dict ordering.

If you're sure you're on Ren'Py 8.1, try changing line 57 of sbobcachievements.rpy from:

for achievement_id in BOBCACHIEVEMENTS_MAP:

to these two lines (with appropriate indentation before the second line):

for aid in BOBCACHIEVEMENT_LIST:
    $ achievement_id = aid[0]

Developer

Sorry, realized... if you do the above, you also need to delete the line

del BOBCACHIEVEMENT_LIST

from the end of 0bobcachievements.rpy

Hey thank you for the help! I didn't even know a new version of renpy was out. I updated it and now it's working just fine, I didn't need to edit any code, thank you for the help! Sorry to waste your time! Your plugins are awesome!