1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

Feedback Suggestion : Compile time checks -> Extensions

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Mert, Nov 4, 2019.

  1. Mert

    Mert Member

    Jul 20, 2016
    The following functions are intented to check whether the necessary extensions are imported to the project.

    gml_pragma with flag "extension_check_error" : Stops compiling the application, prints out an error message to the log. Second parameter is extension's package name and the third one is an error message that'll be displayed.
    gml_pragma("extension_check_error","com.gmdevblog.firebasenaturallanguages","Translation, Language Detection or Smart Replies extensions will not work without Natural Languages extension!");
    Total flags are as the following;
    • "extension_check_error"
    • "extension_check_warning" : Doesn't stop compiling, but prints out a warning message!
    Just a thought, and is really useful in many situations. What do you think?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice