playMaker

Author Topic: Template .dat Assistance  (Read 1879 times)

geoquav

  • Playmaker Newbie
  • *
  • Posts: 14
Template .dat Assistance
« on: December 17, 2015, 11:06:19 PM »
Long story short, I modified my template and ruined it without realizing it. The closest backup is 4 days old and too much work has been done in that amount of time for me to attempt to redo it quickly.

I was able to pull the raw .dat file from an Archived Data folder but am having serious issues trying to re-apply it to a Template in the engine. I keep ending up with errors regarding too many bytes expected. I have tried manipulating existing Templates and even recreating new ones and adding it with no luck.

I'm hoping someone here can shed a light on what I'm doing wrong or if it is even possible to salvage what I have. I have attached the .dat in question and if you open it in Notepad you can see what is to be expected from a template...all except the header.

Thanks, and hope to hear from someone...anyone, soon.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Template .dat Assistance
« Reply #1 on: December 18, 2015, 02:25:19 AM »
Hi,

 I am not sure I follow how this .dat fits into a Unity Project.

A PlayMaker template is a Unity Asset so you should have a file called "MyTemplate.asset". This is what you need to extract from your backup.

 Also, Please make use of Github and sourcetree to maintain your backups for your project, it will really save you time and be a strong and flexible backup system for granular recovery.


 Bye,

 Jean

geoquav

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Template .dat Assistance
« Reply #2 on: December 18, 2015, 08:53:29 AM »
Thanks for the quick response and sorry for the confusion. I got the .dat from a program to extract files from a Unity Game, not my backup folder. I grabbed my latest build and basically opened it up to try and find my template. All I could recover was the .dat file. Which is basically the .asset file but it is missing the header that the .template requires.

Thanks for the advice on the backup sites, I am working on putting it into place now. It was a mistake on my part and I was just curious if I could salvage it.