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

Map-related items not always initializing properly #79536

Open
ShnitzelX2 opened this issue Feb 4, 2025 · 0 comments
Open

Map-related items not always initializing properly #79536

ShnitzelX2 opened this issue Feb 4, 2025 · 0 comments
Labels
(S1 - Need confirmation) Report waiting on confirmation of reproducibility

Comments

@ShnitzelX2
Copy link
Contributor

Describe the bug

Sometimes, map caches will spawn without PRESERVE_SPAWN_LOC data.

This is because map::add_item, which adds the relevant data, is not always called when items are added to the map. Example: when monster item drops are put into corpses, or when smartphones are put into smartphone cases. Some screenshots:

stack of (all!) map caches from a pile of zombie corpses, note lack of location data

Image

and again from 100 civilian_phones, about 8 of 65 of them:

Image

Attach save file

N/A, easily reproducible

Steps to reproduce

  1. Kill a bunch of generic zombies (alternatively, spawn civilian_phones item group)
  2. Download their phones' contents onto one device
  3. Note lack of location data in map caches

Expected behavior

Ideally, these items should have their location data initialized when they are added to the map under any circumstance.

I'm just adding this issue as a reminder, it's not a high-priority bug because maps will use the player's position by default if no spawn location data is found. I think it's actually more concerning that map::add_item doesn't cover every case of an item being added to the map.

Screenshots

No response

Versions and configuration

  • OS: Windows
    • OS Version: 10.0.19045.5371 (22H2)
  • Game Version: cdda-experimental-2025-02-03-2150-dirty [64-bit]
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Portal Storms Ignore NPCs [personal_portal_storms],
    Slowdown Fungal Growth [no_fungal_growth]
    ]

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(S1 - Need confirmation) Report waiting on confirmation of reproducibility
Projects
None yet
Development

No branches or pull requests

1 participant