Jump to content

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


MacTee

Recommended Posts

Yes, i do have a deleted KSP folder in my recycle bin (20.2, i guess). The folder search did work correctly there, I just think you should exclude the recycle bin from the results :D

ok that was what i want to hear =)

Here (link removed) is a new version where the recycling bin is excluded.

Copy/paste (ctrl + v) of paths should work too ;)

Edited by MacTee
Link to comment
Share on other sites

Discovered another problem, although I don't think it's your (program's) fault - nevertheless, you might want to point that one out to new users.

I didn't really use the new version until now (just set up the newer .21.1 install path).

Now I tried to install the first mod (Extraplanetary Launch Pads), which worked according to KSPMA. Didn't show up ingame. Took me a while to figure out why... Seems, avast! Antivirus somehow placed KSPMA inside a sandbox... where it then applied the mod... Suffice to say, that's not the same directory as KSP :D

So, if KSPMA installs a mod and it doesn't show up, one should take a look if their antivirus-software is running a sandbox.

Fixed it now by adding KSPMA to the "don't put in sandbox"-whitelist.

Link to comment
Share on other sites

And a new ... well, no. Not new one. This one's kinda old, but I just never reported it :D

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.Views.ucModSelection.GetFullNodeCount(KSPMA_TreeNode[] nodeArray)

at KSPMODAdmin.Views.ucModSelection.ProcessSelection(KSPMA_TreeNode[] nodes)

at KSPMODAdmin.Views.ucModSelection.btnExecuteMod_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.0.0

Win32 Version: 1.3.0.0

CodeBase: file:///E:/Spiele/Kerbal%20Space%20Program%20.21.1/_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.18054 built by: FX45RTMGDR

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

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

Ionic.Zip

Assembly Version: 1.9.1.8

Win32 Version: 1.9.1.8

CodeBase: file:///E:/Spiele/Kerbal%20Space%20Program%20.21.1/_KSPModAdmin/Ionic.Zip.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

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

System.Configuration

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.18054 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.

THIS IS WHAT I GET FOR SELECTING MULTIPLE MODS! *stomps off*

Jk, but yeah. That happens when I select multiple mods and try to apply them via [selected Mods].

Link to comment
Share on other sites

And a new ... well, no. Not new one. This one's kinda old, but I just never reported it :D

...

THIS IS WHAT I GET FOR SELECTING MULTIPLE MODS! *stomps off*

Jk, but yeah. That happens when I select multiple mods and try to apply them via [selected Mods].

Thanks again for the bug report and the issue with the AV software!

I think that avast don't like the "search for KSP paths" and/or the "scan" function.

But i can assure you that the KSPMA doesn't contain any harmful code!

The processing of multiple mod is working again!

Download prerelease (link removed).

Edited by MacTee
Link to comment
Share on other sites

Yeah, that would make sense @ scan-function, as I didn't have that problem earlier.

Was just weird, usually AV says something when it finds a "suspicious program" that it puts into a sandbox. This time it was just silent, which caused the mentioned problem.

Okay, this next problem is the weirdest **** I have ever seen!

I would _guess_ it is a KSPMA-Problem, because I never saw anything similar.

- I usually put my computer into standby (suspend to ram)

- when I woke it up today, the screens stayed black (although strg-alt-entf showed the correct screen). Got my screens back only by logging off and on again.

- While logging off, I saw 1-4 (that changed o.O) KSPModAdmin.exe where running... Of course, nothing in the Taskbar.

- Downloaded your new version and wanted to override the two old files. DLL worked, EXE not. Because it was open in another process. There wasn't even a KSPMA shown in the Task Manager. The Resource Monitor is showing a running KSPMA, though.

- Neither the Resource Monitor, nor "Unlocker" allowed me to delete/end the process.

I'll now try a complete reboot, that _should_ help :D

edit: Not really surprising, but that fixed the problem.

Edited by cy-one
Link to comment
Share on other sites

Yeah, that would make sense @ scan-function, as I didn't have that problem earlier.

Was just weird, usually AV says something when it finds a "suspicious program" that it puts into a sandbox. This time it was just silent, which caused the mentioned problem.

Okay, this next problem is the weirdest **** I have ever seen!

I would _guess_ it is a KSPMA-Problem, because I never saw anything similar.

- I usually put my computer into standby (suspend to ram)

- when I woke it up today, the screens stayed black (although strg-alt-entf showed the correct screen). Got my screens back only by logging off and on again.

- While logging off, I saw 1-4 (that changed o.O) KSPModAdmin.exe where running... Of course, nothing in the Taskbar.

- Downloaded your new version and wanted to override the two old files. DLL worked, EXE not. Because it was open in another process. There wasn't even a KSPMA shown in the Task Manager. The Resource Monitor is showing a running KSPMA, though.

- Neither the Resource Monitor, nor "Unlocker" allowed me to delete/end the process.

I'll now try a complete reboot, that _should_ help :D

edit: Not really surprising, but that fixed the problem.

Sry there where some last customer talks to do, but now ... weekend .... =)

That sounds like a still running background task(s) ...

Do you have started a path search and then abort it with a klick on the "Later" button?

im on my way home now .. ill investigate it later.

Link to comment
Share on other sites

hmm, i have tried to reproduce this error for the last 2 hours on 3 different PCs, without success. :mad:

i will let my 2x Win7 Leptops & Win8 Tower in sleep mode for the night.

Could you reproduce this behavior?

Link to comment
Share on other sites

Nope, I don't even know if it's really KSPMA-specific or just the random result of several random events :D

The over night test and some more testing today where all without any success to reproduce this problem.

If there aren't any other issues i'll release the 1.3.0 in the evening (GTM).

Edit: Or a little later :)

Edited by MacTee
Link to comment
Share on other sites

What will 1.3.0 contain regarding new functionality over the current/last update from 1.2.6?

- Better support of multible installations of KSP.

- Scan function for installed mods in the GameData folder.

- Zip function for installed mods where the zipfile is missing.

- Auto backup functions (see cogwheel on backup tab).

- Update message.

- Key support (del / backspace -> removes mods, backups or KSP paths.)

- Display of KSP install folder search dialog on startup if KSP install path is empty.

- Several bug fixes

Sorry to much action during the weekend i'll try to release the offical v1.3.0 during the week.

Edited by MacTee
Link to comment
Share on other sites

Sounds great.

Stuff I'd like to see would be:

- 7zip-support (some developers use that for their archives, and it always means I have to extract and repack before I can use the mod)

- Mod-specific override-functions. Like when you have one mod that's just a "fix" or a self-made override for something, it would be great if you could define that only this mod has the privileges to override everything.

Link to comment
Share on other sites

Sounds great.

Stuff I'd like to see would be:

- 7zip-support (some developers use that for their archives, and it always means I have to extract and repack before I can use the mod)

- Mod-specific override-functions. Like when you have one mod that's just a "fix" or a self-made override for something, it would be great if you could define that only this mod has the privileges to override everything.

You can override specific mods when you activate the override, select the Mod and press proceed "Selected Mods".

Link to comment
Share on other sites

Here the official release of the new version 1.3.0 (All who downloaded the 1.3.0 prerelease version have to replace the PR versioin!)

Change Log:

  • Scan function for installed mods in the GameData folder.
  • Zip function for installed mods where the zipfile is missing.
  • Display of KSP install folder search dialog on startup if KSP install path is empty.
  • Auto backup functions (see cogwheel on backup tab).
  • Better support of multible installations of KSP.
  • Update message.
  • Key support (del / backspace -> removes mods, backups or KSP paths.)
  • ProgressBar MaxValue Bug (during navigation) fixed.
  • "Position problem when KSPMA was closed when minimized" Bug fixed. -> Thanks to "Meatplow" & "cy-one"
  • "Processing of multiple selected mods" bug fixed. -> Thanks to "cy-one"
  • Recycling bin excluded from KSP install path search -> Thanks to "cy-one"
  • "Drag & Drop of KSP Install folders" bug fixed -> Thanks to "cy-one"

Upcoming:

  • 7zip and rar support

Link to comment
Share on other sites

Just registered to file this bug report – but first: thanks for this great tool, it really makes my life easier! :)

There seems to be a problem with (some?) ZIP-files not being extracted/read correctly.

This is something I noticed today after updating one of my mods yesterday – namely FusTek Station Parts – and trying to load my game today. It could not load my station, because parts were missing. At first I thought it would be the update, but nobody else was complaining, so I took a look at the file structure in KSP Mod Admin…

images-i3545bhfys8.jpg

Something looks wrong here.

I extracted the ZIP manually and it did look good, all parts in their folders, sources in its folder etc. So I repackaged the whole thing and added it back to KSP Mod Admin:

images-i3546bz03v6.jpg

Looking good!

This happened with 1.2.6 yesterday and is still reproducable in 1.3.0 today. The ZIP used is directly from the release thread (R0.03.2 Alpha at the time of this writing). You could also PM me and I could send you my backup of the (borked?) ZIP.

Link to comment
Share on other sites

bugs.jpg

1.3.0 broke ... dunno, some zip-file-handling-stuff, I guess.

Just downloaded Infernal Robotics. The zip has a typical hierarchy

MagicSmokeIndustries

- Parts

-- AdjustableRail

-- dockingwasher_free

...

- Plugins

In KSPMA, the hierarchy looks kinda like this:

MagicSmokeIndustries

- Parts

-- dockingwasherbase.tga

-- dockingwasher_free.mu

-- part.cfg

...

- Plugins

And of course, in the end there's only ONE part.cfg in /parts (as they override each other).

KSPMA just ignores the folders inside MSI/Parts/.

I'll install that mod manually now, still, should be fixed ;)

Edit: Funny enough, my repacked DamnedRobotics_1.3fix doesn't have the same problem, all fine there... o.O

Edith2: Neither did MagicSmokeIndustries, once i repacked it. So maybe something with the original zip... Although it extracted just fine, only KSPMA had problems seeing those folders.

Edited by cy-one
Link to comment
Share on other sites

Hello MacTee, I know you're probably busy, but was just wondering if you had any response about the guys from KSPMM (KSP Mod Manager) contacting you about help / advice or a possible joint venture / collaboration. I'm trying to decide which mod manager to use, since they both have their own pros and cons. I was wondering if you had any input to offer on the subject? It would be great to have one great mod manager instead of several lesser buggy ones as I have seen with some games. The site is here. I will await your response.

Link to comment
Share on other sites

Thanks MorisatoK & cy-one for the Bug report, i have downloaded the mods already and i have reproduced the bug.

i'll take a look on the issue tomorrow.

Maybe it has somthing to do with missing directory entries within the zip structure.

Most unziper dont have any problems with it ;)

If iam right i will not fix the bug cause iam working on the next iteration which will replace the old zip library with a dll that supports zip, rar and 7zip.

I have already changed the dll the zip part seemed to work fine (until your bug report :huh:).

rar and 7zip need a little more tweaking. But iam quit optimistic to get it running in a few days.

Link to comment
Share on other sites

Hello MacTee, I know you're probably busy, but was just wondering if you had any response about the guys from KSPMM (KSP Mod Manager) contacting you about help / advice or a possible joint venture / collaboration. I'm trying to decide which mod manager to use, since they both have their own pros and cons. I was wondering if you had any input to offer on the subject? It would be great to have one great mod manager instead of several lesser buggy ones as I have seen with some games. The site is here. I will await your response.

Hi Benzschwagel,

iam a little confused, i cant find any Mails/PMs about KSPMM. :blush: Could you show me where i could find it?

For now iam not sure about a join venture (let me think about it :)), but if there is any help needed i will try my best!

Edited by MacTee
Link to comment
Share on other sites

Hi Benzschwagel,

iam a little confused, i cant find any Mails/PMs about KSPMM. :blush: Could you show me where i could find it?

For now iam not sure about a join venture (let me think about it :)), but if there is any help needed i will try my best!

I guess they didn't actually get a hold of you yet. Here is the page I was referring to: https://github.com/Norway174/KSPMM/issues/1

They had some planned stuff that you already have. I apologize if what I posted for the bug report might seem a little like bashing on your program, I was making a comparison between the two. I have noticed that yours does a re-scan of every loaded mod every time you click / right-click a mod in the list. with large numbers of mods, this can take a long time between actions, making it appear slow. But theirs was simply not installing certain mods, period. And that is a much more serious problem than just running slow.

Hope this helps,

Benz

Link to comment
Share on other sites

@Benzschwagel:

ahh i got it, but now my nose hurts :D

I'll take a look to KSPMA when i have more time (maybe at the weekend).

Yes i know that the re-scan makes things slowly, i try to find a better way.

@cy-one & MorisatoK:

As i expected the error is caused by missing dir entries in the zip structure.

I have already fixed this error and i have made a huge step towards 7zip & rar support.

The reading/parsing/extracting of .7z & .rar files are already implemented.

Just the zip creating part is missing ... i hope i'll get it done in the evening.

Edit: done ...

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...