RimWorld

RimWorld

40 ratings
Hauts' Framework
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
6.432 MB
7 Feb @ 8:15am
23 Jul @ 7:41am
48 Change Notes ( view )

Subscribe to download
Hauts' Framework

Description
For 1.5 or 1.6. Safe to add mid-playthrough; do not remove mid-playthrough.
You don't need the following mods, but if you have them, they must go...
* Above Hauts’ Framework: Cybernetic Organism and Neural Network, Infused, Vanilla Psycasts Expanded.
* Below Hauts’ Framework: Integrated Implants, as well as any Hauts' mods.

What this framework does
Makes other Hauts' mods work. Does not directly add content for the player to experience, but adds many many modding tools, such as:
- Ability comps that define AI usage of the ability, alter cooldowns dynamically, establish minimum stat prerequisites, or perform effects (alter Need levels, create a thought if the ability has/hasn't been used recently, create a 'linked hediff' between the caster and target, etc.)
- Aura hediffs that are more performant and customizable than the 'command auras' introduced in Ideology
- Hediffs that cause attacks and/or psycasts to have additional effects, such as extra damage, hediff infliction, thought infliction, mental state infliction, etc.
- Damage-response hediffs which occur in a customizable series; these can negate and/or retaliate to damage of various types
- A system for "delayed resurrection", as well as a fix that enables resurrected corpses that are on a caravan or in a grave to actually resurrect into that caravan/grave rather than just disappearing
- And more!
Also comes with a lot of mod compatibilities.

See the full description here
https://docs.google.com/document/d/1JPPbfiRIpaFdsvDoyR8lXw8NIOJMn06b4gHt5069D2k/edit?usp=sharing

Known issues
(see Google Doc for more detail)
Issues with other mods:
- Character Editor does not play nice with traits that use the TraitGrantedStuff system. It can be used to safely add/remove these traits during a new-game setup, but if you use it to do so during the course of play, you need to follow it up by turning on dev mode, toggling on God Mode, clicking on the affected pawn, and pressing the pink “DEV: Fix TraitGrantedStuff” button.
- A pawn with a mechanitor command range-altering gene from Alpha Genes and another source of modified mechanitor command range will display two command radius circles. The white circle is the accurate one.
-While the 'spew range factor' stat can theoretically extend the targeting range of Alpha Genes' Greater Acidic Vomit and Greater Fire Spew beyond 40 cells, the actual vomit only travels up to 40 cells.
- The max hemogen stat of EBSG Framework overrides any GeneticResourceModifiers that modify a pawn's max hemogen.
Don't do these:
- Don’t make InflictHediffsOnHit inflict a directly damaging hediff (e.g. an injury like Crush or Burn). This will lock the victim in place indefinitely, cause the UI to disappear, and potentially pause the game indefinitely. Use ExtraDamageOnHit instead.
- Don't give a parent-hediff HediffComp_GiveAbility, as it won't work. Instead, assign it to the actual hediff(s) it's being used by.

FAQ
I’d like to report an error.
Please read the Google Doc before reporting - it may be an intended feature! If it isn’t, send me a description of what happened, your error log, and your mod list. If you don’t send these things, I will not be able to fix your problem.
Can I make a patch of your mod?
Go right ahead! If you need something in the C# to be opened up without resorting to reflection, ask and I’ll consider it.
Why does this require the Vanilla Expanded Framework?
Given that…
1) VEF has a lot of good tools; and
2) you probably already have VEF (>half of all mod-using RimWorld players have it); and
3) if I didn’t use VEF, I would have to recreate the functionality of its many tools that I do use in my mods …
… not using it would be a waste of my time, your computer’s memory, and your game’s performance.
Why did you make <thing>?
I need it for multiple mods, or I need it for one mod and may wish to reuse its functions for future mods.
Why did you tweak <thing from the Fixes/tweaks list>?
It saddens me that those things aren’t fully functional, and I do not long suffer sadness.
Why did you make your own aura code instead of just using Ideology aura code?
Mine is 15x as performant while surprisingly retaining the same level of effect in 99.99% of cases - Ideology command auras iterate every tick, whereas mine only do so every 15 ticks by default.
Mine is way more moddable in XML, and way more extensible in C#.
Basically every 'aura' effect in RimWorld is handled via bespoke code, when unifying them all under a single methodology is much more elegant. I make a lot of auras for my mods, so...
Why do you name all your mods after yourself?
Lots of modders do it. When I download a mod from Vanilla Expanded, Dubwise, Sarg Bjornson, LimeTreeSnake, Biomes!, FrozenSnowFox, or the like, I kind of know what I’m getting into because each of these creators has a distinct vibe and philosophy. It is liable to be the same with my mods.
Plus I have a really large ego. That keeps me happy.
Combat Extended compatible?
Never played with it, no idea how it works, not interested in spending the time to make it so.

Patch notes for all Hauts' mods
This includes pre-release patch notes as well, and should therefore largely be regarded as a curiosity.
https://docs.google.com/document/d/1JwwP-Wg7vhIIwm1r2SuI265j90Z1qy5pLsSEL5K80BI/edit?usp=drive_link

GitHub
https://github.com/LaserToothLiger/Hauts-Framework
23 Comments
Hauts  [author] 20 Jul @ 9:37pm 
@mayonnaise happy to help. Unfortunately, I still wasn't able to replicate the issue with any of the listed relationship types (using various murder methods on a family of one gma, one gaunt, two single mothers, and a pair of children from each mother), using
1) just my mods
2) the error-implicated roster of mods applied to the same save file
3) a brand new save file using the error roster from the very start
4) or a brand new save file using the error roster from the very start, with Big and Small - Framework above Odyssey

Therefore, the actual culprit(s) are hidden elsewhere in your modlist, and whatever is causing the error occurs so far up the chain of logic that's supposed to occur on kill it can't be directly seen in the error log. Sorry.
mayonnaise 20 Jul @ 8:16pm 
thank you! i appreciate you taking your time to help me out here :>
Hauts  [author] 20 Jul @ 8:10pm 
@mayonnaise testing my way through it now. I can tell you that with my mods running, I can kill a grandchild perfectly fine, but let me try with other 2nd-gen family relationships and with the fuller mod list.
mayonnaise 20 Jul @ 12:08pm 
@Hauts after some testing, it seems that only pawns with second generation family relationships (grandaunt, granduncle, grandparents, nephew/nieces, etc) make a pawn unable to die. at least, that's what i've concluded. if you could test it again, i'd be very appreciative :>
mayonnaise 15 Jul @ 6:13pm 
oh. nevermind. for some reason exiting in and out of the menu WITHOUT saving changes shows the effects. i... thiiiiink? will report back. :>
mayonnaise 15 Jul @ 6:11pm 
@Hauts ah! good suggestion, but for some reason the "auto-sort mods" button in the mods menu doesn't seem to actually sort any mods; the list remains exactly the same. don't think it should be doing that either!
Hauts  [author] 15 Jul @ 5:50pm 
@mayonnaise thanks for the report, but I think you've got the wrong culprit. I loaded up all the mods directly implicated in the error message or required for those mods (Big and Small - Framework, HugsLib, VEF, VPE, VAE Accessories, VFE Empire, VFE Deserters, Allow Tool, Gore Upon Dismemberment, my framework, HAT, Allow Consensual Incest, VSIE, Ragdoll Physics, VAE Insanity, Alpha Genes, Animals Logic) in the same order you have them, and was unable to replicate the issue.

For your woes, however, I suggest you press "Auto-sort mods". Big and Small - Framework should be below Odyssey, and the fact that it's above Odyssey in your modlist suggests to me that other mods that should be below others aren't in the right positions either, which is liable to cause all sorts of errors when you have tons of mods running.
mayonnaise 15 Jul @ 3:44pm 
i'm having some weird error where pawns who have any family relations are literally unable to die; signs are pointing towards your mods. i'm unfortunately not able to test this on my side so i figured i'd just make you aware in case anything comes of it.

https://gist.github.com/lordmuff/12f39e37386331dd2be2a9cfd1368a03

note how you have a Harmony patch on RecordsUtility.Notify_PawnKilled, and the error is happening around RimWorld.Pawn_RelationsTracker.Notify_PawnKilled

hope this is useful and not a red herring
Hauts  [author] 10 Jul @ 10:39pm 
@FrozenSnowFox thanks, should be fixed now.
FrozenSnowFox 10 Jul @ 10:02pm 
Found some more errors when your Framework and Trait mod are active with Tweaks Galore.

https://gist.github.com/HugsLibRecordKeeper/2b20e5099cabb522aec4d9e5d2a87b9c