Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Long description

Long description

This will add a "Toy Box" button to the screen. If you press it, it will expand a drawer of all known item types. Clicking any one will give you a stack of that item. By default the window will close when you start walking, although you can change that. The purpose of this is to provide a more convenient user-interface for giving items to yourself than console commands. Obviously this will break the spirit of the game, the intended use of this mod is for sandbox-style play, e.g. when creating demos, tutorials, testing ideas, etc.

This also adds four new entities:

Dumpster - A chest that discards everything you put in it.

Bottomless Chest - A chest that provides an infinite number of a specific item.

Logistics Bottomless Chest - A passive provider chest that provides an infinite number of a specific item.

To use the dumpsters simply put items in them. To use the bottomless chests, build one then put an item in it. The chest will now always be full of that item. If you want to change the item you'll have to destroy and re-build the chest. The logistics chests are unlocked with the other logistics chests, although you'll probably be using the toy box to give them to yourself anyways.

If you want to change the default GUI settings you can edit them in config.lua; that way if you find some settings you like you won't have to set them every time you start a new game.

Note: If you save your game with the GUI open, and then install a new mod that adds new items, you may have to close then re-open the GUI for it to update.

Issues and Todos

Issues / Todo

TODO

Provide a trash slot for discarding items, if possible.

Some interface for "give 1" instead of a whole stack. Can't read modifier key states though.

It's like Too many items from Minecraft for Factorio! There should be day/night time controls as well as evolution controls so we can build something and test if vs high evolution creeps. This looks great!

sporefreak wrote:It's like Too many items from Minecraft for Factorio! There should be day/night time controls as well as evolution controls so we can build something and test if vs high evolution creeps. This looks great!

sporefreak wrote:It's like Too many items from Minecraft for Factorio! There should be day/night time controls as well as evolution controls so we can build something and test if vs high evolution creeps. This looks great!

- Cleaned up GUI: Fixed image scaling, borders around buttons, although I will miss the minecraft theme (if you want you can set USE_CHECKBOXES to false in config.lua).
- Window now automatically closes when you start walking. This seemed convenient to me. However it makes it unusable on trains or if you're moving around. I suppose I could make it not auto-close if you are driving something. I may add an option dialog with an option for this in the future.

Also: Sorry, if you downloaded this in the last 5 minutes, a bug crept in at the last minute that kept it from working entirely. Fixed.

Love this so far. One trouble I've noted. I am a heavy modder, so I have so many items that are populating the list, they aren't or can't be displayed. If there is a way to scroll through, I'm missing it.

SmartGuy202 wrote:Love this so far. One trouble I've noted. I am a heavy modder, so I have so many items that are populating the list, they aren't or can't be displayed. If there is a way to scroll through, I'm missing it.

Any item that has the "goes-to-quickbar" or "goes-to-main-inventory" flag, and also appears in game.item_prototypes, should be in the list, including ones that mods add (e.g. the description screenshot has the Terraforming mod items in it and a couple custom inserters). Can you give me a link to one of the mods that adds items that aren't being displayed there?

Edit: Or are you saying, there's too many items? In the next update there will be category buttons that ease the pain a bit, and also the number of columns in the table will be configurable so you could make it wider to accommodate. Also at some point, maybe in the update after next if not the next, I might add some kind of scrolling/paging.

Version 0.2.0 (2016-Apr-22):
- Settings dialog.
- Categorized and grouped items (option for enabling this).
- Option to disable auto window close.
- Option to disable auto window close only when driving a vehicle.
- Option to set number of columns in main window.

Logistics Bottomless Chest - A passive provider chest that provides an infinite number of a specific item.

To use the dumpsters simply put items in them. To use the bottomless chests, build one then put an item in it. The chest will now always be full of that item. If you want to change the item you'll have to destroy and re-build the chest. The logistics chests are unlocked with the other logistics chests.

Last edited by JasonC on Sat Apr 23, 2016 6:22 pm, edited 1 time in total.

Very nice mod, except it breaks when you uninstall many other mods that adds items to the game. It makes it impossible to uninstall almost any other mod without also uninstalling toybox.
Attached a save file that give that error message (though for another missing item) after a few seconds of loading the savefile. No other mods required.

But the special chests are really good and the interface for spawning items is much quicker to use than Test Mode mod. I use both, but I don't use TM for item spawning or for test factory setups because TB does it so much better. So thanks for this mod, at least when it doesn't corrupt your save q: (should be fixable by disbling toybox, saving and then enabling toybox again though. You will lose your toybox chests then it that case but your save at least wont break permenently)