Papa_Joe Posted February 20, 2022 Author Share Posted February 20, 2022 Just now, mario-sov said: 1. Broken blizzy toolbar (the exception prevents from button appearing at all) [EXC 20:30:13.386] ArgumentNullException: Value cannot be null. Parameter name: method System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) (at <9577ac7a62ef43179789031239ba8798>:0) System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) (at <9577ac7a62ef43179789031239ba8798>:0) PlanetShine.Utils.Button.AttachEventHandler (System.Reflection.EventInfo event, System.String methodName, System.Object realButton) (at <2b12c5ac0a4d4274817dacc52f772def>:0) PlanetShine.Utils.Button..ctor (System.Object realButton, PlanetShine.Utils.ToolbarTypes types) (at <2b12c5ac0a4d4274817dacc52f772def>:0) PlanetShine.Utils.ToolbarManager.Add (System.String ns, System.String id) (at <2b12c5ac0a4d4274817dacc52f772def>:0) PlanetShine.Gui.GuiManager.UpdateToolbarBlizzy () (at <2b12c5ac0a4d4274817dacc52f772def>:0) PlanetShine.Gui.GuiManager.Start () (at <2b12c5ac0a4d4274817dacc52f772def>:0) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object) 2. Now instead of pink square you got this Hide contents Version compiled for 1.8 still works though Can you send my your player log? Quote Link to comment Share on other sites More sharing options...
mario-sov Posted February 20, 2022 Share Posted February 20, 2022 (edited) 9 minutes ago, Papa_Joe said: Can you send my your player log? When I get the chance sure (gotta reinstall the latest version and spin up KSP to generate log). I forgot to mention the other thing (if that helps in the meantime though). Last night I went in and reverted the old toolbar wrapper code as seen here: https://github.com/prestja/ksp-planetshine/blob/master/PlanetShine/Utils/ToolbarWrapper.cs and recompiled. It worked. So I'm guessing it's related to reflection somewhere in the toolbar code. Edited February 20, 2022 by mario-sov Quote Link to comment Share on other sites More sharing options...
Papa_Joe Posted February 20, 2022 Author Share Posted February 20, 2022 19 minutes ago, mario-sov said: When I get the chance sure (gotta reinstall the latest version and spin up KSP to generate log). I forgot to mention the other thing (if that helps in the meantime though). Last night I went in and reverted the old toolbar wrapper code as seen here: https://github.com/prestja/ksp-planetshine/blob/master/PlanetShine/Utils/ToolbarWrapper.cs and recompiled. It worked. So I'm guessing it's related to reflection somewhere in the toolbar code. I did do some refactoring in that area, unintentionally while working other sections of code. I'll see what I broke. Quote Link to comment Share on other sites More sharing options...
dprostock Posted February 20, 2022 Share Posted February 20, 2022 No problem. errare humanum est Quote Link to comment Share on other sites More sharing options...
Krazy1 Posted February 21, 2022 Share Posted February 21, 2022 I just realized there are 2 planetshine threads... I'm not going krazy. Reposting feature request here just so it doesn't get lost. Thanks for maintaining this mod. "I have eclipses active in Scatterer 0.0831 and I'm orbiting the Mun and Kerbin is eclipsing the sun. That works, Mun is dark, but PlanetShine is still illuminating the Mun side of the ship. It would nice if it integrated with Scatterer eclipses so it's totally dark. " Quote Link to comment Share on other sites More sharing options...
Papa_Joe Posted February 21, 2022 Author Share Posted February 21, 2022 15 hours ago, Krazy1 said: I just realized there are 2 planetshine threads... I'm not going krazy. Reposting feature request here just so it doesn't get lost. Thanks for maintaining this mod. "I have eclipses active in Scatterer 0.0831 and I'm orbiting the Mun and Kerbin is eclipsing the sun. That works, Mun is dark, but PlanetShine is still illuminating the Mun side of the ship. It would nice if it integrated with Scatterer eclipses so it's totally dark. " Yes, @prestja took over support during my absence. I'm indebted to him for that support. Now that I'm back, I'm resuming support of most of the mods I used to support. Quote Link to comment Share on other sites More sharing options...
Zaffre Posted February 21, 2022 Share Posted February 21, 2022 Welcome back! I was wondering if I was seeing stars like the usual. Quote Link to comment Share on other sites More sharing options...
Grem Posted February 22, 2022 Share Posted February 22, 2022 On 2/21/2022 at 5:40 AM, mario-sov said: 1. Broken blizzy toolbar (the exception prevents from button appearing at all) [EXC 20:30:13.386] ArgumentNullException: Value cannot be null. Parameter name: method System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) (at <9577ac7a62ef43179789031239ba8798>:0) System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) (at <9577ac7a62ef43179789031239ba8798>:0) PlanetShine.Utils.Button.AttachEventHandler (System.Reflection.EventInfo event, System.String methodName, System.Object realButton) (at <2b12c5ac0a4d4274817dacc52f772def>:0) PlanetShine.Utils.Button..ctor (System.Object realButton, PlanetShine.Utils.ToolbarTypes types) (at <2b12c5ac0a4d4274817dacc52f772def>:0) PlanetShine.Utils.ToolbarManager.Add (System.String ns, System.String id) (at <2b12c5ac0a4d4274817dacc52f772def>:0) PlanetShine.Gui.GuiManager.UpdateToolbarBlizzy () (at <2b12c5ac0a4d4274817dacc52f772def>:0) PlanetShine.Gui.GuiManager.Start () (at <2b12c5ac0a4d4274817dacc52f772def>:0) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object) 2. Now instead of pink square you got this Reveal hidden contents Version compiled for 1.8 still works though I confirm, I have the same problem. Quote Link to comment Share on other sites More sharing options...
geostationary_coffee Posted February 22, 2022 Share Posted February 22, 2022 Latest version appears to cause a white bar to appear on probe cores: https://imgur.com/a/iXe55bz I'm on Linux, if that helps. Quote Link to comment Share on other sites More sharing options...
Krazy1 Posted February 22, 2022 Share Posted February 22, 2022 26 minutes ago, geostationary_coffee said: a white bar It also does it on the launch pad without a probe core, Win 10. Spoiler Quote Link to comment Share on other sites More sharing options...
Biggen Posted February 22, 2022 Share Posted February 22, 2022 Also seeing white bar. Quote Link to comment Share on other sites More sharing options...
FDAUT Posted February 22, 2022 Share Posted February 22, 2022 Getting white bar same as others. Quote Link to comment Share on other sites More sharing options...
Glimmerglint Posted February 22, 2022 Share Posted February 22, 2022 Im getting the bar too after updating, it appears on eva kerbals and it also appears to 'fall off' a plane im piloting and fall behind it. Quote Link to comment Share on other sites More sharing options...
Biggen Posted February 22, 2022 Share Posted February 22, 2022 Yup, it falls off when I'm parachuting back into Kerbin as well. Quote Link to comment Share on other sites More sharing options...
ble210 Posted February 22, 2022 Share Posted February 22, 2022 Can also confirm the white bars. Quote Link to comment Share on other sites More sharing options...
mario-sov Posted February 22, 2022 Share Posted February 22, 2022 (edited) On 2/20/2022 at 9:17 PM, Papa_Joe said: I did do some refactoring in that area, unintentionally while working other sections of code. I'll see what I broke. Hey, So I looked in the ILSpy why these lines are not there in the older version and they're there in the new version. CreateDebugLines method in the last valid release is empty so these debug lines don't show (not reflected in the source code though). White line won't show though if you enable this line https://github.com/PapaJoesSoup/ksp-planetshine/blob/f95276d6e46d33410a593ff59950e50da9e0f34a/PlanetShine/PlanetShine.cs#L313 So when you compile them due to the commented out line the values are not updated hence you get the white line. So either remove debug lines completely in CreateDebugLines method or reenable the commented out line of code. As for the toolbar issue I recommend reverting the logic it is even mentioned by the author of the code not to touch it: https://github.com/PapaJoesSoup/ksp-planetshine/blob/f95276d6e46d33410a593ff59950e50da9e0f34a/PlanetShine/Utils/ToolbarWrapper.cs#L39-L49 Also the fellow who suggested changing: light.cullingMask = (1 << 0); to light.cullingMask = (1 << 0) | (1 << 16) is partially correct I guess. What you want per docs is the EVA layer so perhaps use: light.cullingMask = (1 << 0) | (1 << 16) | (1 << 17)? So the end result is this: https://giant.gfycat.com/InsidiousApprehensiveDove.mp4 1. I've got my button back 2. No white line and debug lines actually work 3. Light is visible on Kerbals in EVA Edited February 22, 2022 by mario-sov Mistake Quote Link to comment Share on other sites More sharing options...
Papa_Joe Posted February 22, 2022 Author Share Posted February 22, 2022 1 hour ago, mario-sov said: Hey, So I looked in the ILSpy why these lines are not there in the older version and they're there in the new version. CreateDebugLines method in the last valid release is empty so these debug lines don't show (not reflected in the source code though). White line won't show though if you enable this line https://github.com/PapaJoesSoup/ksp-planetshine/blob/f95276d6e46d33410a593ff59950e50da9e0f34a/PlanetShine/PlanetShine.cs#L313 So when you compile them due to the commented out line the values are not updated hence you get the white line. So either remove debug lines completely in CreateDebugLines method or reenable the commented out line of code. As for the toolbar issue I recommend reverting the logic it is even mentioned by the author of the code not to touch it: https://github.com/PapaJoesSoup/ksp-planetshine/blob/f95276d6e46d33410a593ff59950e50da9e0f34a/PlanetShine/Utils/ToolbarWrapper.cs#L39-L49 Also the fellow who suggested changing: light.cullingMask = (1 << 0); to light.cullingMask = (1 << 0) | (1 << 16) is partially correct I guess. What you want per docs is the EVA layer so perhaps use: light.cullingMask = (1 << 0) | (1 << 16) | (1 << 17)? So the end result is this: https://giant.gfycat.com/InsidiousApprehensiveDove.mp4 1. I've got my button back 2. No white line and debug lines actually work 3. Light is visible on Kerbals in EVA Looks awesome. I suspected that the debug lines were the culprit. I've already reverted the blizzy code and the culling mask is a great find. Thanks! I'll look at issuing a release later today. Quote Link to comment Share on other sites More sharing options...
Papa_Joe Posted February 23, 2022 Author Share Posted February 23, 2022 (edited) Ok new release. v0.2.6.6 Feb 22, 2022 - Add support for Kerbals EVA to experience planetshine - Fix broken Blizzy Toolbar support. File was refactored accidentally. - Correct white line visible. - @mario-sov and others that contributed to the solutions, Thanks for the support! Enjoy, and as always, let me know if there are issues. Lord knows I'm not perfect. Edited February 23, 2022 by Papa_Joe Quote Link to comment Share on other sites More sharing options...
dok_377 Posted February 23, 2022 Share Posted February 23, 2022 5 hours ago, Papa_Joe said: - Add support for Kerbals EVA to experience planetshine You fixed it! Thank you so much! Quote Link to comment Share on other sites More sharing options...
Papa_Joe Posted February 23, 2022 Author Share Posted February 23, 2022 9 hours ago, dok_377 said: You fixed it! Thank you so much! No, WE fixed it. What a great community. Quote Link to comment Share on other sites More sharing options...
Efrenlee Posted May 1, 2022 Share Posted May 1, 2022 Does it fit with RSS? Quote Link to comment Share on other sites More sharing options...
zhishengji Posted May 25, 2022 Share Posted May 25, 2022 (edited) it can used with RSS? Edited May 25, 2022 by zhishengji Quote Link to comment Share on other sites More sharing options...
CFYL Posted May 25, 2022 Share Posted May 25, 2022 From my personal point of view, it doesn't cause issues when running with RSS installed. However I don't see much light reflected from the Earth in LEO. This might be because 1) mod not working properly 2) light is too faint and I can't see. EDIT: Just looked at the config files. I have RSS v18.5.0 installed. It contains a file GameData/RealSolarSystem/Compatibility/PlanetShineColors.cfg. So it will work. I'm just seeing very dim lights -- realistic enough. With RSS installed, planet shine will work. DistantObjectEnhacement will also work, because it seems to share the "PlanetColours" system with PlanetShine. Quote Link to comment Share on other sites More sharing options...
italon Posted January 13 Share Posted January 13 I am unable to save config settings ingame nor directly from the .cfg file. Could someone assist? I can make the changes via the config file and save the file, reopen it and it is obviously saved, but the game doesn't reflect the changes either. Quote Link to comment Share on other sites More sharing options...
Makrom Posted February 3 Share Posted February 3 (edited) Hello. I´m having the issue of the pink square, I´m using the last version of planet shine (0.2.6.6) I tried with the previous one too (2.6.5), I reinstall the mods twice and the little pink square stays there. https://imgur.com/h6dtu5S https://imgur.com/WZYeXKm Ksp 1.12.3 As for visual stuff, I´m using RSS, EVE 1.11.6.1, scatterer 0.0772, astroniki sunflare for RSS 1.0, REO 0.3.2, Distant object 2.0.2 thanks in advance Edited February 3 by Makrom typos Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.