0 of 0

File information

Last updated

Original upload

Created by

mpdought

Uploaded by

mpdought

Virus scan

Safe to use

Tags for this mod

11 comments

  1. mpdought
    mpdought
    • supporter
    • 41 posts
    • 5 kudos
    Locked
    Sticky
    I've tested this as much as I can on my own and I haven't gotten any stats stuck from food under circumstances which I would expect such to occur. If you get stuck stats from food with this file active then please let me know so I can try to figure out what else I may have missed about it, or at least hide the file so I do not mislead others and so I can minimize my shame. Thank you.

    You can see if you're affected by the food bug by doing the following:
    1) Remove all equipment, clothing items, and so on. Make sure that no buffs from chems, non-bugged food, etc. are on you.
    2) Go into the console and enter "player.getvalueinfo [AVIF]" where [AVIF] is the code of the actor value (stat) you suspect is bugged. For most actor values the AVIF will be the name of the stat with any spaces removed, e. g. Strength is "Strength" Carry Weight is "CarryWeight" etc.
    3) The console will print out some info on the actor value, including a list of modifiers to the actor value named "Temp," "Perm," and "Damage." If you have no equipment, no perks or buffs affecting the stat, and a non-zero value after "Temp," or "Perm" in the case of SPECIAL buffs, then you're probably affected. Make sure to consider any effects like "Well Rested" which might show up as modifiers.

    I haven't encountered anything that shows up as "Damage" and gets stuck, but I wouldn't discount the possibility, especially in the case of the Perception/Agility poison bug, which occurs for a similar reason. I've personally never had that bug, so I haven't been able to check.
  2. Verbal Earthworm
    Verbal Earthworm
    • premium
    • 1,354 posts
    • 74 kudos
    Very interested in this mod. Kudos. Since the Food-Bug hit, all the fun has been sucked out of food. Had to kill my vanilla survival playthrough just to enable console and search and destroy all the buffs. Afterwards I was reduced to noodle cups and water. Now there is hope. Testing...
    1. mpdought
      mpdought
      • supporter
      • 41 posts
      • 5 kudos
      Please let me know if your tests show any problems. Or not! I loathe this bug since it killed an advanced vanilla playthrough and I wish to destroy it utterly.
    2. Verbal Earthworm
      Verbal Earthworm
      • premium
      • 1,354 posts
      • 74 kudos
      A most noble crusade!
      3 days later and no food-bug so far. Unfortunately, I just began a nukaworld survival playthrough from level 1 so the food items are limited to that area. However, I did manage to defeat the overboss at level 9. Endorsed!
  3. Ablaze666
    Ablaze666
    • supporter
    • 1,372 posts
    • 111 kudos
    Well spotted! And thanks for the detailed explanation why and where this bug occurs. I always wondered what's going wrong there. Have a Kudos.
    1. mpdought
      mpdought
      • supporter
      • 41 posts
      • 5 kudos
      Thank you.
  4. bretton
    bretton
    • member
    • 783 posts
    • 84 kudos
    Haha, the "maybe" in the title. Tracking this, interested to see how other people respond after testing.

    In my own game I've been playing with the turn off hardcore sustenance effects completely disabled, so food works all the time, even when hungry. I didn't think of this as the cause of the bug, I just liked to play that way. I've still encountered incorrect actor values since then, multiple times. I have no idea if they were from food, however. I honestly don't think they were.

    I've also taken it as far as to completely remove all magic effects from food, and still encountered the issue for other actor values, so that pretty much confirms that food isn't the only source, but it's still clearly the biggest one.

    It was previously thought that altering the well rested perk could fix this issue, and I think it did somewhat, just as this mod might. In my personal testing I had every magic effect on food removed + hardcore subsistence effects turned off completely + the well rested perk completely disabled. I STILL had a few incorrect actor values after about 48 in-game hours of play, but it wasn't nearly as bad.

    I think it' very possible that there are multiple ways to trigger this bug and certain playstyles happen to trigger it more often.

    Good work either way. If this is another chunk of this bug being removed without completely disabling effects like I did, then that's awesome for everybody. It also might provide some insight as to WHY this bug happens, maybe one day somebody could fix it with F4SE for good. Eventually somebody is going to piece together the connection between temporary buffs, well rested perk, and food timers/durations.


    edit: I also wanted to point out a criminally underrated mod somebody made on bethesda net.
    It gives you a holotape that automatically sets your SPECIAL stats back to what they should be and removes the little (+) or (-) next to them. It doesn't fix any other actor values, but it at least fixes the most noticeable ones in case they are already bugged out.

    Link: https://bethesda.net/en/mods/fallout4/mod-detail/4025846
    1. mpdought
      mpdought
      • supporter
      • 41 posts
      • 5 kudos
      What are the other issues you've encountered with actor values? I'd be interested in taking a look at them. There's a bug with what I think is a similar mechanism concerning Stingwing poison and Perception/Agility, but I haven't had the chance to test any potential workarounds for it. If I'm correct about how the bug happens then anything that changes the magnitude of a buff/debuff while it's applied to an actor could trigger stuck values in modifiers, or at least any perk that uses magnitude-changing functions. I suspect that it extends beyond perks, though.

      Also, thanks for pointing out the mod. If I encounter this bug in my own game again then maybe I won't have to fire up Cheat Engine to clear the problem.
  5. markdf
    markdf
    • premium
    • 894 posts
    • 83 kudos
    The mechanism you describe sounds extremely plausible. How did you work this out?
    1. mpdought
      mpdought
      • supporter
      • 41 posts
      • 5 kudos
      I read the sections handling needs and hunger in the HC_ManagerScript, the master script for Survival mode. Lots of interesting stuff in there about how survival features work. At first I thought the error might be somewhere in the script, but it turns out many of the survival mode features are added as invisible perks to the player that are enabled and disabled by the script or by conditions on the perks themselves, so I figured they were worth looking at.

      Around the same time I read about the GetValueInfo console function and started playing with it under various circumstances, including with the food bug. Food buffs (except for SPECIAL buffs for whatever reason, they're in Perm) are tracked as Temp modifiers, and I noticed that stuck food buffs were left behind in that field when the bug occurred.

      Eventually I managed to isolate when the food bug occurs - it's when the player is hungry and a food buff gained before the onset of hunger expires. It can be reproduced most easily by eating something (Grilled Radstag was the one I used most for testing it), then making yourself hungry with Rad-X, then sleeping for longer than the food will last. The fact that it's an expiring buff indicated that it had to do with the removal of the effect.

      While I was looking at the perks that govern survival mode, I found that HC_SustenanceEffectsTurnFoodOff directly set the magnitude of foods to 0. All these things percolated for a while and at some point I reasoned the stat buff was left behind was because (apparently) the game uses the current value of an effect to remove a buff rather than its real value, or that the SetValue function available to perks will globally alter the real value until its conditions (a global for hunger level) are no longer satisfied. Or at least, something along those lines was happening. Sure seemed that way, and altering the perk to not affect magnitude at all prevents the bug from happening, at least as far as I've tested and played, and let me tell you my character in my last playthrough was a total glutton and I deliberately tried to make it happen.

      I was also listening to a lot of 70's and 80's disco and funk like Boney M and Cameo, so that may have helped.

      EDIT: I've noticed that collectively Bethesda, whether as a constraint of GameBryo or just a general oversight, seldom make a sufficient type/token distinction for anything but world entities, which if I'm right about why this bug happens is the crux of the matter.
    2. markdf
      markdf
      • premium
      • 894 posts
      • 83 kudos
      Sounds like really good investigative work. I mean you're obviously not the first person to go looking, but no one else has ever spotted that particular error. Or if they did, they never posted about it. :-)

      Thanks for sharing!
REPORT BUG
Top