![]()
With the questions swirling around Cascade Crossings, the tsection.dat files, etc., I realized I didn't know of any simple way to find out how many objects, distinct object files, and distinct texture files were needed at any given point of a route. And as a route designer, perhaps I should. Which lead to an idea for a utility that counts such data and reports it. Does anyone else see value in that or is this an exercise in useless numbers?I think it would work (in very general terms) along these lines:While not at end of world file list,
Open next world file
Read a world file rows, counting the objects and distinct object filenames, saving the two sums in an array.
endwhileWhile not at end of array
increment pointer
add count of objects(this tile) + count of objects (tile to left) etc. for all this one and all 8 adjacent tiles. Ditto for filenames. Report sum.
endwhileA more sophisticated version might be able to calculate the number of distinct texture files for the 9 tiles and maybe even the sum of polys.Well that's the idea anyway. Now the problem: I'm not a coder, so this might just be a pipe dream. I'd certainly be willing to work with anyone who wants to code this tho.Dave NelsonWP mainline, Oakland-Stockton: 100% complete;
SP mainline, Oakland-Stockton: 20% complete;
Aug 1950 
<<new .sig under construction>>
Printer-friendly page | Edit | Reply | Reply With Quote | Top
RE: Utility Idea, NS4Life, Nov-20-04, 02:42 PM, (1) RE: Utility Idea, MikeSimpson, Nov-20-04, 06:31 PM, (2) RE: Utility Idea, muskokaandtahoe, Nov-20-04, 08:23 PM, (3) RE: Utility Idea, MikeSimpson, Nov-20-04, 09:51 PM, (4) RE: Utility Idea, Br5an, Nov-21-04, 10:17 AM, (5) RE: Utility Idea, MikeSimpson, Nov-21-04, 06:07 PM, (6) RE: Utility Idea, RMapplebeck, Nov-22-04, 04:34 AM, (10) RE: Utility Idea, Br5an, Nov-22-04, 02:45 PM, (11) RE: Utility Idea, RMapplebeck, Nov-22-04, 11:26 PM, (12) RE: Utility Idea, muskokaandtahoe, Nov-21-04, 06:09 PM, (7) RE: Utility Idea, MikeSimpson, Nov-21-04, 06:51 PM, (8) RE: Utility Idea, Br5an, Nov-22-04, 03:34 AM, (9)
Conferences | Topics | Previous Topic | Next Topic

