Biters drop money


Supports any mod, has customizable loot, optional integration with "EasyAPI" mod to auto-collect coins. UPS-friendly+

Content
10 months ago
1.1 - 2.0
874
Enemies

i Drop stacks instead

a month ago
(updated a month ago)

Hi, what do you think about making biters drop stacks instead of [amount] x 1 coins around the corse?
While I do enjoy the "gold plated" floor around my base, the entity spam causes serious UPS drops.
I play with ERM and Rampant mod.

Also quality biters drop quality coins, not sure if this is intended behaviour. :D

a month ago
(updated a month ago)

drop stacks

Huh?! I can?!

Anyway, install https://mods.factorio.com/mod/EasyAPI?from=search and it'll force to drop different coins which causes less UPS issues.

a month ago

Maybe, there's another solution...

a month ago

Sorry, I just realized that my question wording is too vague.
What I mean is having custom coin prototypes of 100, 1k, 10k, 100k, 1m etc. which can be "unstacked" into the standard coin prototype per crafting recipe in assembler, or even automatically on pickup, if you wanna bother writing the code.

I've noticed, that modded enemies like Rampant (and probably others like Endgame Evolution etc.) will always drop max amount of coins which per default settings is 100. Which means we ALWAYS get 100 coin entities around EACH modded biter corpse. This creates a golden carpet, which is nice to look at, but makes Factorio engine sweat and heavily drop UPS, regadless of CPU, amount of cores, dedicated graphics cards - lag is inevitable.

Here's a quick experiment.
Let's say we keep the default settings 100HP = 1 coin, but instead uncap the maximum dropped gold per killed enemy according to their HP.
A biter with 50'000 HP would drop 5'000'000 gold coin entities, which guarantees UPS drop or simply crash to desktop.

Since your mod allows changing max amount of dropped gold, it makes sense to provide new prototypes, instead of clogging up the ground with countless 1 x coin entities.

Check out Colony Builder mod for reference. Here's how they solved compressing large amounts of coins.


a month ago
(updated a month ago)

https://mods.factorio.com/mod/EasyAPI does add new coins, virtual money and commands for it, but I didn't consider the extent of the issue well enough.

I'll add new coins when I'll be in better state for it.

New response