Playmaker Forum
Bug Reporting => PlayMaker Bug Reporting => Topic started by: Gua on February 12, 2021, 04:30:32 AM
-
Unity 2018.4.31
v1.9.1.f7p3
Not sure how to reproduce it. Guess something got corrupted after the update.
I had similar issues with other FSMs.
-
-
I've tried many different solutions. The only solution that worked. Is deleting all gameobject variables in this FMS, creating new ones and assigning those new variables to actions manually.
-
Iv seen that there are other threads about this as well, I thought that it was a rare issue that only I had but i guess that's not the case. Would be amazing if there could be a hotfix to address this!
-
Do you have a reliable way to reproduce? Can you try the 1.9.1.p4 beta? It has a fix that might address this, but I'm unable to reproduce here to test it.
-
Do you have a reliable way to reproduce? Can you try the 1.9.1.p4 beta? It has a fix that might address this, but I'm unable to reproduce here to test it.
Hi Alex!
I have not a reliable way to reproduce, sadly. But it seems to be connected to prefabs within prefabs, and global variants. It is almost always a global variant that has been swapped out to another global variant. Sometimes it happens when I copy actions inside a prefab, and sometimes it just happens.
I tired the beta but the issue still remains. In the old patch the issue went away when I restarted unity but but it does not fix it any more.
So right now I am stuck. The variable looks good in prefab mode, but when I look at the variable in the editor after, it has magically swapped to another global (It's exactly like if I pressed "edit instance" and changed the variable, except... I have not done that. I even have "confirm editing prefab instances" checked in the settings to avoid have editing a prefab by mistake.
-
This is the same issue I have reported before. It happens when you copy actions in prefabs while using global variables inside the prefab. It's easy to reproduce.
-
This is the same issue I have reported before. It happens when you copy actions in prefabs while using global variables inside the prefab. It's easy to reproduce.
Okey Wow! I have had a really hard time figuring out when it happens, great to know how I should avoid it thanks for the info mate!
Would be amazing if this bug would be fixed in the near future because it is giving me a lot of headache
-
The recommendation is actually to not use global variables at all. I think it is something that has bugged Playmaker for a long time and seems it's not possible to be fixed. But yeah, seems that last update made things even worse.
I have my main template built with global variables which is why I still use them, but I think I won't get around to replace all those with local variables at one point. I think global variables should be blocked completely in Playmaker. That would save new users many headaches. I almost quit Playmaker when I started to run into these issues. It makes Playmaker feel very unstable and overall a bad user experience.
And variables being replaced is annoying but it can go even further with the global variable file getting corrupted. There is another thread on here about this. So make sure to always run backups or even better, use versioning control.
-
The recommendation is actually to not use global variables at all. I think it is something that has bugged Playmaker for a long time and seems it's not possible to be fixed. But yeah, seems that last update made things even worse.
I have my main template built with global variables which is why I still use them, but I think I won't get around to replace all those with local variables at one point. I think global variables should be blocked completely in Playmaker. That would save new users many headaches. I almost quit Playmaker when I started to run into these issues. It makes Playmaker feel very unstable and overall a bad user experience.
And variables being replaced is annoying but it can go even further with the global variable file getting corrupted. There is another thread on here about this. So make sure to always run backups or even better, use versioning control.
Yeah we only run 4 globals in the whole project, the 2 main characters and 2 "gamebrains" that keep all the logic between different levels. It saves us a lot of time and hassle to use global for them, but I have also read that they should be avoided as much as possible.
-
This is the same issue I have reported before. It happens when you copy actions in prefabs while using global variables inside the prefab. It's easy to reproduce.
I must have missed this! Would love to be able to reproduce this issue reliably.
Are you seeing this in 1.9.1p3? Do you have access to the 1.9.1p4 beta?
-
This is the same issue I have reported before. It happens when you copy actions in prefabs while using global variables inside the prefab. It's easy to reproduce.
I must have missed this! Would love to be able to reproduce this issue reliably.
Are you seeing this in 1.9.1p3? Do you have access to the 1.9.1p4 beta?
Even though you did not ask me I can just say that I have the 1.9.1p4 beta and I still have all theses issues.
-
Christoph sent me a very useful project. I'm hoping to have a new 1.9.1p4 build with a fix up shortly...
-
Christoph sent me a very useful project. I'm hoping to have a new 1.9.1p4 build with a fix up shortly...
Amazing!
-
Fingers crossed! :)
-
Christoph sent me a very useful project. I'm hoping to have a new 1.9.1p4 build with a fix up shortly...
Hi Alex!
Saw that there was a line regarding something like this in the patch notes. Just wanted to know if the fix in the patch was aimed at this? Do you guys think you fixed the bug now? Would be nice to know so I can keep my eyes open if I encounter the bug again and report report it!
(Awsome work!)
-
Yes, I'm hoping the bug is fixed in the latest patch. However, the bug was difficult to reproduce as an automated test so this is based on manual testing. So yes, please report it if you see it again! Thanks!
-
Yes, I'm hoping the bug is fixed in the latest patch. However, the bug was difficult to reproduce as an automated test so this is based on manual testing. So yes, please report it if you see it again! Thanks!
Great, will keep my eyes peeled!
-
Bad news!
I have been working the entire day on a prefab (this time without global variables) and the bug is back.
It started with one action, then suddenly more of those were affected and now the prefab is completely corrupted. No matter what I do, I can't make it work again. Not even by replacing the states, because I replace one and the error appears in an another.
I think this time it happened after I added another variable in the variable tab that then sorted the entire list alphabetically and this fucked it up. Can't say for sure. But damn, the bug is still here.
-
Are you using the latest 1.9.1p5? p5 fixes another edge case where this can happen.
EDIT: Either way, can you send me the prefab?
-
I am using p4. Will try p5 now thanks.
I was able in the end to make the prefab work again. I had to replace the actions with new ones, and in one case I had to replace the entire state with a new one (and new actions in it).
It was like a chain reaction. I fixed one action, then the next one gave error etc. But at one point I had all wrong variables fixed and it was working again.