Jump to content

Auto Eat and Drink in Survival RSE edition


Recommended Posts

Posted
View File

This is my edit of Auto Eat and Drink in Survival (ESL) by wim95, adding support for RSE's Advanced Needs system. I haven't tested it extensively, but it seems to work as expected for me. I've officially been blessed by wim95 with the permission to redistribute here. I've only tested with the latest AAF-RSE release 3.9.9.8. If you don't have Advanced Needs activated, you should still be able to use this mod for a Hardcore playthrough.

Description from the official page:
As description - copy/past from Fallout 4 Mod Requests
"This is a simple request: 
I am tired of using hotkey and open pip-boy to eat food and drink water in survival mode. It is game braking when facing tons of combats.
Please create a mod ... that can auto detect hunger and thirst level. Then auto eat and drink proper food and water in your inventroy."

Since v.1.1.0 added Mod Configuration Menu support.
With MCM you can turn off notifications, tweak consumption options.

Without MCM will use the default settings:

  • "Not Found" notifications - ON
  • "Items Left" Notifications - ON
  • Consumption of caffeinated products - ON
  • Number of caffeinated products that can be consumed - 3
  • Consumption of caffeinated products containing alcohol - OFF
  • Ignore "State" condition - OFF
  • Consumption of products from category "Never Eat" - OFF



What food and drinks consumed and in what order?
All food and drinks are categorized and placed on lists of consumption.

Categories for food:

  1. Food to Never Eat. Has buffs "Cure All Addictions", "Fortify Carry Weight", "Fortify Strength"
  2. Simplest Clean Food. Has only one buff "Restore Health"
  3. Simple Clean Food. Have buffs to health "Restore Health", "Incr. Heal Rate", "Fortify Health", "Restore Action Points", "Fortify Action Points", "Remove Radiation", "Radiation Resistance"
  4. Clean Food with Buffs. Has other buffs
  5. Radioactive Food. Has debuff "Radiation Damage"
  6. Food used in Crafting. Has debuff "Radiation Damage"
  7. Food with Standard Disease Risk. Has different buffs or debuffs
  8. Food with Standard Disease Risk used in Crafting. Has different buffs or debuffs
  9. Food with High Disease Risk. Has different buffs or debuffs
  10. Food with High Disease Risk used in Crafting. Has different buffs or debuffs


Categories for water:

  1. Clean Water
  2. Simplest Clean Water
  3. Simple Clean Water
  4. Clean Water with Buffs
  5. Radioactive Water
  6. Water used in Crafting
  7. Water with Standard Disease Risk


Categories for caffeinated products:

  1. Caffeinated products to Never Drink
  2. Caffeinated products



Caffeinated products can be consumed after sleep in "Tired" and lower state. (With MCM can be turned off.)
With MCM configurable from 1 to 10 times, but recommended no more than 3 times. Why only 3 times?
Copy/past from HC_ManagerScript: "To prevent staving off sleep forever by caffeinating, we increase it by the standard value scaled by the number of times caffeinated." End copy/past.
First time caffeine/extra caffeine sleep delay: 2.3/7.0 hours
Second time caffeine/extra caffeine sleep delay: 1.2/3.5 hours
Third time caffeine/extra caffeine sleep delay: 0.8/2.3 hours
Fourth time caffeine/extra caffeine sleep delay: 0.6/1.8 hours
It turns out that more than three times does not make sense

Items for consumption are taken randomly from a category. Consume before "State" state or before end consumable items in this category.
With MCM you can turn on ignore "State" condition and it will happen: "Also i want to eat as soon as im hungry no matter what i have, as well as drink whenever im thirsty with whatever drink i have".

Order of consumption:

  1. Caffeinated products (consume 1 item)
  2. Clean Water.
  3. Consume before "Hydrated" state.
  4. Simplest Clean Water.
  5. Consume before "Hydrated" state.
  6. Simplest Clean Food.
  7. Consume before "Fed" state. For Horizon users "Well Fed"
  8. Simple Clean Water.
  9. Consume before "Parched" state.
  10. Simple Clean Food.
  11. Consume before "Peckish" state. For Horizon users "Hungry"
  12. Clean Water with Buffs.
  13. Consume before "Parched" state.
  14. Clean Food with Buffs.
  15. Consume before "Peckish" state. For Horizon users "Hungry"
  16. Radioactive Water.
  17. Consume before "Thirsty" state.
  18. Radioactive Food.
  19. Consume before "Hungry" state. For Horizon users "Very Hungry"
  20. Water used in Crafting.
  21. Consume before "Thirsty" state.
  22. Food used in Crafting.
  23. Consume before "Hungry" state. For Horizon users "Very Hungry"
  24. Water with Standard Disease Risk.
  25. Consume before "Mildly Dehydrated" state.
  26. Food with Standard Disease Risk.
  27. Consume before "Famished" state. For Horizon users "Famished"
  28. Food with Standard Disease Risk used in Crafting.
  29. Consume before "Famished" state. For Horizon users "Famished"
  30. Food with High Disease Risk.
  31. Consume before "Famished" state. For Horizon users "Famished"
  32. Food with High Disease Risk used in Crafting.
  33. Consume before "Famished" state. For Horizon users "Famished"


     


Don't forget to replenish supplies of first categories!

List of products in categories

Compatibility:
Mod does not change any records or scripts in the game and does not conflict with anything.

Mods adding new items:
Wild Plants Farming - supported
Give Me That Bottle - supported
Canteens of the Commonwealth (Wearable) - supported
Military MREs - Meal Ready to Eat - New Food - supported
Wasteland Imports - Goodies from all across the Wasteland... - supported
New Recipes - supported
Them's Good Eatin' - supported
Vegetarian Food and Recipes - supported
Coffee and Donuts Workshop Pack from Creation Club - supported
Survival patch for Coffee and Donuts Workshop Pack (Creation Club) - supported
Sim Settlements - supported
Wasteland Venturers Sim Settlements AddOn Pack - supported
Wasteland Venturers 2 - Sim Settlements Addon Pack - supported
Altairp's Animal Farm - Add-On for Sim Settlements - supported
Sim Settlements Add-on pack -- VaultLand - supported
Urban Food Expanded - supported
Horizon v1.5 - supported

ESL version available in the optional files

Cannibal perk not fully tested. Report any issues.


  • Submitter
  • Submitted
    08/10/2018
  • Category
  • Requires
    AAF_RSE 3.9.9.8

View File

 

Posted

You're welcome. Let me know if you run into any issues with it. I'm going through the code and doing some housekeeping because I don't like the warnings in the Papyrus log and I think I've possibly identified some issues.

Posted

I posted an update to the mod. I wasn't looking at the right parts of AAF-RSE to understand if the player was hungry/thirsty/tired so I've fixed it up to work properly. I still need to test if caffeinated products work. I'm open to suggestions for any other consumable you'd like to see added to the mod, such as automatically taking the cure for Wastelander's Rash.

Posted

This sounds great. But when I try to use it, the MC says Missing Plugin: 1. AutoEat.esl. I installed this with NMM and I'm seeing the .esl file in the directory. Not sure why it doesn't see it.

 

EDIT: Nvm! I had to restart NMM. The .esl file then showed up in the plugins list and it was inactive. Set it to active and it started working.

  • 4 weeks later...
Posted

Depending on the mood I am in when I start a game I dont always play in survival, is there a possibility to make this work in any difficulty? Thank you.

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...