CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.61k stars 4.17k forks source link

Using debug to teleport myself long distances makes NPCs disappear #52061

Closed AmarinReyny closed 3 years ago

AmarinReyny commented 3 years ago

Describe the bug

So, after recruiting another NPC follower to bring back to camp, and finding out about the debug option that lets me take control of NPCs, I decided to kill two birds with one stone by taking over my new follower and teleporting them back to my faction camp, before going back to my primary character and doing the same thing with them. After I did so, I realized that none of the other followers I had were in the spots where they were before. In fact, they weren't anywhere at all. The overmap showed that they were allegedly still in that same overmap tile, but they just... weren't there. I even checked through debug to try to see where they were, by using the debug interface to edit their stats, and they weren't listed in the reality bubble at all - nor did they display under the list of existing creatures on the "game state" thing. Fortunately, the autosave didn't activate by that point, so I was able to recover my previous followers, but I knew I had to be careful going forward. As such, I decided to do some testing, and I pretty much found out that using long-range debug teleportation to enter a place where the NPCs would be in the reality bubble caused the NPCs to disappear.

Weirdly enough, using the short-range teleport to travel the same distance doesn't seem to have this problem.

Steps To Reproduce

  1. Get an NPC follower.
  2. Walk away until they're not in your reality bubble.
  3. Use long-range debug teleportation until they're in your reality bubble again.

Expected behavior

I expect my NPC followers to continue to exist after I teleport.

Screenshots

No response

Versions and configuration

OS: Windows OS Version: Windows 8.1 Pro Game Version: ccf5e15 [64-bit] Graphics Version: Tiles Game Language: System language [] Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Bionic Professions [package_bionic_professions], Aftershock [aftershock], Blaze Industries [blazeindustries], C.R.I.T Expansion Mod [crt_expansion], Magiclysm [magiclysm], XEAS [XEAS], Gun Cotton [guncotton], DinoMod [DinoMod], Youkai Enemies [Youkai_Disco], Mining Mod [Mining_Mod], Mole Mutation [dig_a_tunna], More Survivor Stuff [more_survivor_stuff], Mythical Martial Arts [MMA], More City Locations [cityside], No Rail Stations [No_Rail_Stations], Compatible Nimian Manufacture Guns [NM_wpns], No Fungal Monsters [No_Fungi], Fuji's Military Profession Pack [fuji_mpp], Magiclysm No Class Limit [magiclysm_no_class_limit], Mutation Changes [Mutation_Changes], Portable Autodoc [portable_autodoc], SpeedyDex [speedydex], Stats Through Kills [stats_through_kills], Stats Through Skills [StatsThroughSkills], Useful Helicopters [useful_helicopters], Arcana and Magic Items [Arcana], return_the_nut [return_the_nut], Hydroponics [hydroponics], Cooler Versatility [coolervers], Chris K's Knives [ChrisKsKnives], Custom Spells [Custom_Spells], Reproduction mod [perverts], Custom Bionics [custom_bionics], Magiclysm Runes in Arcana Recipes [Custom_ArcanaRune], Deconstruction Plus [Deconstruction_plus], Core Data Changes [core_data_changes], Arcadia Mapgen [custom_arcadia_mapgen]

Additional context

Only after I started typing this did I realize that I haven't tested what happens when I long-range debug teleportation to move around within the same reality bubble. I'll do that once I'm back at my "gaming" "laptop."

kevingranade commented 3 years ago

Debug is debug.

AmarinReyny commented 3 years ago

Debug is debug.

I mean... fair, but... I just kinda figured that the bug should be reported, not just in hopes that it might be fixed, but also so that other people who use debug a lot - not just for cheating, but also for, you know, actual debugging and testing things - can avoid any nasty surprises.