Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Ren'Py Gallery Framework

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

CG images out of order

A topic by TPOTStories created Mar 16, 2026 Views: 174 Replies: 1
Viewing posts 1 to 2
(1 edit)

Hello there! I found your gallery code and for the most part, it does function! However, for some reason, the CGs in the gallery menu are out of order. I have the auto import turned on, and I have named my CGs as cg1, cg2, etc etc. Forgive the wonkiness of the thumbnail placements, I'm still figuring out how they work, but my main problem is sorting out the order. Is there a way to fix this? Thank you in advance!

EDIT: So it turns out the problem was the naming convention. Instead of cg1, I tried cg001 and that worked LMAO. Apologies for the silly issue, and again, thank you very much for this code!!


Developer

Glad you figured it out!

Yeah, most programming languages will sort alphabetically, and cg10 comes after cg1 (which is also how Windows used to sort before Windows 10 before it got smart, I believe!)