Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several Food Items Spawn Without Vitamins #75791

Open
JeveGreen opened this issue Aug 18, 2024 · 6 comments
Open

Several Food Items Spawn Without Vitamins #75791

JeveGreen opened this issue Aug 18, 2024 · 6 comments
Labels
Items: Food / Vitamins Comestibles and drinks (S1 - Need confirmation) Report waiting on confirmation of reproducibility

Comments

@JeveGreen
Copy link

Describe the bug

What it says on the tin. Some of the ones I've personally encountered includes fruit jam, mayonnaise, BBQ sauce, honey mustard, human organs (all of them except the meat) and butter.

Attach save file

debug.log

Steps to reproduce

  1. Spawn any of the affected items.
  2. No vitamins. :(

Expected behavior

Food spawning with vitamins. :)

Screenshots

No response

Versions and configuration

  • OS: Windows
    • OS Version: 10.0.19043.1466 (21H1)
  • Game Version: 1b5a260 [64-bit]
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Bionic Professions [package_bionic_professions],
    Disable NPC Needs [no_npc_food],
    Portal Storms Ignore NPCs [personal_portal_storms],
    Slowdown Fungal Growth [no_fungal_growth],
    SpeedyDex [speedydex],
    Stats Through Kills [stats_through_kills],
    Stats Through Skills [StatsThroughSkills]
    ]

Additional context

I'm told this is a problem with the new vitamin code that affects a number of items, so while I listed off some examples I'm certain that I haven't seen every affected item. So for anyone passing by, feel free to add any other items you've seen without vitamins.

@JeveGreen JeveGreen added the (S1 - Need confirmation) Report waiting on confirmation of reproducibility label Aug 18, 2024
@PatrikLundell
Copy link
Contributor

When it comes to human organs I suspect the copy-from logic is used incorrectly for vitamins as it seems the implementation assumes a vitamin entry extends the entry of the copied item. Unless vitamins are handled differently from other entries, you'd need to use the extend logic to extend, otherwise you replace.
See #75540 for this.

@Karol1223
Copy link
Contributor

Karol1223 commented Aug 18, 2024

#75426 is likely what caused this sort of stuff with the organs. I noticed this happening with a bunch of bird eggs as well, where they lost their egg allergen.

Its also worth pointing out not all food is supposed to spawn with vitamins. Fruit jam comes to mind - in JSON the only vitamin it has is the fruit allergen. Should it have some token vitamin content? Probably. But the bug here isn't the spawning.

@GuardianDll
Copy link
Member

Just to clarify, the food should have vitamin definition in json always - if food is crafted by player, vitamins in json are simply not used, and picked from ingredients (unless NUTRIENT_OVERRIDE flag is used), but if it's spawned naturally, vitamin definition in json is used

Human organs is a separate issue, posted by Patrik, and it's tad more difficult than this

@Karol1223 Karol1223 added Items: Food / Vitamins Comestibles and drinks Spawn Creatures, items, vehicles, locations appearing on map labels Aug 19, 2024
@JeveGreen
Copy link
Author

So it looks like human organs have been fixed, which is great. But stuff like butter and fruit jam still spawn without vitamins, which sucks.

@Karol1223
Copy link
Contributor

Do you mean that they spawn without any vitamins, or with only allergen vitamins? If it's the latter, that's not a bug at all.

@JeveGreen
Copy link
Author

Do you mean that they spawn without any vitamins, or with only allergen vitamins? If it's the latter, that's not a bug at all.

I mean the "actual" vitamins, not the allergens. Unless the butter in Cataclysm magically got rid of all of its calcium, for example.

@Karol1223 Karol1223 removed the Spawn Creatures, items, vehicles, locations appearing on map label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Items: Food / Vitamins Comestibles and drinks (S1 - Need confirmation) Report waiting on confirmation of reproducibility
Projects
None yet
Development

No branches or pull requests

4 participants