NoMoreTrash
Automatically clears trash to keep your game clean! No more overflowing trash bins - trash is cleared after you sleep and with a configurable hotkey.
模組介紹 作者原文
NoMoreTrash
Automatically clear trash in Schedule I to keep your dispensary clean!
A MelonLoader mod for Schedule I that automatically clears trash after you sleep and provides a hotkey for manual cleanup. Never worry about overflowing trash bins again!
🎯 What Does It Do?
NoMoreTrash automatically executes the cleartrash console command to remove all trash from your dispensary. This happens:
- Automatically after you wake up from sleeping
- Manually when you press the hotkey (default: P)
No more tedious trash management - focus on running your business while this mod keeps things tidy!
✨ Features
- 🛏️ Auto-clear after sleep: Automatically clears trash when you wake up
- ⌨️ Manual hotkey: Press a configurable key to instantly clear trash anytime
- ⚙️ Fully configurable: Customize hotkey, enable/disable features via MelonPreferences
- 🔄 Dual backend support: Works with both IL2CPP (main branch) and Mono (alternate branch)
- 🛡️ Robust fallback: If sleep event detection fails, uses timed interval (24 minutes)
- 📝 Clean logging: Informative messages about when trash is cleared
📥 Installation
Requirements
- Schedule I (Steam)
- MelonLoader v0.7.0 or newer
Steps
- Install MelonLoader on your Schedule I installation
- Download from MelonLoader releases
- Run the installer and select your Schedule I game folder
- Download NoMoreTrash
- Get the latest release from Releases
- Download the version matching your game branch:
- NoMoreTrash-IL2CPP.dll for main/beta branch
- NoMoreTrash-Mono.dll for alternate/alternate-beta branch
- Install the mod
- Place the downloaded.dll file in Schedule I/Mods/ folder
- Launch the game - you should see NoMoreTrash initialization messages in the console
⚙️ Configuration
Configuration is done through MelonPreferences, located in Schedule I/UserData/MelonPreferences.cfg
Settings
| Setting | Default | Description |
|---------|---------|-------------|
| Hotkey | P | Key to manually clear trash |
| HotkeyEnabled | true | Enable/disable hotkey trash clearing |
| SaveEventEnabled | true | Enable/disable automatic clearing after sleep |
| Command | cleartrash | Console command to execute (advanced) |
How to Change Settings
Edit config file
- Close the game
- Open Schedule I/UserData/MelonPreferences.cfg
- Find the [NoMoreTrash] section
- Change values (e.g., Hotkey = "O" for the O key)
- Save and restart the game
Available Hotkeys
You can use any Unity KeyCode value. Common examples:
- Letters: A, B, C, etc.
- Numbers: 1, 2, etc.
- Function keys: F1, F2, etc.
- Special: Delete, Insert, Home, End, etc.
Full KeyCode list
🔧 How It Works
Automatic Cleanup
Primary Method (Preferred):
- Hooks into the game's sleep/wake cycle via TimeManager.Instance.onSleepEnd
- When you wake up, trash is automatically cleared
- Seamless integration with game events
Fallback Method:
- If event hooking fails, uses a 24-minute timer (game's full day cycle interval)
- Ensures trash still gets cleared even if events aren't available
- Check console logs to see which method is active
Manual Cleanup
Press the configured hotkey (default: P) anytime during gameplay to instantly clear trash.
Cross-Backend Support
The mod uses conditional compilation to support both game backends:
- IL2CPP (main branch): Uses IL2CPP-compatible event handlers
- Mono (alternate branch): Uses native C# event handlers
Both versions function identically from the user's perspective.
🎮 Usage Guide
First Time Setup
- Launch the game with the mod installed
- Check the console for: "NoMoreTrash - Automatic trash cleanup initialized!"
- You'll see: "Ready to keep things clean! Press [P] to manually clear trash."
- Play normally - trash will auto-clear when you sleep
Testing the Mod
Test manual clearing:
- Generate some trash in your dispensary
- Press P (or your configured hotkey)
- Console shows: "✓ Trash cleared successfully!"
Test automatic clearing:
- Generate trash before sleeping
- Sleep in the game
- When you wake up,
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: