View Single Post
Old 07-28-23, 08:58 PM   #28
Bartholomew Roberts
Bosun
 
Join Date: Sep 2021
Posts: 69
Downloads: 107
Uploads: 2
Default

Quote:
Originally Posted by Jeff-Groves View Post
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();
Shouldn't there be tab between letters&numbers?And is there a way to insert a equipment or upgrade and batch rename the item number behind?
Bartholomew Roberts is offline   Reply With Quote