playMaker

Author Topic: Duplicate variable listed?[SOLVED]  (Read 2982 times)

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 234
    • Haven Made
Duplicate variable listed?[SOLVED]
« on: February 12, 2018, 10:46:10 AM »
Can't figure out what exactly caused this.

While editing the category of a local variable on an object there now appears to be two of the same variable?

Is there any way I can fix this on the FSM and not have to make a new one? This ended up causing prefab problems on another object (where adding new variables would overwrite any other similar variable).



Looking for some direction!

-craigz
« Last Edit: February 21, 2018, 01:49:08 AM by jeanfabre »

omgitstri

  • Playmaker Newbie
  • *
  • Posts: 46
    • My Prototypes
Re: Duplicate variable listed?
« Reply #1 on: February 14, 2018, 03:16:24 PM »
Hello,

This happened to me before, it always happens whenever I copy a state from one FSM to another FSM.

I hope this repro step helps.

Tri Nguyen
Tri Nguyen
Game Designer at Nvizzio Creations

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Duplicate variable listed?
« Reply #2 on: February 15, 2018, 12:42:32 AM »
I don't think that should happen at all, you should send a bug report.
Available for Playmaker work

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Duplicate variable listed?
« Reply #3 on: February 15, 2018, 02:15:15 AM »
Hi.
That should not happen indeed.
What unity / playmaker versions are you using?

To send a bug report : in unity go to Playmaker/tools/submit bug report

omgitstri

  • Playmaker Newbie
  • *
  • Posts: 46
    • My Prototypes
Re: Duplicate variable listed?
« Reply #4 on: February 15, 2018, 02:10:12 PM »
When it was happening to me I was on 2017.1, I've switched to 2017.3 a while back and haven't noticed it in a while. If this is still occurring I'll file a bug.
Tri Nguyen
Game Designer at Nvizzio Creations

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Duplicate variable listed?
« Reply #5 on: February 15, 2018, 02:44:50 PM »
Hi.
Good to hear.
What playmaker version are you using?

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 234
    • Haven Made
Re: Duplicate variable listed?[SOLVED]
« Reply #6 on: March 02, 2018, 02:07:30 PM »
I'm currently on 1.8.9 and Unity 2017.3.0f3 and having this issue - indeed it might be something from copying variables/actions with those variables into another FSM. Haven't been able to reliably reproduce it yet though. But I've had this issue since maybe 1.8.5? Around the update that brought in categories.

Also worth noting that a byproduct of this is when you create a new variable of that type, it will sometimes shift ALL your variables values of that type up if that makes sense.

example:

Bool1 - false
Bool2 - true
Bool3 - false

Create new variable called Bool0 and this happens

Bool0 - false
Bool1 - true
Bool2 - false
Bool3 - false

Super annoying, makes me perpetually scared to create variables for fear of having to go through my prefabs and re-set them again xD

Deleting all the variables, then remaking them doesnt solve this either. Neither does reverting the prefab (I had thought at first it was an prefab-edit slip).

Would love to figure out a course of action for this please :)

best,

craigz

« Last Edit: March 02, 2018, 02:16:43 PM by craigz »