Jump to content

[WIN] KSP to DDS texture converter


Lilleman

Recommended Posts

Sorry it's been a while since my last post here. I spent most of my time trying to make other mods. None of them works properly, though ;.; ... Talk about a waste of time...(I was kinda close to have a working LoadOnDemand thingy, if anyone is interested in some source code for this)

Regarding the port of this program to another OS, I'm afraid it can't be done without rewriting it entirely, since it use some Windows-specific libraries. Even a simple C# port of this didn't worked as I expected.

The most useful thing I can do for now is to update the exceptions list. I will read the last pages of this thread, test some popular mods again, and see if everything works as it should. It could take some time, though. If you have an up-to-date list, or found something wrong in the actual one, you can PM it to me directly or post it here. I'll do my best to make an update this week.

Thanks in advance!

Link to comment
Share on other sites

There is a python script + binaries that works on Linux. I linked it earlier in the thread and there is an OSX build in DDSLoader thread. I should add link to this thread and those scripts in my thread...

Link to comment
Share on other sites

it`s weird that I just got rid of VensStockRevamp, have no empty line on modsexeptions.txt, and no "mubak, mu.bak, mbmbak, mbm.bak" in my gamedata folder, but I get index array error.

This is my error detail: sorry for it`s not English but Korean, cause I`m a Korean :P

System.IndexOutOfRangeException: ì¸ë±스가 ë°°ì—´ ë²â€Ã¬Å“„를 벗어났습니다.

위치: DDS4KSP.IMGManager.gs_swizzle(GraphicsStream& gs, Int32 iWidth, Int32 iHeight, Boolean b32BPP)

위치: DDS4KSP.IMGManager.convertFileToDDS(cConversionParameters& convParams, cFolderProcessingParams& CFG)

위치: DDS4KSP.FolderLoader.processFileLists(String sFolderPath, ProgressBar& PB, Label& lInfos, cFolderProcessingParams& CFG)

위치: DDS4KSP.FRM_main.ExportAllToDDSToolStripMenuItem_Click(Object sender, EventArgs e)

위치: System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

위치: System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

위치: System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

위치: System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

위치: System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

위치: System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

위치: System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

위치: System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

위치: System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

위치: System.Windows.Forms.Control.WndProc(Message& m)

위치: System.Windows.Forms.ScrollableControl.WndProc(Message& m)

위치: System.Windows.Forms.ToolStrip.WndProc(Message& m)

위치: System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)

위치: System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

위치: System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

위치: System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 로드ëÂÅ“ ì–´ì…ˆë¸â€Ã«Â¦Â¬ **************

mscorlib

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 2.0.0.0

Win32 버전: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

DDS4KSP

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 0.0.0.1

Win32 버전: 0.0.0.1

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/Users/zenix_000/Downloads/DDS4KSP_0_1_7/DDS4KSP/DDS4KSP.exe

----------------------------------------

Microsoft.VisualBasic

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 8.0.0.0

Win32 버전: 8.0.50727.8007 (FX35W81RTMGDR.050727-8000)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

----------------------------------------

System

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 2.0.0.0

Win32 버전: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Windows.Forms

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 2.0.0.0

Win32 버전: 2.0.50727.8008 (FX35W81RTMGDR.050727-8000)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 2.0.0.0

Win32 버전: 2.0.50727.8007 (FX35W81RTMGDR.050727-8000)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System.Runtime.Remoting

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 2.0.0.0

Win32 버전: 2.0.50727.8012 (FX35W81RTMGDR.050727-8000)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll

----------------------------------------

System.Configuration

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 2.0.0.0

Win32 버전: 2.0.50727.8007 (FX35W81RTMGDR.050727-8000)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 2.0.0.0

Win32 버전: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.resources

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 2.0.0.0

Win32 버전: 2.0.50727.7905 (win9rel.050727-7900)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.resources/2.0.0.0_ko_b77a5c561934e089/System.resources.dll

----------------------------------------

Microsoft.DirectX.Direct3D

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 1.0.2902.0

Win32 버전: 9.05.132.0000

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll

----------------------------------------

Microsoft.DirectX

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 1.0.2902.0

Win32 버전: 5.04.00.2904

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll

----------------------------------------

OpenFolderDialog

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 1.0.0.0

Win32 버전: 1.0.0.0

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/Users/zenix_000/Downloads/DDS4KSP_0_1_7/DDS4KSP/OpenFolderDialog.DLL

----------------------------------------

System.Core

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 3.5.0.0

Win32 버전: 3.5.30729.7903 built by: Win9Rel

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

----------------------------------------

mscorlib.resources

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 2.0.0.0

Win32 버전: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

Microsoft.DirectX.Direct3DX

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 1.0.2902.0

Win32 버전: 5.04.00.3900

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX.Direct3DX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3DX.dll

----------------------------------------

System.Windows.Forms.resources

ì–´ì…ˆë¸â€Ã«Â¦Â¬ 버전: 2.0.0.0

Win32 버전: 2.0.50727.7905 (win9rel.050727-7900)

ì½â€Ã«â€œÅ“ë² ì´스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_ko_b77a5c561934e089/System.Windows.Forms.resources.dll

----------------------------------------

************** JIT ëâ€â€Ã«Â²â€žÃªÂ¹â€¦ **************

JIT(Just In Time) ëâ€â€Ã«Â²â€žÃªÂ¹â€¦Ã¬Â„ 사용하려면 ì´ ì‘용 íâ€â€žÃ«Â¡Å“그램 ë˜Â늆컴퓨터ìÂËœ

config 파ì¼(machine.config)ìÂËœ jitDebugging ê°’ì„

system.windows.forms 섹션엠설정해야 합니다.

ë˜Âí•œ ì‘용 íâ€â€žÃ«Â¡Å“그램ì€ ëâ€â€Ã«Â²â€žÃªÂ¹â€¦Ã­â€¢Â  수 있ë„론컴파ì¼ë˜어야

합니다.

예:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

JIT ëâ€â€Ã«Â²â€žÃªÂ¹â€¦Ã¬Â„ 사용하면 처리ë˜지 ì•Šì€ 모든 예외ëŠâ€

ì´ 대홆ìƒÂìžÂì—Âì„œ 처리ë˜지 ì•Šê³  컴퓨터엠등ë¡ÂëÂÅ“ JIT

ëâ€â€Ã«Â²â€žÃªÂ±Â°Ã¬â€” ë³´ë‚´ì§‘니다.

Edited by FennexFox
Link to comment
Share on other sites

  • 2 weeks later...

Hello, after i've used img2dds script, some toolbar icons look like purple squares. I should add paths to them to NOT_MODEL array, didn't I?

UPD: Actually nevermind, I was stupid enough to forget to install ddsloader.

Edited by r40k
Link to comment
Share on other sites

Very minor issue, the icon for 'ambient light adjustment' is a white square after converting, it may need to be put on the exception list.

Other than that, I just selected my entire gamedata folder and let it run...

very nice bit of software now.

Link to comment
Share on other sites

  • 2 weeks later...
It should. DDSLoader is no longer required but you still need something to convert textures to DDS, i.e. this.

Ok thanks

- - - Updated - - -

This seems to flip the textures upside down when converting from png to DDS. I am using default settings. Is this a bug or intended behaviour?

Link to comment
Share on other sites

Ok thanks

- - - Updated - - -

This seems to flip the textures upside down when converting from png to DDS. I am using default settings. Is this a bug or intended behaviour?

DDSLoader previously required textures to be flipped. That may not be the case with the stock loader now (haven't checked). If dds4ksp is causing in-game flipped textures, toggle the flip textures settings in the conversion options before reconverting (it defaults to true).

Link to comment
Share on other sites

DDSLoader previously required textures to be flipped. That may not be the case with the stock loader now (haven't checked). If dds4ksp is causing in-game flipped textures, toggle the flip textures settings in the conversion options before reconverting (it defaults to true).

I can't seem to find that option. Is it available only for single files or for folders as well? (dds4ksp 0.1.7)

Link to comment
Share on other sites

I can't seem to find that option. Is it available only for single files or for folders as well? (dds4ksp 0.1.7)

Hmm. I could have sworn it was there. I suppose Lilleman (or someone else) will need to update this then.

Link to comment
Share on other sites

Really though, there's no excuse for mod authors not distributing textures as DDS now.

True, but probably some time will be passed until all moders start to distribute modes with DDS textures. Until then, this will be one of important tools for KSP, some moders could even find it usefull for quicker conversion old textures to DDS.

Link to comment
Share on other sites

DDSLoader previously required textures to be flipped. That may not be the case with the stock loader now (haven't checked). If dds4ksp is causing in-game flipped textures, toggle the flip textures settings in the conversion options before reconverting (it defaults to true).

I have checked and the textures are flipped in game, but there is no option to disable this in dds4ksp

Link to comment
Share on other sites

i converted everything to .dss in 1.0 and it works mostly fine, only some toolbar icons disappeared (KER and WaypointManager). reverted these to original, seems modsExceptionlist need an update. No flipped textures for me.

Link to comment
Share on other sites

I had trouble converting a couple of textures from mods, mostly normal maps, I guess.

Hence I am currently using these additional exceptions:

StageRecovery

UmbraSpaceIndustries\Kolonization\Assets\AgModule_NORM_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\CamSat_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\GenericModule_NORM_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\Inflatables_01_NORM_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\Inflatables_NORM_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\LogHub_NORM_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\MiscParts_norm_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\ModuleBase_NORM_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\OKSLogDecal_NORM_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\PancakeTub_NORM_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\Shared_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\StationParts_NORM_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\Tank_N_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\TubeParts_NORM_NRM.png

UmbraSpaceIndustries\Kolonization\Assets\TUBS_NORM_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_Jet_PropFan_01

UmbraSpaceIndustries\Karbonite\Parts\KA_Tank_250_01\karbonite-25_n_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_Tank_125_04\karbonite-125-n_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_RadiaLeg\KaLeg_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_ParticleCollector_250_01\RamScoopBladeN_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_ParticleCollector_250_01\RamScoopMainN_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_Jet_Stack_01\Ka-Engines_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_Generator_250_01\KarGenny_norm_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_Drill_Radial_01\drill-radial-large-n_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_Drill_125_01\drill-25-n_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_Distiller_01\Normal_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_DetectionArray_01\Karbonite_Antenna_norm_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_Converter_250_01\converter-25-n_NRM.png

UmbraSpaceIndustries\Karbonite\Parts\KA_Converter_125_02\converter-125-n_NRM.png

UmbraSpaceIndustries\Karbonite\Assets\Karb625_NRM.png

UmbraSpaceIndustries\Karbonite\Assets\RATNozzle_NRM.png

UmbraSpaceIndustries\FTT\Assets\Blank_GLOW.png

UmbraSpaceIndustries\FTT\Assets\CargoDecal_N_NRM.png

UmbraSpaceIndustries\FTT\Assets\HoneyBadger_N_NRM.png-

MechJeb2\Parts\MechJeb2_Pod\model001.png

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...