girka2k

[1.4.*] [2.5.3] (2018-04-06) UbioZur Welding Ltd. Continued

Recommended Posts

Posted (edited)
7 hours ago, The Space Man said:

Installed the latest UbioWeld 2.6.0.6, ModuleManager 4.1.3.1 and KSPAPIExtensions 2.1.1.6 from https://github.com/net-lisias-ksp

All i get are these errors in 1.9.1

 

Yeah, I reproduced it. I borked something on KSPe, I'm updating the Tool and will advise ASAP.

In the mean time, please note that the OP's official release also works fine with MM/L 4.1.3.1 - my fork have some niceties, but the OP's one still works!

-- POST - EDIT --

@The Space Man, it's updated. 2.6.0.7 is on the wild.

Spoiler

What happened is that I had cleaned up KSPe code to get rid of some terrible code (and ideas), and ended up breaking backwards compatibility with streaming data to files.

There's some glitches, however. KSP-Recall support is being duplicated. No harm is expected, some things will just be done twice - but next release of KSP Recall will have this fixed.

83955780-35ede800-a82d-11ea-93fb-7e3f8b1

 

 

Edited by Lisias
It`s there.

Share this post


Link to post
Share on other sites
Posted (edited)

Hi! I'm coming up against the limits of what my hardware can support in terms of part count, and welding currently seems like the best solution.

I wouldn't have to weld much; just a few assemblies of structural parts and cabins for my bigger stations and vessels.

I've been trying for some time now to get UbioZur to work with 1.9.1, but no luck so far. I'm obviously doing something wrong.

Query: does the UbioZur welding mod currently work for KSP 1.9.1, and if so, where can I find the proper releases, installation and troubleshooting guides?

-- EDIT --

I got it to work with the forked MM; that'll do until a more permanent fix comes along. Thanks!

Edited by Hoozemans

Share this post


Link to post
Share on other sites

hey @Hoozemans could you explain in details how you got it to work on 1.9 ? i want to use that mod on 1.9 and 1.10 but it doesn't seem to work, and idk what you mean by "forked ModuleManager".

Share this post


Link to post
Share on other sites

Yes, please tell us, how you got it working exactly with 1.10.

Share this post


Link to post
Share on other sites
On 7/6/2020 at 3:51 PM, Lucaspec72 said:

hey @Hoozemans could you explain in details how you got it to work on 1.9 ? i want to use that mod on 1.9 and 1.10 but it doesn't seem to work, and idk what you mean by "forked ModuleManager".

I took the latest releases of https://github.com/net-lisias-ksp/KSPAPIExtensionshttps://github.com/net-lisias-ksp/UbioWeldContinuum, and  https://github.com/net-lisias-ksp/ModuleManager, installed them as per instructions, and then it worked.

Before I was trying to make it work with the main repo of the MM, because I am worried about compatibility with new releases - but I figured we'll solve that problem when it becomes one.

 

Share this post


Link to post
Share on other sites

I tried this, too, but could not see any difference in the vehicle building, no button, nothing.

Share this post


Link to post
Share on other sites
On 7/10/2020 at 12:17 PM, Hoozemans said:

I took the latest releases of https://github.com/net-lisias-ksp/KSPAPIExtensionshttps://github.com/net-lisias-ksp/UbioWeldContinuum, and  https://github.com/net-lisias-ksp/ModuleManager, installed them as per instructions, and then it worked.

Before I was trying to make it work with the main repo of the MM, because I am worried about compatibility with new releases - but I figured we'll solve that problem when it becomes one.

 

This not work for 1.10

Share this post


Link to post
Share on other sites

I found a strange way of detecting ModuleManager on the code, and fixed it. Thanks, @Braste , for the heads up.

 

On 7/10/2020 at 5:17 AM, Hoozemans said:

Before I was trying to make it work with the main repo of the MM, because I am worried about compatibility with new releases - but I figured we'll solve that problem when it becomes one.

And you have one problem less too, as this fork works on KSP 1.4.0 to the newest flawless (1.3.1 is possible, but I need to tackle down something on KSPe first - it's there the problem, not on MM).

3 hours ago, Ciko said:

This not work for 1.10

Yes it does.

87224016-12e8b380-c358-11ea-8554-81a43c7

Exactly as the Official fork, by the way. The reason for the problem described by @Braste is that I wrote a thingy called ModuleManagerWatchDog to prevent multiple installations of MM on KSP >= 1.8 (due a strange new behaviour on the way Assemblies are loaded now), and it happens that the current code assumes that anything starting with ModuleManager is MM, and the WatchDog ended up bitting my SAS on it.

A pull request was issued for the current maintainer, and until a new official release is issued, you can use mine or plain delete GameData/ModulerManagerWatchDog.dll , keep using the official one and call it a day. :)

 

Share this post


Link to post
Share on other sites

@Lisias APIExtension appears to be breaking Kerbal Construction Time.  I followed the instructions above installing MM 4.1.4.1 and getting the following errors repeating in the log :

 

MissingMethodException: bool ToolbarControl_NS.ToolbarControl.LoadImageFromFile(UnityEngine.Texture2D&,string)
  at KerbalConstructionTime.KerbalConstructionTime.OnGUI () [0x0001a] in <62d999a8f87c484eb1d9f06778574928>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
KSPe.Util.Log.UnityLogDecorator:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
 
(Filename: <62d999a8f87c484eb1d9f06778574928> Line: 0)

[WeldingTool] ERROR: UbioWeldingLtd.UbioZurWeldingLtd raised Exception System.NullReferenceException: Object reference not set to an instance of an object
  at UbioWeldingLtd.UbioZurWeldingLtd.Update () [0x00006] in <2565c8d143ba4ca4a86f2d3996151b85>:0  at ex:0
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

NullReferenceException: Object reference not set to an instance of an object
  at UbioWeldingLtd.UbioZurWeldingLtd.Update () [0x00006] in <2565c8d143ba4ca4a86f2d3996151b85>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
KSPe.Util.Log.UnityLogDecorator:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
KSPe.Util.Log.UnityLogger:logException(String, Exception)
KSPe.Util.Log.Logger:error(Object, Exception)
UbioWeldingLtd.Log:ex(MonoBehaviour, Exception)
UbioWeldingLtd.UbioZurWeldingLtd:Update()

Removing APIE removes the error

Share this post


Link to post
Share on other sites
Posted (edited)
3 hours ago, raath said:

@Lisias APIExtension appears to be breaking Kerbal Construction Time.  I followed the instructions above installing MM 4.1.4.1 and getting the following errors repeating in the log :

 


MissingMethodException: bool ToolbarControl_NS.ToolbarControl.LoadImageFromFile(UnityEngine.Texture2D&,string)
  at KerbalConstructionTime.KerbalConstructionTime.OnGUI () [0x0001a] in <62d999a8f87c484eb1d9f06778574928>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
KSPe.Util.Log.UnityLogDecorator:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
 
(Filename: <62d999a8f87c484eb1d9f06778574928> Line: 0)

[WeldingTool] ERROR: UbioWeldingLtd.UbioZurWeldingLtd raised Exception System.NullReferenceException: Object reference not set to an instance of an object
  at UbioWeldingLtd.UbioZurWeldingLtd.Update () [0x00006] in <2565c8d143ba4ca4a86f2d3996151b85>:0  at ex:0
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

NullReferenceException: Object reference not set to an instance of an object
  at UbioWeldingLtd.UbioZurWeldingLtd.Update () [0x00006] in <2565c8d143ba4ca4a86f2d3996151b85>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
KSPe.Util.Log.UnityLogDecorator:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
KSPe.Util.Log.UnityLogger:logException(String, Exception)
KSPe.Util.Log.Logger:error(Object, Exception)
UbioWeldingLtd.Log:ex(MonoBehaviour, Exception)
UbioWeldingLtd.UbioZurWeldingLtd:Update()

Removing APIE removes the error

It's unlikely that removing APIE fixes the Konstruction trying to access a method that doesn't exists. :)

Removing KSPe will only mask the problem, as it will not be logged. It's not a fix.

This log entry says that KerbalConstructionTime.KerbalConstructionTime.OnGUI is calling (or calling someone calling) a thingy called bool ToolbarControl_NS.ToolbarControl.LoadImageFromFile(UnityEngine.Texture2D&,string) , but this method does not exists on  the loaded Assemblies.

HOWEVER... You really detected a problem, just didn't pinpointed the right culprit. I will come back with a fix on the Welding tool in few minutes - don't have a clue if it will fix Konstruction, but it will fix the NRE on the WeldingTool.

-- POST EDIT --

That fix on the WeldingTool would not fix any problem, that code only logs a fancy message about having ToolbarController installed or not, the code that really uses Toolbar controller is working.

What you need is to INSTALL TOOLBAR CONTROL. Konstruction is borking because he is trying to use this method:

        // This function will attempt to load either a PNG or a JPG from the specified path.  
        // It first checks to see if the actual file is there, if not, it then looks for either a PNG or a JPG
        //
        // easier to specify different cases than to change case to lower.  This will fail on MacOS and Linux
        // if a suffix has mixed case
        static string[] imgSuffixes = new string[] { ".png", ".jpg", ".gif", ".PNG", ".JPG", ".GIF", ".dds", ".DDS" };
        public static Boolean LoadImageFromFile(ref Texture2D tex, String fileNamePath)

From this code of Toolbar Controller. But since you didn't installed it, it's borking.

You will fix the problem  by installing ToolbarControl. (don't shoot the messenger! KSPe is helping you!)

Edited by Lisias
Hit "save" too soon.

Share this post


Link to post
Share on other sites
On 7/12/2020 at 11:48 PM, Lisias said:

What you need is to INSTALL TOOLBAR CONTROL. Konstruction is borking because he is trying to use this method:

Toolbar control is installed already.  In the end I temporarily removed KCT, moved my craft files into a temporary game and welded the parts I needed then removed weld, APIe and reverted MM.

Share this post


Link to post
Share on other sites
Posted (edited)
33 minutes ago, raath said:

Toolbar control is installed already.  In the end I temporarily removed KCT, moved my craft files into a temporary game and welded the parts I needed then removed weld, APIe and reverted MM.

Check the Toolbar Control's dependencies. If they are not met, the plugin is not loaded besides being installed, and things borks the same.

Edited by Lisias
Ugh... I need a stronger coffee.

Share this post


Link to post
Share on other sites
Posted (edited)

ToolbarController needs the ClickzthroughBlocker.

Make sure you have the correct versions for the game. 

Edited by linuxgurugamer

Share this post


Link to post
Share on other sites

'Ello!

I've been attempting to use this mod to build a working space elevator to some success as seen here: 

The problem however is that launch clamps, which are used to secure the elevator to the ground 'flop' or let go entirely of any welded object when a kerbal uses a ladder within load range (weird I know.)

Its the only thing that's stopped me from building a (practical) working space elevator and to be honest I'm stumped. Any help or ideas would be greatly appreciated!

Using version 1.7.3 (1.4.2 version of UbioZur.) Parts welded are from KSP interstellar.

 

Share this post


Link to post
Share on other sites

hmmm.... i made a weldement for a gargantuan 1.7km long ship, but then i added more to it after welding, then welded it again, and the unwelded parts worked fine, but the weldement... folded? theoretically, it should be just fine, but it breaks somehow.
the craft on the bottom is that craft i attempted to weld, and the ghostly part on top was the result.
ITY3kfB.png

another angle
9Q9o5EN.png

and to show what was the weldement that got glitched,
vZJB0m4.png

the rightmost part is the original weldement that i used for the middle craft, i added some parts to the front of the craft, then i welded it again, and the part on the left is the result..... the front bits welded correctly, but the weldement just broke

Share this post


Link to post
Share on other sites
Posted (edited)

Hi,

I'm trying to get this mod to work on KSP 1.10, but I'm a bit confused on how to achieve that and what version to use.

I tried the Lisias 2.6.0.8 version and nothing happened, then I tried the Alewx version and I only have the welding button in the toolbar  but it does not do anything when clicked...

Wich version is the most likely to work on KSP 1.10 ? 

 

EDIT: I have all dependencies Installed, and MM 4.1.4

EDIT 2: Ok, I finaly got the Lisias' version to work ! I had to install ksp 1.9.1, then the mods, then launch the game one time in 1.9.1 and finally re-installed 1.10 version. No idea why this won't work the first time...

Edited by JM445

Share this post


Link to post
Share on other sites
14 hours ago, JM445 said:

EDIT 2: Ok, I finaly got the Lisias' version to work ! I had to install ksp 1.9.1, then the mods, then launch the game one time in 1.9.1 and finally re-installed 1.10 version. No idea why this won't work the first time...

That is interesting! :)

Can you please send me your KSP.log? Just out of curiosity, I didn't see this coming!

Share this post


Link to post
Share on other sites
Posted (edited)

hello i signed up to be able to post on this mod - i felt i had to , firstly thank you for bringing this elderly mod back i have missed it a lot , i'll get right to it . I installed all lisias versions of all 3 mods into 1.10 first time with all my other mods including kspie , tweakscale latest, colour depot , mk2e , mk3e ,  aviation lights , kerbal electric lights and glass panes - i do all my mods manualy i do not use ckan in anyway , cant belive it ! - works fine ! however i must post that the same general welding rules apply such as , dont weld moving or docking ports - in fact dont weld anything animated or that you directly interact with at all - that includes anything science , docking ports parachutes cargo bays etc etc, dont weld anything with part variants / texture swaps , do not weld pods,  - if you weld anything with lights on , only the root part with have lights , also be mindfull what part mods youre trying to weld some part mods weld nice some dont , i dont think i would attempt to weld kspie tanks - yet welding certain mk2e/mk3e parts seems to be ok - the only problem i have is now most of the parts / tanks have part variants / multiple textures now - making what parts to actual weld limited - still if you want to build massive space stations from 100s or panels / wings youre good to go in 1.10 thank you for all the hardwork put into this and many other mods .

 

edit : regarding colour depot mod - when you weld it will only apply the colour mod to the root part of the weldment - say for example you cant have a wing as a root part - but you can dump it as a subassembly - weld it - then the colour mod will colour the entire weldment as normal but only for wing parts and if you used any other parts in the weldment only wing parts would get coloured propperly - in case anyone was wondering how to get around colouring weldments with colour depot , regarding this on another note , you would have to make seperate weldments and put them together in your builds if you wanted to have multicoloured parts (remember the weldment will be coloured as one single part) and bringing me to the final point of sticking them together with struts - do not weld weldments together on top of each other ! , its always caused problems originaly - only create single weldments then attach/strut them together as you would normal parts , thank you again for bringing this mod back to life i will try to post some epic pics in the spacecraft exchange with weldments :)

Edited by sentient mirage
more info

Share this post


Link to post
Share on other sites

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.