Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Necro'ing an old post about buffer_get_surface

A topic by WanderlustInTheEnd created 72 days ago Views: 121 Replies: 2
Viewing posts 1 to 3
(1 edit)

https://itch.io/t/1621379/error-buffer-get-surface-takes-5-arguments-got-3

Anytime i reload a script with buffer_get_surface i get this error, not sure why / what degree of broken-ness this is at but it's apparently not new. Any update?

Developer (2 edits)

I could have sworn that I have fixed that back then, but perhaps something got lost as I was cleaning out GMS2.2-specific logic out of GMLive.

For now you can add

live_function_add("buffer_get_surface(buffer, surface, offset)", buffer_get_surface)

to the end of obj_gmlive‘s Create event as that topic author’s did.

Developer(+1)

Fixed this in 1.0.79 - this didn’t persist in latest git commit so my best guess is that I pushed the last update during a blackout from my laptop and forgot to rebuild the API script.

Also made the API script split into multiple lines instead of using massive strings.