Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

Livecoding for GameMaker: Studio / GameMaker Studio 2 · By YellowAfterlife

[A mystery] Unknown function or script "draw_enable_swf_aa/draw_set_swf_aa_level/draw_get_swf_aa_level"

A topic by RandomFangamer created Jan 07, 2018 Views: 798 Replies: 6
Viewing posts 1 to 6
(1 edit)

I recently bought and downloaded GMLive and I have been having trouble setting it up. I have followed all steps in the documentation and am using the latest version (ver 1.4.1773). However, whenever I run my game I get a "Compile Failed - Please check the compile window for any additional information" message, which when I check the compile window tells me that there is no function called "draw_enable_swf_aa, draw_set_swf_aa_level, or draw_get_swf_aa_level". Typing this function into the gamemaker documentation however shows that it does exist in Gamemaker Studio, but when I type it into the "Execute Code" block it does not highlight like other functions. How do I get Gamemaker Studio to recognize this function so my game can run?

The compile window form for extensions is here

Developer

That is rather unusual - I'm not aware of any specific issues that would have caused GMS to forget updating some of the files, but could try reinstalling.

As other option, if you do not intend to use those functions in "live" code anyway, could open project directory in file explorer (Ctrl+Alt+P), navigate to extensions - GMLive, open GMLAPI.gml with a text/code editor, find (Ctrl+F) and comment out the offending lines in there - that will cause nothing to happen if those functions were then called from "live" code, but you won't have to figure out what's up with your GMS installation.

(1 edit)

Just to clarify, I was getting this issues on 1.4.1772 as well, but updating to 1773 did not fix them

Will try, though

So I've tried commenting out the three lines of code as well as deleting them from GMLAPI.gml in the extensions tab, but it still doesn't compile, even without importing anything to the imported files tab. Any other ideas?

Developer

What are the new errors? If the lines were removed from the file in extensions directory, it shouldn't complain about them. 

(4 edits)

The errors are still the same

So by going into the .extension.gmx file and deleting some lines with the functions I was able to get it to stop crashing. Currently I am testing to see if the extension works

Developer

If you come to a specific conclusion, do tell - I can simply remove those functions from the extension for the next release, but it is really strange that no one else had this issue.