• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Is there any bug with Extensions and in-apps in 1760?

AZAMATIKA

Member
Yaw!
So, i have a trouble, i use both extensions (GPServices and GPLicencing), i have ads, and i made an in-apps today.
When i tap on in-app in the game, it crashes.
Bluetooth disabled. If i add bluetooth, it want newer min SDK (now it disabled, as i sad). I read somewhere, that BT need to be enabled, true?

Is there any issue that i can't find and read? Maybe, some bugs in 1.4.1760? Or i do something wrong and all is works fine?

Yesterday i used 1.4.1757, and in-app do not crash the game (cant' test online on playmarket btw), but libpng error i had, of course :p
 

Pushloop

Member
I had problems with the gp extensions and what helped for me was : delete extensions, clean the cache, save project, close GM, open project and import the extension from the marketplace again. The connection can be buggy. You can also check your gradle dependency if it matches your build version. Or use this one:
Code:
compile 'com.android.support:appcompat-v7:+'
provided 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
props to Playlight for these
 

AZAMATIKA

Member
Now i have some another troubles with In-apps.
I press the button in my game 'No Ads' and have a crash and a window with an error.
So, maybe i forget something? I just add the in-app in my developer account, and with the same name put it to my objects. I use a official YoYo Guide from 1 june 2016.

Here's the stuff that i use:
Initialisation part:
var map_create = true;
if file_exists("iap_data.json")
{
global.purchaseMap = ds_map_secure_load("iap_data.json");
if ds_exists(global.purchaseMap, ds_type_map)
{
var product = "gundone_noads";

if ds_map_exists(global.purchaseMap, product)
{
map_create = false;
}
}
}

if map_create
{
global.purchaseMap = ds_map_create();
var product1 = "gundone_noads";
ds_map_add(global.purchaseMap, product1, 0);
ds_map_secure_save(global.purchaseMap, "iap_data.json");
}

var pNoAds = ds_map_create();
var productList = ds_list_create();
ds_map_add(pNoAds, "id", "gundone_noads");
ds_map_add(pNoAds, "title", "No Ads");
ds_map_add(pNoAds, "type", "Durable");
ds_list_add(productList, pNoAds);
iap_activate(productList);
ds_map_destroy(pNoAds);
ds_list_destroy(productList);

Left Released in another obj in another room:
if iap_status() == iap_status_available
{
var product = "gundone_noads";

if ds_map_find_value(global.purchaseMap, product) == 0
{
iap_acquire(product, "");
}
}
else
{
show_message_async("Store is not available.");
}

IAP in the same another obj
var val = ds_map_find_value(iap_data, "type");
switch (val)
{
case iap_ev_purchase:
var map = ds_map_create();
var purchase_id = ds_map_find_value(iap_data, "index");
iap_purchase_details(purchase_id, map);
if ds_map_find_value(map, "status") == iap_purchased
{
var product_id = ds_map_find_value(map, "product");
ds_map_replace(global.purchaseMap, product_id, 1);
switch(product_id)
{
case "gundone_noads":
//blah-blah-blah
break;
}
}
ds_map_destroy(map);
break;
}
ds_map_secure_save(global.purchaseMap, "iap_data.json");

I already put the license google key of course.

What i do wrong? It crashes via Android :]
 
Top