View Single Post
Old 07-28-23, 02:47 PM   #27
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,321
Downloads: 130
Uploads: 0


Default

I can tell you that some text files do NOT show all the settings in the off files.
So may need to re-export all the text files.

Format on export is done. Just need to convert the byte to a string character and then is all good.

A glimpe at the script..........

string f;
int k=3, i, c[3], y, x, h, w, sIndex;
ubyte l;
char W[40], sFile[];
//Start the code
OutputPaneClear();
sFile = InputOpenFileName("Select File", ("*.off | *.txt"));
sIndex = FileOpen(sFile);

f = FileNameGetBase(sFile, false) + ".off";
Printf("%s \n", f);//test for file name
Printf("Nb.char HSep VSep \n");
for( i = 0; i < k; i++)
{
c[i] = ReadInt();
FSkip(4);
}
Printf( " %i %i %i \n", c[0], c[1], c[2]);
Printf("Char x y width height \n");
for( i = 0; i < c[0]; i++)

{
l = ReadUByte();
__________________
I don't do Stupid. So don't ask.

Last edited by Jeff-Groves; 07-28-23 at 02:58 PM.
Jeff-Groves is offline   Reply With Quote