Jump to content

[AnyOS] KSP Mod Admin v2 - Mod install with a few clicks


MacTee

Recommended Posts

I'm getting this for an error, and have been getting it all day. I have to keep going back to 1.3.6.

Just-In-Time of C# is catching it:

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.ArgumentException: Parameter is not valid.

at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)

at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)

at System.Windows.Forms.ControlPaint.DrawFrameControl(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, Int32 kind, Int32 state, Color foreColor, Color backColor)

at System.Windows.Forms.ControlPaint.DrawButton(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, ButtonState state)

at System.Windows.Forms.ControlPaint.DrawButton(Graphics graphics, Rectangle rectangle, ButtonState state)

at KSPMODAdmin.Utils.CommonTools.RowPainter.DrawHeader(Graphics dc, Rectangle r, Boolean isHot)

at KSPMODAdmin.Utils.CommonTools.TreeListViewEx.OnPaint(PaintEventArgs e)

at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)

at System.Windows.Forms.Control.WmPaint(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at KSPMODAdmin.Utils.CommonTools.TreeListViewEx.WndProc(Message& msg)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1008 (RTMGDR.030319-1000)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

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

KSPMODAdmin

Assembly Version: 1.3.7.0

Win32 Version: 1.3.7.0

CodeBase: file:///C:/Games/KSP%20Mod%20Manager/KSPModAdmin/KSPMODAdmin.exe

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

System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1002 built by: RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

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

System.Drawing

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1001 built by: RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

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

System

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1001 built by: RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

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

System.Core

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.233 built by: RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

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

System.Deployment

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll

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

System.Xml

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1015 built by: RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

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

System.Configuration

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1015 (RTMGDR.030319-1000)

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

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

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

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

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

I have to keep going back to 1.3.6

Link to comment
Share on other sites

I'm at work right now, i'll take a look in the evaning. Sorry for the inconvenience!

EDIT: Benzschwagel what OS are you using (WinVista, Win7, Win8?)

Edited by MacTee
Link to comment
Share on other sites

I'd love to try this out but I'm getting exceptions for everything, it's completely unusable. I can't select a directory even if I place my KSP folder in the root of C:\, and I can't even close the program without having to go through Task Manager. I even removed and reinstalled my current version of NET just to see if that would do anything, but it didn't.

Is there a link to a previous version that I could use until the bugs in the current version are sorted out?

Link to comment
Share on other sites

I'd love to try this out but I'm getting exceptions for everything, it's completely unusable. I can't select a directory even if I place my KSP folder in the root of C:\, and I can't even close the program without having to go through Task Manager. I even removed and reinstalled my current version of NET just to see if that would do anything, but it didn't.

Is there a link to a previous version that I could use until the bugs in the current version are sorted out?

In the download, open the "NeededInstallations" folder and run the "dotNetFx40_Full_setup.exe" file. This will install the .Net Framework 4.0 onto your machine. Make sure you do this with nothing else running (close ALL running programs). When it's done, do a full Windows Update to get the latest patches.

You may also try running this from a non-system directory, like "C:\temp". Sometimes, programs are restricted if run from the "Downloads", "Desktop", "My Documents", etc folders.

Stating the obvious.....this is WINDOWS ONLY, no Mono port that I'm aware of.

[EDIT]

Just downloaded this at work and ran it on a Windows 7 Pro machine WITHOUT KSP installed. No errors (except for "This is not the KSP install path" default error).

Edited by LeadMagnet
more info
Link to comment
Share on other sites

In the download, open the "NeededInstallations" folder and run the "dotNetFx40_Full_setup.exe" file. This will install the .Net Framework 4.0 onto your machine. Make sure you do this with nothing else running (close ALL running programs). When it's done, do a full Windows Update to get the latest patches.

Already tried this twice, no difference.

You may also try running this from a non-system directory, like "C:\temp". Sometimes, programs are restricted if run from the "Downloads", "Desktop", "My Documents", etc folders.

As mentioned above, I moved it from downloads to C:\KSP_Win, no luck.

Link to comment
Share on other sites

Hey craigmt1, ignore my previous post. I have duplicated your error with the most recent download.

MacTee....in the frmMainForm.cs code, line 43, you need to change...

KSPConfig mKSPConfig = null;

to

KSPConfig mKSPConfig = new KSPConfig();

otherwise, the call to SaveKSPConfig() fails because mKSPConfig has been set to "null", when it needs an object to set.

[EDIT]

Actually, this is in several places. Suggest a "Find and Replace ALL"! :P

Edited by LeadMagnet
more trouble shooting
Link to comment
Share on other sites

Normaly a missing KSP path shouldn't be a problem!

You can try 1 more thing.

Go to the c:\ProgramData\ folder rename/delete the KSPModAdmin folder. This resets the KSP MA back to default Confoguration.

if this don't work it wold be very nice if you could send me the errors yuo encounter.

Here is the link to the v1.3.6

Sorry for the inconvenience!

Link to comment
Share on other sites

Sorry to all who encounter problems with the new version of KSP MA 1.3.7.

I'm on bug hunt right now.

As far as i can tell now there are 2 major problems.

1. A bug somewhere in the loading process which leads to a missing instance of the KSPConfig (as LeadMagnet mentioned).

That causes exceptions during KSP MA start or closing.

2. The rendering of the new TreeListView cuases also problems. I think this has something to do with older Windows versions then Vista.

The TreeListView uses some VistaStyles for painting, and i got error reports when the controls paints without VistaStyls.

Sadly it's currently not possible for me to test this, i have to wait for Benzschwagel comments, or anyone else who could test KSP MA 1.3.7 on WinXP or Vista.

@LeadMagnet: Thanks for the quick help!

But even if your solution seems to fix the problem, it must be something different. I haven't changed that line since version 1.1.0 i guess :)

As i mentioned above i think it is related to the loading process when i encounter an invalid KSP path. At least i have reproduced an exception when i have loaded a KSPModAdmin.cfg (from c:\ProgramData\KSPModAdmin\...) that had a invalid KSP path saved. This leads to a null argument exception during quiting of KSP MA, which prevents a closing of KSP MA =(.

But till now i wasn't able to reproduce a exception during KSP MA startup.

And back to bug hunting...

Edited by MacTee
Link to comment
Share on other sites

Well, i dont know if my two cents will help, but here goes:

I ran and poked around 1.3.7 a little bit. It worked fine.

HOWEVER, I have been using previous versions of KSPMA, so the install path was already set. Based on comments here, I went and deleted the KSPMA.cfgs from my three separate KSP folders, then reran KSPMA. It worked fine for the last install it previously worked with. But I got the exceptions for the other install folders. Then I tried to change the folders in the Options, and it refused to accept a new install folder, even though it was a legit folder.

So then I renamed the last good install folder. Now I get the same as the other folders.

Renamed the folder back to what shows in KSPMA, and it works again.

So it looks like 1.3.7 works for anyone that has NOT changed the location of their KSP install folder, AND that have been using previous versions of KSPMA

Here's a copy of the JIT text, and a copy of what KSPMA asks fo rme to copy and send to you, MacTee:

drag & drop install

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.NullReferenceException: Object reference not set to an instance of an object.

at KSPMODAdmin.MainForm.SaveKSPConfig()

at KSPMODAdmin.MainForm.SetKSPInstallPath(String kspPath)

at KSPMODAdmin.MainForm.set_KSPPath(String value)

at KSPMODAdmin.Views.ucWelcome.btn_OK_Click(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

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

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ButtonBase.WndProc(Message& m)

at System.Windows.Forms.Button.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18052 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

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

KSPMODAdmin

Assembly Version: 1.3.7.0

Win32 Version: 1.3.7.0

CodeBase: file:///E:/Kerbal%20backup/Mods%20updated%209-2-13/Mod%20Managers/KSPModAdmin-v1.3.7/1.3.7/KSPModAdmin/KSPMODAdmin.exe

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

System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18047 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

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

System.Drawing

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

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

System

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18044 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

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

System.Core

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

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

System.Deployment

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll

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

System.Xml

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

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

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

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

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

And the KSMPA thing:

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

Error

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

Unexpected error. If you want to help. Press ctrl & c to copy this text and send it to [email protected] Thank you!

Message: Object reference not set to an instance of an object.

Stacktrace:

at KSPMODAdmin.MainForm.SaveKSPConfig()

at KSPMODAdmin.MainForm.MainForm_FormClosing(Object sender, FormClosingEventArgs e)

at System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)

at System.Windows.Forms.Form.RaiseFormClosingOnAppExit()

at System.Windows.Forms.Application.ExitInternal()

at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)

at System.Windows.Forms.Control.WndProcException(Exception e)

at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

at System.Windows.Forms.Application.Run(Form mainForm)

at KSPMODAdmin.Program.Main()

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

OK

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

Edited by Stone Blue
Link to comment
Share on other sites

A couple unrelated, small issues:

The TreeLists seem to work fine for me, Windows 7. Although, you cant resize the 1st column to the left, to make it smaller. You have to make the furthest column on the right BIGGER, by dragging the right column border outside the KSPMA window. This seems to work in all the tabs with TreeList view. I assume its because KSPMA is set to have the COMPLETE view fit in the window, without having a scroll bar at the bottom.

The only column it seems to become an issue is on the Crafts tab, if you have a craft with many mods, you cant see them all as they go out of the window.

But like I said, there is the manual workaround, so no biggie.

Also, the Drag & Drop option to place the KSP install folder does not work...Either in the initial window that opens with a fresh run of KSPMA, as well as in the Options tab of an already working install.

Link to comment
Share on other sites

Small update of the bug hunt:

The bug that causes the exception during SaveKSPConfig (e.g. closing KSP MA with no valid KSP path) is identified and fixed.

I have also changed the loading of known KSP paths (from the config file) so that invalid paths will be skipped.

And one more bug was squished that throws a excetion (TreeNode convertion to Node ...) during Option or Part Tab usage.

But till now i can't do anything about the bug that was reported by Benzschwagel (ArgumentException) and is related to the TreeListView painting.

A update will coming soon!

Link to comment
Share on other sites

The new version should fix most problems mentioned above.

Except the TreeListView painting for older Windows versions then Win7. I need some more feedback on that.

or i'll have to wait for the weekend to set up some virtual PCs to test KSP MA on different Windows versions. :(

Edited by MacTee
Link to comment
Share on other sites

Ok, so, I tried to install .net 4.0 from the included installer of 1.3.8, and this is what I got: "Same or higher version of .NET Framework 4 has already been installed on this computer."

I tried running 1.3.8, and it says it's still 1.3.7 and tries to download 1.3.8 again, and it still crashes with the same errors. I'll post different errors, maybe they will say different things to help you pinpoint the issue. Here is the error I get when I load up the program (the mod tab):

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.ArgumentException: Parameter is not valid.

at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)

at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)

at System.Windows.Forms.ControlPaint.DrawFrameControl(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, Int32 kind, Int32 state, Color foreColor, Color backColor)

at System.Windows.Forms.ControlPaint.DrawButton(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, ButtonState state)

at System.Windows.Forms.ControlPaint.DrawButton(Graphics graphics, Rectangle rectangle, ButtonState state)

at KSPMODAdmin.Utils.CommonTools.RowPainter.DrawHeader(Graphics dc, Rectangle r, Boolean isHot)

at KSPMODAdmin.Utils.CommonTools.TreeListViewEx.OnPaint(PaintEventArgs e)

at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)

at System.Windows.Forms.Control.WmPaint(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at KSPMODAdmin.Utils.CommonTools.TreeListViewEx.WndProc(Message& msg)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18052 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

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

KSPMODAdmin

Assembly Version: 1.3.7.0

Win32 Version: 1.3.7.0

CodeBase: file:///C:/Games/KSP%20Mod%20Manager/KSPModAdmin/KSPMODAdmin.exe

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

System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18047 built by: FX45RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

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

System.Drawing

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

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

System

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18044 built by: FX45RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

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

System.Core

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

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

System.Deployment

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll

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

System.Xml

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

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

System.Configuration

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

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

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

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

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

The Parts tab:

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.ArgumentException: Parameter is not valid.

at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)

at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)

at System.Windows.Forms.ControlPaint.DrawFrameControl(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, Int32 kind, Int32 state, Color foreColor, Color backColor)

at System.Windows.Forms.ControlPaint.DrawButton(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, ButtonState state)

at System.Windows.Forms.ControlPaint.DrawButton(Graphics graphics, Rectangle rectangle, ButtonState state)

at KSPMODAdmin.Utils.CommonTools.RowPainter.DrawHeader(Graphics dc, Rectangle r, Boolean isHot)

at KSPMODAdmin.Utils.CommonTools.TreeListViewEx.OnPaint(PaintEventArgs e)

at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)

at System.Windows.Forms.Control.WmPaint(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at KSPMODAdmin.Utils.CommonTools.TreeListViewEx.WndProc(Message& msg)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18052 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

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

KSPMODAdmin

Assembly Version: 1.3.7.0

Win32 Version: 1.3.7.0

CodeBase: file:///C:/Games/KSP%20Mod%20Manager/KSPModAdmin/KSPMODAdmin.exe

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

System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18047 built by: FX45RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

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

System.Drawing

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

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

System

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18044 built by: FX45RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

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

System.Core

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

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

System.Deployment

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll

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

System.Xml

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

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

System.Configuration

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR

CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

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

Microsoft.mshtml

Assembly Version: 7.0.3300.0

Win32 Version: 7.0.3300.0

CodeBase: file:///C:/windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll

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

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

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

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

Edit: Also, I have Win7 64-bit.

Edit2: I've also noticed that a bunch of the window areas (like the mod list window in the mod tab and the part list window in the part tab) are white with a red border and red lines going from corner to corner, making a big red X. [X] <--- kind of like that. Hope this helps.

Edited by Benzschwagel
Link to comment
Share on other sites

Just out of curiosity, did you delete the kspmodadmin.cfg (created by 1.3.7) in the KSP_win folder before running 1.3.8? maybe give that a try?

Also, there were a bunch of Windows updates released this past Tuesday...several were for .NET...Maybe Check for Windows Updates, Benzschwagel, just to make sure thats not it?

Although the versions of all those listed Assemblies are the same ones I have...Except I seem to be missing the last one, Microsoft.mshtml...???

I'm also running the 4.5 framework, though... ??

Strange...

I hadnt tried 1.3.8 yet...just now downloaded it, deleted the kspmodadmin.cfg files from all three of my ksp install folders, then ran 1.3.8. It worked...on all three folders. It let me add all three, and switch between them...no issues at all...1.3.8 seems fixed for me, and I'm also on Win7 64bit. Although, yes, it DOES report that 1.3.8 is current version 1.3.7, and reports a newer version of 1.3.8 is available.

Hey MacTee, I know your busy trying to track down this install issue, but on a possibly related note, and while your messing with the install part of KSPMA, anyway that when switching the install path in the Options, that it automatically forces a complete Rescan/Refresh of the Mods, Parts, Crafts, and Flags?

Edited by Stone Blue
Link to comment
Share on other sites

Damn i have missed to update the assambly version :(

Config file deleting won't help with the Problem of Benzschwagel. It is related to the TreeListView painitng process.

For some reason his Win7 don't uses VisualStyles to render things. The alternative painting (without VisualStyles) throws the ArgumentException.

I'll continue my research after work.

EDIT2: I have updated the download files, the v1.3.8 will no longer show up as v1.3.7!

EDIT: Benzschwagel do you have the "visual style for windows and buttons" within the Performance Options of Windows turned off?

In this dialog:

t8f2.png

EDIT3: I can reporduce the error from Benzschwagel now. just uncheck the "visual style for windows and buttons" in the performance options dialog and start KSP MA with a valid KSP path. I'm working on a solution!

EDIT4: I have fixed the problems with painting the TreeListView without visual styles.

Update will coming soon, when i've implemented the refresh on KSP Path change that Stone Blue mentioned above.

Edited by MacTee
Link to comment
Share on other sites

*snip* @LeadMagnet: Thanks for the quick help! *snip*

Glad to help. I'm always aprehensive about giving suggestion on software I didn't write.

Don't envy you making this XP/Vista/7/8 compliant! Loads of stuff I've written for .Net 4 falls flat on XP. I seem to spend most of my time running up VirtualBox VM's of different OS's just to test things out. Sucks really, but needed.

On the root folder, you need to keep in mind that there are two installation methods for KSP. Steam and manual. I download and install KSP manually and my folder structure looks like this...

G:\KSP\Mods

G:\KSP\Old Versions

G:\KSP\ksp-win-0-13-0 <-- When I started Playing! Like to fire it up for nostalgia occasionally :P

G:\KSP\ksp-win-0-20-0

G:\KSP\ksp-win-0-21-0

G:\KSP\ksp-win-0-21-1

G:\KSP\CurrentVersion

Obviously, most people will just extract the ZIP and call it a day. Some of us use a more hands on to file/version management. I also do not use the updater.

You might give some consideration to including a "help" file with some idiots instructions to the recommended way to install (the KSP wiki doesn't have this amazingly) KSP and where to put Mods. M2CW

If you want me to test something specific, just lemme know. I can throw up a VM of any OS in 5 minutes!

Link to comment
Share on other sites

Just wanted to report the same problem as Benzschwagel. Good to see, that you are already on it :)

Ah, I just got a workaround for me.

Just uncheck the "Use visual styles..." button, press apply, check that box again and press apply again, restart KSP ModAdmin... works!

Edited by Horman
Link to comment
Share on other sites

What's new:

  • Bugs during rendering of TreeListView without Visual Styles fixed.
  • Backup-/Download-Path, Crafts-/Parts-Tab clear on KSP Path change.

@LeadMagnet: Thanks for the suggestions!

I have the help file/tab on my todo list for a while now, i hope i find the time and mood to create it :wink:

@Horman: Thanks for the infos! The new version 1.3.9 should fix this problem. :)

Edited by MacTee
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...