2024.13 mini-PSA


If you follow me on itch, you should get a notification about this post, so it’s hopefully a good place to put it.

2024.13 update released with this bug that causes extension constants/macros to be treated as strings instead.

For example, if the extension had a macro called ext_var with value of global._ext_var, doing ext_var = 1; is now interpreted as "global._ext_var" = 1 instead of global._ext_var = 1 and raises a compile error.

My extensions quite commonly used this to maintain similar structure across recent GM versions (which have #macro) and older versions (which do not have #macro), so they are disproportionately affected by this bug.

You can workaround this by creating a script and moving every macro declaration from the extension to it. So, for example, if you have this

You would delete the macros from the extension and add them to the script like so:

#macro winwin_kind_normal 0
#macro winwin_kind_borderless 1
#macro winwin_kind_tool 2
#macro winwin_main global.g_winwin_main
#macro winwin_list global.g_winwin_list
#macro winwin_map global.g_winwin_map

However, as this can be somewhat time-consuming, I would recommend rolling back to 2024.11 until this is fixed - hopefully in the next patch?

Get Blog tip jar

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.