


limits.json file). If many items match the criteria, processing can temporarily become heavy.BepInEx/config/OldMarket.AutoStorage. If you do not need customization, you can use them as-is.When you press Y or U, items in your inventory are automatically distributed to default storage locations as follows:
If a per-item storage location has been assigned, it takes priority over the default storage location.
Default storage locations are mapped per map, not per save file.
All maps have initial default storage locations defined, and you can customize them if necessary.
You can change the following settings in BepInEx/config/oldmarket.autostorage.cfg.
Key bindings (default)
Use dedicated default storage for “one-day-left” items (default: true)
LogOutput.log under the BepInEx folder and look for [AutoStorage WORLD DEBUG]. For example: [Info :Old Market Auto Storage] ========== [AutoStorage WORLD DEBUG] ==========
[Info :Old Market Auto Storage] [AutoStorage DEBUG] MarketTitle = 'EAST WIND MARKET'
[Info :Old Market Auto Storage] [AutoStorage DEBUG] mapId = 2
[Info :Old Market Auto Storage] [AutoStorage DEBUG] worldKey = '2'
[Info :Old Market Auto Storage] [AutoStorage DEBUG] playerPos = (20.66, 25.78, -3.14)
[Info :Old Market Auto Storage] [AutoStorage DEBUG] Cellar: (-2.49, 28.27, -26.84)
[Info :Old Market Auto Storage] [AutoStorage DEBUG] Junkman: (24.69, 26.55, 1.45)
[Info :Old Market Auto Storage] [AutoStorage DEBUG] Workshop: (-39.53, 27.73, 9.02)
[Info :Old Market Auto Storage] [AutoStorage DEBUG] OneDayLeftCellar: (-2.49, 28.27, -25.98)
[Info :Old Market Auto Storage] ==============================================
Open OldMarket.AutoStorage.defaults.json in BepInEx/config/OldMarket.AutoStorage.
In OldMarket.AutoStorage.defaults.json, edit the block whose mapId matches the value shown in LogOutput.log (for example: 0 = TropicalIsland, 1 = EastTown, 2 = RomanTown).
Apply the playerPos value from LogOutput.log to the entries you want to change as default storage locations.
Start the game and press F6 to confirm that the default storage markers have been updated.
If you want to reset everything back to the original defaults, delete OldMarket.AutoStorage.defaults.json.
Only items stored in assigned storage locations are affected. To enable auto-disposal:
Check the bundled sample file
The following sample file is included:
BepInEx/plugins/OldMarket.AutoStorage/Samples/OldMarket.AutoStorage.limits.jsonThe sample configuration will send items to the disposal location when:
Copy this file to BepInEx/config/OldMarket.AutoStorage/ to use it as-is.
Identify the target items (itemId)
LogOutput.log and look for [AutoStorage INVENTORY DEBUG], for example: [Info :Old Market Auto Storage] ========== [AutoStorage INVENTORY DEBUG] ==========
[Info :Old Market Auto Storage] [AutoStorage DEBUG] CurrentSlotIndex = 0
[Info :Old Market Auto Storage] [AutoStorage DEBUG] CurrentSlot: itemId=1762012563854, amount=1, cost=1200, dayCounter=0
[Info :Old Market Auto Storage] [AutoStorage DEBUG] Current ItemSO: type=BagSO, isBag=True, isTool=False, name='medium_bag', basePrice=1200, stackSize=1, id=1762012563854
[Info :Old Market Auto Storage] ---------- ALL SLOTS ----------
[Info :Old Market Auto Storage] [AutoStorage DEBUG] Slot[0]: itemId=1762012563854, amount=1, cost=1200, dayCounter=0, ItemType=BagSO, isBag=True, isTool=False, ItemName='medium_bag'
[Info :Old Market Auto Storage] [AutoStorage DEBUG] Slot[1]: itemId=1734622959366, amount=1, cost=22, dayCounter=11, ItemType=ItemSO, isBag=False, isTool=False, ItemName='copper_stone'
[Info :Old Market Auto Storage] [AutoStorage DEBUG] Slot[2]: itemId=1760108909804, amount=1, cost=2, dayCounter=13, ItemType=ItemSO, isBag=False, isTool=False, ItemName='stone'
[Info :Old Market Auto Storage] ==============================================
Edit limits.json
BepInEx/config/OldMarket.AutoStorage/ and modify itemId and the limit quantity.Test
Bundled files (under BepInEx/plugins/OldMarket.AutoStorage/Samples)
OldMarket.AutoStorage.limits.json
OldMarket.AutoStorage.defaults.json
Generated files (under BepInEx/config/OldMarket.AutoStorage)
OldMarket.AutoStorage.defaults.json
OldMarket.AutoStorage.[mapId].json
OldMarket.AutoStorage.materialCategories.json
Auto-disposal configuration files are not generated automatically. If you want to use auto-disposal, copy the sample file and test your setup before using it in a real save.
Auto-disposal (when using a configuration file together with auto-stacking)
If the number of target items is very large, the game may briefly freeze or stutter.