playMaker

Author Topic: Some Templates are broken after import  (Read 2325 times)

MaxEstry

  • Playmaker Newbie
  • *
  • Posts: 4
Some Templates are broken after import
« on: May 28, 2023, 02:06:11 PM »
Hello!

Exported Package of Templates from one project and imported them into new one (asset vise the are same) and some Templates have "The associated script can not be loaded".

Even if I reassign script manually - Template just becomes blank.
See attachment.
Please help.

Unity 2021.3.23f1
Playmaker 1.9.6.f1

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7623
    • jinxtergames
Re: Some Templates are broken after import
« Reply #1 on: May 28, 2023, 02:18:36 PM »
Hi.
Do you have some red errors in your console?

MaxEstry

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Some Templates are broken after import
« Reply #2 on: May 28, 2023, 02:21:17 PM »
Hi.
Do you have some red errors in your console?

No errors whatsoever.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7623
    • jinxtergames
Re: Some Templates are broken after import
« Reply #3 on: May 28, 2023, 02:24:42 PM »
Strange, as the waring show that it can not be loaded due to compiler error

one thing, if you use templates from another project and you used custom actions in it, you need to have those actions in the target project

MaxEstry

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Some Templates are broken after import
« Reply #4 on: May 28, 2023, 02:47:47 PM »
Strange, as the waring show that it can not be loaded due to compiler error

one thing, if you use templates from another project and you used custom actions in it, you need to have those actions in the target project

Here is an example of one of broken ones - "Reachable".
It is very simple as you can see.

If create new Template (in old project) of two empty states connected with one FINISHED transition and import it to new project - it is broken as well.

UPD: If I Export/Import that new one with all of them - broken ones are still the same (including this new one)
+: If i rename/duplicate one of broken ones in old project - they will be broken too
+: "Building" Template is completely empty with lots of variables (I use it as a storage) and it is broken too - so it is definitely not actions in these FSMs

UPD2: Tried to import them into completely fresh project with only Playmaker installed and same ones are broken in same way
« Last Edit: May 29, 2023, 07:15:22 AM by MaxEstry »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7623
    • jinxtergames
Re: Some Templates are broken after import
« Reply #5 on: May 29, 2023, 08:40:58 AM »
Hi.
I will ping Alex.

Meanwhile you could try to set a fsm in a 'scene' (not as template)
Then copy that scene to the new project and make a template there if needed

MaxEstry

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Some Templates are broken after import
« Reply #6 on: May 29, 2023, 01:35:05 PM »
Hi.
I will ping Alex.

Meanwhile you could try to set a fsm in a 'scene' (not as template)
Then copy that scene to the new project and make a template there if needed

Thanks a lot!
I could not come up with a solution because of frustration. It should definitely help. You literally made my day :)

I'm totally open for future investigation, if it is necessary for Playmaker team.