• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AFC & AGT Files
#1
Hi,

I was wondering if it would be possible to access the information in the AGT & AFC files without having to load them in a FFX shader?
I tried to open the binary files with Python, but unfortunately, it doesn't work.

Thanks
  Reply
#2
I have another question regarding the keys

We can get their color but not their position.
Any way to get them?

BTW, in the help file you wrote
NumKeys with 2 s
Quote:index = 0... NumKeyss()-1

Thanks

Ruben
  Reply
#3
Hello,

Thanks for noticing the typo !
I will add function to get color key position for next version.

Here is the colde to load .agt files.

Code:
WORD lver;
int mode;

fread(&lver,sizeof(WORD),1,file);
fread(&mode,sizeof(mode),1,file);

        fread(&nKeys,sizeof(int),1,file);
            
        for ( i=0; i < nKeys; i++ ){

            Color color;
            float pos, tens, cont, bias, eFrom, eTo;

            fread(&color,sizeof(Color),1,file);
            fread(&pos,sizeof(float),1,file);
            fread(&tens,sizeof(float),1,file);
            fread(&cont,sizeof(float),1,file);
            fread(&bias,sizeof(float),1,file);
            fread(&eFrom,sizeof(float),1,file);
            fread(&eTo,sizeof(float),1,file);
        }

Thank you.

Kresimir
  Reply
#4
Hi Kresimir

Thanks a lot. Appreciate for it. Smile

Ruben
  Reply
#5
You're welcome !
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)