Author Topic: [ABANDONED] Soldier Fatigue (similar to NuCom Long War)  (Read 14566 times)

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9083
    • View Profile
[ABANDONED] Soldier Fatigue (similar to NuCom Long War)
« on: April 03, 2016, 10:50:11 pm »
Abandon reason: a different solution was found and implemented using the mana resource concept

Hi all,

I haven't played Long War, ever, but I've heard about Fatigue.

This is my take on how could it work in OXC:
- each soldier has a fatigue-meter (0=empty, 100=full)
- the meter's value rises with various events like missions, turns, hits/wounds, etc.
- and also drops with time (and potentially with other events and factors)
- certain facilities can increase recovery rate too

Once the fatigue-meter hits 100%, the soldier doesn't want to go to a mission for a certain amount of Fatigue Days.
Once recovered, fatigue-meter resets to starting level.

You can still send the soldier on a mission during Fatigue Days, but he may suffer some penalties during the mission:
- for example lowered TUs and stamina
And after the mission, you won't be able to send him to a mission anymore for some time:
- this could be represented by Wound Recovery Days, not to clutter the GUI with a new indicator

Once the recovery days pass, the soldier's fatigue-meter would reset to starting level.

Ruleset-wise:

Code: [Select]
soldiers:
  - type: STR_SOLDIER
    fatiguePenalties:
      fatigueDays: 12 # +/- 50% (i.e. between 6 and 18), set when fatigue-meter reaches 100%
      fatiguePenaltyArmor: STR_FATIGUE_PENALTY_ARMOR # virtual invisible armor, which allows to decrease/increase various stats
      startingMoralePenalty: 40
      woundRecoveryDays: 8 # flat penalty, set when soldier is sent to a mission during fatigue days
    fatigueFactors:
      startingLevel: 40
      startingLevelAfterFatigueDays: 20
      startingLevelAfterWoundRecoveryDays: 60
      recoveryPerDay: 5
      recoveryPerSuccessfulMonth: 25 # monthlyRating >= 0
      penaltyPerFailedMonth: 25 # monthlyRating < 0
      penaltyPerTurn: 1
      penaltyPerSuccessfulMission: 10
      penaltyPerFailedMission: 40
      penaltyPerHit: 5
      penaltyPerFatalWound: 10
      penaltyPerFriendlyCasualty: 5
      penaltyPerNeutralCasualty: 1
      penaltyPerEnemyCasualty: 4 # btw. you can set value of any penalty/recovery attribute to negative to reverse the effect in your mod
      penaltyFactorByRank: [2,1,1,1.5,2,3]
      penaltyForVeterans: false # after each mission penalty for as many points as the soldier's total missions (but no more than cap)
      penaltyForVeteransCap: 20
      penaltyForKillingMachines: false # after each mission penalty for as many points as the soldier's total kills (but no more than cap)
      penaltyForKillingMachines: 20
facilities:
  - type: STR_WELLNESS_SPA
    fatigueRecoveryPerDay: 5 # btw. multiple facilities of same type don't stack
  - type: STR_BRAINWASH_FACILITY
    fatigueRecoveryPerDay: 10

Comments, ideas, flame-wars and other feedback is welcome.

Meridian
« Last Edit: February 19, 2023, 12:19:34 pm by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Fatigue?
« Reply #1 on: April 03, 2016, 11:13:18 pm »
Looks sensible :)

I think we need more sexy nurses.

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3348
    • View Profile
Re: Fatigue?
« Reply #2 on: April 04, 2016, 01:56:52 am »
I don't think is correct way to "hardcode" it. Overall this functionality is not that hard that to do it by scripts. Different people would like tweak it to fit more they taste, to do it properly in code it would need lot of config options, e.g. "do armor affect it? and how?", "do commendation reduce it?".

I think scripts are better solution, even if work need to enable this in script will be two times bigger. This is because all work you do in code to support it will be available for other functionality, like customizing wound recovery (e.g you get bigger penalty for all wounds, even if healed in battle).

Example of that is customization of reaction shots that already done in my working copy. Instead of only melee reaction I now can create in scripts "ninja" or "invisible" units. Difference between them is that first need shadow to work where other can always ignore reactions (and it can require special item in hand or be property of armor).

In current version of script it not jet possible to implement this functionality, but I think that after couple of releases scripts will be mature enough to support this.

Offline Xtendo-com

  • Colonel
  • ****
  • Posts: 118
    • View Profile
Re: Fatigue?
« Reply #3 on: April 04, 2016, 08:06:36 am »
1) Medikits with stimulators can temporally reduce fatigue for some turns.
2) % of fatigue decreases a maximum stats by % of current fatigue. Soldier with high morale decreases a fatigue penalty, so very low fatigue can't reduce a stats.
3) Tired soldier with low morale instead of going to berserk hit the ceiling instead. He perform actions like berserk (with additional bonus to TU) or alarmist (rookie soldiers around loses morale after every turn, you need a high ranked soldier around in order to reduce a morale lose). You need to stun him in order to heal them from that state.
4) Tired soldier has a change to forget an action. He will spend a TU that required to perform an action but nothing happens.
5) Tired soldier are more vulnerable versus mind control. He will be forever controlled by aliens without a TU penalty. You should kill the alien that controls him. After losing a mind control tired soldier lose consciousness or may hit the ceiling.
« Last Edit: April 04, 2016, 08:21:57 am by 404_user_not_found »

Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: Fatigue?
« Reply #4 on: April 04, 2016, 10:40:18 am »
1. The variables range looks OK
2. Fatigue point values awarded for each 'activity' should be random (maybe a roll, 0 to the stated number?)
3. Fatigue should be possible to repair during mission (through item usage)
4. Recovery per day - maybe 5+Bravery/10? Bravery should play a role here.
5. Facilities - they need the capacity as well, not only recovery value. If there are more soldiers than total capacity, the anti-fatigue effect is lowered (total capacity/total soldiers at base = fatigue recovery mod which modifies the speed; speed cannot be over 100%; the best facility is taken into account for the base recovery rate).
6. Fatigue should be accessible by an icon in the soldiers screen, 'other stats' or so.
7. Fatigue should be inflicting increasing penalties (adding this value as a variable to armor's Recovery Rates?) as it rises.

Offline Countdown

  • Colonel
  • ****
  • Posts: 246
    • View Profile
Re: Fatigue?
« Reply #5 on: April 04, 2016, 10:49:45 am »
@Meridian: Very cool concept. Would force the player to use and train more soldiers as some go in and out of rotation. I feel like once people start surviving (thanks to flying suits, better weapons, improved stats, etc) half my team becomes irrelevant and doesn't need to do anything anymore. This would create a need for them as you can't rely on the same 10 guys all the time.


Two ideas:

-Fatigued soldiers can collapse (unconscious) on the battlefield if they hit 100%.
-Fatigue penalty for using certain items (blaster launchers and psi amps in vanilla would be good examples).

Offline Xtendo-com

  • Colonel
  • ****
  • Posts: 118
    • View Profile
Re: Fatigue?
« Reply #6 on: April 04, 2016, 12:36:14 pm »
I completely forget that the game has an energy bar. We can also add more penalty to energy consuming. But I don't known a technician realization of source, so my ideas will looks like crazy or impossible to implement without modifications to source code.

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: Fatigue?
« Reply #7 on: April 04, 2016, 01:11:43 pm »
I would take into account the hours spent in the skyranger, away from the base. The craft is often used to patrol for several days straight, I imagine the guys are really not fresh when they get back.
I'm not convinced by the ideas of overcoming the "fatigued" status during battle. It shouldn't be possible to leave the battlefield less fatigued than you started.
I would set no limit to fatigue, a soldier who barely exceeds his limit should recover faster than one that you overwork mercifully.
It may be interesting to make a single system for over-fatigued and voluntary bringing wounded soldiers in battle. Fatigued soldier would earn actual wounds, and soldiers who start a battle already wounded get stat penalties that reduce their overall effectiveness.

Offline Countdown

  • Colonel
  • ****
  • Posts: 246
    • View Profile
Re: Fatigue?
« Reply #8 on: April 04, 2016, 07:09:26 pm »
I would take into account the hours spent in the skyranger, away from the base. The craft is often used to patrol for several days straight, I imagine the guys are really not fresh when they get back.
Personally, I wouldn't want that as the default. That's just going to make me unload and re-load my skyranger everytime I go searching for an alien base (since the soldiers don't need to be in the craft to detect it). That'd be tedious.

I'm not convinced by the ideas of overcoming the "fatigued" status during battle. It shouldn't be possible to leave the battlefield less fatigued than you started.
That is a good point. But if it's all moddable than the player or modder can adjust as they like. If you see the "fatigue" as also "mental fatigue" you could consider it "long-term morale" and you'd get a mental boost from killing aliens or winning missions.

On the other hand, win or lose, killing aliens is physically draining.

Offline SuperCaffeineDude

  • Colonel
  • ****
  • Posts: 108
    • View Profile
    • supercaffeinedude
Re: Fatigue?
« Reply #9 on: April 05, 2016, 09:02:53 pm »
I can't speak for all the values you've posted, but I've been scrolling through the forums a while trying to find something that adds a fatigue system. I think it'll prevent power creep, by "forcing" players to expand their ranks, and it nicely humanizes the troops a tad.

I'm uncertain if moral-debuffs will simulate weariness well, it almost seems that the mental and physical stain on a weary soldier are not the same as a panicking one. So maybe Accuracy/Psychic-Resistance/Time-Units/Etc are better simulators.

Would love to see it regardless though, and I love the idea seeing dying civilians and squad-mates die impacts troops long/longer term
« Last Edit: April 05, 2016, 09:05:15 pm by SuperCaffeineDude »

Offline DoxaLogos (JG)

  • Colonel
  • ****
  • Posts: 358
  • Squaddie cautiously peering through the breach
    • View Profile
Re: Fatigue?
« Reply #10 on: April 04, 2018, 05:55:50 pm »
The necromancer has arrived!  (Yeah, I've been away from the forums for about a year as of last Feb, so still catching up some).

I think the fatigue system is a great idea.  I was thinking about this last night after running several missions in the XcomFiles with the same crew (due to locality of the missions) and was thinking to myself, "I'm running these guys hard, they should be really tired".  I've never played XCOM:LW, but I've watched Meridian's LP.  I thought it was a good thematic system to the game that made for some interesting choices on how you manage your soldiers.  I really think this system should be implemented.

The ideas I had was the fatigue was based on the number of turns a mission takes.  The longer the mission, the  more fatigue the soldiers take.  This could be modified by the soldiers "stamina" stat, so I would expect soldiers with high stamina take less of a fatigue hit, but still has to be greater than zero.

Another factor could also be how much "energy" a soldier has left at the end of the mission that adds to the fatigue based on how much energy is depleted at that time.

I like a lot of the ideas listed here although I think it would be great just to start with something simple to get the system under test and build upon it.  Maybe start with how it behaves in Long War as a starting point.  It's not quite like wounds, but you can take fatigued soldiers into battle that will cause a wound.  Fatigued soldiers could start the mission with a energy penalty and a temporary cap to their maximum energy level (i.e. you can't run them around as much as normal and they don't recover to their normal max energy stat but only to the new temp cap).

Yankes, have you done anymore development in this area with scripts since you last posted here?


P.S. The other reason I like the idea of factoring fatigue is because a couple of my favorite board games (Thunderbolt: Apache Leader & Hornet Leader) have a fatigue system (actually called stress but acted the same) that can make your pilots unfit for assigning to the next mission if you don't rest them (or shaken which affects their abilities in a mission).  It makes for tough decisions each day of the campaign for you as the Commander.

« Last Edit: April 04, 2018, 06:54:58 pm by jgatkinsn »

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3348
    • View Profile
Re: Fatigue?
« Reply #11 on: April 04, 2018, 10:30:44 pm »
Not yet, right now scripts can't  have effect outside single battlescape, but adding options for transferring information between battles is possible.
Right now I have overdue other request that I do not have time and energy to complete but recency I start spending my 40 vacation days and I will probably have some time to move my progress.

Offline SuperCaffeineDude

  • Colonel
  • ****
  • Posts: 108
    • View Profile
    • supercaffeinedude
Re: [Feedback] Fatigue?
« Reply #12 on: November 01, 2019, 02:34:53 am »
Since this topic has been linked recently during the work on Mana, is there any chance this would be re-explored?

I think it would be very similar to Mana, with fairly similar recovery methods, but with more all-encompassing means of deteriorating the condition of soldiers.

Ways it might be different...

1. Travel-Time builds up Fatigue, i.e. soldiers that take 10 hours to get to a fight do not feel as fresh as soldiers that travel 10 minutes
2. Mission Participation can build up Fatigue, simply by being a part of a mission

3. Mental-Fatigue, Morale Damage to Fatigue (2.0 double, 1.0 direct, 0.5 half, etc.)
4. Physical-Fatigue, Energy Burnt to Fatigue (^Same^)


5. Fatigue recovery rate when wounded (i.e. 0.0 waits until healed to recover Fatigue, 0.5 recovers Fatigue at half rate whilst wounded)

6. Fatigue Subtraction Buildings, Fatigue Increasing Items (drug abuse) and Subtraction Items (idk a meditation app), Fatigue Increasing Armors (psi-armor) and Subtraction Items (idk a seat that lets the soldier literally sit this one out), standard shit that lets modders give players ways to manage the effect.

7. If not labeled "Wounded" allow a display of "Resting" or a number of different titles based on the severity of Fatigue (i.e. <=0 rested, >10 tired, >20 very tired, etc.)

8. Fatigue Resilience

9. Effects of Fatigue (default (morale =- (Fatigue * w), energy =- (Fatigue * x), strength =- (Fatigue * y), accuracy =- (Fatigue * z), etc.) These would be dealt to units at the start of each mission affecting the Cap of each bar.

10. SoldierType Fatigue Recovery Rate

Just my thoughts, I know the Mana system can be hacked into kind of fulfilling the same role, maybe there's a few ideas there you could use though :) All the best!
« Last Edit: November 01, 2019, 02:40:11 am by SuperCaffeineDude »

Offline memmaker

  • Captain
  • ***
  • Posts: 96
    • View Profile
Re: [Feedback] Fatigue?
« Reply #13 on: January 15, 2020, 05:44:36 pm »
Hmm, semantics of fatigue/stamina/energy are identical enough to be confusing when existing at the same time. This seems to be another custom resource, like mana. One could foresee more requests of this type in the future. So maybe a generalized system for adding such resources and hooks for manipulation? Already people like myself use mana for things like battle focus. We could also open up to the idea of having configurable stats. Just my 2 cents.

Gesendet von meinem Pixel 2 mit Tapatalk


Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9083
    • View Profile
Re: [Feedback] Fatigue?
« Reply #14 on: January 15, 2020, 05:47:13 pm »
Yes, modders are using mana for fatigue purposes since it was introduced.

There is one big problem with adding new ones... no space on the GUI to show them... I squeezed the last possible pixels and made a few small compromises on some GUIs as well. I can't see a way to add one more.