Progress update- Reactions almost done!

Here's what's done and what's left on the Reactions code.
Nearly there! The final link in the chain is the dynamic combining of facial pieces. 
For simple reaction systems (especially non-facial things) this code should already be good enough. For faces though, we'll need to tame the multiple influences fighting over each eyelid and such. That's why there's a central system (the circle in the diagram) to handle how we interpret conflicting information from the brain about what face to make. It'll combine the information into one cohesive facial expression. It can also handle things like blinking and logic for when the eyes are covered. 
So this last step is kind of the least important for right now, and I'm gonna just get it working first with the plan to improve it over time. In the end it'll probably be the most dense code-wise and require the most testing, but it won't need to slow down the initial release.
After this, I need to:
  • Test, debug, and fill in the debugger for the pieces of the logic chain that aren't covered yet.
  • Add more expressions and brain-sided reactions.
  • Use the working Reactions system to make bodily reactions too (this is trivial).

And that's it! Reactions will be complete.

The universal reactions system.
The step I'm working on now is sort of an optional addition to each type of Reaction a character can have. It's a modular addon to the ordinary logic chain that plucks all face-based reactions out of the chain, applies face-specific logic to them, then pops the result back into the chain. 
It's this modularity that allows this to be a universal reactions system, which is not only easy to expand upon, but far easier to debug since you can see each step and what it's doing to the character's brain/body data. Lastly, it's great because the player will also be able to see and play with everything from the base personality and body part sensitivities all the way to the concrete body animations. Not sure how some of these will be represented in-game, but the mechanics are there, so players should have access to them.

The source of truth.
I've been struggling to find the single source of truth in this chain of data. All the information changes form at each link in the chain. In the body, there's at least 6 points where you could say "this is the data that describes how this character is reacting". But there needs to be exactly one link that's considered the definite truth. That way, I can track how things are changing, and can save and re-create the entire situation from just that one point.
It took a while and bent my brain, but I got it nailed down. It's the moment just before we combine everything (the step before the circle in the diagram). That's the last moment we have the raw data compiled all together before it gets polluted by other information coming from elsewhere in the body. Neat.

User generated content and modding.
Yeah so this is a big topic and I'm not gonna get too deep into it yet. But right now, users making their own content in the game would have to use the dev tools and directly edit the game's data. I know a few dedicated players have done this in the past, but that's only a handful of people. I'm not convinced that adding something crazy like full modding support would really result in an actual modding scene. I'm not ruling it out, but it's a low priority considering how very few people would be using it.
Instead, I'm looking at how to make editing the game's data something everyone can do. Instead of opening text files, I'd much prefer that all/most data can be made and edited within the game. This is already in line with my current goals of gradually making dev tooling that removes the need for me to edit a giant spreadsheet of data. My own dev tools would then just be advanced game customization features.
The engine is the complicated part of this whole thing. The game itself is just data. If there's a friendly UI, then editing the data would be easy for anyone. And if people make custom stuff, it'd be neat to be able to load in that custom stuff from within the game.
That's just my current thoughts! It'll be clearer how much of this is doable as I work more on the dev tools.
Note- More complete mod support is especially difficult in the current "SHF3" game. What I've been working on all of this time is a game engine, which is what the actual SHF3 game is being remade in. I have a long series of games, big and small, planned in this engine, and many of them are better suited for more in-depth modding. SHF3 is a sandbox pony game but the others span across different game genres and focuses. There will be both pony and furry projects in the engine. My hope is to build up more and more customization and modding tools with each new project <3

Personal notes.
I really, really wanted to crunch and get this last step done before I posted a progress update. It felt like it would've been so much better to post "it's done!" instead of "it's almost done". But putting myself into a crunch to force things out quicker backfires every time. It would slow down the release in the long run. Crunch only really works, if ever, when you can rest and recover afterward. But there's more to do before release, and SO much more to do after. 
I mean, this first release is a technical pre-alpha, definitely-not-finished, WIP, not-to-be-overhyped, engine tech preview build. There's lots and lots I gotta do with this engine now that it's starting to become usable. I'm not allowed to burn myself out. 
Which relates to the sleep problems I've talked about for a while now. It's been rough. But I finally got an official diagnosis to work with! It wasn't at all what I thought. But I'm so thankful to have a better understanding of what's been going on, and a path for treatment. The ultimate cause looks like it's stress and anxiety, which shouldn't be a fucking surprise. 
Since then, I've been doing everything in my power to de-stress and reduce anxiety and it's helping so much. With each passing day, the deep exhaustion I've been living with is lifting more and more, and my brain engages more clearly with code and planning. 
So yeah, the pace of progress on the game isn't what I want it to be. But the more careful I'm being about reducing stress, the better and more sustainable progress I'm making. I plan to do lots of stuff with this game, and with other games using this engine. None of that can happen if I'm burnt out. 
Even knowing all of that, my monkey brain keeps trying to convince me to push myself past my limits for the sake of short-term results. 

Anyway... that's all for now!
I'm not sure how to thank everyone for the immense generosity and positivity y'all have shown. I figure I'll just keep going and trust my judgment that the results of all of this work will speak for themselves. I'm excited and impatient. We're getting close now. 
Your comments on these posts have been insightful and very encouraging. 
Thank you, kind peeps!
<3