[Starsector Mods][0.95.1a] Battlesize based skill DP values v0.2.0

  • Post category:Mods
  • Post comments:0 Comments

Features:
A mod that adjusts the skill DP limits based on the battlesize you set, rather than being static values. Changes get applied after game load, so if you change your battlesize limit, do a save/load cycle after to update the skills.

Additionally adjusts the maximum number of officers.

Example skill:

Spoiler: click to expand
Spoiler
Values are the same at default battlesize:


..but scale as battlesize increases:

Code snippet that appears to show reasoing 300 is the default:

Requirements:
None

Supports
Nexerelin Version Checker

Installation:
– Extract the archive into your Starsectormods folder
– Open the game launcher and enable the mod in the Mods section

Download:

Changelog

Spoiler: click to expand
Spoiler
v0.2.0
– default battlesize set to 400 from 300
– default battlesize made configurable through mod settings

v0.1.2
-default values for industry skills fixed

v0.1.1
-fixed issues where repeat loads would recursively alter the values. oops.

v0.1
-inital release

Comments are invited!


Yes, yes, YES! Thank you so much.

The threshold for skills go up every time you reload your save.

Sir, may I ask for your permission to update it to the Chinese Starsector Forum(https://fossic.org) with your author infomation?

Sir, may I ask for your permission to update it to the Chinese Starsector Forum(https://fossic.org) with your author infomation?

Yes. :)


Looked at the code and found out why the DP values were going up each time you load a save; Turns out you made it so that you multiply the current DP threshold value by the battlesize factor.
You need to reference/hardcode the vanilla values and multiply them instead or else you end up multiplying 40 into 53, 53 into 71, 94, 126 and so on.

Looked at the code and found out why the DP values were going up each time you load a save; Turns out you made it so that you multiply the current DP threshold value by the battlesize factor.
You need to reference/hardcode the vanilla values and multiply them instead or else you end up multiplying 40 into 53, 53 into 71, 94, 126 and so on.

Good catch, basic mistake on my part, patch is out that fixes it.


i think current default is 400, and skills are all based around that number

The comment in the API says 300 (exhibit A), and since Alex reworked the skills in the last update I think we can be fairly confident he touched that part of the code recently. I don’t believe 0.91 had such skill limits in place. Thus I am fairly confident the default is 300. I can try asking Alex to confirm though.

Exhibit A:

Edit:
0.95.1a patchnotes says default battle size is changed to 400. hmm. I missed that.


yeah he probably just forgot to edit the comment there

Sir, may I ask for your permission to update it to the Chinese Starsector Forum(https://fossic.org) with your author infomation?

Yes. :)

Sir, I have posted it to this, https://www.fossic.org/forum.php?mod=viewthread&tid=5224 .
Thank you very much!


New version is out with two changes, took way longer than I wanted but life gets in the way as it does.

Save compatible

v0.2.0
– default battlesize set to 400 from 300
– default battlesize made configurable through mod settings


So does this make it so if you mod your battlesize up it will adjust somewhat or what does this fully mean? Admittedly, this does probably mean if you increased your ship cap it won’t solve that problem, but I’m just curious on precisely how this is suppose to be working.

Yes, so for example the skill Crew training retains maximum effect up to 240 DP worth of combat ships in your fleet. This is 60% of the vanilla maximum (and according to 

Now if you for example have changed your game to use 600 battle size instead, normally the skill limit would remain at 240. What this mod does it adjusts the skill limit, in this case, to 60% of 600 -> 360 DP. It will also increase the number of allowed officers.

This mod does not change the vanilla ship limit of 30 for the players fleet.

Basically it brings fleet skills up to par if you play with a modded battle size value. Or constrains a bit if you play with a <400 battle size. Does that answer your question?


I set my battlesize up but looks like I’m still only allowed 5 officers

Leave a Reply