Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to User contributions

MASH - Modern Alchemists ShiVa Libs

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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?

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.. :o

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;
User avatar
psychicsoftware
Platinum Boarder
Platinum Boarder
 
Posts: 344
Location: Galway, Ireland

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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.
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 758
Location: Europe

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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 ;)

I also got to this step - "integrating iaps", but currently researching amazon'a android.


MASS is meant for google play's In-App-Billing.
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1096
Location: Austria

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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)
User avatar
psychicsoftware
Platinum Boarder
Platinum Boarder
 
Posts: 344
Location: Galway, Ireland

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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 ...
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1096
Location: Austria

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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)?
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 758
Location: Europe

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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)
User avatar
psychicsoftware
Platinum Boarder
Platinum Boarder
 
Posts: 344
Location: Galway, Ireland

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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.

?
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1096
Location: Austria

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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)
User avatar
psychicsoftware
Platinum Boarder
Platinum Boarder
 
Posts: 344
Location: Galway, Ireland

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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 ^^
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1096
Location: Austria

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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 :D
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 758
Location: Europe

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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!
User avatar
spasski
Fresh Boarder
Fresh Boarder
 
Posts: 19

Re: MASH - Modern Alchemists ShiVa Libs

Postby giggsy » 30 Jun 2012, 15:29

Hi,

unfortunately currently no plans from our side, sorry.
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1096
Location: Austria

Re: MASH - Modern Alchemists ShiVa Libs

Postby spasski » 21 Jul 2012, 08:17

Seems that I didn't read good. Openfeint servers are stopping Q3 2013.
User avatar
spasski
Fresh Boarder
Fresh Boarder
 
Posts: 19

Re: MASH - Modern Alchemists ShiVa Libs

Postby 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
User avatar
DoctorPepper
Platinum Boarder
Platinum Boarder
 
Posts: 474
Location: Belgium

PreviousNext

Return to User contributions