Page 1 of 1

[0.11.18+](1.0.0) Void Chest (Now With Flavors!)

Posted: Tue Mar 17, 2015 1:53 am
by AlyxDeLunar
Destroying items. Nothing complicated, just automatically destroying items. It could be nice to have, and some other mods have implemented kind of the mechanic, but I wanted something simple and straightforward. So, the Void Chest! (And also requested on this topic: https://forums.factorio.com/forum/vie ... =33&t=8867)

The Void Chest is simple (and very very similar to the Offshore Dump for liquids), it's a chest that you can put items into, and every 10 seconds or so it will destroy one item, causing pollution when it has items in it.

Questions/Comments/Concerns are always welcome :D
Picture
Features
Bugs and Annoyances
Versions

Re: [0.11.18+](1.0.0) Void Chest (Destroy the waste!)

Posted: Tue Mar 17, 2015 5:49 am
by waduk
Thanks for the straightforward annihilate stuff mod. I badly need it.and i immediately test it.
Why there are limitation (x item in x seconds) ?
I think this beat the purpose of having a void chest, my void chest is actually getting full and i must add 2nd void chest and so on.
Is it the game limitation ? (can't annihilate faster ?)

Re: [0.11.18+](1.0.0) Void Chest (Destroy the waste!)

Posted: Tue Mar 17, 2015 8:27 am
by Choumiko
AlyxDeLunar wrote:-With detailed mode, there is a iron plate icon near the chest, this is due to the invisible furnace to create pollution.
game.pollute() sounds like it could help with not needing a fake furnace.
waduk wrote:Why there are limitation (x item in x seconds) ?
I think this beat the purpose of having a void chest, my void chest is actually getting full and i must add 2nd void chest and so on.
Without having looked at the code i guess it's just a choice from Alex to check every 600ticks. Should be easy to change to a lower interval. Though i'm wondering what you are voiding that the chests run full. The only things i ever destroy are pistol, steel armor and burner mining drills and occasionaly a few stacks of wood :D

Re: [0.11.18+](1.0.0) Void Chest (Destroy the waste!)

Posted: Tue Mar 17, 2015 9:38 am
by waduk
Hehe..I'm actually voiding green circuit, yeah i know, it's not uncommon to voiding such thing.
This is part of my experiment/bottleneck test, the ultimate goal (if possible, also depends on my PC) is to build a factory that capable producing 60 item/min for each 3rd tier module.
The next thing to void is red and the purple one, and many other thing.

Sure i can use Compression chest mod (virtually limitless, so there's no need for additional chest)
But the thing is, that chest isn't easily removed, and since i made adjustment to factory layout a lot, that compression chest become a "bottleneck" on his own.
Thus i'm force to shot the chest for quick removal of compression chest. :)
But yeah it's getting annoying overtime since either the bot is keep repairing, or they were replacing stuff, not to mention a lot of structure is either destroyed or damage.

TLDR: This mod (if they were quickly enough to remove things) will save time,..a lot.

Edit : One other thing, in my main game, i also voiding stone, i don't have much use since i don't use train/wall extensively, but i don't like if there were a patch of stone ore, even a small one.
So i want to "remove" that ore patch asap to make room for other thing, and not worrying about chest to collect stuff.

Re: [0.11.18+](1.0.0) Void Chest (Destroy the waste!)

Posted: Tue Mar 17, 2015 4:53 pm
by AlyxDeLunar
Yeah, Choumiko is right about the time intervals I was running. I try not to let my stuff run all the time (no need to hog some processor time I don't need), and so having the check run every ~10 seconds to remove an item seemed like a good interval. That and I guess I wanted to make something that wasn't exactly like an infinite black hole of tossing away, so slowing down the rate of destruction+adding some pollution seemed like an okay compromise. Totally a design decision.

It's super easy to make just an instant void chest like that, so when I time a bit later today I'll make that up for you :D
As far as the ore removal, I'm not sure (off the top of my head) how to handle that without just deleting ore patches outright. I will see what I can do though.

Oh and thanks for that Choumiko, honestly I hadn't even thought of using pollute(). It wouldn't give me that pretty smoke rising out of the chest, but that's probably a trade-off that's worth it not to have that stupid iron plate icon hovering below the chest.

Re: [0.11.18+](1.0.0) Void Chest (Destroy the waste!)

Posted: Tue Mar 17, 2015 5:16 pm
by waduk
Thank you..
Oh you get it wrong about the stone things. I actually don't mind to mine stuff, i just don't like to store them in a couple of chest for things i don't needed. So this mod is doing just fine, it's just too slow for annihilating stuff at the moment, maybe you can make a version where a player can configure this behavior in config.lua etc ? I don't mind to adjusting the mod manually.

Btw, as the icon plate thing. Why don't use a transparent image/icon ?
Personally, i don't find it very annoying, but if that trick work, problem solved then..

Edit : Experiencing weird behavior, the void chest stop working ? The icon plate were missing..hmmm..what i do wrong ?
I only use 2 mod at the moment,, this void chest and Test Mode.

Re: [0.11.18+](1.0.0) Void Chest (Destroy the waste!)

Posted: Tue Mar 17, 2015 8:25 pm
by Nagshell
About ore removing:
I'm not sure if it's safe way, but you can use landfill mod to destroy land with ore and then fill it back and that should destroy everything on that tiles

Re: [0.11.18+](1.0.0) Void Chest (Destroy the waste!)

Posted: Tue Mar 17, 2015 10:42 pm
by AlyxDeLunar
I put a new version out waduk, the VoidChestInstant version. That should do what your looking for. The bug you ran into probably has something to do with invisible furnace thingy going screwy at some point, I'll probably have to edit the code. The instant version won't have that problem though!

Re: [0.11.18+](1.0.0) Void Chest (Now With Flavors!)

Posted: Wed Mar 18, 2015 12:44 am
by waduk
Yipee !! Thank you so much, this means a lot !

Re: [0.11.18+](1.0.0) Void Chest (Destroy the waste!)

Posted: Wed Mar 18, 2015 10:28 am
by Choumiko
AlyxDeLunar wrote:Oh and thanks for that Choumiko, honestly I hadn't even thought of using pollute(). It wouldn't give me that pretty smoke rising out of the chest, but that's probably a trade-off that's worth it not to have that stupid iron plate icon hovering below the chest.
You probably could use game.createentity to create smoke/particles.
waduk wrote:Edit : Experiencing weird behavior, the void chest stop working ? The icon plate were missing..hmmm..what i do wrong ?
I only use 2 mod at the moment,, this void chest and Test Mode.
All these tricks with invisible proxy entities are a real PITA (for the modder mostly), easily buggy, ugly to work with.. One more reason for using pollue() and creating smoke via createentity :)

Re: [0.11.18+](1.0.0) Void Chest (Now With Flavors!)

Posted: Thu Jul 23, 2015 2:06 am
by Tristitan
hey, i really like this mod, thank you for making it, i was wondering if you were planning to upgrade it to 0.12?

Re: [0.11.18+](1.0.0) Void Chest (Now With Flavors!)

Posted: Thu Jul 23, 2015 10:08 am
by MasterBuilder
Here's a working version for 0.12.0.

Re: [0.11.18+](1.0.0) Void Chest (Now With Flavors!)

Posted: Thu Jul 23, 2015 10:16 am
by Tristitan
Thank you

Re: [0.11.18+](1.0.0) Void Chest (Now With Flavors!)

Posted: Thu Jul 30, 2015 2:21 am
by Buggi
Yeah I updated it. And will continue to do so.

I have a thread for it here:
https://forums.factorio.com/forum/vie ... 20&t=13961