Dropped battery charge on the floor

First of all, I never ever had this happened before, probably because I began playing somewhere around october 2019, when the new battery system was already in place.

Now, to what has actually happened. I was trying to thin out zombie horde near apartment complex to get to the stairs without risking being surrounded and eaten. Had to move back to recharge my UPS and then I noticed something lying on the ground. “Hmm, looks like a battery, I wonder if that’s a heavy disposable one by any chance?”. Nope, it was this:


I wonder if I should make a bug report or this is some known obscure mechanics interaction. Playing on latest experimental, of course.

e: I have no idea where this item came from. There wasn’t even a zombie corpse on that tile, and this happened on a freshly-generated-on-the-latest-patch piece of map.

I found one (well, “a pack”, to be more accurate) of those in a Lab (not sure if it came from a Zombie or not).
Not sure which version I was on, it’s a month or so back, but it was on a freshly generated map too (fresh standalone install, world with no mods (well, other than the already activated “No NPC Nutrition”)).

However, I don’t see this as a big problem, since they can just be reloaded into a battery…

Oh, also, I had some “item’s not found on loading” errors before, this could have had some influence on that (although I doubt it).

Edit 7. January 2020 14:35:
I Just went through the game files and searched for “battery” in locations and item groups to no avail. Now, I see a few options left on how this happens:

  • I’ve missed it in the json files.
  • It’s somewhere hardcoded.
  • It’s in the json files I didn’t check.
  • It’s inside a weapon/tool and when the object gets destroyed by a Zombie, the battery charge pours out like wine from a glass bottle.

Hi. Battery overhaul author here.

Its entirely possible that you found some free floating battery charge on the ground. If you manage to reproduce that, I’d love to know how it happened.

Regarding the free-floating battery charges in the lab finale, that was fixed back in October and the reason I didn’t catch it is on the list in your post: That particular finale was specified in the C++ code, and I didn’t (and still don’t) know how to work with it, so I left it in there.

Well hello Inglonias, thank you for the battery overhaul!

Uhm, there’s only one problem: It wasn’t in the finale, since I didn’t get even close to it. And that fix got merged about a month before I downloaded the my current version. I can check and post the exact version number this upcoming friday if it helps (it’s installed on my other computer - don’t tell my boss :innocent: ).

…I just managed to use that battery charge to “reload” my heavy disposable battery that was in a UPS. Was as easy as press “r” and select the UPS.
Why are these things in the game still? Backward compatibility?

Pretty much yeah. I think at some point they might get removed but that’s also what the battery migration mod is for.

The free floating charges are going to stay. As far as the game is concerned, the batteries are magazines and the battery charge inside are bullets. Ideally, those battery charges never appear outside of the battery containers and cannot be unloaded, so you can’t just hold raw electricity in your hand. That would be weird.

If for some reason you do find the free-floating battery charges outside of a battery, yes, you can reload batteries. That is there to prevent people’s stockpiles from becoming useless, and for the migration mod, which simply allows you to unload battery magazines.