Playmaker Forum
Bug Reporting => PlayMaker Bug Reporting => Topic started 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.
-
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
-
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.
-
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.
-
You can't rename the Assets folder. All project assets must be under it.
You should have Assets/Digital Assets/etc..
-
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.
-
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.
-
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.
-
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
-
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.
-
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
-
thank you very much! Glad it was an easy fix.
-
I am experiencing the exact same problem. Only I cannot save templates at all anymore.. This was fine prior to the previous update, though.
-
Hi,
you got different behavior when saving template on the very same project folder path?
Bye,
Jean