Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Pages: [1] 2 3

Author Topic: [0.95.1a] Battlesize based skill DP values v0.2.0  (Read 38777 times)

Torashuu

  • Ensign
  • *
  • Posts: 19
    • View Profile
[0.95.1a] Battlesize based skill DP values v0.2.0
« on: May 26, 2022, 02:47:53 AM »

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
Values are the same at default battlesize:


..but scale as battlesize increases:



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

[close]

Requirements:
None

Supports
Nexerelin Version Checker

Installation:
- Extract the archive into your Starsector\mods folder
- Open the game launcher and enable the mod in the Mods section

Download:



Changelog
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
[close]

Comments are invited!
« Last Edit: July 31, 2022, 04:01:12 AM by Torashuu »
Logged

Great Wound

  • Captain
  • ****
  • Posts: 268
    • View Profile
Re: [0.95.1a-RC6] Battlesize based skill DP values
« Reply #1 on: May 26, 2022, 11:30:09 AM »

Yes, yes, YES! Thank you so much.

mora

  • Commander
  • ***
  • Posts: 148
    • View Profile
Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
« Reply #2 on: May 27, 2022, 06:41:36 AM »

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

TheHZDev

  • Lieutenant
  • **
  • Posts: 60
    • View Profile
Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
« Reply #3 on: May 27, 2022, 09:42:59 PM »

Sir, may I ask for your permission to update it to the Chinese Starsector Forum(https://fossic.org) with your author infomation?
« Last Edit: May 27, 2022, 10:07:26 PM by TheHZDev »
Logged

Torashuu

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
« Reply #4 on: May 28, 2022, 03:38:04 AM »

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

mora

  • Commander
  • ***
  • Posts: 148
    • View Profile
Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
« Reply #5 on: May 28, 2022, 06:54:41 AM »

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

Torashuu

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
« Reply #6 on: May 28, 2022, 12:13:49 PM »

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

vladokapuh

  • Commander
  • ***
  • Posts: 127
  • Cabbage
    • View Profile
Re: [0.95.1a] Battlesize based skill DP values v0.1.2
« Reply #7 on: May 29, 2022, 07:16:08 AM »

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

Torashuu

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.95.1a] Battlesize based skill DP values v0.1.2
« Reply #8 on: May 29, 2022, 01:16:21 PM »

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.
« Last Edit: May 29, 2022, 01:42:28 PM by Torashuu »
Logged

vladokapuh

  • Commander
  • ***
  • Posts: 127
  • Cabbage
    • View Profile
Re: [0.95.1a] Battlesize based skill DP values v0.1.2
« Reply #9 on: May 30, 2022, 12:28:16 AM »

yeah he probably just forgot to edit the comment there
Logged
Cabbage

TheHZDev

  • Lieutenant
  • **
  • Posts: 60
    • View Profile
Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
« Reply #10 on: May 30, 2022, 04:12:18 AM »

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!
Logged

Torashuu

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.95.1a] Battlesize based skill DP values v0.2.0
« Reply #11 on: July 31, 2022, 04:02:38 AM »

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
Logged

Codyrex123

  • Ensign
  • *
  • Posts: 25
    • View Profile
Re: [0.95.1a] Battlesize based skill DP values v0.2.0
« Reply #12 on: August 01, 2022, 03:55:27 PM »

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

Torashuu

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.95.1a] Battlesize based skill DP values v0.2.0
« Reply #13 on: August 02, 2022, 01:46:32 PM »

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  the last patch notes the default) battle size.

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?
Logged

IGdood

  • Commander
  • ***
  • Posts: 189
    • View Profile
Re: [0.95.1a] Battlesize based skill DP values v0.2.0
« Reply #14 on: August 17, 2022, 12:41:43 PM »

I set my battlesize up but looks like I'm still only allowed 5 officers
Logged
Pages: [1] 2 3