playMaker

Author Topic: Can't Save Templates in subfolder (digital assets)[FIX PENDING]  (Read 3348 times)

larsmidnatt

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Can't Save Templates in subfolder (digital assets)[FIX PENDING]
« on: September 13, 2015, 12:08:02 PM »
After a bit of testing I have figured out why I can't save templates and have a work around. I am hoping it's not impossible for a real fix at some point.

I keep all my artwork, photos, digital books etc in a folder called "Digital Assets".

When playmaker tries to save a template it sees "Assets" and gets confused and can't save. The error message is what gave me the clue it says

Creating asset at path Assets/GameProjects/FirstPersonTest/Assets/template 4.asset failed.

It is not actually in Assets/GameProjects/FirstPersonTest but "Digital Assets/GameProjects/FirstPersonTest"

I don't want to restructure my folders for this..for now I'll keep the project outside the normal folder but it's easier to keep track of things and automate backups when they follow my designated folder structure.
« Last Edit: September 23, 2015, 07:17:52 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14684
  • Official Playmaker Support
    • View Profile
Re: Can't Save Templates in subfolder (digital assets)
« Reply #1 on: September 13, 2015, 11:59:45 PM »
Hi,

A Template can not be saved outside the Assets folder, a Template is using a "unityObject" to serialize data and that only works within the Unity Assets folder. Correct me if I am wrong, it would be good of course to have freedom of choosing where to save assets.

What solution are you using for auto backup? you should be using Github ( at least I strongly suggest you do), and then anything gets backup in a proper historical and retrievable manner.

Bye,

 Jean

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Can't Save Templates in subfolder (digital assets)
« Reply #2 on: September 14, 2015, 04:16:16 AM »
Can't save outside the project Assets folder. Typically if you want to do it that way you'll just save it in the local project /Assets/ then move it manually to your archive folder later.

The Assets folder should never be renamed.

larsmidnatt

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Re: Can't Save Templates in subfolder (digital assets)
« Reply #3 on: September 16, 2015, 04:00:24 PM »
No, I am not saving outside the assets folder.

My Unity project is in a path where the root folder is "Digital Assets". When playmaker is trying to save it is getting confused and interpreting the first folder "digital assets" as "assets" which results in the errors.

Folder Structure
Digital Assets/GameProjects/FirstPersonTest

FirstPersonTest is the unity project folder, i highlighted it with a glow. When I try to save into the asset folder inside of the FirstPersonTest/Asset folder I get the following error.

Creating asset at path Assets/GameProjects/FirstPersonTest/Assets/template 4.asset failed.


It should be trying to save to
Digital Assets/GameProjects/FirstPersonTest/Assets/template 4.asset
Not
Assets/GameProjects/FirstPersonTest/Assets/template 4.asset

I put a glow around the unity folder for clarity.
« Last Edit: September 16, 2015, 04:07:48 PM by larsmidnatt »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Can't Save Templates in subfolder (digital assets)
« Reply #4 on: September 16, 2015, 04:12:37 PM »
You can't rename the Assets folder. All project assets must be under it.

You should have Assets/Digital Assets/etc..

larsmidnatt

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Re: Can't Save Templates in subfolder (digital assets)
« Reply #5 on: September 16, 2015, 04:21:13 PM »
You can't rename the Assets folder. All project assets must be under it.

You should have Assets/Digital Assets/etc..

Thanks, but as I have said, I am not trying to rename the assets folder. The assets folder inside of the Unity project folder is unchanged. Digital Assets is a folder is not specific to Unity or games. As I mentioned the unity folder was deeper in the folder structure.

Digital Assets/GameProjects/FirstPersonTest/Assets/template 4.asset

The highlighted area is specific to this Unity project. FirstPersonTest is the Unity project folder. Playmaker should not be concerned the the folders above it.

Playmaker is confusing Digital Assets with the Unity Assets folder, which is causing the problem.

I should be able to nest my top level unity project folder anywhere I like. What is inside the unity game project folder meets the needs of the tool, so nothing else should be required.

As you can see from the error message, it is trying to save into a folder that does not exist.

I speculate the software sees "Assets", even "Digital Assets" as a unity folder even though that is not the case.
« Last Edit: September 16, 2015, 04:25:32 PM by larsmidnatt »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Can't Save Templates in subfolder (digital assets)
« Reply #6 on: September 16, 2015, 04:53:16 PM »
Ahh I see, sorry I missed that.

Have you tried renaming the digital folder to something random to see if it corrects the issue? Not sure why it would be seeing "Digital Assets" == "Assets"... Normally it uses "<path to project folder>/Assets" to access anything in the Project.

larsmidnatt

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Re: Can't Save Templates in subfolder (digital assets)
« Reply #7 on: September 16, 2015, 05:07:02 PM »
No worries, glad we are on same page now.

I have tried DigitalAssets, without the space, same issue.

I tried DigitaAsse, and it works. I do believe it is the word Assets that confuses it.



jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14684
  • Official Playmaker Support
    • View Profile
Re: Can't Save Templates in subfolder (digital assets)
« Reply #8 on: September 19, 2015, 10:26:32 AM »
Hi,

 Yep, It's likely that to parse the full file path back, it searches for the "Assets" keyword in the path and detects this one instead of the actual project asset folder.

Bye,

 Jean

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Can't Save Templates in subfolder (digital assets)
« Reply #9 on: September 19, 2015, 11:23:44 AM »
This should be fixed in 1.8. Jean, if you get a chance can you verify? larsmidnatt PM me if you want access to the beta.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14684
  • Official Playmaker Support
    • View Profile
Re: Can't Save Templates in subfolder (digital assets)
« Reply #10 on: September 20, 2015, 11:05:59 PM »
Hi,

 Yep, I can confirm this, I created a project within a path with a Parent folder called "Digital Assets" and it worked. Saving templates works fine.

 Bye,

 Jean
 

larsmidnatt

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Re: Can't Save Templates in subfolder (digital assets)
« Reply #11 on: September 21, 2015, 02:23:40 PM »
thank you very much! Glad it was an easy fix.

rakdosss

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: Can't Save Templates in subfolder (digital assets)[FIX PENDING]
« Reply #12 on: October 05, 2015, 04:13:30 AM »
I am experiencing the exact same problem. Only I cannot save templates at all anymore.. This was fine prior to the previous update, though.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14684
  • Official Playmaker Support
    • View Profile
Re: Can't Save Templates in subfolder (digital assets)[FIX PENDING]
« Reply #13 on: October 14, 2015, 05:54:54 AM »
Hi,

 you got different behavior when saving template on the very same project folder path?

Bye,

 Jean