[MOD 0.12.x] Compression Chests: virtually unlimited storage
Posted: Mon Jul 14, 2014 11:02 pm
This mod adds a new chest: the Compression Chest.
Images: http://imgur.com/a/LozhP
Any comments/questions - feel free to post. I love to hear any feedback (good or bad)
Information:
Current version: 1.3.8
Download [0.12]: Changelog:
Images: http://imgur.com/a/LozhP
Any comments/questions - feel free to post. I love to hear any feedback (good or bad)
Information:
- Stores a virtually unlimited number of one item type
- Chest only has one slot
- Takes power to insert and remove items from the chest (configurable at the top of control.lua if you think it's too powerful as is)
- Power is provided by the Compression Power Pole - it has a 5x5 range centered on the pole
- Multiple chests can be hooked up to multiple power poles
- To get the number of items stored in a Compression Chest: mine it
- To fill your inventory with the items it has stored: mine it while holding the item type it's storing
- The chests can't compress items with a stack size of < 3
- The chests will maintain 2/3rds of a stack of the item type in the one slot
- Chest unlocks with Logistics 3 - if loading the mod into an existing game with Logistics 3 done: load, save, load to unlock
- Adds new research: Compression chest mover - hold while mining to move a compression chest 1 tile closer to your player
- Adds new research (DISABLED BY DEFAULT - see control.lua to enable): Pickup compression chest 1-5: Allows you to pick up 1-5 compression chests contents and all - hold the compression chest mover while mining to pick one up
- If you have the "Terminal Chests" mod installed a Compression Chest directly adjacent to a Terminal Chest will draw contents from the Terminal Chest - note, you have to first set the chest content type by putting the item you want to store in the chest before it will start pulling from connected Terminal Chests
- Chests without a power source skip all special code logic and act like simple 1 slot chests
- Chests detect power poles on placement so there's no extra checking done to find valid power sources
- Chests detect Compression Chests on placement so there's no extra checking done to find valid chests
- Power poles detect near by chests on placement and add themselves to the chests valid power sources so there's no extra checking done to find valid chests
- Power poles don't tick (in the mod script) so spamming them should have close to zero impact on the game
- Chests with power sources that don't have any available power skip compression/decompression code logic
- Putting the wrong item in the input slot of a chest with internally stored content will cause the chest to skip special code logic for an extended period of time
- Putting a item in the chest that can't be compressed (< 3 stack items) will cause the chest to skip special code logic for an extended period of time
- Chests that haven't done any special code logic over the last few attempts will enter an inactive state
- Chests that do special code logic will leave the inactive state
Current version: 1.3.8
Download [0.12]: Changelog:
Code: Select all
1.3.8: updated for Factorio 0.12.11
1.3.7: updated for Factorio 0.12.0
1.3.6: fixed loading saves after removing other mod items that where "compressed" in chests
1.3.5: fixed desync issue in MP
1.3.4: fixed localized print dialogs error
1.3.3: 0.11 compatible
1.3.2: fixed the chest and power pole to be owned by the player so they'll show up blue on the minimap
1.3: fixed several bugs related to moving the chest and interaction with Terminal Chests
1.2: disabled the "pickup compression chest" research and functionality by default - it outmodes trains completely - if you want it enabled see control.lua
fixed the power indication messages when moving/mining chests with contents
fixed the stored counter to count the items in the 1 slot
fixed missing file errors for Linux users
1.1: fixed chest getting deleted when trying to pick it up and your inventory is full
1.0: initial release