x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Read In App purchase information mixes data

Hi,

Using 4.11.2

I'm using the Read In-App purchase information node, connecting to Google Play servers.

I'm feeding the function an array of three strings and saving the array that's returned. However, depending on the order of the initial array, the data in the function returns can be mixed up.

If I input the string array with these three strings

  • swingers_buychar_greenmonster

  • swingers_buychar_flame

  • swingers_buychar_cardboardbox

I get the following data (Keep in mind Cardboard box = Mr Box, GreenMonster = Plague Splasher and Flame = Blaze)

  • buychar_greenmonster Buy Character - Mr Box (Swingers) Buy the character 'Mr Box' �0.60

  • buychar_flame Buy Character - Blaze (Swingers) Buy the character 'Blaze' �0.60

  • buychar_cardboardbox Buy Character - Plague Splasher (Swingers) Buy the character 'Plague Splasher' �1.20

You can see that two pieces of data are mixed up. It's returning the wrong ID with the rest of the data.

Now if I change the order of the strings in the array to this:

  • swingers_buychar_cardboardbox

  • swingers_buychar_flame

  • swingers_buychar_greenmonster

I get the following

  • buychar_cardboardbox Buy Character - Mr Box (Swingers) Buy the character 'Mr Box' �0.60

  • buychar_flame Buy Character - Blaze (Swingers) Buy the character 'Blaze' �0.60

  • buychar_greenmonster Buy Character - Plague Splasher (Swingers) Buy the character 'Plague Splasher' �1.20

Which is correct.

Also, when looking in the log, it seems the query is successful and returns the correct data. It just gets jumbled up when the function returns the array:

  • GooglePlayStoreHelper::QueryInAppPurchases

  • GooglePlayStoreHelper::QueryInAppPurchases - Querying swingers_buychar_greenmonster

  • GooglePlayStoreHelper::QueryInAppPurchases - Querying swingers_buychar_flame

  • GooglePlayStoreHelper::QueryInAppPurchases - Querying swingers_buychar_cardboardbox

  • GooglePlayStoreHelper::QueryInAppPurchases - Parsing details for: swingers_buychar_cardboardbox title: Buy Character - Mr Box (Swingers)

  • description: Buy the character 'Mr Box'

  • price: £0.60

  • GooglePlayStoreHelper::QueryInAppPurchases - Parsing details for: swingers_buychar_flame title: Buy Character - Blaze (Swingers)

  • description: Buy the character 'Blaze'

  • price: £0.60

  • GooglePlayStoreHelper::QueryInAppPurchases - Parsing details for: swingers_buychar_greenmonster title: Buy Character - Plague Splasher (Swingers)

  • description: Buy the character 'Plague Splasher'

  • price: £1.20

  • GooglePlayStoreHelper::QueryInAppPurchases - Success!

Any ideas why the data being returned in the array is mixed up?

Cheers, Chris

Product Version: UE 4.11
Tags:
more ▼

asked Apr 26 '16 at 07:25 PM in Blueprint Scripting

avatar image

Piranhi
61 6 11

avatar image Piranhi Apr 26 '16 at 07:28 PM

After adding some more in app purchase information, it gets mixed up even more:

String Array:

  • swingers_buychar_cardboardbox (mr box)

  • swingers_buychar_flame (blaze)

  • swingers_buychar_greenmonster (plague)

  • swingers_buychar_carlos (carlos)

  • swingers_buychar_cubus (holy box)

Returned Data:

  • buychar_cardboardbox Buy Character - Mr Box (Swingers) Buy the character 'Mr Box' �0.60

  • buychar_flame Buy Character - Carlos (Swingers) Buy the character - 'Carlos' �0.60

  • buychar_greenmonster Buy Character - Holy Box (Swingers) Buy the character 'Holy Box' �1.20

  • buychar_carlos Buy Character - Blaze (Swingers) Buy the character 'Blaze' �0.60

  • buychar_cubus Buy Character - Plague Splasher (Swingers) Buy the character 'Plague Splasher' �1.20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

From Chris Babcock:

Hi Chris,

There is a bug with the QueryInAppPurchases in 4.11. It is fixed in 4.12 preview 1, or you can look at this GitHub commit: https://github.com/EpicGames/UnrealE...0a2f9d531b234e.

Since this is a Java file and it recompiled on packaging for Android, you can just replace the Java file in your 4.11 engine directory with this one.

https://forums.unrealengine.com/showthread.php?108890-Read-In-App-purchase-information-returns-mixed-up-data&p=520205#post520205

more ▼

answered Apr 28 '16 at 06:52 AM

avatar image

Piranhi
61 6 11

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question