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.

11 months ago
0.16 - 1.1
37082

i [added] Allow Dynamic Surface allocation

3 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

3 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.

2 years ago

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

2 years ago

Is now added, thanks to Oktabyte :)

2 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

2 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

2 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

1 year, 5 months ago

Loot chest works now on all surfaces in latest version.

1 year, 4 months ago

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

1 year, 4 months 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.

1 year, 4 months ago
(updated 1 year, 4 months 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.

1 year, 4 months 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