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.

Content
1 year, 18 days ago
0.16 - 1.1
7.93K
Logistics Logistic network Storage

i [added] Allow Dynamic Surface allocation

5 years ago

Currently Surface is locked to "nauvis" (itemList = game.surfaces["nauvis"].find_entities_filtered)

However Redmew Scenario's use "redmew" as a Surface.

My suggestion is to use the Surface that the Loot Chest is on.
Also limit Loot Chests based on this.

This will allow compatibility with mods that use multiple/different surfaces

5 years ago

Hi PiggyWhiskey, that sounds like a good idea. That's a whole new factorio experience for me, since I'm mostly playing bobs and stuff, the scenarios look very interesting.

How would I do that with the dynamic surfaces? Did you already play around with it a little maybe?
Any help is welcome and appreciated.

4 years ago

Bump. Would love this for Warptorio support please. Think calling entity.surface would get the surface the chest is on.

4 years ago

Is now added, thanks to Oktabyte :)

4 years ago

Glad to hear it, though I know Oktabyte's version caused desync when my buddy and I were trying to play together.
I mentioned it here https://mods.factorio.com/mod/LootChestPlusPlus/discussion/5d96b1b54cd21b000beef4ed
Though reading through it's probably actually related to this one:
https://mods.factorio.com/mod/LootChestPlus/discussion/5ce3460cdfc22b000bd097c2
Having thought it over more, it's likely the way you store the "pickup" queue.

Still, one of the best QoL mods for me, otherwise my base ends up looking like this https://i.imgur.com/NBlZq3u.jpg

4 years ago

Not sure the desync problems will get fixed. Since I don't play multiplayer and for that I don't spend time investigating in that direction...
But who knows, maybe someone comes up with an idea.

Looks like a nice paving all the loots :D

4 years ago

It's very entertaining seeing it all like that, but the loot chest helps me keep it nice and clean :)

Also, this link might help you discover the desync cause. https://wiki.factorio.com/Tutorial:Modding_tutorial/Gangsir#Multiplayer_and_desyncs

3 years ago

Loot chest works now on all surfaces in latest version.

3 years ago

i'm working on some code in my experimental branch for multi-surface support in space exploration for a less cheesy option

3 years ago

since i play space-exploration exclusively, i wanted better surface support. LootChestUPS now has a demo of this, it will allow only one chest per surface, it also has two global runtime settings to allow player to disable the loot hiding, and/or disable multi-surface support, so the defaults are previous behaviour, where everything goes into one chest.

i used a migration to ensure the old global table is moved into the new format where things are stored by surface name.

i've restructured the event code so that the tracking fires off, and there's no longer any need to use the global.artifactList.. though i think it still does.

3 years ago
(updated 3 years ago)

Sounds interesting. I guess I finally have to take a look at space-exploration. The exploration part is late-game stuff, right? I can't just straight explore other planets?

I tested it a little, so when you haven't placed a chest yet, loot stays, that's good. But then when I place the chest, the loot doesn't get transfered and remains on ground.

3 years ago

it's at blue science.

the loot doesn't pull off the ground when you place a chest, the option is there so you can collect it off the ground manually

New response