Fractal Softworks Forum
August 18, 2017, 06:31:33 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New blog post: A True and Accurate History of the Persean Sector (8/16/17); Starsector 0.8.1a is out!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [0.7.2a] Combat Analytics v.1.1 (2017-02-09)  (Read 5425 times)
Nick XR
Commander
***
Posts: 147


View Profile
« on: January 10, 2017, 10:50:29 PM »

Starsector Combat Analytics v.1.1
-=Download=-

Ever wonder how many ships you've killed?  Or how a new ship load-out you've created is performing in combat?  Or how useless a cautious officer is in an Onslaught?
No more guessing, now you can know for sure!

Features:
  • Various reports summarizing ship performance over time or per battle
  • Kill count of various hull sizes
  • Individual weapon performance
  • Combat raw data dump for those that want to be data analysts!
  • Easy to use, just add the mod and you're good to go.


In Game Images:

Analytics!!


-=Download=-

How to use:

 1. Download & install this mod
 2. Make sure this mod is enabled
 3. Fight at least one battle (simulation doesn't count)
 4. Press the 'k' key (configurable in mod's settings.json) when in the campaign UI



Mod compatibility:
 Requires no extra mods/libs to function, plays nice with all tested mods (bunches of factions, SS+ and Nexerlin)

Known Issues/Limitations:
  • Occasionally the killing blow calculation will be incorrect
  • Due to how Starsector .7 handles fighters, they are sometimes treated as ships, sometimes not for kill count purposes.  This will be sorted out in .8+
  • Dialogue area for rendering information is small:  Can't be helped in current version, game limitation.
  • Wont work for simulation battles (requires on combat end events to be fired that aren't fired in sim)
  • Only tracks raw damage before mitigation and armor
  • Disabling mod will render your save broken (but it can be fixed with a text editor)


Using this mod in other mods:
This mod is covered by the MIT license, you can do what ever you want with this, no need to ask.  Just be nice and mention that this mod exists and where you got it from Smiley


 Change Log:
 0.1.1 - Bug fix relating to looking for an entity that might not exist
 0.1 - Created


Forum: http://fractalsoftworks.com/forum/index.php?topic=11551.0
Source: https://bitbucket.org/NickWWest/starsectorcombatanalytics
License: MIT License (Do what ever you want, creators not liable)
« Last Edit: February 09, 2017, 10:33:50 PM by Nick XR » Logged

Midnight Kitsune
Admiral
*****
Posts: 2063


Your Friendly Forum Furry!


View Profile
« Reply #1 on: January 10, 2017, 10:58:41 PM »

One issue I think I can already see is that the K key is used by Common Radar to turn the radar on and off
Logged

Stop trying to balance the game around a few minmaxers...
Programming is like sex:
One mistake and you have to support it for the rest of your life.

Tired of having your game crash because of out of date mods? Then click here!
Get Version Checker today! Now with 90% less hassle! Simply toss it into your mod folder, activate the mod like a normal one and BINGO you will now be informed of any and all updates when you start SS campaign up!
Nick XR
Commander
***
Posts: 147


View Profile
« Reply #2 on: January 10, 2017, 11:06:54 PM »

OhSnap.gif


There will probably be a few other issues I'll solve at the same time before issuing a new version. 

Thanks!
Logged

Network Pesci
Captain
****
Posts: 352


What the heck is so goshdarn funny about me?


View Profile
« Reply #3 on: January 11, 2017, 11:38:41 AM »

Excellent, I've wanted something like this in vanilla for a long time.  I'll be keeping an eye on this.
Logged
nomadic_leader
Admiral
*****
Posts: 599


View Profile
« Reply #4 on: January 22, 2017, 05:42:06 AM »

Nice. Really like the mods experimenting with new features.

Any possibility of adding a running and per battle tally of friendly/enemy crew kills/losses?
Logged
JohnDoe
Captain
****
Posts: 312


View Profile
« Reply #5 on: January 22, 2017, 07:39:26 AM »

I really want something like raid dps meter
Logged
Nick XR
Commander
***
Posts: 147


View Profile
« Reply #6 on: January 22, 2017, 09:26:34 PM »

What sort of functionality does raid dps meter have that you would want?

for SS v.8  I'll see about having optional totals that display during combat.
Logged

stormbringer951
Ensign
*
Posts: 36



View Profile
« Reply #7 on: February 09, 2017, 09:25:02 AM »

There's a crash to desktop bug whenever you exit the combat analytics menu, which after some testing enabling/disabling mods from my modlist seems to be caused by an interaction with Nexerelin.

The stack trace from the Starsector log:

Code:
123629 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.campaign.CampaignState.dialogDismissed(Unknown Source)
at com.fs.starfarer.ui.M.dismiss(Unknown Source)
at com.fs.starfarer.ui.newui.o0oO.dismiss(Unknown Source)
at com.fs.starfarer.ui.newui.T.dismiss(Unknown Source)
at com.fs.starfarer.ui.M.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.newui.T.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.O00OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.processInput(Unknown Source)
at com.fs.starfarer.ui.O0o0.dispatchEventsToChildren(Unknown Source)
at com.fs.starfarer.ui.O0o0.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.O00OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.processInput(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.processInput(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Minimal set of mods to replicate the crash:
  • Combat Analytics .1
  • LazyLib 2.1
  • Nexerelin 0.7.6d
« Last Edit: February 09, 2017, 09:28:23 AM by stormbringer951 » Logged
Nick XR
Commander
***
Posts: 147


View Profile
« Reply #8 on: February 09, 2017, 09:57:43 AM »

Thanks, I'll check it out today.
Logged

Nick XR
Commander
***
Posts: 147


View Profile
« Reply #9 on: February 09, 2017, 10:36:52 PM »

There's a crash to desktop bug whenever you exit the combat analytics menu, which after some testing enabling/disabling mods from my modlist seems to be caused by an interaction with Nexerelin.

The stack trace from the Starsector log:

Code:
123629 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.campaign.CampaignState.dialogDismissed(Unknown Source)
at com.fs.starfarer.ui.M.dismiss(Unknown Source)
at com.fs.starfarer.ui.newui.o0oO.dismiss(Unknown Source)
at com.fs.starfarer.ui.newui.T.dismiss(Unknown Source)
at com.fs.starfarer.ui.M.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.newui.T.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.O00OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.processInput(Unknown Source)
at com.fs.starfarer.ui.O0o0.dispatchEventsToChildren(Unknown Source)
at com.fs.starfarer.ui.O0o0.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.O00OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.processInput(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.processInput(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Minimal set of mods to replicate the crash:
  • Combat Analytics .1
  • LazyLib 2.1
  • Nexerelin 0.7.6d

Got it fixed, new DL link is up.  Thanks for the easy repro steps with the mod list.

Root problem was, the dialogue init was looking for a sector entity token that doesn't exist in non vanilla games (Jangala system)
Logged

stormbringer951
Ensign
*
Posts: 36



View Profile
« Reply #10 on: February 10, 2017, 02:21:43 AM »

There's a crash to desktop bug whenever you exit the combat analytics menu, which after some testing enabling/disabling mods from my modlist seems to be caused by an interaction with Nexerelin.

The stack trace from the Starsector log:

Code:
123629 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.campaign.CampaignState.dialogDismissed(Unknown Source)
at com.fs.starfarer.ui.M.dismiss(Unknown Source)
at com.fs.starfarer.ui.newui.o0oO.dismiss(Unknown Source)
at com.fs.starfarer.ui.newui.T.dismiss(Unknown Source)
at com.fs.starfarer.ui.M.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.newui.T.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.O00OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.processInput(Unknown Source)
at com.fs.starfarer.ui.O0o0.dispatchEventsToChildren(Unknown Source)
at com.fs.starfarer.ui.O0o0.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.O00OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.processInput(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.processInput(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Minimal set of mods to replicate the crash:
  • Combat Analytics .1
  • LazyLib 2.1
  • Nexerelin 0.7.6d

Got it fixed, new DL link is up.  Thanks for the easy repro steps with the mod list.

Root problem was, the dialogue init was looking for a sector entity token that doesn't exist in non vanilla games (Jangala system)

No problem. Thanks for the blazing fast turnaround time on the hotfix Smiley
Logged
Weltall
Admiral
*****
Posts: 762



View Profile
« Reply #11 on: February 10, 2017, 06:58:32 PM »

A cautious officer in an onslaught  Shocked I definitely do not need a mod to know ow useless they will be! 100%  Roll Eyes

Holy.. I remember talks about a mod like this, but I never thought I would see it. Thanks a lot Nick XR. How many times I would feel someone in team is doing nothing but flying around. This is great =)
Logged

Ignorance is bliss..
Pegart
Ensign
*
Posts: 4


View Profile
« Reply #12 on: February 13, 2017, 06:45:32 AM »

Quote
Disabling mod will render your save broken (but it can be fixed with a text editor)

What needs to be edited in the save file when turning the mod off to fix it?
Logged
Nick XR
Commander
***
Posts: 147


View Profile
« Reply #13 on: February 13, 2017, 09:44:20 AM »

I'm not sure off the top of my head, I'll let you know inside the day.  The core issues is CombatAnalytics classes are serialized with the persisted data.  The gist is to fix your save, you just need to safely remove all the elements where CombatAnalytics is referenced.

There shouldn't be any issues with leaving the mod enabled to keep it from breaking your save (if you are having issues, please let me know). 

In the next release disabling the mod won't break your saves, but I'm waiting for SS.8 to release it.
Logged

Pegart
Ensign
*
Posts: 4


View Profile
« Reply #14 on: February 13, 2017, 10:42:36 AM »

OK, sure will if I'll have any problems. Was just postponing using it because I didn't want to risk breaking my game and potentially not being able to revert back but if you say it's pretty simple if it needs to be done I'll use it.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2011, Simple Machines
Simple Audio Video Embedder
Valid XHTML 1.0! Valid CSS!