Map2dif_plus options?
by Neil Marshall · in Torque Game Engine · 11/07/2005 (6:46 am) · 0 replies
I'm modifying map2dif_plus slightly and I noticed one thing with the usage screen. The top line lists -e as being an option
"Usage: map2dif [-s] [-l] [-h] [-e] [-o outputDirectory] [-t textureDirectory].map"
but nowhere does it list what it does. Is this just a bug?
Also I've added my own function and I was wondering if anyone else would be interested in the source code for it or if GarageGames would be interested in including it.
Normally Map2Dif_plus checks to see if you have valid texturemaps and if it can't find them, it just exits. What I've done is added a switch to allow you to turn that off so that if it can't find the texturemap it tries to load default.jpg before it exits. That way you can append information to areas in your dif.
For example in my program I'm applying textures with a number after them, so concrete_25 and concrete_10 would pass through map2dif and in my engine I have a special function in the dif loading code which strips that number off and both objects get the texture called concrete.jpg but I now have unique numbers associated with those faces for me to manipulate.
Would anyone else be interested in this patch?
"Usage: map2dif [-s] [-l] [-h] [-e] [-o outputDirectory] [-t textureDirectory]
but nowhere does it list what it does. Is this just a bug?
Also I've added my own function and I was wondering if anyone else would be interested in the source code for it or if GarageGames would be interested in including it.
Normally Map2Dif_plus checks to see if you have valid texturemaps and if it can't find them, it just exits. What I've done is added a switch to allow you to turn that off so that if it can't find the texturemap it tries to load default.jpg before it exits. That way you can append information to areas in your dif.
For example in my program I'm applying textures with a number after them, so concrete_25 and concrete_10 would pass through map2dif and in my engine I have a special function in the dif loading code which strips that number off and both objects get the texture called concrete.jpg but I now have unique numbers associated with those faces for me to manipulate.
Would anyone else be interested in this patch?