Skip to main content

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

cmnLoc for GameMaker

A high-end localization system for GameMaker! · By YellowAfterlife

Template Strings break the auto-generator

A topic by metacrab created 28 days ago Views: 35 Replies: 2
Viewing posts 1 to 3

Hey, I just integrated this in my project and it was working great until I realised some strings weren't being auto-generated. I've been debugging for an hour and think I've found the issue.

Basically, the first time you use Template Strings ($ string replacement) in a given script, the auto-generator breaks and doesn't generate any strings after that. 

In the above you can see I define 5 strings, with a Template String breaking them up. For reference L is a macro to cmn_loc_string, which I know isn't best practice but it works. As per the auto-generator you can see it stops auto-generating entries after String C:


If we remove the Template String, you can see all subsequent strings in the script are generated correctly:

I can work around this by replacing any Template Strings that break auto-generation but I thought you'd want to know, this was really confusing for me to debug. Thanks!

Developer

Hey, uploaded a new cmnLocGen (extension is unchanged) - I think I broke that while making the generator work with GM:S projects.

Also added a “load folder” button to the web version so that you don’t have to pack up a ZIP/YYZ every time.

I replied on bluesky but thanks! Load Folder should be way easier too 🙏