Page 6 of 7

Re: DDS2DXT Bug

Posted: Thu Apr 13, 2006 5:57 pm
by Mr.Mouse
Kamshaft wrote:I found a bug with the DDS2DXT program.
It's crashes when it tries to conver this file.
That's because it's not a dxt file, but a dxg file!

Posted: Thu Apr 13, 2006 6:46 pm
by Mr.Mouse
Here's a new version with command line support.

Still win32 environment though, it's not a real command line program, but it'll work.

Read the readme.txt for details.

Posted: Thu Apr 13, 2006 8:55 pm
by dictator-duck
can someone tell me how to import the file into game. i cant seem to get it to work.

Re: DDS2DXT Bug

Posted: Thu Apr 13, 2006 8:58 pm
by Kamshaft
Mr.Mouse wrote:
Kamshaft wrote:I found a bug with the DDS2DXT program.
It's crashes when it tries to conver this file.
That's because it's not a dxt file, but a dxg file!
Seriously? It had the DXT file extention, strange....

Posted: Thu Apr 13, 2006 11:46 pm
by markthompson
I only sharpened the last pic

Posted: Fri Apr 14, 2006 2:04 am
by bruceatk
Thanks for making it command line capable.

Of course there is always "one more thing". It has one problem running it from the command line. It displays a message box before it finishes. I ran it on 1200 files. On around 150 or so it started getting errors, because I had 150 instances running with 150 message boxes.

How about a /s switch (silent) ? Does it return a return code if it fails?

Thanks,
Bruce

Posted: Fri Apr 14, 2006 7:10 am
by Mr.Mouse
Oh god, I had forgotten to remove that message box (it was only for debugging purposes)!!! :buck: I have removed it now. The program will return an errorcode if there are any.

Get the attached new version!

Posted: Fri Apr 14, 2006 1:02 pm
by Kamshaft
If I try to convert a non DXT file the program tells me that it's converted, there's no error message.

Might want to look into that.

Posted: Fri Apr 14, 2006 2:02 pm
by bruceatk
Thanks, I'll check it out tonight.

Bruce

Posted: Fri Apr 14, 2006 3:58 pm
by Mr.Mouse
Kamshaft wrote:If I try to convert a non DXT file the program tells me that it's converted, there's no error message.

Might want to look into that.
Well, making the program idiot-proof has not been my priority. That's a chore. And chores are done following the rule:

Code: Select all

If TotalTime>TimeNeededForImportantStuff & Satisfied(Relaxation)=True Then PerformChore(NextChore)
The readme states one can convert DXT2DDS and vice versa. It doesn't mention other files. ;)

Posted: Sat Apr 15, 2006 1:23 am
by bruceatk
Kam, How many non-dxt files to you have lying around with a dxt extension?

Mr. Mouse, I ran it on a directory of 601 DXT files and it successfully converted 552 of them. 49 files it did not create a DDS file for.

Bruce

Posted: Sat Apr 15, 2006 6:48 am
by Mr.Mouse
bruceatk wrote:Kam, How many non-dxt files to you have lying around with a dxt extension?

Mr. Mouse, I ran it on a directory of 601 DXT files and it successfully converted 552 of them. 49 files it did not create a DDS file for.

Bruce
That's interesting. Can you attach a few examples of those that were not converted?

Posted: Sat Apr 15, 2006 3:56 pm
by bruceatk
After playing with it some more about 40 of the files that it wasn't converting were random. I slowed down the process and it would then consistently convert the same files and not convert 10 of them. I guess you must be using a temp file that's the same name or something like that, so depending on how fast you run it it might be stepping on itself.

I slowed it down by moving the conversion into a seperate batch file and adding a check for errorlevel.

I've attached the 10 files that it doesn't convert. The files that I was converting are all from the vehicle texture part of MVA.

Bruce

Posted: Sun Apr 16, 2006 3:35 am
by Silver
Those are an Uknown type so it does not know what to do with it. 55

Data inside files looks pretty worthless to me :oops: (Images are no data)

Posted: Sat Apr 22, 2006 11:24 am
by Kamshaft
Seems like the dxt2dss converter has a bug, it seems to currupt the alpha channel, everything else is fine. Any ideas?