Help With Project of auto converter (already somewhat got resizing the images)

Discussion in 'Skyrim Modding' started by Asher, Feb 15, 2014 with 1 replies and 764 views.

  1. Asher

    Asher Newbie

    Messages:
    2
    Ratings:
    0
    Hi to all

    Ive been working on converting several huge mods such as immersive armors,weapons,creatures and well quite plainly it take too damn long to go through resize every image and fix every mesh! So before i go into the dark ages spending hours on end working on projects like this. I figured hey how much easier would it be to have programs do it for me!..... well alot [​IMG]

    And it can.... at least partially theres a program called Ordenador and with the modified ini it works great to automatically without extracting the bsa or anything else search through a bsa and cut every texture higher than 512X512 in half run it on the same file a couple of times and your left with nothing higher than 512X512, but thats the thing it needs to be 256X256 to work all the time and that doesnt change the issue with the meshes!

    So thats where people who know what theyre doing come in So if anybody would be willing to help out on maybe writing a little script or something that would:

    change the limit from 512X512 to 256X256 in Ordenador

    then link it to nifskope directly afterwords and set it to automatically go through the meshes

    then set all of them to go to NiTriData then Num UV sets

    and then set the option in the command as to leave it alone if its already set to 0 and if its set to 1 set it to 4097

    This would result in THE ULTIMATE CONVERTER 50001.47635 [​IMG] idk but if you have the skills please help id love to see this happen. I would also be willing to help in anyway possible

    (for those more curious bout the Ordenador its on nexus and it has all the DXT5 MipMaps options youd need just needs the limit to be changed to 256X256!)

    ([{Progress- poked around the .ini and the option for the size being 256 is in there in fact he give you the command sorta but just cant seem to get it right if you can take a look itd be much appreciated!

    orig .ini-
    Last_Folder = C:\Program Files\Steam\steamapps\common\Skyrim\
    Last_Folder = D:\Textures\Real Ice ALL-IN-ONE Installer by morpheas768-5388-V3\
    Last_Folder = D:\Textures\Armory512 Glass Realistic Transparent v2-0\
    Last_Folder = D:\Textures\Alternative Rocks n Mountains v2\
    Backup = No
    Keep_DateTime = True
    Multitask = 4
    ================================================================================
    BSA_Compress = NIF KF HKX TRI DDS BMP TGA PNG STRINGS XML PEX PSC CFG TXT DOC
    BSA_NoCompress = WMA WAV FUZ xwm OGG MP3 MP4 MPG MPEG AVI FLV WMV BIK JPG JPEG ZIP RAR Z 7Z
    ================================================================================
    [COMMON]
    Preserve_File = * - Animations.bsa
    Preserve_File = * - Interface.bsa
    Preserve_File = * - Meshes.bsa
    Preserve_File = * - Misc.bsa
    Preserve_File = * - Shaders.bsa
    Preserve_File = * - Sounds.bsa
    Preserve_File = * - Textures.bsa
    Preserve_File = * - Voices.bsa
    Preserve_File = * - VoicesExtra.bsa
    Preserve_File = *.png
    Preserve_File = skyrimcloud*
    Preserve_File = *\FaceGenData\*
    Preserve_Folder = textures\MGE\
    Preserve_Folder = Textures\sky\
    Preserve_Folder = Textures\Water\
    Preserve_Folder = textures\effects\
    Preserve_Folder = interface\
    Preserve_File = *.ini
    Preserve_File = *.nif
    Preserve_File = *.fuz
    Preserve_File = *.wav
    Preserve_File = *.xwm
    Preserve_File = *.tri
    Preserve_File = *.lip
    Preserve_File = *.psd
    Preserve_File = *.zip
    Preserve_File = *.rar
    Preserve_File = *.pex
    Preserve_File = *.psc
    Preserve_File = *.bsl
    Preserve_File = *.xml
    Preserve_File = *.seq
    Preserve_File = *.7z
    Preserve_File = *.esm
    Preserve_File = *.esp
    Preserve_File = *.rtf
    Preserve_File = *.jpg
    Preserve_File = *.pdf
    Preserve_File = *.txt
    Preserve_Folder = textures\meshes\
    Set_Invisible = Textures\clothes\cloaksofskyrim\sagecloak_n.dds
    (min, med) Set_ARGB = textures\actors\character\*_msn.dds
    (max) Set_R5G6B5 = textures\actors\character\*_msn.dds
    (min) Set_ARGB = *_msn.dds
    (med) Set_R5G6B5 = *_msn.dds
    Set_NoResize = *\interface*
    Set_NoMipmaps = *\interface*
    Set_NoResize = *\icon*
    Set_NoResize = *\menu*
    Set_NoMipmaps = *\menu*
    Set_R5G6B5 = *_n.*
    (min) Preserve_Folder = Textures\apachii\
    (med) Set_ARGB = Textures\apachii\
    (med) Set_NoResize = Textures\apachii\

    [NEW VEGAS]

    [SKYRIM]

    [MORROWIND]
    Preserve_File = textures\_land_default.tga
    Set_Icons32x32 = Icons\*
    Set_NoResize = BookArt\*

    [OBLIVION]
    (min, med) Preserve_Folder = Textures\Menus\
    (min, med) Preserve_Folder = Textures\Menus50\
    (min, med) Preserve_Folder = Textures\Menus80\
    Set_Icon64x64 = Textures\apachii\menus\icons\*

    [STALKER]
    Set_R5G6B5 = textures\clutter\common\hotiron01.dds
    Set_R5G6B5 = textures\black.dds
    Set_R5G6B5 = textures\brightyellow.dds
    Set_R5G6B5 = textures\default_n.dds
    Set_R5G6B5 = textures\defaultdiffuse.dds
    Set_R5G6B5 = textures\defaultwithspec_n.dds
    Set_R5G6B5 = textures\gray.dds
    Set_R5G6B5 = textures\green.dds
    Set_R5G6B5 = textures\greynoise.dds
    Set_R5G6B5 = textures\lightblue.dds
    Set_R5G6B5 = textures\white.dds
    Set_R5G6B5 = textures\white_em.dds

    [FALLOUT 3]
    Preserve_File = Textures\gore\fxbasegore.dds
    Preserve_File = Textures\gore\gorearmparts.dds
    Preserve_File = Textures\gore\goreheadbits.dds
    Preserve_File = Textures\gore\goreintestine.dds
    Preserve_File = Textures\gore\gorelegparts.dds
    Preserve_File = Textures\gore\goretorsobits01.dds
    Preserve_File = Textures\gore\screenbloodcolor01.dds
    Preserve_File = Textures\gore\screenbloodcolor01opt.dds
    my attempt-
    Last_Folder = C:\Program Files\Steam\steamapps\common\Skyrim\
    Last_Folder = D:\Textures\Real Ice ALL-IN-ONE Installer by morpheas768-5388-V3\
    Last_Folder = D:\Textures\Armory512 Glass Realistic Transparent v2-0\
    Last_Folder = D:\Textures\Alternative Rocks n Mountains v2\
    Backup = No
    Keep_DateTime = True
    Multitask = 4
    ================================================================================
    BSA_Compress = NIF KF HKX TRI DDS BMP TGA PNG STRINGS XML PEX PSC CFG TXT DOC
    BSA_NoCompress = WMA WAV FUZ xwm OGG MP3 MP4 MPG MPEG AVI FLV WMV BIK JPG JPEG ZIP RAR Z 7Z
    ================================================================================
    [COMMON]
    Preserve_File = * - Animations.bsa
    Preserve_File = * - Interface.bsa
    Preserve_File = * - Meshes.bsa
    Preserve_File = * - Misc.bsa
    Preserve_File = * - Shaders.bsa
    Preserve_File = * - Sounds.bsa
    Preserve_File = * - Textures.bsa
    Preserve_File = * - Voices.bsa
    Preserve_File = * - VoicesExtra.bsa
    Preserve_File = *.png
    Preserve_File = skyrimcloud*
    Preserve_File = *\FaceGenData\*
    Preserve_Folder = textures\MGE\
    Preserve_Folder = Textures\sky\
    Preserve_Folder = Textures\Water\
    Preserve_Folder = textures\effects\
    Preserve_Folder = interface\
    Preserve_File = *.ini
    Preserve_File = *.nif
    Preserve_File = *.fuz
    Preserve_File = *.wav
    Preserve_File = *.xwm
    Preserve_File = *.tri
    Preserve_File = *.lip
    Preserve_File = *.psd
    Preserve_File = *.zip
    Preserve_File = *.rar
    Preserve_File = *.pex
    Preserve_File = *.psc
    Preserve_File = *.bsl
    Preserve_File = *.xml
    Preserve_File = *.seq
    Preserve_File = *.7z
    Preserve_File = *.esm
    Preserve_File = *.esp
    Preserve_File = *.rtf
    Preserve_File = *.jpg
    Preserve_File = *.pdf
    Preserve_File = *.txt
    Preserve_Folder = textures\meshes\
    Resize_to_half = 3=if>256
    Set_3=if>256
    Set_Invisible = Textures\clothes\cloaksofskyrim\sagecloak_n.dds
    (min, med) Set_ARGB = textures\actors\character\*_msn.dds
    (max) Set_R5G6B5 = textures\actors\character\*_msn.dds
    (min) Set_ARGB = *_msn.dds
    (med) Set_R5G6B5 = *_msn.dds
    Set_NoResize = *\interface*
    Set_NoMipmaps = *\interface*
    Set_NoResize = *\icon*
    Set_NoResize = *\menu*
    Set_NoMipmaps = *\menu*
    Set_R5G6B5 = *_n.*
    (min) Set_MaxSize256 or PRESERVE
    (min) Set_3=if>256 or PRESERVE
    (min) Preserve_Folder = Textures\apachii\
    (med) Set_ARGB = Textures\apachii\
    (med) Set_NoResize = Textures\apachii\
    (min) 3=if>256

    [NEW VEGAS]

    [SKYRIM]
    (min) Set_MaxSize256 or PRESERVE
    (min) Set_3=if>256 or PRESERVE
    (min) 3=if>256
    Resize_to_half = 3=if>256
    3=if>256

    [MORROWIND]
    Preserve_File = textures\_land_default.tga
    Set_Icons32x32 = Icons\*
    Set_NoResize = BookArt\*

    [OBLIVION]
    (min, med) Preserve_Folder = Textures\Menus\
    (min, med) Preserve_Folder = Textures\Menus50\
    (min, med) Preserve_Folder = Textures\Menus80\
    Set_Icon64x64 = Textures\apachii\menus\icons\*

    [STALKER]
    Set_R5G6B5 = textures\clutter\common\hotiron01.dds
    Set_R5G6B5 = textures\black.dds
    Set_R5G6B5 = textures\brightyellow.dds
    Set_R5G6B5 = textures\default_n.dds
    Set_R5G6B5 = textures\defaultdiffuse.dds
    Set_R5G6B5 = textures\defaultwithspec_n.dds
    Set_R5G6B5 = textures\gray.dds
    Set_R5G6B5 = textures\green.dds
    Set_R5G6B5 = textures\greynoise.dds
    Set_R5G6B5 = textures\lightblue.dds
    Set_R5G6B5 = textures\white.dds
    Set_R5G6B5 = textures\white_em.dds

    [FALLOUT 3]
    Preserve_File = Textures\gore\fxbasegore.dds
    Preserve_File = Textures\gore\gorearmparts.dds
    Preserve_File = Textures\gore\goreheadbits.dds
    Preserve_File = Textures\gore\goreintestine.dds
    Preserve_File = Textures\gore\gorelegparts.dds
    Preserve_File = Textures\gore\goretorsobits01.dds
    Preserve_File = Textures\gore\screenbloodcolor01.dds
    Preserve_File = Textures\gore\screenbloodcolor01opt.dds
    his file for commands-
    Configurations in ORDENADOR.INI
    ===================================================
    Setting priorities:
    1rd) Preserve_Folder and Preserve_File (in INI)
    2rd) Set_XXXX (in INI)
    3rd) GUI Options

    altering the options in INI:
    (min) Set_XXXX or PRESERVE (will be executed only at preset minimum)
    (med) Set_XXXX or PRESERVE (will be executed only at preset medium)
    (max) Set_XXXX or PRESERVE (will be executed only at preset maximum)
    (med, max) Set_R5G6B5 = file (will be executed only at preset medium or maximum)

    Descriptions Usage --------------------------------------------------------------------------
    - Preserve_Folder = textures\interfaces
    - Preserve_File = textures\interfaces\* (with the same result of preseve_folder above)
    - Preserve_File = "textures\skip\skip.dds"
    - Preserve_File = *_msn.dds (for all files in all folder)
    Skip files or folder
    Some options below may be better used instead of Presere_File Presere_Folder for better optimization.

    - Set_R5G6B5 = file
    If the texture has no mask and is A8R8G8B8 X8R8G8B8 (32bits) R8G8B8 (24bits) may be converted to R5G6B5 (16bits)
    But if is DXT5 DXT3 can be converted to a GUI option (DXT5/DXT3DXT1c/Nothing-off)
    Useful for *_msn.dds (20Mb => 10Mb) and as shown in the tests with AdPDDS (the converter used here) quality visible is great. (Note: test with other conversors generates the image blocks or wrinkles)

    - Set_ARGB = file
    If the texture has no mask and is A8R8G8B8 X8R8G8B8 (32bits) may be converted to R8G8B8 (24bits)
    But if is DXT5 DXT3 can be converted to a GUI option (DXT5/DXT3DXT1c/Nothing-off)
    Useful for *_msn.dds (20Mb => 15Mb) not loss quality.

    - Set_NoMipmaps = file
    if in the GUI is enabled to generate mipmaps in all textures, except those that are with this adjustment
    Useful for Interfaces, icones

    - Set_NoResize = file
    if in the GUI is enabled to "any Resize" textures, except those who are with this adjustment
    NECESSARY for Interfaces, icones

    - Set_Icon16x16 Set_Icon32x32 Set_Icon64x64
    File is a icon with lenght fix. if no, fix it.

    - Set_MaxSize256 Set_MaxSize512 Set_MaxSize1024 Set_MaxSize2048
    if the file is bigger than specified and reduced in size until it's right

    - Set_Invisible = file
    to force the texture to be invisible

    Others: Set_DXT1 Set_DXT5

    more than one can be used for a file:
    Set_NoMipmaps = textures\interface\*
    Set_NoResize = textures\interface\*
    Set_Icon64x64 = textures\interface\icons*

    Games:
    [FALLOUT] to fallout 3 and fallout new vegas
    [FALLOUT 3] to fallout 3
    [FALLOUT NEW VEGAS] or [NEW VEGAS] or [FALLOUT NV] to fallout new vegas
    [OBLIVION] or [TES4] or [TESIV] for oblivion
    [MORROWIND] or [TES3] or [TESIII] for morrowind
    [SKYRIM] or [TES5] or [TESV] for skyrim
    [STALKER] for stalker

    can also be used on the same line:
    [Game1] [Game2] [GAME3]

    tips:
    ====== line separator, can be any length
    // text ignored after this signal
    ; text ignored after this signal

    ex:
    Set_NoResize = textures\filetmp.dds // note here
    ===================================================
    Set_Icon16x16 = textures\itens\* ; note here
    his other file of commands "ADPDDS"-
    Optimizer Textures by AdPipino (console version 0.5)

    Usage: AdPDDS.exe [parameters] Path\Texture.ext

    Parameters are 12 digits of configurations, default: 101551100000
    ||||||||||||
    A) Check / Compress / Backup: 0=Check 1=Compress 2=w/Backup _______||||||||||||
    B) Layer processing: 0=Software ___________________________|||||||||||
    C) If no mask, compress: 0=No 1=dxt1 3=dxt3 5=dxt5 9=Preserve __||||||||||
    D) If mask is 1bit, compress: 0=No 1=dxt1 3=dxt3 5=dxt5 9=Preserve ___|||||||||
    E) If is translucy, compress: 0=No 3=dxt3 5=dxt5 9-Preserve ____||||||||
    F) Mipmaps: 0=Delete 1=Make 3=Remake 9-Preserve _____|||||||
    G) Fix bad size (or icon): 0=No 1=Yes 2-16x16 3-32x32 4-64x64 ________||||||
    H) Fix alpha channnel: 0=No 1=Yes 2-set_invisible _________________|||||
    I) Minimize whitout loss, to: 0=No 1=4x4 2=8x8 3=16x16 ____________________||||
    J) Clean / Delete clones: 0=No 1=Clean _________________________________|||
    K) Resize half, "if >": 0=No 1=All 2=256 3=512 4=1K 5=2K 6=4K 7=8K ____||
    L) ununsed / reserved: _______________________________________________________|

    Examples: 1) AdPDDS.exe c:\tmp\teste.tga
    2) AdPDDS.exe 101551100000 c:\tmp\teste.dds

    ================================================================================
    Parameters 12 digits [ABCDEFGHIJKL]

    A) 0=Check only 1=Process 2=Backup and Process (ex.: teste.tga => teste.tga.bak) 3=Delete_if_ok (for BSA implementation)

    B) Process: 0=Software 1=Hardware_Aceleration (no implemented)

    C) If no mask, compress to: 0=no 1=DXT1 2=DXT1 3=DXT3 5=DXT5 6=R5G6B5 7=A4R4G4B4 8=R8G8B8 9=keeps_equal_original

    D) If mask is 1bit, compress to : 0=no 1=DXT1 2=DXT1 3=DXT3 5=DXT5 6=A1R5G5B5 7=A4R4G4B4 8=A8R8G8B8 9=keeps_equal_original

    E) If is translucy, compress to: 0=no 3=DXT3 5=DXT5 6=A4R4G4B4 7=A4R4G4B4 8=A8R8G8B8 9=keeps_equal_original

    F) Mipmaps: 0=Remove 1=Make 2=Make_Forced 9=keeps_equal_original

    G) Fix bad size or icon: 0=No 1=Yes 2=is_Icon_16x16 3=is_Icon_32x32 4=is_Icon_64x64

    H) if the alpha channel is covering completely a picture: 0=Nothing 1=Remove 2=texture_is_invisible

    I) Minimize whitout loss quality (patterns): 0=No 1=to_4x4 2=to_8x8 3=to_16x16

    J) Delete: clones and trash (bmp=tga=dds, thumbs.db, *.bak, *.tmp, others): 0=No 1=Yes

    K) Resize to half: 0=No 1=All 2=if>256 3=if>512 4=if>1K 5=if>2K 6=if>4K 7=if>8K

    L) ununsed / reserved = 0=nothing

    ================================================================================
    Return:

    OK 0x0000 // 0000 0000 0000 0000
    NOTHING 0x0000 // 0000 0000 0000 0000
    FILE_OK 0x0000 // 0000 0000 0000 0000
    OUT_ALREADY_OPTIMIZED 0x0000 // 0000 0000 0000 0000

    NOK 0x0001 // 0000 0000 0000 0001 //
    FILE_NOK 0x0001 // 0000 0000 0000 0001 //
    FILE_BAD 0x0001 // 0000 0000 0000 0001 //
    FILE_UNSUPORTED 0x0002 // 0000 0000 0000 0010 // DDS luminance, DXT10
    FILE_CLONE 0x0004 // 0000 0000 0000 0100 // bmp == tga == dds
    FILE_TRASH 0x0008 // 0000 0000 0000 1000 // thumbs.db and other trash
    FILE_UNKNOWLED 0x0010 // 0000 0000 0001 0000 // file TXT DOC NIF or others
    FILE_NO_EXIST 0x0020 // 0000 0000 0010 0000 // file no exist
    ERROR_PARAMETERS 0x0040 // 0000 0000 0100 0000 // wrong parameters
    ERROR_DX 0x0080 // 0000 0000 1000 0000 // DirectX fail

    OUT_COMPRESSED 0x0100 // 0000 0001 0000 0000
    OUT_DEL_MASK 0x0200 // 0000 0010 0000 0000
    OUT_MK_MIPMAPS 0x0400 // 0000 0100 0000 0000
    OUT_DEL_MIPMAPS 0x0800 // 0000 1000 0000 0000
    OUT_FIX_ALPHA 0x1000 // 0001 0000 0000 0000
    OUT_FIX_SIZE 0x2000 // 0010 0000 0000 0000
    OUT_PATTERN 0x4000 // 0100 0000 0000 0000
    OUT_RESIZED 0x8000 // 1000 0000 0000 0000


    [I will be posting in coding section of the forum too if this is against the rules please let me know]
     
    Last edited: Feb 16, 2014
  2. _Logical_

    _Logical_ Newbie

    Messages:
    3
    Ratings:
    3
    Any progress? This would save a lot of time.
     

Share This Page