playMaker

Author Topic: Global Variables changing after playing in Unity then stopping  (Read 11190 times)

jess84

  • Hero Member
  • *****
  • Posts: 515
Global Variables changing after playing in Unity then stopping
« on: February 04, 2014, 09:39:45 PM »
I've seen this mentioned a few times across the forums, and I think people have given example projects with repros.

My question is; Is this being addressed?

It's so infuriating creating a build to test, running a scene and seeing that it doesn't work because a global bool or float isn't on the value it's supposed to be. You then have to go through them all and flick them back to the right values.

I appreciate that this might be hard to track down, and happens seemingly randomly - but it seems to happen to lots of people.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Global Variables changing after playing in Unity then stopping
« Reply #1 on: February 05, 2014, 12:58:35 AM »
I'm trying to repro the bug here but so far haven't been able to...

It might have something to do with which windows are in your layout (which isn't preserved in sent repro projects). Try using a default layout to see if that fixes it, then add windows back into the layout until it breaks again...

I'd like to get a fix into the next update!

 

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Global Variables changing after playing in Unity then stopping
« Reply #2 on: February 05, 2014, 12:19:24 PM »
I shall look into that.

FYI - My layout contains the following differences to the default layout:

Inspector Window: I have 2 tabs added - PM Actions and PM Global Vars
and I have separated the Game and Scene tabs so that both windows are always visible.

Those are my only changes.

jgalvezpa

  • Junior Playmaker
  • **
  • Posts: 58
Re: Global Variables changing after playing in Unity then stopping
« Reply #3 on: February 13, 2014, 11:55:09 PM »
i have the same problem the global variables disappear please fix it

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Global Variables changing after playing in Unity then stopping
« Reply #4 on: March 05, 2014, 06:06:34 PM »
I get this too, not often but when it happens I have to roll back to a previous back up, since its just too much stuff that gets messed up, and some of them don't show up as an error.

RAWilco

  • Playmaker Newbie
  • *
  • Posts: 20
    • StinBeard
Re: Global Variables changing after playing in Unity then stopping
« Reply #5 on: March 08, 2014, 03:59:43 PM »
I can confirm that what Alex Chouls suggested does work.

For some reason, the Global Variable values are not reset after testing a scene if you have the Global Variables Editor Window arranged somewhere as a tab in your layout.

Simple solution: Just close the Global Variables Editor Window and only open it when you need to.

It can be a bit annoying not having all your variables there for reference all the time, but it fixes the problem.

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Global Variables changing after playing in Unity then stopping
« Reply #6 on: March 10, 2014, 04:56:45 PM »
Doesn't fix the problem for me, still happens.

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Global Variables changing after playing in Unity then stopping
« Reply #7 on: March 28, 2014, 08:06:25 PM »
Is this going to be fixed soon?

It's quite infuriating either not being able to test in Unity, or run the risk of lots of globals being set to values you don't want.  (e.g right now, I have to go through and change 100 bools for each of my levels so say if they're locked/unlocked).

As lots of people have reported this, surely recreating it shouldn't be too difficult?

Oh, off to change lots of global variables....    :'(

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Global Variables changing after playing in Unity then stopping
« Reply #8 on: March 29, 2014, 12:25:07 AM »
We haven't been able to repro this here... Do you have other third party assets in your project? E.g., Particle Playground was causing some problems, but their latest version should fix the issue...

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Global Variables changing after playing in Unity then stopping
« Reply #9 on: March 29, 2014, 11:44:17 AM »
Just iTween and FX Mega Pack
(and ArrayMaker)

Other people with this problem - what about you?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Global Variables changing after playing in Unity then stopping
« Reply #10 on: March 29, 2014, 02:27:59 PM »
Can you submit a bug report so I can get more info on your setup. Are you definitely using the latest version of Playmaker? Can you share a small project that shows the problem?

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Global Variables changing after playing in Unity then stopping
« Reply #11 on: March 29, 2014, 02:52:53 PM »
1.7.7.f6

however this problem has occurred on the previous two versions that I've been on in the last 6 months too.


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Global Variables changing after playing in Unity then stopping
« Reply #12 on: March 30, 2014, 12:39:26 AM »
What version of Unity? Does it happen in a new project with just Playmaker?

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Global Variables changing after playing in Unity then stopping
« Reply #13 on: March 30, 2014, 03:15:11 PM »
4.3.4

I started a new project a couple of hours ago, to play around with Arraymaker, and it's just occured again - on this new project.

This time, I just have Playmaker and Arraymaker (plus the arraymaker samples). No other 3rd party packages.

Pretty much default window layout, just extra tabs on the Inspector window for Global Variables and Actions.

ben135

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Global Variables changing after playing in Unity then stopping
« Reply #14 on: April 01, 2014, 08:53:08 PM »
I am running into this problem as well. Global variables are stuck to what they were when I stopped the game previously (not pause).