DFun Skills Increasing (DFSI) v3

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
jdieff
Posts: 7
Joined: Sun, 2. Jun 19, 12:04
x4

DFun Skills Increasing (DFSI) v3

Post by jdieff » Wed, 5. Jun 19, 00:05

V3 is a complete reconstruction of the script.

ALL of your staff on ALL of your properties can now upgrade their skills.

Each member has their own aptitude for each skill, including morale:
These skills are calculated using the 'seed' which is a random number, determined by the game when the character was created.
These calculations follow a Gaussian curve: most of them will have average aptitudes, and few will have significant or minimal faculties ...

These skills will determine their speed of progression, but not only:

The post:
Obviously, the position occupied will determine the priority given to learning and training each skill.

The moral :
It allows progress in the fields. The higher the morale, the faster the progression.
Morale increases more or less rapidly depending on individual ability, but also depending on:
- for pilots and crew members: the number of crew members present and the number of possible subordinates,
- for managers: the number of workers present and/or the number of subordinates (depending on the type of station),
- and whether or not the player is on the ship or station.
Morale can also drop if the number of people present is too low (crew members or workers), or the number of subordinates for stations.

The class of vessel:
The bigger, the better ...

Whether the vessel is docked or not:
Management learning and boarding training will be more effective when the vessel is docked on a station or on another vessel, the efficiency thus depending on the class of the carrier vessel. These advantages do not concern managers, confined to their office ...
However, for piloting or engineering skills, it is preferable not to be docked.

Level :
Each star is divided into 3 levels: level 3 = 1 star, level 15 = 5 stars.
As in previous versions, the higher the level, the more complicated it will be to reach the next level.
On the other hand, the probability calculation has been entirely modified to take into account the parameters described above, and in particular individual skills whose impact on the speed of progression will be clearly visible in the last levels.

A report will be provided every hour in the logbook, in the 'news' tab, to keep you informed of progress.

This reconstruction also avoids possible slowdowns if you have a large fleet with a very large number of employees.

Steam workshop link : https://steamcommunity.com/sharedfiles/ ... 1759853091
DDL link : https://1drv.ms/u/s!AuFbJGxlVpN7nUscd6CabU8q7hlG (Extract the .zip file in the "extensions" folder of the game. If don't exist, create it)

Your feedback is welcome.
Good game everyone !

v3.1 :

- Improved probability of raising morale for managers : for stations needing workers, morale can be maintained, and even increased,
- Improved subordinates bonus for calculation of the probability of raising morale.

v3.0 :

- Fixed ALL of your staff on ALL of your properties can now upgrade their skills,
- Added each member has their own aptitude for each skill, including morale,
- Added moral processing,
- Added taking into account the presence of the player, the class of vessels, the number of crew members/workers and subordinates,
- Improved probability calculation,
- Improved script report.

v2.0 :

- Added a processing to increase skills for ships docked on player properties,
- Added float number for chances, and then for the probability calculation,
- Added taking into account the morale level for the probabilities calculation,
- Added entry in the player logbook after the runtime with information data,
- Improved minimum and maximum chance values to keep the spirit of the game :),
- Removed morale level increasing.

v1.0 :

Made on the basis of the script "Learning All The Things" by iforgotmysocks https://www.nexusmods.com/x4foundations/mods/8, i posted "DFun Skills Increasing (DFSI)" :

Depending on role and skills level, each playercontrolled NPC has chance to improve each skill every 20 minutes.

From the primary to the last skill of the NPC role, chances to level up are :

1st : from 50% at the level 0, to 3% at the level 14
2nd : from 40% at the level 0, to 2% at the level 14
3rd : from 30% at the level 0, to 1% at the level 14
4th : from 20% at the level 0, to 0% at the level 14
5th : from 10% at the level 0, to 0% at the level 14

Thus, for the 4th and 5th skills, you need to change the NPC role to level up to 15, or wait for the ingame skill improvement :)

Skills order of each role is determined by the viewable order in the game. For example, for a pilot :

1st skill : piloting
2nd : morale
3rd : management
4th : engineering
5th : boarding

Evolutions are slower than original script, but made to be more realistic :)
Last edited by jdieff on Sat, 13. Jun 20, 11:10, edited 10 times in total.

steve_v
Posts: 164
Joined: Sun, 12. Jun 16, 08:39
x4

Re: DFun Skills Increasing (DFSI)

Post by steve_v » Wed, 5. Jun 19, 02:18

Looks cool, steam-free download link please.

jdieff
Posts: 7
Joined: Sun, 2. Jun 19, 12:04
x4

Re: DFun Skills Increasing (DFSI)

Post by jdieff » Wed, 5. Jun 19, 20:29

steve_v wrote:
Wed, 5. Jun 19, 02:18
Looks cool, steam-free download link please.
Presentation updated :wink:

steve_v
Posts: 164
Joined: Sun, 12. Jun 16, 08:39
x4

Re: DFun Skills Increasing (DFSI)

Post by steve_v » Thu, 6. Jun 19, 10:50

jdieff wrote:
Wed, 5. Jun 19, 20:29
Presentation updated :wink:
Thanks muchly. Tried it out (GNU/Linux), it failed to load, and I see this in my log:

Code: Select all

LIBXML2: personal:///extensions%2Fdfunskillsincreasing%2Fcontent?ext=xml.gz%20xml&verify=2 line 2, error 9: Input is not proper UTF-8, indicate encoding !
Changing the encoding to ISO-8859-1 allows the file to load. Dunno if this is GNU/Linux specific, Gentoo-specific or just a strange behaviour of libxml2, but it's easily fixed.

jdieff
Posts: 7
Joined: Sun, 2. Jun 19, 12:04
x4

Re: DFun Skills Increasing (DFSI)

Post by jdieff » Fri, 7. Jun 19, 22:20

steve_v wrote:
Thu, 6. Jun 19, 10:50
jdieff wrote:
Wed, 5. Jun 19, 20:29
Presentation updated :wink:
Thanks muchly. Tried it out (GNU/Linux), it failed to load, and I see this in my log:

Code: Select all

LIBXML2: personal:///extensions%2Fdfunskillsincreasing%2Fcontent?ext=xml.gz%20xml&verify=2 line 2, error 9: Input is not proper UTF-8, indicate encoding !
Changing the encoding to ISO-8859-1 allows the file to load. Dunno if this is GNU/Linux specific, Gentoo-specific or just a strange behaviour of libxml2, but it's easily fixed.
File, .zip, then link updated :)
I have removed French characters in the content.xml file and i have cleaned it.

steve_v
Posts: 164
Joined: Sun, 12. Jun 16, 08:39
x4

Re: DFun Skills Increasing (DFSI)

Post by steve_v » Sat, 11. Apr 20, 22:56

jdieff wrote:
Fri, 7. Jun 19, 22:20
I have removed French characters in the content.xml file and i have cleaned it.
Excellent :)

jdieff
Posts: 7
Joined: Sun, 2. Jun 19, 12:04
x4

Re: DFun Skills Increasing (DFSI)

Post by jdieff » Sat, 13. Jun 20, 09:52

steve_v wrote:
Sat, 11. Apr 20, 22:56
jdieff wrote:
Fri, 7. Jun 19, 22:20
I have removed French characters in the content.xml file and i have cleaned it.
Excellent :)
Mod updated :)

Post Reply

Return to “X4: Foundations - Scripts and Modding”