playMaker

Author Topic: Android variables problem.  (Read 5992 times)

Rufusol

  • Playmaker Newbie
  • *
  • Posts: 4
Android variables problem.
« on: April 01, 2018, 03:38:19 PM »
Hello,

I'm have problem with android exporter and variables.
I something like this:
wait 5sec
add 1 to float x
convert float x to string y
show string y in UI text object
loop

Everything works when i use Unity inside player or Windows exported app.
When i use Android Exporter then i see that variables are not working (I see new text in Ui text object, where on Unity player there was number). Im tried local variables (get fsm) and global variables. Nothing works. Please if someone know soultion then please help me. Sorry for my English.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Android variables problem.
« Reply #1 on: April 02, 2018, 06:57:08 AM »
Hi.
Did you use some get/set propertied actions?

if so and if you use them for ui, you can find ui actions on the ecosystem

Search for ugui proxy full.

If you used it for 3rd party asset then you should use Linker Wizard

Always try to minimize using get/set properties :)

Rufusol

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Android variables problem.
« Reply #2 on: April 02, 2018, 08:15:19 AM »
Hello, thanks for reply. Im was tried two methods:
1. With get/set fsm value on local variables.
2. With global variables.

Inside unity and when exported to windows app works fine but on android dont work.
Im use also ugui set text for ui text object.

There is something i must do when i export to android? Maybe something I dont do because i dont know. There is something i must make before export playmaker project to android?

Sorry for my English.
Best regards.


Rufusol

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Android variables problem.
« Reply #3 on: April 02, 2018, 05:07:43 PM »
I have tried something else. I maked easy fsm that wait x sec and then change position of example cube object. This also dont work on android but work in Unity and Windows export. I tried Ugui drag example project with this same effect.

I see that playmaker dont work on android export.
Someone have this kind of problem?

skipadu

  • Playmaker Newbie
  • *
  • Posts: 43
  • Learning continuously
    • serialkamikaze.itch.io
Re: Android variables problem.
« Reply #4 on: April 03, 2018, 12:18:41 AM »
...
I see that playmaker dont work on android export.
Someone have this kind of problem?
I just yesterday noticed the same kind of issue when I exported my game to Android. It doesn’t get one of the variable set correctly. In Unity editor it is working. Didn’t have time to try to solve it yet.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Android variables problem.
« Reply #5 on: April 03, 2018, 01:45:32 AM »
Hi.
You mean building for android right?

What unity/playmaker version are you using?

Do you use cloud to build?

Can you repo in a simple project and pm a link?

skipadu

  • Playmaker Newbie
  • *
  • Posts: 43
  • Learning continuously
    • serialkamikaze.itch.io
Re: Android variables problem.
« Reply #6 on: April 03, 2018, 02:00:04 AM »
You mean building for android right?

What unity/playmaker version are you using?

Do you use cloud to build?

Can you repo in a simple project and pm a link?
Yeah, exporting to Android == Build for Android.

Not at the moment on the own computer, but latest stable of Unity 2017 and Playmaker 1.8.9.

Not using Cloud build.

In my case this topic might solve the problem. Will try to test it in the evening. If I can't get it working with the help of that I make some new project that reproduces the issue and will provide a link with PM then.



My case told short:
1.) I read .json file and parse it into an object
2.) Then setting Playmaker FSM' int variables value from that object

In Editor it works, but not when exporting/building for Android.


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Android variables problem.
« Reply #7 on: April 03, 2018, 02:29:20 PM »
Hi.
Thanks, i will wait to get deeper into this after you tried :)

skipadu

  • Playmaker Newbie
  • *
  • Posts: 43
  • Learning continuously
    • serialkamikaze.itch.io
Re: Android variables problem.
« Reply #8 on: April 03, 2018, 04:53:13 PM »
Hi.
Thanks, i will wait to get deeper into this after you tried :)
Sorry to inform but I did use a wrong variable and that explained my issue. Somehow I have created a new variable that name was almost the same, so while I looked it too fast I missed this obvious reason. Now it does work correctly.

But Rufusol should give details of his issue to get it solved.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Android variables problem.
« Reply #9 on: April 04, 2018, 03:55:03 AM »
Hi.
I tried to repo the issue but so far i did not get an issue, unless i used some get/set properties.