[MOD] AutoTrain

The place to discuss scripting and game modifications for X Rebirth.

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

Post Reply
pref
Posts: 3418
Joined: Sat, 10. Nov 12, 18:55

[MOD] AutoTrain

Post by pref » Fri, 22. Jan 16, 14:27

workshop link
dropbox


Ship&station crews gain skills while working.
If used together with AutoCrew, it will reduce the initial skills for auto-hired employees so there is space for improvement.

Skill gains can happen during
* patrol (captain, defence, engineer),
* general movement (captain/pilot),
* station daily work (manager, defence, specialist)
* trade (captain, engineer),
* full repair of a component (engineer)
* kills (defence)

Tested on 4.0 only

Skill increase should be relatively slow, but when installing the mod on a save with many employees you might get an initial flood of skillups. It will settle down once only new hirelings need to be trained.

If you feel it needs more balance drop me feedback (quite possible).






below the original discussion:
--------------------------------------------------------------------------------------------

I got curious if its possible to have NPCs get trained during everyday actions - so i put the code together, but i can't test and balance it reliably.
If anyone is willing to help with that let me know and ill upload a test version somewhere.

Idea is to train your ship crew automatically when they complete a task (a single skill gains one more star with a low chance).
Chances are a bit higher to increase the main skill (nav for captains, combat for DO). And having a used skill maxed will reduce chances for further trainings by about 30%.
Skills not used by the NPC will stay as they are.

* captain: 5% chance after finishing a generic move to order (used by most move and trade related commands)
* defence: 1-25% on enemy ship destruction
* engineer: 1% on completing repair of any component

It reduces AutoCrew's initial skill values (without depending on it) so optionally both can be used at the same time.
I mean it should work with ot without AC just as well.
Last edited by pref on Sun, 6. Mar 16, 23:00, edited 3 times in total.

mcaule
Posts: 97
Joined: Wed, 11. Jan 12, 19:04

Post by mcaule » Sat, 23. Jan 16, 00:42

Why not making them train in realtime? I mean after lets say an hour of patroling, trading etc. officers gain a star, or after a number of tasks finished.
I am become Death, the destroyer of worlds...

Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 7032
Joined: Tue, 30. Mar 04, 12:28

Post by Sparky Sparkycorp » Sat, 23. Jan 16, 00:53

There's already a time-linked training mod, which pref may be aware of.

pref
Posts: 3418
Joined: Sat, 10. Nov 12, 18:55

Post by pref » Sat, 23. Jan 16, 01:25

The problem is detecting if they were patrolling or trading etc.

If you leave your captains sitting in one place for no matter how long, they should not gain any skills.

Maybe ES decides to do something more with the skill system laters, then this could be used to avoid smalltalk.

Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 7032
Joined: Tue, 30. Mar 04, 12:28

Post by Sparky Sparkycorp » Sat, 23. Jan 16, 02:20

I dunno if it could be useful but the following might offer hooks for Managers and free traders (Captain, Pilot):
• Beta 6 Added money statistics for employees (improves feature introduced in 4.00).
http://forum.egosoft.com/viewtopic.php?t=355582

pref
Posts: 3418
Joined: Sat, 10. Nov 12, 18:55

Post by pref » Mon, 25. Jan 16, 03:42

Well, it kinda works so far. Getting a more or less balanced growth on all npc roles.
Maybe too fast, not sure on speed.

workshop link

pref
Posts: 3418
Joined: Sat, 10. Nov 12, 18:55

Post by pref » Mon, 25. Jan 16, 18:08

Anyone knows what is the difference between fighter numbers between different game difficulty settings?
It seems i have to come up with a multiplier for exp/kill values esp for S ships.

-=SiR KiLLaLoT=-
Posts: 839
Joined: Sat, 3. Mar 12, 20:58

Post by -=SiR KiLLaLoT=- » Tue, 26. Jan 16, 03:23

Hi pref!

Sorry for the dumb question, but the skills crew as they result in actual game? I have not understood the difference between them. What change?

If they have a big impact on ship movements, I recommend using a range time equivalent to 300+ hours to go from 0 to 5. My game lasts 700+ hours and if the skills bring an economic advantage too large, it is good to balance their rise more slowly as possible.

example:

I buy 50 employees at the beginning the game with 1/2 stars and use them for my ships and stations. If skills have a major advantage, not good to have five stars after 30 hours of gameplay. It 'good to have 5 stars after 300 hours of gameplay. By doing so you know that you need 300+ hours of gameplay to maximize skills. This would be very similar to the time necessary to obtain X3 marine 5 stars ;)



In your case you make use of percentages rather than seconds, so if you want to balance good, keep these chances very very low.

example:

if an employee takes a big advantage (sells very fast, quickly destroys many enemies, etc), will have lots of chances to increase their skills. Here, this should not happen. If you count ship operations for "chance", just apply a very very low percentage for it to happen. So "1 star random skill chance" happens every five or six hours maybe.

Sorry but I do not know English well, I hope I explained well!

Bye!
Specification:
CPU: Core i7 6700k @ 4.0Ghz - Mobo: MSI Z170A-G43 PLUS - RAM: 4x4GB Cricial Ballistix Sport DDR4 2400Mhz - GPU: Zotac nVidia GTX970 4GB GDDR5 - SSD: Samsung 840 Pro 256GB – HDD WD Caviar Black 1TB – HDD WD Caviar Blue 1TB – HDD WD Caviar Black 2TB - Alimentatore: Enermax Liberty 620w - Case: iTek Iron Soldier - Monitor: 24” Asus VS247NR - Windows 10 Pro 64-Bit - Tastiera: Logitech G15 – Mouse: Red Dragon Perdition

pref
Posts: 3418
Joined: Sat, 10. Nov 12, 18:55

Post by pref » Tue, 26. Jan 16, 05:34

Thanks! I try to provide a slow growth, and plan to drop skill chances a little further once they are balanced compared to eachother.

Currently with a loop of fabs taking one page in the property list operating 30 ships drops an increase every couple minute (100+ employees).
The frequent events that happen every few mins have a 1-5% chance to trigger a skill increase.

Skills in general result in better pathing, combat moves and things like that.
It has no huge economic impact, rather how well ships move, or if they jump without fuel, or how they use missiles for ex. It mostly affects general speed of command execution, or in zone behaviour as i saw.

User avatar
alexalsp
Posts: 782
Joined: Fri, 18. Jul 14, 05:28

Post by alexalsp » Mon, 13. Mar 17, 00:29

What for? Does not the mod work without it?

Code: Select all

<dependency id="ws_604564648" optional="true" name="AutoCrew" />

kyrah
Posts: 19
Joined: Mon, 14. Mar 16, 17:41

Post by kyrah » Fri, 12. May 17, 10:01

Do it work with CWIR?

Aszrayel
Posts: 35
Joined: Thu, 1. Dec 05, 00:43

Post by Aszrayel » Sun, 17. Dec 17, 18:34

Does this work with 4.3 and AutoCrew?

w.evans
Posts: 2954
Joined: Tue, 18. Nov 14, 17:23

Post by w.evans » Sun, 17. Dec 17, 19:19

alexalsp wrote:What for? Does not the mod work without it?

Code: Select all

<dependency id="ws_604564648" optional="true" name="AutoCrew" />
As far as i know, optional dependencies only affect load order. So, if AutoCrew and AutoTrain were ever installed together, that line would make sure that AutoTrain would be loaded after AutoCrew.

Post Reply

Return to “X Rebirth - Scripts and Modding”