ShiVa3D
MASH - Modern Alchemists ShiVa Libs
Re: MASH - Modern Alchemists ShiVa Libs
by psychicsoftware » 23 May 2012, 16:35
I'm trying to implement MASS (IAP) on Android, as per the instructions here:
http://code.google.com/p/ma-sh/wiki/MASS
However, I'm at step 5.. which I don't understand, can you explain what this means?
edit: d'oh.. hang on, I see them in your Java code..
edit2: well, it still took a while to understand what you meant by step 5. Probably just me being dumb, but anyway this might help someone else:
What you have to do in the Store.java and RunnableDialog.java files is replace import com.modernalchemists.inappbilling.R; with your own, in my case import com.psychicsoftware.letsbreakstuff.R;
http://code.google.com/p/ma-sh/wiki/MASS
However, I'm at step 5.. which I don't understand, can you explain what this means?
5. Import Resources (R) to Store.java and RunnableDialog.java:
The Resources class R is created automatically. Since the package name varies, you need to fix the imports.
edit: d'oh.. hang on, I see them in your Java code..
edit2: well, it still took a while to understand what you meant by step 5. Probably just me being dumb, but anyway this might help someone else:
What you have to do in the Store.java and RunnableDialog.java files is replace import com.modernalchemists.inappbilling.R; with your own, in my case import com.psychicsoftware.letsbreakstuff.R;
-

psychicsoftware - Gold Boarder

- Posts: 286
- Location: Galway, Ireland
Re: MASH - Modern Alchemists ShiVa Libs
by vklymenko » 18 Jun 2012, 23:11
Hi, psychicsoftware, have you implemented into a game for google-play's android? I also got to this step - "integrating iaps", but currently researching amazon'a android.
Re: MASH - Modern Alchemists ShiVa Libs
by giggsy » 19 Jun 2012, 06:59
I recently used our doc too, and must admit if you're doing it the first time, it's a bit complicated to understand 
MASS is meant for google play's In-App-Billing.
I also got to this step - "integrating iaps", but currently researching amazon'a android.
MASS is meant for google play's In-App-Billing.
-

giggsy - Platinum Boarder

- Posts: 1019
- Location: Austria
Re: MASH - Modern Alchemists ShiVa Libs
by psychicsoftware » 19 Jun 2012, 08:46
vklymenko - yes, I got it working in the end, although it seems to be a bit flaky and often returns nulls rather than product IDs (perhaps only with unmanaged IAPs)
-

psychicsoftware - Gold Boarder

- Posts: 286
- Location: Galway, Ireland
Re: MASH - Modern Alchemists ShiVa Libs
by giggsy » 19 Jun 2012, 09:02
psychicsoftware wrote:vklymenko - yes, I got it working in the end, although it seems to be a bit flaky and often returns nulls rather than product IDs (perhaps only with unmanaged IAPs)
We actually only use unmanaged IAPs. Could you elaborate a bit more whats failing when?
I recently stumbled over the issue, that on iOS we use camel-case for our item ids (com.domain.smallCoins) which isn't supported on Android (only lowercase allowed), and I forgot to change the product descriptors, which again lead to some null requests ...
-

giggsy - Platinum Boarder

- Posts: 1019
- Location: Austria
Re: MASH - Modern Alchemists ShiVa Libs
by vklymenko » 19 Jun 2012, 09:04
thanks psychicsoftware, I was just curious is giggsy has it up to date
@giggsy: I'll probably implement it in few games : ) are you ready for this?) what I need to do basic on the LGPL license - send links of the games to you (after)?
@giggsy: I'll probably implement it in few games : ) are you ready for this?) what I need to do basic on the LGPL license - send links of the games to you (after)?
Re: MASH - Modern Alchemists ShiVa Libs
by psychicsoftware » 19 Jun 2012, 09:13
giggsy wrote:psychicsoftware wrote:vklymenko - yes, I got it working in the end, although it seems to be a bit flaky and often returns nulls rather than product IDs (perhaps only with unmanaged IAPs)
We actually only use unmanaged IAPs. Could you elaborate a bit more whats failing when?
I recently stumbled over the issue, that on iOS we use camel-case for our item ids (com.domain.smallCoins) which isn't supported on Android (only lowercase allowed), and I forgot to change the product descriptors, which again lead to some null requests ...
The onProductBought method in Store.java - frequently receives a null value for cProduct. I only have one IAP item so I just hack it to assume success on that item (in my tests, there were no spurious purchases resulting)
-

psychicsoftware - Gold Boarder

- Posts: 286
- Location: Galway, Ireland
Re: MASH - Modern Alchemists ShiVa Libs
by giggsy » 19 Jun 2012, 09:26
vklymenko wrote: what I need to do basic on the LGPL license - send links of the games to you (after)?
As far as I know, you dont have to do anything
Link to games would be cool for us, because then we know that people are actually using it!
@psychicsoftware
That's strange to hear. It could also be on google's side ... we've had a nice time testing that all
Are you already live with your app?
So you get:
Product is null, it probably is the result of a restore transaction request.
?
-

giggsy - Platinum Boarder

- Posts: 1019
- Location: Austria
Re: MASH - Modern Alchemists ShiVa Libs
by psychicsoftware » 19 Jun 2012, 12:19
Yeah, that's the error. I should have said, I never assumed it was your fault, by the way! and thanks for the awesome coding on this stuff.
The app. is live, but it hasn't turned out to be one of my successful ones, so I'm not too worried about the IAP.
But another one I released 3 weeks ago on Android and 2 weeks ago on iOS has about 300000 downloads already! (it uses managed IAP which seems to worked fine)
The app. is live, but it hasn't turned out to be one of my successful ones, so I'm not too worried about the IAP.
But another one I released 3 weeks ago on Android and 2 weeks ago on iOS has about 300000 downloads already! (it uses managed IAP which seems to worked fine)
-

psychicsoftware - Gold Boarder

- Posts: 286
- Location: Galway, Ireland
Re: MASH - Modern Alchemists ShiVa Libs
by giggsy » 19 Jun 2012, 12:44
I'm not feeling attacked or such, I rather want to clarify what the issue is 
But I'd probably have to take a look at your project to tell you more, which currently exceeds my time limit and not sure if you wanna give me your code anyway ^^
But I'd probably have to take a look at your project to tell you more, which currently exceeds my time limit and not sure if you wanna give me your code anyway ^^
-

giggsy - Platinum Boarder

- Posts: 1019
- Location: Austria
Re: MASH - Modern Alchemists ShiVa Libs
by vklymenko » 24 Jun 2012, 16:39
Ok, so I took these:
MASS-20110419.ste
MAOF-Android-20110517
and implemented shiva-scripts part as described in step-by-step instructions,
hm, first of all I got : (
[WARNING] Failed to load local player enviroment C:\Documents and Settings\Slava\Application Data/StoneTrip/.save
is it because "/", "\" ? how to change it?
edit1:
sorry, my bad: forgot to add mass ai to resources... im back to implementation, will write more how its going later
MASS-20110419.ste
MAOF-Android-20110517
and implemented shiva-scripts part as described in step-by-step instructions,
hm, first of all I got : (
[WARNING] Failed to load local player enviroment C:\Documents and Settings\Slava\Application Data/StoneTrip/.save
is it because "/", "\" ? how to change it?
edit1:
sorry, my bad: forgot to add mass ai to resources... im back to implementation, will write more how its going later
Re: MASH - Modern Alchemists ShiVa Libs
by spasski » 30 Jun 2012, 12:03
Hi Giggsy,
Any plans to update MAOF as Openfeint is taken over by GREE?
Seems that the OpenFeint servers will stop running in Q3 2012...
thanks!
Any plans to update MAOF as Openfeint is taken over by GREE?
Seems that the OpenFeint servers will stop running in Q3 2012...
thanks!
-

spasski - Fresh Boarder

- Posts: 16
Re: MASH - Modern Alchemists ShiVa Libs
by giggsy » 30 Jun 2012, 15:29
Hi,
unfortunately currently no plans from our side, sorry.
unfortunately currently no plans from our side, sorry.
-

giggsy - Platinum Boarder

- Posts: 1019
- Location: Austria
Re: MASH - Modern Alchemists ShiVa Libs
by spasski » 21 Jul 2012, 08:17
Seems that I didn't read good. Openfeint servers are stopping Q3 2013.
-

spasski - Fresh Boarder

- Posts: 16
Re: MASH - Modern Alchemists ShiVa Libs
by DoctorPepper » 24 Jul 2012, 13:27
Well, its official. OpenFeint is no more
Im a little confused by the gree design and sad that we have lost our Mash integration. It made me totally rethink the achievement integration
Im a little confused by the gree design and sad that we have lost our Mash integration. It made me totally rethink the achievement integration
-

DoctorPepper - Platinum Boarder

- Posts: 420
- Location: Belgium