Fractal Softworks Forum

Starsector => Mods => Topic started by: Torashuu on May 26, 2022, 02:47:53 AM

Title: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Torashuu 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:
(https://i.imgur.com/8NhcB4S.png)
(https://i.imgur.com/EIlKhVv.png)
..but scale as battlesize increases:
(https://i.imgur.com/M4UZgOS.png)
(https://i.imgur.com/cwaUayq.png)

Code snippet that appears to show reasoing 300 is the default:
(https://i.imgur.com/KPy6RMI.png)
[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:

(https://img.shields.io/github/downloads/Torashuu/ScalingSkillLimits/total?color=a&style=for-the-badge) (https://github.com/Torashuu/ScalingSkillLimits/releases/download/v0.2.0/ScalingSkillLimits_v0.2.0.zip)

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!
Title: Re: [0.95.1a-RC6] Battlesize based skill DP values
Post by: Great Wound on May 26, 2022, 11:30:09 AM
Yes, yes, YES! Thank you so much.
Title: Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
Post by: mora on May 27, 2022, 06:41:36 AM
The threshold for skills go up every time you reload your save.
Title: Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
Post by: TheHZDev 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?
Title: Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
Post by: Torashuu 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. :)
Title: Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
Post by: mora 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.
Title: Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
Post by: Torashuu 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.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.1.2
Post by: vladokapuh on May 29, 2022, 07:16:08 AM
i think current default is 400, and skills are all based around that number
Title: Re: [0.95.1a] Battlesize based skill DP values v0.1.2
Post by: Torashuu 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:
(https://i.imgur.com/KPy6RMI.png)

Edit:
0.95.1a patchnotes says default battle size is changed to 400. hmm. I missed that.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.1.2
Post by: vladokapuh on May 30, 2022, 12:28:16 AM
yeah he probably just forgot to edit the comment there
Title: Re: [0.95.1a-RC6] Battlesize based skill DP values v0.1
Post by: TheHZDev 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!
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Torashuu 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
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Codyrex123 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.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Torashuu 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 (https://fractalsoftworks.com/forum/index.php?topic=22918.0) 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?
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: IGdood on August 17, 2022, 12:41:43 PM
I set my battlesize up but looks like I'm still only allowed 5 officers
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: MarsInvicta on August 25, 2022, 11:53:01 AM
Does this affect the AI as well?
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Szass Tam on September 01, 2022, 01:13:05 AM
Does this affect the AI as well?

Would like to know it aswell
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Torashuu on September 16, 2022, 11:39:40 AM
I set my battlesize up but looks like I'm still only allowed 5 officers
Simply changing the battle size is not sufficient, the effect is only applied upon loading a game. So a save/reload cycle should do it.

Does this affect the AI as well?

Would like to know it aswell

It only affects the player.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: IGdood on September 16, 2022, 12:09:07 PM
I set my battlesize up but looks like I'm still only allowed 5 officers
Simply changing the battle size is not sufficient, the effect is only applied upon loading a game. So a save/reload cycle should do it.

Does this affect the AI as well?

Would like to know it aswell

It only affects the player.

Thanks for replying.

I realized I had to set the max battle size in the Starsector core config and then change it up in-game and then reload

For some reason I kept thinking this mod would allow one to change max battlesize
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Eikioma on March 05, 2023, 03:07:29 AM
Hi,

Would it be possible to make the "Officer Management" Skill adapte to the DP values ?

For exemple to up or down by 1 per 100 or 200 DP points, so it can remain relevant at highter DP.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Torashuu on March 09, 2023, 04:56:31 AM
Hi,

Would it be possible to make the "Officer Management" Skill adapte to the DP values ?

For exemple to up or down by 1 per 100 or 200 DP points, so it can remain relevant at highter DP.

Oh yeah, missed that, I'll fix it as soon as able.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: FreonRu on May 29, 2023, 11:32:11 AM
Hello.
Is it planned to update the mod for the current version of the game?
Thanks in advance for your reply
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: frozentoes on June 21, 2023, 09:35:07 AM
Seems to work just by updating modinfo.json
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Ranger Dimitri on June 25, 2023, 09:25:10 PM
Can someone explain how to ensure this mod applies it's effects while enabled in game? I have it enabled in the launcher, but I don't see any change in the skill maximum, is the default value from prior to the mod still applying for the default max of 400? Or do I need to go into the mod files to adjust it there, or rather in the Starsector core files? And if the latter which ones exactly do I adjust? I'm not that well versed in the finer points of the game so I would like a bit of an explanation in that sense.

Edit: Figured it out on my own. Works well enough at least! Cool how it also adjust things like the Carrier skills max Fighter bays as well. Should be useful in carrier heavy fleets I might run.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: HankReincarnated on July 29, 2023, 03:04:14 AM
Can someone explain how to ensure this mod applies it's effects while enabled in game? I have it enabled in the launcher, but I don't see any change in the skill maximum, is the default value from prior to the mod still applying for the default max of 400? Or do I need to go into the mod files to adjust it there, or rather in the Starsector core files? And if the latter which ones exactly do I adjust? I'm not that well versed in the finer points of the game so I would like a bit of an explanation in that sense.

Edit: Figured it out on my own. Works well enough at least! Cool how it also adjust things like the Carrier skills max Fighter bays as well. Should be useful in carrier heavy fleets I might run.
and what did you do if I may ask
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: umadbro6440752 on August 06, 2023, 10:24:38 AM
Can i remove the mod from my save?
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: sanya02 on August 13, 2023, 01:57:47 PM
Can i remove the mod from my save?
Didn't like it?
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Ranger Dimitri on November 26, 2023, 05:35:50 AM
Will this work for 0.96? I want to think it will, but I would prefer making sure that it can first.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Kulverstukass on November 26, 2023, 11:28:10 AM
Will this work for 0.96? I want to think it will, but I would prefer making sure that it can first.
Yea, just change version from 095 to 096, so launcher wouldn't kick it off for incompatibility, I've just added after your comment bumped it from obscurity, and it updated numbers right away.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Ranger Dimitri on November 29, 2023, 04:31:24 AM
How exactly do I change the version numbers anyhow? I don't really know how to do any of that myself.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Ragnarok101 on November 29, 2023, 12:22:17 PM
How exactly do I change the version numbers anyhow? I don't really know how to do any of that myself.

In the download is a lil text file called mod_info.json, it's got a gameversion in the text. Replace it with 0.96a-RC6.
Title: Re: [0.95.1a] Battlesize based skill DP values v0.2.0
Post by: Sentrynest33 on April 15, 2025, 06:38:30 AM
Does anyone know if this still works? This was great for large fleet to have better scaling with skills and admiral amount. Can someone take up updating this?