KSPModdingLibs/KSPCommunityFixes

KCPCF breaking Infernal Robotics - Next PAW float edit entries

Rodg88 opened this issue · 1 comments

I'm getting log spam while a PAW for any IR robotic part is open, in the editor or flight with KSPCF:

ItemPrefab for control type 'UI_FloatEditEx' not found.

Tested with only IR installed, and the float edit fields show up as normal. Eg Force, Acceleration, Max Speed, and Min and Max limits. Then added in only KSPCF, and the float edit entries stop showing and the errors start.

Log in case it's useful: https://gist.github.com/Rodg88/a689bf8f53f445238d666bbfcb196e2c

So, the issue is that the KSPCF UIFloatEditNumericInput patch replaces the stock prefab with a derived class, and IR uses a strict type check when it tries to copy the stock prefab to build it's own customized version, here and here.

This could be fixed on the IR side by using a non-strict type check, but ideally KSPCF should avoid interfering.
I will see what I can do.