Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Franck on November 07, 2019, 03:32:31 PM

Title: Problem with Playmaker Samples[SOLVED]
Post by: Franck on November 07, 2019, 03:32:31 PM
Hi there,

I bought the asset Playmaker Samples few months ago and I wish to make a game with in it a mini quiz game. Then I took the Quiz Sample from Playmaker Samples.

The problem is that I don't know if it's compatible with smartphones. When I build the master project I can't press the buttons on android, it does nothing.

Is it a configuration or just not compatible with smartphones?

Thanks
Title: Re: Problem with Playmaker Samples
Post by: djaydino on November 07, 2019, 08:51:02 PM
Hi,
It is a sample and probably does not have touch actions.
I am also not sure if xml can be used on mobile.

I can't look right now and will be traveling till Wednesday.

But ping me by Thursday if i did not reply yet :)
Title: Re: Problem with Playmaker Samples
Post by: Franck on November 08, 2019, 12:09:17 PM
Hi djaydino,

thanks for your answer. I will try to take a look myself and if I can't find the solution I will come back here on Thursday.
Title: Re: Problem with Playmaker Samples
Post by: Franck on November 08, 2019, 01:02:53 PM
About the XML file I think it work on Android platform. When I launch the project without the main menu there is the question and the answers on the screen then I think it work.
Title: Re: Problem with Playmaker Samples
Post by: jeanfabre on November 11, 2019, 02:42:55 AM
Hi,

 Xml can be used on IOS Android, but not on Windows mobile, I did many mobile apps on IOS and android using xmlMaker.

Bye,

 Jean
Title: Re: Problem with Playmaker Samples
Post by: Franck on November 12, 2019, 07:29:40 AM
Hi jeanfabre,

thanks for your answer. Good to ear that ;)
Title: Re: Problem with Playmaker Samples
Post by: Franck on November 14, 2019, 12:38:33 PM
Hi djaydino,

I'm sorry to bother you but I did not manage to run the buttons on Android.
I tried with the function built into Unity (on event) but it does not work either.

Thanks
Title: Re: Problem with Playmaker Samples
Post by: lykanthrope on November 17, 2019, 08:50:31 AM
I also just recently purchased the Playmaker Samples from the UAS and I've encountered problems trying to run some of them. I installed the required actions from the Ecosystem before loading the sample.

I started with the Card Game example are a lot of errors that appear in the console. As well as the Dynamic Boxes example. They seem to stem from a lot of uGUI issues.

I was very much hoping to learn from some of these.
Title: Re: Problem with Playmaker Samples
Post by: Franck on November 19, 2019, 06:55:09 AM
Hi lykanthrope,

in order to use the samples you need to download the proper action in the ecosystem. To do that you need to go in tools --> JinxsterGames --> PmSamples --> Samples
Now you have a windows. Click on Card Game Drag And Drop and look at the missing actions. You have a GET button on the right to go to ecosystem.

I tried the sample and it work for me.

But please djaydino I can't manage to work with Trivia Quiz for Android :(
Title: Re: Problem with Playmaker Samples
Post by: Franck on November 22, 2019, 07:21:02 AM
bump
Title: Re: Problem with Playmaker Samples
Post by: Franck on November 25, 2019, 08:19:20 AM
Pleaaaase djaydino i'm so stuck :'(
Title: Re: Problem with Playmaker Samples
Post by: Franck on November 25, 2019, 08:31:02 AM
I tried to look in the FSM's in order to add UI Buttons but I don't know how and where because these buttons are never at the same place
Title: Re: Problem with Playmaker Samples
Post by: jeanfabre on November 27, 2019, 08:11:14 AM
Hi,

 you need to make sure the canvas is scaling properly depenging on the ratio and screen size, you can test this in editor by changing the resolution of the game view. It's critical that it first looks good for the resolution or ratio you might encounter on mobiles.

Bye,

 Jean
Title: Re: Problem with Playmaker Samples
Post by: Franck on November 27, 2019, 11:55:04 AM
Hi jeanfabre,

thanks a lot for your answer.

The canvas scaling is ok for all resolutions. The problem is that there is not UI Buttons in the sample then impossible to work on mobiles. It just work on PC.

And I don't know where to add the UI Buttons in the FSM's because there are 4 Buttons for the answers and they change their places anytime.

I really hope that djaydino can make something to help me because at this point I'm completly stuck :(
Title: Re: Problem with Playmaker Samples
Post by: djaydino on November 28, 2019, 12:00:46 PM
Hi.
Sorry for the late reply, its been some hectic weeks for me.

its been a while that i did something on android so i had to install sdk etc to test :)

i noticed that when buttons are pressed they do change color, and they are ui buttons.

So something else is stopping it from continuing i think.

i will try to narrow down the issue this weekend
Title: Re: Problem with Playmaker Samples
Post by: Franck on November 28, 2019, 03:14:59 PM
I'm glad you went there, I did not believe it anymore :)

Ok I wait for you and i hope a solution :)
Title: Re: Problem with Playmaker Samples
Post by: djaydino on December 03, 2019, 12:01:19 AM
Hi.
The action Ui Button Array and my version Ui Button Array Indexed are not working on android at the moment.

I have reported to Jean and we will have a look at it asap
Title: Re: Problem with Playmaker Samples
Post by: Franck on December 03, 2019, 11:10:30 AM
Hi djaydino,

thanks for the reply.

Playmaker should be upgraded or there is a new action to create?

Have you a little idea of when the "patch" will be there?
Title: Re: Problem with Playmaker Samples
Post by: djaydino on December 03, 2019, 11:43:42 AM
Hi.
You need to re-download "UiButtonArrayIndex" action (Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181))

also you need to add a next frame event here :
(https://i.imgur.com/s4PfK0L.png)

that made it work on my end
Title: Re: Problem with Playmaker Samples
Post by: Franck on December 03, 2019, 01:22:07 PM
Djaydino YOU THE MAN !

It work now.

I updated the "UiButtonArrayIndex" action and added a NEXT FRAME EVENT like you said but not at the same place because I don't use the first panel where you can choose the categories. I added this NEXT FRAME EVENT between "Set Answer Button" and "Get Next Answer". I don't know if that's what made it work but in any case it works perfectly.

Thanks again djaydino, great thanks!
Title: Re: Problem with Playmaker Samples
Post by: djaydino on December 03, 2019, 10:33:03 PM
Hi.
i don't think that on the set answer it is needed as its not looping like the category but it wont hurt.
Title: Re: Problem with Playmaker Samples[SOLVED]
Post by: Franck on December 04, 2019, 11:22:35 AM
djaydino,

is there a way to paint in green the correct answer when you click on the wrong one? In order to know what is the correct answer even if you click the wrong one.
Title: Re: Problem with Playmaker Samples[SOLVED]
Post by: djaydino on December 05, 2019, 09:50:43 AM
Hi,
After 'wrong' loop thru the answers and do the same compare as on 'Check Answer'
when correct. See Gif below

(https://i.imgur.com/3NyWfko.gif)
Title: Re: Problem with Playmaker Samples[SOLVED]
Post by: Franck on December 05, 2019, 11:05:29 AM
Thanks djaydino it work perfectly.

I just change a little thing because of a bug. In the state "Array Get Next" for the finish event I change from ERROR to Next because every time it goes to error.
Title: Re: Problem with Playmaker Samples[SOLVED]
Post by: djaydino on December 06, 2019, 10:47:37 AM
hi. did you check why it gives an error?

Usually there is something wrong is it goes to error.
Title: Re: Problem with Playmaker Samples[SOLVED]
Post by: Franck on December 06, 2019, 11:27:11 AM
Hi djaydino,

my understanding of playmaker and mostly XML and stuff is too low to see what's wrong. I just try to fix as I can. And because of you I learn a lot of stuff ;)

Next question if you allow me. Is it possible to delete the question just asked in the XML file?

Why...? I wish to delete the question just asked to have an empty XML file when all questions are asked in order to give the possibility to download a new XML file with new questions.
Title: Re: Problem with Playmaker Samples[SOLVED]
Post by: djaydino on December 07, 2019, 11:21:16 AM
Hi.
I believe that you can only remove from a reference but it will not change the file
so when you stop the game and play again it would not be removed.

You can maybe save somehow if all questions where answered and then the next time you play, it can download a xml (and probably you need to use 'ConvertCsvStringToXmlNode')
and then use that xml.