Loot Chest+

by hanes

Automagically collects all the loot, on all surfaces. Useful in combination with artillery. Convenient for mods that add loot when aliens die, like Bob's mods, Necromant, Reika's EndgameCombat, Alien Loot Economy and Alien Space Science. The chest acts now as a passive provider chest and gets unlocked with logistic-robotics tech.

7 months ago
0.16 - 1.1
35716

b [fixed] causes loading times up to 2 hours and beyond

1 year, 8 months ago

causes loading times up to 2 hours and beyond

1 year, 8 months ago

how so?

1 year, 8 months ago

have multiple loot adding mods... also alien ore and stuff

1 year, 8 months ago

mind to share a save?

1 year, 8 months ago

Can confirm that it causes extended load times. Only relevant mod is Bob's Enemies.

1 year, 8 months ago

If you have no loot chests, your global.lootChestPos just continues accumulating forever,

Resulting in like 1.8 million lines in global being stored

1 year, 8 months ago

Wow, bummer... now how to stop this madness?

1 year, 8 months ago

I can confirm this report: https://forums.factorio.com/viewtopic.php?f=7&t=84794&p=494712#p494712

Also, tried using your beta-release but it didn't work, it throws me an error right after game load. The game did load btw!

1 year, 1 month ago

Good news everyone! With latest version 1.4.3 this should be fixed.

1 year, 29 days ago

wow it took you about 7 months, can you explain how your mod did cause such trouble?

1 year, 29 days ago

What Klonan wrote some posts above explains it pretty good.

1 year, 29 days ago

the mod was first written by PeggyWhiskey, it used a global table with an inefficient structure that grew every time a loot was detected:

{
    [ x: foo, y: bar ],
    [ x: foo2, y: bar2],
    n
}

the new version uses an optimised structure like so:

{
    ['artifact-name'] = count,
    ['another-artifact-name'] = count
}

which only grows to as many types of artifacts as you've added to your game. it also greatly improved the performance for parsing the list, but it removed the guarantee that you'll eventually collect all the loot. this is worth it, and to exceed the collection rate takes great effort.. like a plague capsule in Space Exploration.

1 year, 29 days ago

If someone urgently has to collect ALL the loot, there is always the possibility to activate the mod after you've researched logistic-robotics. That way no loot gets lost and can be collected normally by picking it up.

1 year, 28 days ago

you could also put an option for number of slots in the chest, since the reason the items are lost is merely to save CPU by not subtracting what can fit from what's there, to leave the number of what's left in the queue. a larger chest would ameliorate the issue.

1 year, 27 days ago

Setting is added. Merry christmas to all the hoarders. :)

New response