Thread: [TEC] SweetScape 010 Editor
View Single Post
Old 02-01-19, 03:26 PM   #55
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

OK. I lied on the ints needed.
You only need 1 int.


I'm going to introduce you to Arrays so you understand why I only need 1 int.

//------------------------------------------------
//--- 010 Editor Script File
// RAW to object file add in
// Adds the Faces
//
//------------------------------------------------
// all the code for Faces below

int f[5];
f[1]=10000;





for (f[2] = 0; f[2] < f[1]; f[2]++)
{

f[3]=(f[3]+1);
Printf("f %u/%u\n ", f[3], f[4]=(f[3]+100));

}





It's a cheat I'll admit. But allows a single Printf function to print the information with no corruption of data.

Last edited by Jeff-Groves; 02-01-19 at 03:47 PM.
Jeff-Groves is offline   Reply With Quote