found this code also but dont see where you set the dds type?
(define (convToDDS pattern)
(define filelist (cdr (file-glob pattern 1)))
(define filelist (car filelist))
(while (not (null? filelist))
(define filename (car filelist))
(define image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
(define drawable (car (gimp-image-get-active-layer image)))
(define filename (string-append (substring filename 0 (- (string-length filename) 3)) "dds"))
(file-dds-save RUN-NONINTERACTIVE image drawable filename filename 1 1 0 0 -1 0 0 )
(set! filelist (cdr filelist))))
i know its 7 for rxgb
(define (convToDDS pattern)
(define filelist (cdr (file-glob pattern 1)))
(define filelist (car filelist))
(while (not (null? filelist))
(define filename (car filelist))
(define image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
(define drawable (car (gimp-image-get-active-layer image)))
(define filename (string-append (substring filename 0 (- (string-length filename) 3)) "dds"))
(file-dds-save RUN-NONINTERACTIVE image drawable filename filename 1 1 0 0 -1 0 0 )
(set! filelist (cdr filelist))))
i know its 7 for rxgb