![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
07-28-23, 02:47 PM
|
#27 |
|
GLOBAL MODDING TERRORIST
|
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(); Last edited by Jeff-Groves; 07-28-23 at 02:58 PM. |
|
|
|
|
