Jump to content

[1.3.x-1.9.x] Craft Manager - search, sort, tag & share your craft


katateochi

Recommended Posts

  • 3 weeks later...

I've been doing a lot of mod stability checking and found this error after adding Craft Manager 1.2.0 with KXAPI 1.2.0 using CKAN.

[ERR 21:11:59.138] ADDON BINDER: Cannot resolve assembly: KatLib, Culture=neutral, PublicKeyToken=null

[ERR 21:11:59.185] ADDON BINDER: Cannot resolve assembly: KatLib, Culture=neutral, PublicKeyToken=null

It occurs at KSP launch before loading all the parts, before the main menu. 

The log also shows this listed twice under "Mod DLLs found:"

KatLib v1.0.7240.21438

Is there a duplicate DLL?

Here's the log: KSP log

I'm running KSP 1.10.1 on Win10.  I have a fresh instance of KSP that did not have CraftManager/ KXAPI installed before.

I'm also wondering if this mod is really compatible with  KSP 1.10.1? CKAN says Max KSP version: "any" while this thread says only 1.9.x max. 

https://github.com/Sujimichi/CraftManager/issues/16

I think KerbalX is great and I hope this gets resolved! Thanks. 

Edited by Krazy1
Link to comment
Share on other sites

  • 1 month later...

@katateochiTried this in KSP 1.11 (realizing it's not labeled for compatibility now)

Got an exception after uploading craft. Could you update it for 1.11? 

ksp log

[LOG 14:47:02.591] [CM] Loaded 2 craft from file
[LOG 14:47:09.860] [CM] list height: 85
[LOG 14:47:15.697] [CM] creating upload data for: Big Rover TS wheel test
[LOG 14:48:42.070] SCREENSHOT!!
[LOG 14:48:45.242] [CM] Loaded 2 craft from cache
[LOG 14:48:48.007] [CM] loading upload data for: Big Rover TS wheel test
[LOG 14:50:24.310] [KerbalXAPI] sending request to: https://kerbalx.com/api/existing_craft.json
[LOG 14:50:24.310] [KerbalXAPI] sending request to: https://kerbalx.com/api/download_queue.json
[LOG 14:50:24.872] [KerbalXAPI] request returned 200 OK
[LOG 14:50:24.973] [KerbalXAPI] request returned 200 OK
[LOG 14:53:47.793] [KerbalXAPI] sending request to: https://kerbalx.com/api/craft
[LOG 14:53:57.085] [KerbalXAPI] request returned 200 OK
[LOG 14:53:57.085] [CM] craft uploaded OK
[LOG 14:53:57.085] [KerbalXAPI] sending request to: https://kerbalx.com/api/existing_craft.json
[LOG 14:53:57.652] [KerbalXAPI] request returned 200 OK
[EXC 14:53:57.675] ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint
Aborting
	UnityEngine.GUILayoutGroup.GetNext () (at <fa6f9762ac624af092525d37c9d516c4>:0)
	UnityEngine.GUILayoutUtility.DoGetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <fa6f9762ac624af092525d37c9d516c4>:0)
	UnityEngine.GUILayoutUtility.GetRect (System.Single width, System.Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <fa6f9762ac624af092525d37c9d516c4>:0)
	UnityEngine.GUILayout.FlexibleSpace () (at <fa6f9762ac624af092525d37c9d516c4>:0)
	KatLib.DryUIBase.fspace () (at <7ab22c1efaa442c7974f9c6879f3bfcd>:0)
	CraftManager.CMBrowser.<draw_top_section>b__15_0 (System.Single w) (at <8b61a4f45bb64fb591febc58234adb97>:0)
	KatLib.DryUIBase.section (KatLib.DryUIBase+Content content) (at <7ab22c1efaa442c7974f9c6879f3bfcd>:0)
	CraftManager.CMBrowser.draw_top_section (System.Single section_width) (at <8b61a4f45bb64fb591febc58234adb97>:0)
	CraftManager.CMBrowser.<WindowContent>b__12_0 () (at <8b61a4f45bb64fb591febc58234adb97>:0)
	KatLib.DryUIBase.v_section (KatLib.DryUIBase+ContentNoArgs content) (at <7ab22c1efaa442c7974f9c6879f3bfcd>:0)
	CraftManager.CMBrowser.WindowContent (System.Int32 win_id) (at <8b61a4f45bb64fb591febc58234adb97>:0)
	CraftManager.CMUI.DrawWindow (System.Int32 window_id) (at <8b61a4f45bb64fb591febc58234adb97>:0)
	UnityEngine.GUILayout+LayoutedWindow.DoWindow (System.Int32 windowID) (at <fa6f9762ac624af092525d37c9d516c4>:0)
	UnityEngine.GUI.CallWindowDelegate (UnityEngine.GUI+WindowFunction func, System.Int32 id, System.Int32 instanceID, UnityEngine.GUISkin _skin, System.Int32 forceRect, System.Single width, System.Single height, UnityEngine.GUIStyle style) (at <fa6f9762ac624af092525d37c9d516c4>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
[LOG 15:28:44.805] [KerbalXAPI] sending request to: https://kerbalx.com/api/existing_craft.json
[LOG 15:28:44.805] [KerbalXAPI] sending request to: https://kerbalx.com/api/download_queue.json
[LOG 15:28:45.520] [KerbalXAPI] request returned 200 OK
[LOG 15:28:45.603] [KerbalXAPI] request returned 200 OK

 

Edited by Krazy1
Link to comment
Share on other sites

4 minutes ago, Krazy1 said:

Tried this in KSP 1.11 (realizing it's not labeled for compatibility now)

Got an exception after uploading craft

ksp log


[LOG 14:47:02.591] [CM] Loaded 2 craft from file
[LOG 14:47:09.860] [CM] list height: 85
[LOG 14:47:15.697] [CM] creating upload data for: Big Rover TS wheel test
[LOG 14:48:42.070] SCREENSHOT!!
[LOG 14:48:45.242] [CM] Loaded 2 craft from cache
[LOG 14:48:48.007] [CM] loading upload data for: Big Rover TS wheel test
[LOG 14:50:24.310] [KerbalXAPI] sending request to: https://kerbalx.com/api/existing_craft.json
[LOG 14:50:24.310] [KerbalXAPI] sending request to: https://kerbalx.com/api/download_queue.json
[LOG 14:50:24.872] [KerbalXAPI] request returned 200 OK
[LOG 14:50:24.973] [KerbalXAPI] request returned 200 OK
[LOG 14:53:47.793] [KerbalXAPI] sending request to: https://kerbalx.com/api/craft
[LOG 14:53:57.085] [KerbalXAPI] request returned 200 OK
[LOG 14:53:57.085] [CM] craft uploaded OK
[LOG 14:53:57.085] [KerbalXAPI] sending request to: https://kerbalx.com/api/existing_craft.json
[LOG 14:53:57.652] [KerbalXAPI] request returned 200 OK
[EXC 14:53:57.675] ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint
Aborting
	UnityEngine.GUILayoutGroup.GetNext () (at <fa6f9762ac624af092525d37c9d516c4>:0)
	UnityEngine.GUILayoutUtility.DoGetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <fa6f9762ac624af092525d37c9d516c4>:0)
	UnityEngine.GUILayoutUtility.GetRect (System.Single width, System.Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <fa6f9762ac624af092525d37c9d516c4>:0)
	UnityEngine.GUILayout.FlexibleSpace () (at <fa6f9762ac624af092525d37c9d516c4>:0)
	KatLib.DryUIBase.fspace () (at <7ab22c1efaa442c7974f9c6879f3bfcd>:0)
	CraftManager.CMBrowser.<draw_top_section>b__15_0 (System.Single w) (at <8b61a4f45bb64fb591febc58234adb97>:0)
	KatLib.DryUIBase.section (KatLib.DryUIBase+Content content) (at <7ab22c1efaa442c7974f9c6879f3bfcd>:0)
	CraftManager.CMBrowser.draw_top_section (System.Single section_width) (at <8b61a4f45bb64fb591febc58234adb97>:0)
	CraftManager.CMBrowser.<WindowContent>b__12_0 () (at <8b61a4f45bb64fb591febc58234adb97>:0)
	KatLib.DryUIBase.v_section (KatLib.DryUIBase+ContentNoArgs content) (at <7ab22c1efaa442c7974f9c6879f3bfcd>:0)
	CraftManager.CMBrowser.WindowContent (System.Int32 win_id) (at <8b61a4f45bb64fb591febc58234adb97>:0)
	CraftManager.CMUI.DrawWindow (System.Int32 window_id) (at <8b61a4f45bb64fb591febc58234adb97>:0)
	UnityEngine.GUILayout+LayoutedWindow.DoWindow (System.Int32 windowID) (at <fa6f9762ac624af092525d37c9d516c4>:0)
	UnityEngine.GUI.CallWindowDelegate (UnityEngine.GUI+WindowFunction func, System.Int32 id, System.Int32 instanceID, UnityEngine.GUISkin _skin, System.Int32 forceRect, System.Single width, System.Single height, UnityEngine.GUIStyle style) (at <fa6f9762ac624af092525d37c9d516c4>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
[LOG 15:28:44.805] [KerbalXAPI] sending request to: https://kerbalx.com/api/existing_craft.json
[LOG 15:28:44.805] [KerbalXAPI] sending request to: https://kerbalx.com/api/download_queue.json
[LOG 15:28:45.520] [KerbalXAPI] request returned 200 OK
[LOG 15:28:45.603] [KerbalXAPI] request returned 200 OK

 

Craft manager works for me in 1.11

@katateochi

Link to comment
Share on other sites

  • 2 weeks later...
  • "Include stock" button ignores expansions ships
    • GameData\SquadExpansion\Serenity\Ships\ 
    • GameData\SquadExpansion\MakingHistory\Ships\
  • could you split the sort and the load/merge drop-down lists to separate buttons? I believe something like that is more convenient
    Spoiler

    wbdFNBa.jpeg

Edited by flart
Link to comment
Share on other sites

  • 2 months later...
7 minutes ago, Klapaucius said:

Solved. I think another mod was causing problems.

The 503 error is returned from the KerbalX.com website that it was having some kind of error. When that happens Craft Manager stops working if you have the website integration turned on.

You can temporarily turn website integration off in the settings and only use that feature when you are uploading or downloading crafts. 

Link to comment
Share on other sites

5 hours ago, stammu said:

where could i find the log file im sorry i am not good with that stuff and does it have to be the KSP log file or Craft manager

Read the sig in the post previous to yours. Where it says "Read this before asking for support"

Edited by Tacombel
Link to comment
Share on other sites

5 hours ago, stammu said:

https://www.dropbox.com/s/69hlc3mltxgx0i8/Player.log?dl=0

where could i find the log file im sorry i am not good with that stuff and does it have to be the KSP log file or Craft manager

Ok.  I see the problem in Craft Manager, but can't really help beyond confirming this.  Rumors to the contrary, this isn't my mod :D   I see the following in the log file:

NullReferenceException: Object reference not set to an instance of an object
  at CraftManager.Translate.this_string (System.String look_up) [0x00000] in <8b61a4f45bb64fb591febc58234adb97>:0 
  at CraftManager.CraftData.read_craft_info_from_file () [0x0003c] in <8b61a4f45bb64fb591febc58234adb97>:0 
  at CraftManager.CraftData.initialize (System.String full_path, System.Boolean stock) [0x00050] in <8b61a4f45bb64fb591febc58234adb97>:0 
  at CraftManager.CraftData..ctor (System.String full_path, System.Boolean stock) [0x00044] in <8b61a4f45bb64fb591febc58234adb97>:0 
  at CraftManager.CraftData.load_craft_from_files (System.String save_dir) [0x00082] in <8b61a4f45bb64fb591febc58234adb97>:0 
  at CraftManager.CMBrowserBase.refresh () [0x0001a] in <8b61a4f45bb64fb591febc58234adb97>:0 
  at CraftManager.CMBrowser.on_show () [0x00062] in <8b61a4f45bb64fb591febc58234adb97>:0 
  at KatLib.DryUI.show () [0x0000d] in <7ab22c1efaa442c7974f9c6879f3bfcd>:0 
  at KatLib.DryUI.toggle () [0x0000f] in <7ab22c1efaa442c7974f9c6879f3bfcd>:0 
  at CraftManager.CMBrowser+<>c.<.ctor>b__31_1 () [0x00000] in <8b61a4f45bb64fb591febc58234adb97>:0 
  at UnityEngine.Events.InvokableCall.Invoke () [0x00011] in <5aeafee3fea24f37abd1315553f2cfa6>:0 
  at UnityEngine.Events.UnityEvent.Invoke () [0x00023] in <5aeafee3fea24f37abd1315553f2cfa6>:0 
  at UnityEngine.UI.Button.Press () [0x0001c] in <8485d97123094db9883b53b3349c2a3b>:0 
  at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00009] in <8485d97123094db9883b53b3349c2a3b>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00007] in <8485d97123094db9883b53b3349c2a3b>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00063] in <8485d97123094db9883b53b3349c2a3b>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.StandaloneInputModule:ReleaseMouse(PointerEventData, GameObject)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent()
UnityEngine.EventSystems.StandaloneInputModule:Process()
UnityEngine.EventSystems.EventSystem:Update()

The relevant code is here:

            name = Translate.this_string(data.GetValue("ship"));
            description = Translate.this_string(data.GetValue("description"));

So, what you CAN do is check the craft file and make sure there is data for both ship and description. 

My guess is that the craft file is missing one or the other.

If you can send me the craft file, I _might_ be able to figure out where the bug is and possibly fix.  This mod, while a great UI, has a number of bugs, and it's a shame to not have it fixed.  I love the UI, but I have a secondary mod loaded for those times when this bugs out.  For me, this mod works once (usually) after I enter the editor, and then if I try again, it nullrefs and leaves the screen locked.

Link to comment
Share on other sites

19 hours ago, linuxgurugamer said:

Log file is needed

I don't need the files.

One or more of your files is missing one of those two lines: 

  • ships =
  • description =

Regarding the code, it's an easy fix, but I think I want to fix some of the other bugs before making anything available

 

Link to comment
Share on other sites

On 4/17/2021 at 1:22 PM, Krazy1 said:

I had errors before but I'm trying it again and so far it's working OK on 1.11.2.

Naw... it still blows up about 1 in 3 sessions.  

14 hours ago, linuxgurugamer said:

Rumors to the contrary, this isn't my mod :D

14 hours ago, linuxgurugamer said:

Regarding the code, it's an easy fix, but I think I want to fix some of the other bugs before making anything available

Why would there be rumors? :D

Link to comment
Share on other sites

2 hours ago, linuxgurugamer said:

How?  Log file?  Steps to replicate?

Here's the one up above I posted.

I didn't capture the one I saw recently. So far, the triggers and errors don't seem consistent.  1 in 3 might be exaggerated. I'll see if I can break it.

 

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