XCOM 2
[WoTC] Emotions of the Resistance - a Soldier Mood Framework
173 Comments
Totally Not Ed 14 hours ago 
THEY ADDED RIMWORLD TO XCOM
EightHeadedSerpent 1 Sep @ 6:30am 
I'm enjoying the mod, though I too am having the problem of old moods getting stuck and not going away. Even threw a party for a soldier that had two moods, and the older mood still wouldn't go away.
Soul 30 Aug @ 1:53pm 
Perso never had that
I did have soldiers saying they ready to go but weren't,cause they were already out on a covert mission tho,check if its not the case here
BigHillsBigLegs 30 Aug @ 11:32am 
pwetty swure this causes some soldiers to be unavailable despite being ready to go.
Grunt 17 Aug @ 8:34pm 
hey, i was wondering if you could make an edit specifically for LWOTC and RPG, with RPG it shows the stat changes in the stat upgrade screen, and in LWOTC their emotions are changed even when infiltrating, making it a lot more unpredictable, and sometimes unfair.
HIMN 3 Aug @ 11:20pm 
Thank you for this great mod, i am really enjoy it on my current campaign. 1 minor problem is that it's a bit difficult to choose the correct soldier who is having negative emotion to throw party at, it would be a great improvement for UX if the dropdown list is replaced with the soldier list of RustyDios like this mod: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2752150336
TheAshenHat 27 Jul @ 8:22pm 
@Bix
well if you have AML, you can just select the mod config and alter the negative hp in that one entry. Pretty sure its the only -2 in the list. like the author said, it worked.
Bix 27 Jul @ 4:08pm 
I have the same issue with you TheAshenHat; a good workaround is to load to an earlier save and use command
setsoldierstat eStat_HP 100 name 0
i have not been able to get this command to work but im sure with a little more fiddling someone can figure it out
AgRipnus  [author] 25 Jul @ 2:46am 
Yes, that now is possible, if you are running mods that give soldiers with such low HP then you should go to the config and either replace the negative HP mood changes with a different stat or change those -3s, -2s to -1s (assuming no soldiers with a sing HP).
TheAshenHat 25 Jul @ 12:32am 
so, i have been having a issue with my troops vanishing randomly from barracks between missions. been looking through my recently added mods, and noticed your comment about the moods decreasing max hp. one of the moods "Feeling_Queasy" drops max hp by 2, is that correct? so if i have a troop with 2 max health(veteran soldiers second wave option), would getting that mood 'poof ' said soldier? or should i keep looking?

thanks for any help you can give!
AgRipnus  [author] 23 Jul @ 10:05pm 
Not saying it's not this mod that caused it but it doesn't seem to be possible that it's from a unit dying from a negative HP mood.
Kexx 23 Jul @ 3:01pm 
Strange then. If you have the protection, then I'm not sure what could cause this. I run a very light modded campaign, 200 with mostly bug fixes, enemies, cosmetics, maps and voice packs. I run vanilla stats, classes, weapons, gear, mostly everything.

For the moment, I personally went into the configs and localization, and removed the HP decreases, commented out those 5 moods that reduce HP, and started a fresh new campaign. I'll keep my eye out and let you know if anything else happens.

In the meantime, thank you for not only checking to see the code, but for making and maintaining such an awesome mod!
AgRipnus  [author] 23 Jul @ 8:28am 
I checked the code again and I did have that protection. HP decreasing moods never decrease current HP only Max Hp. And HP increasing moods also only decrease max hp when they change. It must be a different interaction.
AgRipnus  [author] 23 Jul @ 7:06am 
I will check to see if the protection isn't there. There won't be a noticeable change, I'll set it so max health decreases but current health doesn't of it would go 0 or negative. I thought I had such a protection already but I might have missed it somewhere.
Kexx 23 Jul @ 2:04am 
2/2 Can't confirm, but I'm positive what happened was, she rolled a negative mood that lowers HP, and since she only had 1 left, it went to 0 HP, and thus got erased from game.

Possible solution could be: if soldier injured, or, if soldier's HP less than X, exclude these negative moods from the pool. Though I have no idea how complex that would be to code.

Another one but more drastic could just be to have moods alter all stats except HP, though that might go against your design philosophy.
Kexx 23 Jul @ 2:04am 
I have an unwanted interaction to report:
Bare with me, it's a bit complicated to explain. The gist is, in the Avenger, if a soldier's HP drops to 0, the game erases them. No memorial, no death, nothing, they're just gone. I first noticed this long ago when I removed a +3 HP PCS from an injured soldier, so I could use the PCS for someone else for the next mission. I didn't notice, but the soldier had 2 HP left from injuries of the previous mission. When I removed the PCS and tabbed to the next soldier, I didn't even notice it. It was until I tabbed through the entire roster cycle that I noticed the soldier went missing.

I think the same just happened to me right now, with this mod. Went on my first ever retaliation, super early game, soldier got hit bad by Chosen. Won mission, no deaths. Injured soldier had 1 HP. I went to Geoscape to scan next POI, and when I went back into the Avenger, I noticed a new mood roll had happened, and my injured soldier was gone.
Soul 13 Jul @ 1:38pm 
Lmao gotcha,hope this one's the charm.
AgRipnus  [author] 13 Jul @ 1:24pm 
ffs this bug, I'll get it eventually. Nothing to do with any of my other mods. Grab the latest update and be on the lookout in case I failed to squish it yet again.
Soul 13 Jul @ 12:23pm 
Sorry I don't have much more infos to give right now,but remember the "when killed they don't show at the memorial and show up 'recovering' instead even tho they are still dead" bug? Its still seem to be happening,It didn't for a while but seem to be back somehow,maybe its from a combo with one of your newer mods I installed.
Gonna try linking the pics but for example out of the 6,2 are showing recovering with a mood but they are 100% dead,they show on the memorial pics but in the memorial itself they don't appear.

The pics to show : (https://imgur.com/a/MPbr413)
Skarsatai 2.0 11 Jul @ 2:11pm 
Laggy? What are you talking about? I have a roster of 75. There ist No difference to If I would have 10. I cannot confirm this. It runs as Always. Modconflict?
AnarXaoC 10 Jul @ 8:23am 
Sorry to say, even if i like the ideas,
when you reach over 30+ soldiers, it become super laggy whenever you open the soldier list

unless you find a way to optimize it, i'm sorry that i can't test out more of this mods
LightenedDark 28 Jun @ 11:07am 
tiktaalik it helps with melee and not be unconscious after being hit by stun lancers
tiktaalik 28 Jun @ 3:00am 
Aha... I guess it's removed in LWOTC. There we have a standard range for all except the grenadiers, who have a bit more and then a perk for even farther.
Soul 26 Jun @ 11:19am 
I believe its how far grenades get thrown? Iirc all soldiers have 40 base
tiktaalik 26 Jun @ 11:17am 
What does strength actually do? I only play LWOTC and there's no strength there...
LightenedDark 25 Jun @ 8:31pm 
I listed out the perks in discussion for ya!

Small question: it is possible to just 'roll' into Jubilant, right?
Deadweight 25 Jun @ 7:01pm 
Would it be possible to make something like Personalities or Mood Pools that make it more likely or less likely/impossible to get certain ones in the first place?
Like Hot-Headed Units being more prone to feeling Angry, Annoyed, Brave or Impatient, but at the cost of that Soldier having certain other Moods be less likely to occur, basically boosting the chance of those appearing by subtracting 1% or 2% (Assuming each mood is a 2% chance), and potentially having it start as a "Negative" Trait to allow it to be worked out/removed from them in the Infirmary, kind of like counseling.

I think it'd be pretty neat to even be able to apply emotion-sets to the Reapers/Skirmishers/Templar's depending on how many things under the hood can actually be tampered with, since considering how different their ways of lifes might be from the average XCOM employee, but stats are also a pretty easy way of displaying that too.
Soul 24 Jun @ 5:47pm 
I use this + detailed soldier list and it show in the list on the last tab to the right
So its mostly something else/RPGO itself having a fit
100xYGO 24 Jun @ 5:21pm 
Bug in combination with "Detailed Soldier Lists" Mod. The moods (Fine, Sad,...) are not shown in the solider list.
Therefore the bug is also present in RPGO since this mod has implemented "Detailed Soldier Lists".
tiktaalik 19 Jun @ 10:28am 
Ohh, I see... Thank you!
AgRipnus  [author] 19 Jun @ 9:34am 
Each mood lasts randomly between 480 to 1.080 units. DefaultMoodChangePerHour changes how many units decrease per in game hour.
At the default of 5 a mood will last between (480/5 to 1080/5) 96 to 216 hours or 4 to 9 in game days.
At DefaultMoodChangePerHour = 1 it will take 480 to 1.080 hours or 20 to 45 in game days.
You probably don't want it changing that slowly.
tiktaalik 19 Jun @ 7:48am 
If I set DefaultMoodChangePerHour to 1, how many days would that be? What is the formula? Thanks.
AgRipnus  [author] 7 Jun @ 9:48am 
The mod's XComGame.int has every emotion with its stat changes.
Dummie 7 Jun @ 9:41am 
Is there a list of all emotions?
AgRipnus  [author] 7 Jun @ 6:21am 
Pushed a new update, new config toggle bPrimeUninstall. If you want to uninstall this mod set this to TRUE, launch the game and in the next cycle of mood changes all your soldiers will get the Emotionless mood which has no stat changes. Once all your soldiers have Emotionless you can save and turn the mod off, with no permanent stat changes.
HarvHR 7 Jun @ 5:52am 
Is there a way to uninstall this mod without it permanently causing -1hp and -2mobility etc to soldiers?

I like the concept of the mod, but some of these stat changes are crazy to the point of actively shooting yourself in the foot.

Also why is my soldier 'bored' in combat? I can get that for the Avenger, but when my soldier is surrounded by Advent should they really be 'bored' and suffer negative stats because of it?
Or'Es El'Leat 4 Jun @ 7:33pm 
I found what heppening, don't seem like you rmod is a problem. 15 of my solder that are on infiltration somwhow gets assigned to covert mission
AgRipnus  [author] 4 Jun @ 7:51am 
One soldier or many soldiers? If it's every soldier then it's a conflict and the only thing you can do is backup the save and remove the mod. If it's one soldier then dismiss the soldier and recreate them. Without any additional information on what happened right before that soldier bugged I can't tell you anything more. That 0 is the game telling you that the soldier was assigned in a slot and now is stuck.
Or'Es El'Leat 4 Jun @ 5:51am 
I hace some gameBreaking bug (mods conflict i suppiose), mood of my solder showing on the right side of their name in barrakc (in yellow color) like "~ *some mood, like Angry/Surprised or smt* 0" and i can't send those solder on missions, I also can't get rid of this shiit with any in-game mechanics (like hospital or solder party from mod)
Can you somehow help me with that?
I'm playing lwotc
not_buddhanuff 17 May @ 8:26am 
Are there console commands for this mod?
Soul 11 May @ 9:11pm 
Yeah sadly its something I didn't pay much attention to,I just realise it happen when the mission start ,I'll check more about it when it happen again
AgRipnus  [author] 11 May @ 12:57pm 
Let me ask something more, does it happen to injured soldiers, and does it maybe return when a soldier is fully healed?
AgRipnus  [author] 11 May @ 12:53pm 
The most important thing to know is if it always happens, mobility changes are always delayed, or if it only fails to return the stat to normal when the mood is gone sometimes. Because if this lag only happens sometimes I'll have to look in a different place.
Soul 11 May @ 12:43pm 
Ok checking more,the mobility did come back,but it seem like it took at least a cycle or 2 of moods for it to revert to initial mobility.
Sadly I didn't check much on my other moments where it happen,but I remember each time realising that the mobility seem to "stick" to the nerfed one for a while,so I can't say much about that.
I can say it seem to happen a lot more to the heroes for some reason,before they would sometime get 2 moods (didn't see it happen in a while tho so maybe that one was fixed) but I remember realising I had a mobility debuff mostly on Skirmishers and Templars. And so far it was after mostly any type of mission.
Sorry if it ain't much,I'll check a bit more next time I realise I got the mobi debuff.
AgRipnus  [author] 11 May @ 12:32pm 
Can you give me some more info Soul? Does it happen always with mobility changing moods? Did you see it happen after a mission specifically? Is it only on specific soldiers?
AgRipnus  [author] 11 May @ 12:06pm 
Thanks for the report, I'll look into it. Looking at some older comments there's seems to be something up with mobility as a stat that make it not play well with this mod. I'll have to fix it.
Soul 11 May @ 11:20am 
Sometime the Mobility debuffs don't go away.
Like my Reaper had 8 mobility,got down to 6 from a mood,and now I'm a mission later with him,the mood changed,it's a +10crit,but the -2mobi is still in effect.
Cleo 10 May @ 5:05pm 
This would be cool if moods didnt randomly change between squad select and mission deployment. How it is currently its just a toss up between a random soldier being buffed in some crazy strong way or being nerfed in the opposite direction. Little too roulette heavy for me.
AgentSrell777 10 May @ 11:47am 
Okay, thanks very much for the response.
AgRipnus  [author] 9 May @ 3:30pm 
Removing the mod mid campaign makes the last mood each soldier had permanent. The only way to undo it, is with the default stat changing console commands ex { SetSoldierStat eStat_Defense 0 "Amy Ryan" 1 } or with RebuildSelectedSoldiersClass from [WOTC] Additional Soldier Console Commands mod.