Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Window Commands for GameMaker

Check/disable/dispatch window commands in GameMaker · By YellowAfterlife

will this be updated for the latest GMS2 runtime update? (v2022.8.0.50)

A topic by mango-ki created Sep 11, 2022 Views: 305 Replies: 5
Viewing posts 1 to 3
(3 edits) (+1)

this extension doesn't work correctly anymore, especially since the x86 runtime option has been removed from the game options and it's impossible to compile a game in x86.

edit: i just saw in another thread that it's possible to compile the DLL in x64, which sounds promising! but maybe this should be updated for those who don't know how to build a solution :O

Developer(+1)

Please await eagerly - I have a lot of extensions to update. For over a decade I have been making tiny free extensions on assumption that they will require zero maintenance, but with 2.3 update, buffer_get/set_surface changes, changes to how extension macros work, and now x86 deprecation this is no longer the case.

As for building yourself, that’s not too hard for this specific extension - you set up Visual Studio (same steps as for the YYC guide), you open the .sln file, you pick Release - x64, and press Build. The compiled DLL gets copied over to different sample project folders.

(+1)

ty for your reply - i did figure out how to build the extension, it wasn't too difficult other than i had to change GWL_WNDPROC to GWLP_WNDPROC

honestly, you are an absolute chad and a genius! thank you for making these helpful extensions which greatly help with making games in Game Maker!

I'm currently having issues with the window_command_hook_init() function. I was trying to look for the window_command_hook(command:) but it seems to be deprecated. Whenever I try to run the game with window_command_hook_init(), it crashes game maker whenever I call it.

Developer

window_command_hook is not deprecated.

window_command_hook_init has no code in it, but you should not be calling it.

Make sure that you downloaded the current version.

Thank you for informing me! I just thoughtwindow_command_hook() was deprecated since it wasn't showing up as a function since it has the same name as the extension file. Everything works fine! Thank you for the help!