Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: Need help fixing a broken file  (Read 2738 times)

AnimalCrosser5

  • Newbie
  • *
  • Posts: 14
    • View Profile
Need help fixing a broken file
« on: December 22, 2009, 09:35:10 pm »

I saved this last night, but now it's broken. This has also happened with other files, too. I was wondering if someone could help debug it, or gived me the resources to fix it myself. I'd like to know what to do in the future if this happens again.
Logged

lynn22

  • Sr. Member
  • ****
  • Posts: 591
    • View Profile
    • 3D Animation
Re: Need help fixing a broken file
« Reply #1 on: December 22, 2009, 10:02:34 pm »

Here's your file back. Two/three very small meshes had to be deleted to make it work again,  I don't know which ones but you'll soon see, at least it's opening again  ;)
Logged

AnimalCrosser5

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Need help fixing a broken file
« Reply #2 on: December 22, 2009, 10:12:08 pm »

Thanks a lot. How do you debug the files?
Logged

lynn22

  • Sr. Member
  • ****
  • Posts: 591
    • View Profile
    • 3D Animation
Re: Need help fixing a broken file
« Reply #3 on: December 22, 2009, 10:52:39 pm »

You open the *.an8 file in a simple text editor and check the faces section of each mesh for lines that look like this :

 faces {
      4 4 0 -1 ( (0 -3) (2 -3) (3 -3) (1 -3) )
      4 4 0 -1 ( (0 -3) (2 -3) (3 -3) (1 -3) )
    }

the -3 numbers between brackets should not be there

The correct faces section of a good mesh looks like this :

faces {
      3 1 0 -1 ( (1) (0) (2) )
      3 1 0 -1 ( (2) (0) (3) )
    }

BTW  I have never tried removing the -3s from the respective lines,  I'm going to try that now and see if the corresponding mesh can be preserved.

Logged

lynn22

  • Sr. Member
  • ****
  • Posts: 591
    • View Profile
    • 3D Animation
Re: Need help fixing a broken file
« Reply #4 on: December 22, 2009, 11:07:05 pm »

Actually, I just tried a couple of things and removing the minus " - " from the -3 makes the whole file readable again without the loss of any meshes, so here's your complete file again.
Logged

ENSONIQ5

  • Sr. Member
  • ****
  • Posts: 925
    • View Profile
    • Mission Backup Earth
Re: Need help fixing a broken file
« Reply #5 on: December 23, 2009, 12:21:00 am »

Nice work Lynn22!
Logged

AnimalCrosser5

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Need help fixing a broken file
« Reply #6 on: December 23, 2009, 01:43:50 am »

That's awesome. I don't know what I do that makes the file break, but I did it again. I'll try debugging them myself in the future. Thanks a lot for your help. Does anyone have any clue why the files are breaking so often?
Logged

lynn22

  • Sr. Member
  • ****
  • Posts: 591
    • View Profile
    • 3D Animation
Re: Need help fixing a broken file
« Reply #7 on: December 23, 2009, 08:08:31 am »

Thanks ENSONIQ5

AnimalCrosser5 you're welcome :)

I don't know either what makes a file break but I did notice that if it breaks once it has a tendancy to break again therefore I tend to work with 2 files of the same project; 1 - filename.an8 and 2 - filename_bu.an8 and save alternately.
Logged

ADSohr

  • Full Member
  • ***
  • Posts: 181
    • View Profile
    • CGForStarters - An animation club
Re: Need help fixing a broken file
« Reply #8 on: December 23, 2009, 05:56:28 pm »

i have a very similer problem, but i checked for the "-" signs that you specified but did not find any under "faces". it's a huge file though.

are there any tutorials on this subject? especially since it seems common
Logged

lynn22

  • Sr. Member
  • ****
  • Posts: 591
    • View Profile
    • 3D Animation
Re: Need help fixing a broken file
« Reply #9 on: December 23, 2009, 06:45:58 pm »

ADSohr if you have a huge broken file, did you try using the search function of your text editor to find each occurrence of " faces { " (without the quotes) ?

It is easy enough to overlook one mesh and it might just be the one with the minus in it ;)
Logged