To use this now it is REQUIRED for you to use GM Studio version 1.3.xxxx or newer
Features (as of now) are listed below:
- UUID / username
- key/data saving
- is_ouya() check
- In app purchases (product lists, receipts, buy)
- cursor hide/how
I am giving this for free as usual, and it will stay free. But if you really appreciate the work I have done you can also buy it for a small ammount, you name your own price, anything is very appreciated and will go directly to me and my daily expenses;
Buy and download / Github (Download available)
Contents of the .zip:
+ OUYA Extension/
| | + Java/
| | |- OUYAExt.java
Setting up everything:
Please read the OUYA docs if you are not sure about something basic, like connection between the OUYA and your PC or how to upload your game, etc.
If this is the first time you are setting up an etension I recommedn you to create a new, empty project.
- Extract the OUYA Extension .zip
- Go to the resources tree. right click on "Extensions" -> "import extensions".
- Select "OUYAExt.gmez" from the extracted zip folder.
After having added the extension sucessfully, we need to install the OUYA ODK in the runner, the ODK library (.jar) can be found on the ODK zip at
copy that file to:
You can download the ODK package from the OUYA site
key.der is a certificate file wich is downloaded from https://devs.ouya.tv/developers/games, while you are logged in to your developer account (if you dont have one, make one as you WILL need it). This file is your game's fingerprint, pretty much like the keystore file from GameMaker's Android settings.
Once you have your key.der you can just drag it into your game's included files, just make sure it is not in any sub-directory. This is absolutely required for making IAPs in the OUYA.
Below there is a small list of the functions and what they do, I will not spend much on explaining each as they should be very straightforward, but in case you have any doubts please refer to the example oject within the .zip, especially to get an idea how the flow of an IAP works:
Internal use only.
Internal use only.
Set the new developer ID fo the extension. (deprecated)
Get the current developer ID being used.
Get the Gamer Unique ID associated with the current logged account. Returns a string filled with zeroes if it is not available or still fetching.
Returns weter we are running on OUYA hadware or not. (only works on andoid!)
Assigns the given data (string) to the key.
Return the data string associated with this key.
Adds the product id (string) to hte product list. returns its new id (real).
Removes the product fom the product list using the ID returned by _poduct_add().
Refreshes the poduct list information. Will tiggeer an IAP event when sucessful.
Return a json string with all of the products information available.
Setup all of the IAP information and do the handshake with OUYA.
Returns the username associated with the current logged acccount, or an empty string if failed or not yet available.
Triggers the buy dialogs for the product id using the ID returned by _poduct_add().
Weter of not to show or hide the trackpad cursor.
Credits go to:
- Me (Manuel Etchegaray) for developing the patch codes.
- jtn0514 For borrowing his OUYA console to extensively test and debug everything works properly.
- halo shg For making GMExtensions, wich was the core of the in app purchases when I made the initial patch.
- The YoYoGames team for making such great software!
Edited by Manuel777, 10 November 2014 - 10:55 PM.