Mods / Expanded Stomach
Authors: traugdor, LadyWYT
Side: Both
Created: Jul 31st at 7:59 PM
Last modified: Nov 19th at 5:56 AM
Downloads: 3810
Follow Unfollow 138
Recommended download (for Vintage Story 1.21.0 - 1.21.5):
expandedstomach_1.2.7.zip
1-click install
v1.2.7
-
Added a bit where if you look at someone it will tell you an estimate of how fat they are. :)
-
Fixed Maintenance mode finally??
-
Added language support for ES, FR, RU, and JA. If anyone has better translations for these files, PLEASE feel free to submit them and I will replace them.
v1.2.6
- Fixed another issue with a client-side command
- Fixed an issue when drinking alcohol that would fill the stomach before the normal satiety meter.
v1.2.5
- Added (tentative) Expanded Food compatibility to food items. NOT tested with cooked meals or pies. (PLEASE NOTE: Expanded Foods and A Culinary Artillery are very much WIP and largely untested. Please report any issues you find with this mod and I will see if a relevant fix can be made.)_
- Fixed issue with client-side command PrintInfo
v1.2.4
Yep... skipped a version. There was an intermediate version that just had too many issues. Here's what's new since 1.2.2
- Added Maintenance Mode to allow strain to decay over time when not overeating
- Fixed issue where eating a regular food item would not put the proper amount in the expanded stomach
- Fixed some issues with client and server commands
- Added movement speed penalty when player overstuffs the expanded stomach (over 90% capacity; configurable)
- Added configurations to support new features
- Change bar location if Vigor, HOD, or BHB is loaded. Other mod support will come if asked.
- Changed bar location adjustment to a static location between the Satiety bar and other modded bars so the ES bar stays bottom-most
- Added support for consuming liquids
- Capped stomach size changes to +/- 100 units
v1.2.2
Fixed issue with an unintentional debugging output clutting up the server logs and it couldn't be turned off.
v1.2.1
Fixed issue with configs not loading properly before joining a multiplayer server
v1.2.0
-
- Implemented hunger bar
- Added configs to toggle hunger bar
- Added config to toggle hunger bar auto hide
- Added support for Vigor and Hydrate or Diedrate bars
- Fixed an issue where config for stomachSatLossMultiplier was not being correctly used
- Implemented hunger bar
Update will require you to make a backup of your config before installing.
v1.1.0
Update for 1.21.0-rc.7
Tested for 1.21.0 stable release.
Tested for 1.21.1 stable release.
v1.0.3
Added Compatibility with Brain Freeze
v1.0.2
Fixed a bug where the mod would quit working if you played in a Single Player world, then played a Multiplayer world and then went back to Single Player without closing the game client.
Changed in-game modicon to match ModDB
v1.0.1
fixed issue where player would receive a message notification but nothing would be displayed. This was confusing and caused by a blank message being sent.
v1.0.0
Initial Upload
KNOWN ISSUES:
Hunger bar is slightly misaligned by a pixel or two.
Issue where Expanded Foods food items may not apply the correct satiety numbers to the expanded stomach. (Reported by a discord user)
-------------------------------------------------------------------------------------------
Recommended mods for use:
- Hungry While Injured - prevents food from sitting in the expanded stomach for too long, especially with lower regeneration rates.
Overview
Expanded Stomach is a Vintage Story mod that enhances the game's food system by allowing players to continue eating even when their normal Satiety bar is full. This mod introduces a secondary "stomach" system that lets you store additional food beyond your character's normal saturation limit, creating more realistic and strategic eating mechanics.
- Secondary Stomach System: Continue eating after your normal Satiety bar is full
- Drawback System: Overeating can cause negative effects, such as weight gain, which can affect game play over time
- Stomach Size: Your stomach can expand over time based on eating habits
- 7-Day Average System: Your stomach size is based on your average daily eating habits
- Configurable Difficulty: Multiple settings to adjust the mod to your preferred playstyle
- Immersive Messages: Optional in-game messages that provide feedback on your character's fullness
- Mod Compatibility: Designed to work with 'Xskills', 'Hydrate or Diedrate', Vigor and SleepNeed. Also compatible with any mods that add food items by extending the BlockMeal and CollectibleObject classes.
- Mod Compatibility: NOT compatible with Smooth Digestion mod by Misteyes. That mod overrides the hunger system in a way that is incompatible with how this mod is intended to operate.
- Hardcore Mode: Disabled by default, but will cut stomach capacity in half upon death if enabled(for those wanting more severe penalties).
- Multiplayer Interaction: Looking at another player will show in the info HUD (top of screen) an estimate of the player's fat level. Useful for role play scenarios as well as making fun of your friends for being slow (aka bear food). Also shows who has been raiding the pantry when you weren't looking.
- Download the latest release for your game version from the mod releases page
- Place the .zip file in your Vintage Story mods folder
- Start the game and enable the mod in the mod menu
To properly uninstall the mod and remove all attributes that could affect gameplay:
- Before removing the mod, run the following commands for each player:
/es debug setStomachSize [player] 0.0- Resets the stomach size/es debug setFatLevel [player] 0.0- Completely removes fat
- Remove the mod file from your mods folder
- Restart the server/game
These steps ensure all mod attributes are properly removed from player data, preventing any issues when playing without the mod.
The mod can be configured through the expandedstomachServer.json file located in your game's config folder. The following options are available:
| Setting | Description | Default |
|---|---|---|
hardcoreDeath |
If true, dying can severely reset your progress | false |
stomachSatLossMultiplier |
Multiplier for stomach saturation loss rate (minimum 1.0) | 1.0 |
drawbackSeverity |
Multiplier for negative effects from overeating | 0.4 |
fatGainRate |
Use to fine-tune the rate at which your character gains fat | 1.0 |
fatLossRate |
Use to fine-tune the rate at which your character loses fat | 1.0 |
strainGainRate |
Use to fine-tune the rate at which stomach strain increases | 1.0 |
strainLossRate |
Use to fine-tune the rate at which stomach strain decreases | 1.0 |
difficulty |
Overall difficulty setting (easy, normal, or hard) |
normal |
immersiveMessages |
Enable/disable immersive fullness messages | true |
debugMode |
Enable/disable debug mode |
|
bar |
Enable/disable hunger bar. Enabling disables messages. |
|
audoHideHungerBar |
Bar hides when Expanded Stomach is empty |
|
barVerticalOffset |
Manually adjust vertical position of bar relative to other bars. |
|
overStuffedTimeDelay |
Delay in milliseconds before the movement speed debuff from being overstuffed starts to fade. |
|
overStuffedThreshold |
Percentage of stomach saturation needed to be overstuffed. |
|
The mod adds several commands that can be used to manage and monitor your expanded stomach. Expand the spoiler to reveal.
/es- Base command for all ExpandedStomach functionality (server-side).es- Base command for all ExpandedStomach client functionality (client-side)
Debug Subcommands
These commands are only available in single player or when run by a server op.
/es debug printInfo [player]- Displays information about a player's stomach/es debug setFatLevel [player] [level]- Sets the fat level of a player (0.0-1.0)/es debug setStomachLevel [player] [level]- Sets the stomach fullness level of a player (0.0-1.0)/es debug setStomachSize [player] [size]- Sets the stomach size of a player (500-5500)/es debug printConfig- Displays the current configuration settings/es debug setConfig [key] [value]- Changes a configuration setting.
Client-side commands
Some of the commands above can also be executed on the client side if you are on a multiplayer server. Use the prefix .es instead of /es.
.es debug printInfo- Displays information about the player's stomach and fat levels..es debug printConfig- Displays the current configuration settings for your client..es debug setConfig [key] [value]- Update the value of a configuration setting without rebooting your client. Example: turning the bar on or off or adjusting it's vertical placement.
- Eating beyond your normal satiety will store food in your expanded stomach
- Your expanded stomach will slowly transfer nutrients to your normal satiety
- Overeating regularly will increase your stomach size over time
- Excessive eating leads to fat gain, which can slow your movement speed
- Eating too much in one sitting will temporarily slow your movement speed
- Your tolerance to cold weather will increase in proportion to your fat level
- Maintain a balanced diet to optimize nutrition and minimize negative effects
- To finish eating a meal/eat another, use the meal item again within 15 seconds after the first eating attempt.
- Stomach size increases/decreases will happen at midnight every day. Plan accordingly!
Coding: traugdor (Discord: @quadmoon)
Testing: traugdor, LadyWYT
Ideas: traugdor, LadyWYT
Artwork: LadyWYT, Flux Dev
Special thanks to Dana (Craluminium2413) for assistance with the configuration system.
Special thanks to Tyron (Vintage Story lead developer) for including Harmony in the base game, which made developing some of the mod systems significantly easier.
ExpandedStomach was designed with compatibility in mind and works well with:
- Xskills: Designed to adapt to any changes Xskills makes to the satiety system
- Hydrate or Diedrate: Works alongside the hydration mechanics
- Food Mods: Compatible with any mods that add food items by extending the BlockMeal and CollectibleObject classes
- Brain Freeze: Compatible with Brain Freeze by TheInsanityGod
- Vigor: Compatible with Vigor by chrisunfocused
| Mod Version | Mod Identifier | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
|---|---|---|---|---|---|---|---|
| 1.2.7 | expandedstomach | 414 | Nov 19th at 5:56 AM | expandedstomach_1.2.7.zip | 1-click install | ||
|
Added a bit where if you look at someone it will tell you an estimate of how fat they are. :) Fixed Maintenance mode finally?? Added language support for ES, FR, RU, and JA. If anyone has better translations for these files, PLEASE feel free to submit them and I will replace them. | |||||||
| 1.2.6 | expandedstomach | 694 | Oct 20th at 4:05 AM | ExpandedStomach-1.2.6.zip | 1-click install | ||
|
Fixed another issue with a client-side command Fixed an issue when drinking alcohol that would fill the stomach before the normal satiety meter. | |||||||
| 1.2.5 | expandedstomach | 82 | Oct 19th at 6:26 PM | ExpandedStomach-1.2.5.zip | 1-click install | ||
|
Added (tentative) Expanded Food compatibility to food items. NOT tested with cooked meals or pies Fixed issue with client-side command PrintInfo | |||||||
| 1.2.4 | expandedstomach | 173 | Oct 17th at 8:23 PM | ExpandedStomach-1.2.4.zip | 1-click install | ||
| |||||||
| 1.2.2 | expandedstomach | 847 | Sep 23rd at 5:57 PM | ExpandedStomach-1.2.2.zip | 1-click install | ||
|
Fixed a debug log output that wasn't supposed to be there. | |||||||
| 1.2.1 | expandedstomach | 155 | Sep 21st at 5:33 AM | ExpandedStomach-1.2.1.zip | 1-click install | ||
|
Fixed issue with configs not loading properly before joining a multiplayer server | |||||||
| 1.2.0 | expandedstomach | 221 | Sep 15th at 4:25 PM | ExpandedStomach-1.2.0.zip | 1-click install | ||
|
| |||||||
| 1.1.0 | expandedstomach | 458 | Aug 23rd at 6:30 PM | ExpandedStomach-1.1.0.zip | 1-click install | ||
|
Updated for 1.21.0-rc.7. This version WILL NOT work with previous versions of the game. Tested for 1.21.0 stable release. Tested for 1.21.1 stable release. | |||||||
| 1.0.3 | expandedstomach | 470 | Aug 11th at 3:16 AM | ExpandedStomach-1.0.3.zip | 1-click install | ||
|
Added Compatibility with Brain Freeze | |||||||
| 1.0.2 | expandedstomach | 166 | Aug 6th at 6:11 PM | ExpandedStomach-1.0.2.zip | 1-click install | ||
|
Fixed a bug where the mod would quit working if you played in a Single Player world, then played a Multiplayer world and then went back to Single Player without closing the game client. Changed in-game modicon to match ModDB | |||||||
| 1.0.1 | expandedstomach | 90 | Aug 1st at 7:32 PM | ExpandedStomach-1.0.1.zip | 1-click install | ||
|
fixed issue where player would receive a message notification but nothing would be displayed. This was confusing and caused by a blank message being sent. | |||||||
| 1.0.0 | expandedstomach | 40 | Jul 31st at 8:00 PM | ExpandedStomach-1.0.0.zip | 1-click install | ||
|
Original upload of the mod. | |||||||
Just a brief overview of changes in the latest update:
TheFifthRider So what you're saying is, it's not just my imagination playing tricks on me that those extra pounds aren't disappearing as fast as expected... 🤣
TheFifthRider Known bug that will be fixed in the next update which should be releasing after RIGOROUS testing is complete.
As a particularly health conscious Seraph, I tried very hard to avoid eating too much. However, the pies at thanksgiving were too much, and I found myself overeating just enough to gain some fat.
However, once I returned to my regimen of never overeating, I discovered a horrible truth! Once you manage to get your daily strain down to 0, the only way to lose fat is to gain stomach strain and then lose it again, hoping I successfully roll to lose fat and fail to roll to gain it 😅
l33tmaan oh hey! Fancy seeing you here!
I'm not entirely sure what would help aside from one thing that stands out initially. My first dive into writing compatibility between our mods mostly just produced a "expandedSats" attribute that I am able to poke and get the additional sat info for foods from your mod.
I think the main roadblock for me is currently not knowing if these expandedSats also extend to BlockMeals (aka food bowls and pies). I haven't dug around in your code too deeply mostly because the only user reports I've gotten of it not working were from users trying to eat CollectibleObjects (food items like fruit breads or breaded spelt balls with chicken, etc). I wrote a patch for those and if your mod is present I grab the expandedSats and apply them appropriately.
Maybe adding a public method to ACA that I can invoke if the mod is present and loaded? The method would return an array of FoodNutritionProperties containing the food content of an ACA/EF food item. This way, if you change things on your end, I don't have to dig around in your code to see what changed. That would be helpful.
I'm not sure if there's anything else that's really a roadblock for me other than that. I'll have to think on it.
Either way it's a pleasure to see you here and I am looking forward to working with you on it to ensure full compatibility between the two! :)
Also currently unsure if healing food items from your mod still apply their health even if the player cannot hold the sat value.
What an interesting looking mod... is there anything we can do from the Expanded Foods side to make your life easier?
Deathscreton I saw! I'm moving this conversation to the github. Please respond to my latest comment there.
traugdor
I'll get on that issue submission right away.
While looking through the logs, I found this immediately after eating a turnip (and not receiving the expected results):
I'll include this log and the others as an attachment. Please let me know if there's anythign else I can do to assist.
Deathscreton I am unable to replicate at the moment. There is some other mod conflict. Can you submit a bug report on the github for my mod? thanks!
I was able to eat mushrooms and modded items from other mods just fine. Please include your logs in your bug report.
traugdor
Wanted to provide an update; this issue doesn't seem to just affect the Butchery mod. It appears it happens with any single ingrediant food, ie. anything that isn't a meal. I just tried the same thing with an onion on full satiety, and it didn't give me any to the secondary stomach. I don't eat single ingredient foods very often, so I must have missed this.
sounds like a bug.. I'm not capturing a food item method properly somewhere.
traugdor
Yep! I made them while in a cellar, using clean offal, redmeat and some blood. I was at full first stomach (1500 satiety), with about 300 in my secondary stomach. The sausages recover about 740 satiety. Eating it did not increase my secondary stomach at all, but it did apply the buff where satiety doesn't deplete.
I've also noticed that if I have an empty second stomach, but a close to full first stomach, it will fill up the first stomach, but won't apply the leftover to the secondary. This feels akin to how normal meals work. If you feed on a meal and your first stomach isn't full, it'll fill that up, but will only take the appropriate amount from the meal. Using it a second time will then apply satiety to the second stomach, taking an additional appropriate amount from the meal.
If there are logs that might help, please let me know and I'll repeat the scenario and fetch them for you.
Deathscreton I will look into this. I don't play with the Butchery mod so I'll have to do some investigating why this is happening.
Can you outline exactly what you did, how you made the sausages, and what the conditions were for eating them?
Hello! It appears eating certain foods from the Butchery Mod (such as the Blood/Meat Sausages) does not fill the secondary stomach. I saw someone mention that it overfilled back in October, now it doesn't seem to fill at all.
Emmeryn Which image are you referring to? The mod thumbnail I drew myself. The image in the description above is AI and was initially a placeholder, but it was funny due to some absurd details(notably, the flamethrower candle) so we ended up leaving it. No more no less. 😛
Please use a different image that's not AI. It was much better before :)
Awesome, great turnaround time on that 😄
Tahvohck The mod now accommodates for the Body Heat Bar mod!
Kaldo I fixed drinking wine and other liquids as well as eating food items with a LOT of satiety packed into them. No idea if it will work for Butchery blood! I don't use that mod, haha!
Um.. yeah... lot to unpack here, so just read the patch notes above in the Change Log section!
Tahvohck Currently there is a configuration that lets you set the vertical offset of the bar by a set number of pixels. the number in the config file may be a positive or negative number depending on what you want. I am working on an update that fixes a lot of issues with the mod and it includes a fix that will allow you to use a client-side command to set this mod's configs without restarting your game.
barVerticalOffsetdefault:0Just as an aside, I would note that there are other mods that will place their bars in this same location. The next update will accommodate for the body heat bar and will adjust the location accordingly.
Can we get a configuration that lets us move the stomach bar? It currently exactly overlaps with the body heat bar mod.
LadyWYT Got it, thanks :)
Slikkelas I'll try to remember to update information later, but otherwise information on specific configuration options is available here: https://github.com/traugdor/ExpandedStomach/wiki/Configuration
To answer the question though, all that "hardcore" currently does is cut stomach capacity in half should the player die. We thought it was a bit harsh for default difficulties due to the effort it can take to build capacity, however, some players might enjoy that kind of harshness, hence the setting's inclusion. 😀
What exactly is the hardcore death mode in config? Can't see any info related to it in description? :)
Kaldo I noticed it with wine the other day and added a bug report to github bit so we wouldn't forget to fix it. 😁 Still testing the updated bits of code, but hopefully it should be ready for release in a few days.
traugdor
Nice, thanks for a quick fix and the update! If you liked my previous bug report that much how about a new potential one - liquids get consumed at full satiation bar but dont contribute for the expanded stomach, nutriets are just wasted. Tested with juice, wine and butchery blood (dont judge)
Kaldo
Hi, thanks for using the mod! I noticed this bug last night as well and wrote a patch for it last night. We're testing it over on the server and I expect to release an update once we're sure I didn't break anything else!
The update will also include better balancing as far as fat gains are concerned and make it easier to start dieting if you have been maintaining steady eating habits instead of just pigging out all the time!
Nice mod, thank you for making it! I like some added depth to the hunger management, especially since it solves those pesty "wasted extra calories" when overeating.
I do think there might be a bug though - when I'm at about half my hunger bar (lets say 800/1500) and I eat a blood sausage from butchery mod (gives 740 sat), both the hunger bars fill up to the max. I would expect the expanded stomach to be at only 40/500 in this case but it goes to 500/500. In other cases it seems to work fine but this occurence is common enough for me that I started noticing it pretty consistently.
thank you very much!
Ket New version uploaded just for you. :) Thanks for pointing out the mistake. I surely wouldn't have noticed until I was ready to push the next feature release.
Cool, thanks very much!
Ket
OOPSIE
That's not supposed to be there at all even if debugMode is on. I was trying to chase a bug which I fixed with the Hunger Patcher mod. I am already elbow deep in a new feature which will be tricky to strip out so I'll try to get a fix released here soon in the next few days.
We have "debugMode": false, set in the config, but the mod is still printing "[Server Debug] [expandedstomach] ExpandedStomach: 13.193808 saturation was lost" so much that the console is hard to read. Is that supposed to happen? Can there be an option to toggle that off please?
Samogitia I just noticed that myself... I will give you a full refund if I am unable to fix it.
I know its irrelevant, but hunger bar is slightly missaligned with original hunger bar 😅
And yes I know the configuration audoHideHungerBar is misspelled... I realized it as I was updating the page. If you try to change it in the config file, it won't work.
The latest mod version now includes a meter for stomach capacity--visible only when the expanded stomach is in use and enabled by default. Players can still opt for the immersive message system instead, simply by disabling the capacity meter in the mod config. 😄
oneil With the current version, there shouldn't be any compatibility issues.
Hello ! and first i can say great mod ! i have a question of compat : does it work well with vigor ? i have search look the wiki and here, and no mention so maybe it doesnt impact, i just wanted to be sure for my modpack. thanks :)
SkiSam The effects are listed in the mod description, as well as explained in a bit more detail on the mod's wiki page.
What are the effects of the weight gain?
@pyrocynical
Hi Enigmayster
This is actually something we debated when creating the mod.
We chose not to add this feature for a couple of reasons:
Nevertheless I can see some value in having this as an option that the player can choose to enable if they want.
Enigmayster /es debug printinfo playername
That command will list all relevant information about the player's stomach, if one wants/needs exact numbers. Otherwise, appropriate text will display for various levels of fullness, assuming immersive messages are enabled(which they are by default), and serve to alert the player to various effects as needed. You can find a full list of message types and their triggers in the mod's wiki. As for a proper GUI status bar, we didn't go that route as making one would not only be more work, but most likely cause issues with other mods that add status bars.
Being able to see 2nd stomach stats in the GUI would be fantastic addition to this mod. Dunno if thats possible, but it would be amazing if existing food bar would start filling up with a different color once youre full and your 2nd stomach starts to fill up
Pervy
Getting some fat will add a fair bit of cold resistance which will slow the rate at which you get cold. Currently I have not added a mechanic that does anything to you in hotter weather. There are other mods for that, but I suppose I could try my hand at it if there's enough of a demand for it. So, currently warmer spawns won't affect you.
However I would point out that this is not a "fat" mod. It is a mod that allows you to go longer without eating by allowing you to eat more at once. A drawback of this is that you could start to get fat if you are not careful to make sure your energy output matches your input...
Hey all,
I just released an update that fixes an issue that would break the mod if you played in a single player world, then multiplayer, and then singleplayer again without quitting the game.
Please feel free to update.
Pervy Your resistance to cold is dependent on your fat level. The more you have, the more resistant you'll be, but it does come with a price. You'll need to figure out the best balance of benefits and drawbacks for your gameplay, and we built it with a balanced approach in mind, but you can also tweak a lot of the numbers to your liking in the config file if something feels off. 😀
I don't think it makes a difference in warm weather/climates, at least to my knowledge. It might make a difference if you are playing with Hydrate or Diedrate, but I've not tested it in that fashion.
Edit: I will note that in my testing on normal difficulty, you can stay out pretty much all day long in the cold(temperate winter) if you have a decent level of fat and basic winter clothing. You won't be entirely immune to the cold though, as nighttime temperatures, high winds, or other inclement weather will chill you, but it won't be nearly as fast as it would be in vanilla. You'll have plenty of time to finish what you're doing before needing to head back inside to warm up.
Btw how does cold/warm weather effect the player? Like when its too warm or too cold? Does it do anything.
I know its not the right place to ask, but i changed to warmer spawns, and i wondered if it matters.
As for if i want or need a "fat" mod. But they are a very nice mod(s)
Does this mod also gives any of the resistances to colder weather, as it does in real life?
Like helping to keep core tempture.
Tasshroom33 I actually meant to contact you about a compatibility patch between our mods, but as it stands, they already play nicely together with a few configuration tweaks.
Tasshroom33 I think we'd just started working on the mod when you posted yours. 😁 I will also say that your mod came in handy for some of the testing!
I thought all of this looked familiar!
-body fat