RimWorld

RimWorld

1,167 ratings
Need Bar Overflow
3
3
8
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
908.730 KB
Aug 4, 2021 @ 7:39pm
Aug 21 @ 9:26pm
35 Change Notes ( view )

Subscribe to download
Need Bar Overflow

Description
Description
Pawn's Need Bars are no longer clamped to 100%.

In a vanilla game, when a pawn eats a full meal, around 10%-20% of the food is wasted due to hunger being capped at 100%; this gets worse if you consider children, modded races with small body size, or small animals. Similarly, if a colonist just woke up and decides to take their daily dose of wake-up or Ya-yo, the effects are just wasted. Dealing with these requires a lot of micromanagement, or avoiding those meals and drugs altogether.

This mod allows food and other need levels to temporarily overflow. Chickens can now digest a whole bush without wasting nutrition. Other mod's large meals (with >1 nutrition) now also makes sense. You can also put your colonists on a regular schedule of Wake-up and know that they will always receive the full +100% rest effect. Your Legendary thrumbofur armchair and golden grand sculpture can also provide the full comfort and beauty benefit they are capable of.

Pawns will still think of 100% as their cap. So they won't actively try to overflow their need bars when it is already nearly full. If they are near 100% on food, they won't start eating (you have to force feed them to further increase nutrition level), and when they reach 100% rest, they will wake up immediately (you have to force them to rest (requires other mods that force rest) or use drugs to further increase rest level), and when they reach 100% recreation, they will stop playing (need force recreation(require other mods)/use drugs to further increase).

简体中文介绍在这

Manual Download & Source Code & Updates
You can find latest & previous versions on GitHub[github.com] (Version 1.3.5[github.com] is the previous stable version, save game compatible but mod settings incompatible (may show errors on roll back unless you manually delete the mod settings file))
Update Notes are here

Supported Needs
Currently supports all base game + DLC needs.
Support all pawns with needs (humans, animals, mechanoids (may need additional configuration), etc.)
However, some needs (Room Size, Slave Suppression, Child Learning, Child Play, Authority, Sadism) currently have no way of overflowing without other mods (I don't know if those mods exist, but if someone makes a "magical learning pill" in the future, it'd probably be supported).

Additional Effects
There are various optional buffs/de-buffs related to each need overflowing. The current version supports:
Food: Hunger drains faster, Heal faster, Move slower, occasional vomit reaction, disallow eating when food level is above some threshold;
Rest: Gets tired faster, sleep less effective;
Recreation: Gets bored faster, recreational activities less effective.

Configuation
Settings are applied as soon as you close the settings window.
By default (configurable) only food, sleep, and recreation needs can overflow, too full on food would slightly reduce movement speed and makes eating slower.
You can disable pawns of some races, with health conditions/genes, or clothing from overflowing the food bar (useful in case of potential soft incompatibilities with race mod / body part mods / gene mods).

Performance
There should be negligible impact on game speed, as most patches take <0.005 milliseconds per game second on average in my tests;
All patches are applied conditionally on game start–features you don't use have 0 impact on the game;
Almost everything outside of game startup/saving/loading is O(1) (in another word, fast) or are tested to be faster than O(1) solutions (such as very short lists, etc).

Compatibilities
The following mods already have built-in compatibility patches:
- RimHUD
- Tweaks Galore
- Character Editor
- CM Color Coded Mood Bar

The following mods are compatible, but would disable some needs from overflowing in some circumstances:
Mod
Disable Oveflow for
When this is true
Food
Race: Dust bunny
Food
Active Gene: Dead Stomach
Mood
Active Gene: Mind Coalescence
Food
Active Power: Redundant Stomach
Rest, Recreation
Wearing: Techfriar Crown

Potential Mod Incompatibilities for now:
- Alpha Books (There are reports that pawns can't read books but I wasn't able to reproduce that).

Compatible with RimWorld 1.2-1.6, as well as all DLCs.
This mod is safe to add/remove mid-save. After you remove the mod and load a save which had the mod active, it may show errors once, but should not happen again after you save-load the savefile again without the mod. Backup is recommended.

RimWorld versions 1.1 and earlier won't be supported due to lack of interest and complicated compatibility support.
It is always possible that some mods expect some needs to be always ≤100% and behave strangely otherwise, let me know if you notice such behavior so I can take a look at it.
UI mods may see overflowing bar visuals, send me a screenshot if you see any so I can fix them.

Load Order
Anywhere after Harmony, the base game, and the DLCs.

Languages
Included: English, Chinese (Simplified, Traditional)
Russian(Русский) translation Patch thanks to kamikadza13

Licenses
All codes are written by me (AmCh), released under GPLv3[www.gnu.org].
I'd appreciate it if you let me know of your redistribution, but it's not required.
Popular Discussions View All (4)
19
Jul 8 @ 8:58am
1.6
moo
4
Jul 11 @ 4:26pm
机械体的能量需求条也发生了变化
C.Delete
1
Jun 17, 2024 @ 7:37am
Possible issue
CrusaderRO
366 Comments
邮电部诗人 Sep 26 @ 12:05am 
非常好的模组
ggfirst Sep 15 @ 3:40am 
any possibility adding needs from otherm ods?
... Sep 10 @ 1:23am 
@AmCh 感谢回复,可能是其它mod的问题,我再研究一下。并且这个报错并不影响使用
AmCh  [author] Sep 4 @ 12:51am 
@...
有些奇怪……我的模组根本不碰这个函数会碰的任何信息……
把我的模组原地加回来,报错也会回来吗?(确定是“关闭此Mod会恢复正常”而不是“重启游戏会恢复正常”吗?)
这份报错信息另外提到了萌螈和CommunityFramework。我的模组上次更新是8月22,萌螈上次更新都是8月20,CommunityFramework是8月初,突然开始报错也很奇怪。
能发一份完整存档+模组列表吗?光现有的信息看不出来怎么能跟这个模组有关系的。
... Sep 3 @ 1:21pm 
突然开始报错了,关闭此Mod会恢复正常:

Error while determining if Axolotl45543 should have Need Chemical_Alcohol: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 198235D9]
at CF.ShouldHaveNeedPatch+ShouldHaveNeed.Postfix (System.Boolean& __result, RimWorld.NeedDef nd, Verse.Pawn ___pawn) [0x0000f] in <574eda3d80c14370903c6f8a83093082>:0
at RimWorld.Pawn_NeedsTracker.ShouldHaveNeed (RimWorld.NeedDef nd) [0x006a7] in <24d25868955f4df08b02c73b55f389fe>:0
- PREFIX com.Axolotl.rimworld.mod: Boolean Axolotl.Pawn_NeedsTracker_ShouldHaveNeed_Patch:Prefix(Boolean& __result, NeedDef nd, Pawn ___pawn)
AmCh  [author] Aug 29 @ 7:38pm 
@shaneyao32
我之前研究过这个!可惜这块的阈值分散在很多很多小人AI的代码里面,想改的话补丁数量/设置选项/代码复杂度都要高好多,而且对模组兼容性和游戏性能危害都挺大的……所以恐怕暂时不会做这个=w=
shaneyao32 Aug 29 @ 7:38am 
感谢作者!想问一下能不能加个设置修改一下小人的吃饭睡觉娱乐阈值?我想让小人平时基地里100%的时候就自己去吃饭睡觉娱乐拉到200%,这样有事要拉出去远征的时候也能保持一天的良好状态
pipeboom Aug 28 @ 3:27am 
非常好mod,看着爆开的饮食条仿佛能听到小人在说家人们味真足:selphinehappy:
Impos! Aug 27 @ 6:46am 
Successfully used this to fix a bug with the food bar reading as -200000 something food in it.
AmCh  [author] Aug 21 @ 9:30pm 
模组1.4.5版本已经更新:对 "Tweaks Galore" 模组的“不要携带食物”设定增加了兼容。修复了 "CM Colored Mood Bar" 模组兼容补丁不生效的问题。
---
Mod is now updated to version 1.4.5.
Compatibility: Now the "Don't pack food" option from the mod "Tweaks Galore" works as expected. And compatibility patch for "CM Colored Mood Bar" should actually work now.