Jump to content

[1.12.x] KSP Alternate Resource Panel v2.11.0.0 (April 10)


TriggerAu

Recommended Posts

I did a quick test on 1.12.2 and it is still showing NRE red text in-game. It seems benign so far but exceptions in flight should be investigated by @TriggerAuto make sure. These can cause soft crashes.

First ship spawned on launchpad gave no error. Then I set ARP to replace the stock resource panel, reverted to editor and launched a plane, then saw red exceptions. 

[LOG 10:08:50.355] [FlightIntegrator]: Vessel Kerbin Mk2 Whiplash plane has been unloaded 1.79769313486232E+308, applying analytic temperature 306.382088276369
[LOG 10:08:50.435] [PlanetariumCamera]: Focus: Kerbin Mk2 Whiplash plane
[EXC 10:08:50.448] NullReferenceException: Object reference not set to an instance of an object
	KSPAlternateResourcePanel.KSPAlternateResourcePanel.SetAppButtonToTrue () (at <937bb4d6d6f54a349df59076417a577d>:0)
	KSPAlternateResourcePanel.KSPAlternateResourcePanel.RepeatingWorker () (at <937bb4d6d6f54a349df59076417a577d>:0)
	KSPPluginFramework.MonoBehaviourExtended.RepeatingWorkerWrapper () (at <937bb4d6d6f54a349df59076417a577d>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
[LOG 10:08:50.493] [UIApp] Adding ResourceDisplay to Application Launcher
[LOG 10:08:50.496] ScaleModList: listSize 574 maxListSize 949
[LOG 10:08:50.496] [UIApp] Adding ResourceDisplay to Application Launcher
[LOG 10:08:50.498] ScaleModList: listSize 574 maxListSize 908
[EXC 10:08:50.542] NullReferenceException: Object reference not set to an instance of an object
	KSPAlternateResourcePanel.KSPAlternateResourcePanel.SetAppButtonToTrue () (at <937bb4d6d6f54a349df59076417a577d>:0)
	KSPAlternateResourcePanel.KSPAlternateResourcePanel.RepeatingWorker () (at <937bb4d6d6f54a349df59076417a577d>:0)
	KSPPluginFramework.MonoBehaviourExtended.RepeatingWorkerWrapper () (at <937bb4d6d6f54a349df59076417a577d>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
[LOG 10:08:50.545] [ResourceDisplay] OnAppStarted(): id: -1376458
[LOG 10:08:50.545] [GenericAppFrame] Reposition 0.2257619 172038
[LOG 10:08:50.546] [ResourceDisplay] OnAppStarted(): id: 382214
[LOG 10:08:50.546] ResourceDisplay already exist, destroying this instance
[LOG 10:08:50.546] [UIApp] OnDestroy: ResourceDisplay
[LOG 10:08:50.546] ScaleModList: listSize 574 maxListSize 908
[LOG 10:08:50.547] [Contract Parser] Loading All Contracts...
[LOG 10:08:50.801] [Contracts_Window_+] 8/28/2021 10:08:50 AM, Loading All Contract Lists...
[LOG 10:08:50.801] [Contracts_Window_+] 8/28/2021 10:08:50 AM, Processing Mission: MasterMission
Active Contracts: 14 - Hidden Contracts: 0
[LOG 10:08:50.801] [Contract Parser] Finished Loading All Contracts
[LOG 10:08:50.802] 8/28/2021 10:08:50 AM,KSPAlternateResourcePanel,AppLauncher: Swapping the ARP App for the Stock Resource App - after 63765742130.8022 secs
[LOG 10:08:50.803] ScaleModList: listSize 574 maxListSize 908
[LOG 10:08:50.817] 8/28/2021 10:08:50 AM,KSPAlternateResourcePanel,Setting App Button True

I've got about 40 mods so this wasn't an ideal test. If you can't reproduce this and want me to do more testing, let me know.

Link to comment
Share on other sites

  • 2 months later...

@TriggerAu
ARP doesn't show the EVA Propellant from the inventory as the stock panel does.
Probably this one:

FlightGlobals.ActiveVessel.evaController.FuelCapacity
FlightGlobals.ActiveVessel.evaController.Fuel

 

UPD.
I added an option for showing EVA Propellant in the SpeedUnitAnnex for now.

 

Edited by flart
SpeedUnitAnnex
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

KSP 1.12.3 Alternate Resource Panel -- Launched everything fine, basic resources reporting correctly, replace stock APP ON functions nominally. I am not using CommunityResource/WildBlue/Interstellar so I cannot confirm any modded resources. As for a stockalike install, it is working.

As always thanks for keeping one of my favourite mods functioning. I reckon an update is nice and maybe there are errors thrown in more modded saves but I'm okay with it as is.

One of the bests features of this mod is overhauling the stock pop-ups for resources. It automatically sorts them into a usable UI instead of the nightmare of the stock UI pooping all the PAWs in random places.

Edited by ElonsMusk
Link to comment
Share on other sites

  • 2 months later...

Hey All, Apologies for the slowness and details, I have two jobs and theyve both been very busy.

Thanks for your patience and the PRs that come through. 

v2.11.0.0 Release

* Recompile for 12.1.3 - any 1.12 version
* Fix for NRE on opening settings (Issue #96)
* Fix EVA Fuel not displaying correctly
* Fix resource duplication - thanks @Mathieu
* Fix Readme.md links - thanks @rayanth

Download from GitHub or Download from Curse or Download from SpaceDock

Link to comment
Share on other sites

On 4/10/2022 at 1:13 AM, TriggerAu said:

Hey All, Apologies for the slowness and details, I have two jobs and theyve both been very busy.

Thanks for your patience and the PRs that come through. 

v2.11.0.0 Release

* Recompile for 12.1.3 - any 1.12 version
* Fix for NRE on opening settings (Issue #96)
* Fix EVA Fuel not displaying correctly
* Fix resource duplication - thanks @Mathieu
* Fix Readme.md links - thanks @rayanth

Download from GitHub or Download from Curse or Download from SpaceDock

Cool man! The community will really appreciate it!

Thanks

Link to comment
Share on other sites

  • 3 weeks later...
3 minutes ago, Rakete said:

Is this mod compatible with the community resource pack, that is used by many mods? Are the resouces included here?

Yes

Link to comment
Share on other sites

  • 2 weeks later...

How do you make it visible. When I click resource icon on the top right I see default window. I have no fancy tabs on top like in the picture. There is also no button in toolbar config. Is there some sort of keyboard shortcut to change default to alternate? 

Link to comment
Share on other sites

1 hour ago, securegm said:

How do you make it visible. When I click resource icon on the top right I see default window. I have no fancy tabs on top like in the picture. There is also no button in toolbar config. Is there some sort of keyboard shortcut to change default to alternate? 

By default it uses a separate button, but there is a config option in the settings section of the window to have it replace the stock resource panel.

Spoiler

7kDYqdp.pngXOjsUxL.pngMJrJh1P.png

 

Edited by Aelfhe1m
Added screenshots
Link to comment
Share on other sites

1 hour ago, Aelfhe1m said:

By default it uses a separate button, but there is a config option in the settings section of the window to have it replace the stock resource panel.

Thanks, I just did not see the icon because I though it was manifest mod. After all those nice pictures, all works well.

Link to comment
Share on other sites

  • 2 weeks later...

It doesn't seem like there's an in-game way to remove a separator. In 'configure resource settings' window, you can add them but no new entries show up in the list to represent them for sorting/removal purposes. I'd need to edit the settings cfg file to remove them.

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