Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: larsmidnatt on September 13, 2015, 03:08:02 PM

Title: Can't Save Templates in subfolder (digital assets)[FIX PENDING]
Post by: larsmidnatt on September 13, 2015, 03: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.
Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: jeanfabre on September 14, 2015, 02:59:45 AM
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
Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: Lane on September 14, 2015, 07: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.
Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: larsmidnatt on September 16, 2015, 07: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.
Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: Lane on September 16, 2015, 07:12:37 PM
You can't rename the Assets folder. All project assets must be under it.

You should have Assets/Digital Assets/etc..
Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: larsmidnatt on September 16, 2015, 07: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.
Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: Lane on September 16, 2015, 07: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.
Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: larsmidnatt on September 16, 2015, 08: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.


Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: jeanfabre on September 19, 2015, 01:26:32 PM
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
Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: Alex Chouls on September 19, 2015, 02:23:44 PM
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.
Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: jeanfabre on September 21, 2015, 02:05:59 AM
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
 
Title: Re: Can't Save Templates in subfolder (digital assets)
Post by: larsmidnatt on September 21, 2015, 05:23:40 PM
thank you very much! Glad it was an easy fix.
Title: Re: Can't Save Templates in subfolder (digital assets)[FIX PENDING]
Post by: rakdosss on October 05, 2015, 07: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.
Title: Re: Can't Save Templates in subfolder (digital assets)[FIX PENDING]
Post by: jeanfabre on October 14, 2015, 08:54:54 AM
Hi,

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

Bye,

 Jean