1. Hey! Guest! The 32nd GMC Jam will take place between Feb 22nd, 12:00 UTC (Friday noon) and Feb 25th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Android Function "ds_grid_get" does not compile for Android export

Discussion in 'GameMaker Studio 2 Community Tech Support' started by minoush82, Feb 12, 2019 at 7:57 PM.

Tags:
Thread Status:
Not open for further replies.
  1. minoush82

    minoush82 Member

    Joined:
    Dec 12, 2018
    Posts:
    20
    Hello,

    I use the function
    in my code with 3 arguments as specified in the documentation. The following is a code extract from my program.
    But when I compile to Android/YYC I get the error:
    The function
    with 4 arguments compiles just fine for Android.

    Any idea what's going on?

    Thanks.
     
  2. Mert

    Mert Member

    Joined:
    Jul 20, 2016
    Posts:
    195
    Alternatively, you can use gridname[# x,y].
    Edit : # is the accessor for ds_grids. You can write to/read from a ds_grid with this.

    Code:
    gridname[# x,y] = 24
    Code:
    var data = gridname[# x,y];
    
    show_debug_message(data);
    It's not a solution for ds_grid_set, but does the same thing. Does not impact negatively on performance
     
  3. minoush82

    minoush82 Member

    Joined:
    Dec 12, 2018
    Posts:
    20
    Thank you. I have replaced all occurrences of
    with
    but I am getting the same compile errors. I guess both ways of expressing grid access boil down to the same thing eventually.

    So my problem remains unsolved :-(
     
  4. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,298
    What IDE and Runtime versions are you using? ds_grid_set/get should work fine on all platforms.
     
  5. minoush82

    minoush82 Member

    Joined:
    Dec 12, 2018
    Posts:
    20
    I am using IDE 2.2.0.343 with runtime 2.2.1.291.
     
  6. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,298
    You need to update the IDE... current one is 2.2.1.375 http://gms.yoyogames.com/ReleaseNotes.html

    Once you've done that try again.

    EDIT: quick search shows that the IDE version you are using is a common pirate version. As such you are banned from the GMC as we do not permit help for users with pirated software. If you think this is an error, please contact the YoYo Games helpdesk with your licenced email account and we will re-admit you to the forums.
     
    rIKmAN likes this.
Thread Status:
Not open for further replies.

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