LarryG on 6/2/2011 at 22:51
If you wish to find all objects, books, and meshes used in your mission, follow the steps in this .bat file after you have installed (
http://goldsla.fileave.com/Tools/chkmissNV.exe) chkmissNV.
Code:
@echo off
REM To find all custom objects:
REM 1) open the mission in DromEd and enter the following commands:
REM hilight_obj_type -1
REM hilight_add_prop ModelName
REM 2) Save as Miss25.MIS to the Thief directory
REM 3) Exit DromEd
REM 4) Run this program
REM
REM To find all custom textures (PCX or GIF):
REM 1) Save as Miss25.MIS to the Thief directory
REM 2) Exit DromEd
REM 3) Run this program
REM
move obj hide-obj
chkmissNV Miss25.mis > Chkmiss-Objects.txt
move hide-obj obj
move mesh hide-mesh
chkmissNV Miss25.mis > Chkmiss-Meshes.txt
move hide-mesh mesh
move books hide-books
chkmissNV Miss25.mis > Chkmiss-Books.txt
move hide-books books
move fam hide-fam
chkmissNV Miss25.mis > Chkmiss-Textures.txt
move hide-fam fam
Pause
I am working on a little Excel program to combine the results from (
http://goldsla.fileave.com/Tools/BinSkinsCSV.zip) BinSkinsCSV and (
http://goldsla.fileave.com/Tools/chkmissNV.exe) chkmissNV. It will provide you with a list of bins and associated textures used by the mission, allowing you to clean up your obj, mesh, and books directories, if, like me, you got sloppy and didn't keep them limited to what you actually needed. :tsktsk:
Edit: It looks like I was a bit premature on the Books directory. It reports the books texts used, but not the custom book art. Oh well. You can use the book texts indicated to look up the book art manually.
Edit2: I'm nearly done with the Excel program. All I have left to do is to implement a progress meter so that you won't think the program has stopped working if you are like me and have huge numbers of objects to be processed. In writing this program I think I discovered that (
http://goldsla.fileave.com/Tools/BinSkinsCSV.zip) BinSkinsCSV does not work with either book .bins or mesh .bins, despite the documentation that implies that it will. :( Fortunately you are likely to have manageable numbers of these and can check them out by hand. I need to check this out in more detail.
LarryG on 8/2/2011 at 21:21
Here is the Excel tool to merge the textures reports with the objects used reports.
REMOVED - See updated tool below
Alternate download
REMOVED - See updated tool below
It turns out that BinSkinsCSV does not traverse sub-directories looking for bins, despite the documentation that says it does. You have to have a copy in your OBJ directory and in your MESH directory and run each separately to get both analyses. It makes no sense to use it in BOOKS.
LarryG on 20/6/2011 at 01:01
Here is a fixed and updated Excel tool to merge the textures reports with the objects used reports. (There was an error in the algorithm which caused the 1st texture used to be omitted.)
In addition I wrote a little Excel VBA utility to scan a .mis file, extract all Model Names found in the ModelName list and then compare that list to the model names identified by chkmissNV. This is useful as a cross-check and also to identify any original models for which you may have created a custom "improved" version. These would not be found by chkmissNV. Since I don't have documentation for the .mis file structure, I had to deduce it by inspection, and I know I didn't find all used objects. But it is useful even if limited.
(
http://www.adrive.com/public/wurJcJ/ObjectTexturesUsed05.xlsb) ObjectTexturessUsed Excel 2007 tool
Alternate:
(
http://www.4shared.com/file/HyOKPV7N/ObjectTexturesUsed05.html) ObjectTexturessUsed Excel 2007 tool
Nameless Voice on 17/1/2017 at 19:41
An updated version of chkmiss which will now also find textures using any of the extra formats supported by NewDark (e.g. DDS, PNG, etc.)
It will also no longer complain about an object's model being missing if there is a matching bitmap in the /bitmap/ folder - before, any worldspace bitmap was generating a false error.
Finally, it will now give some usage instructions rather than just outputting nothing if you get the command wrong.
LarryG on 17/1/2017 at 22:05
Thank you!
Nameless Voice on 18/1/2017 at 02:10
Forgot to mention that the modified source file is included in the zip in case someone wants to make further modifications.
(Feel free to delete the source file if you just want to run the program.)