LongplayMono
Longplay is a mod that makes plants grow much slower, as well as chemistry stations. Now on alternate branch for Mono!
模組介紹 作者原文
Longplay Mod
Longplay is a mod for the game Schedule I that enhances gameplay by allowing users to customize growth times for plants and cooking durations for recipes. This mod is built using the MelonLoader framework and leverages Harmony for runtime patching.
Features
- Customizable Plant Growth Time: Adjust the growth time of plants to suit your gameplay style.
- Customizable Recipe Cook Time: Modify the cooking duration for recipes in the Chemistry Station.
- Configurable Settings: Easily configure growth and cook times via a JSON file.
- Seamless Integration: Automatically applies changes when the game starts.
Installation
- Install MelonLoader:
- Download and install MelonLoader.
- Download the Mod:
- Clone or download this repository and extract the files.
- Place the Mod:
- Copy the Longplay.dll file into the Mods folder of your game directory.
- Run the Game:
- Launch the game, and the mod will automatically initialize.
Configuration
The mod uses a configuration file named LongplayConfig.json located in the UserData directory of your game. If the file does not exist, it will be created with default values.
Default Configuration:
{ "GrowthTime": 60, "CookDuration": 960 }
How to Edit:
- Open LongplayConfig.json in a text editor.
- Modify the GrowthTime (in minutes) and CookDuration (in minutes) values as desired.
- Save the file and restart the game for changes to take effect.
Usage
- Plant Growth Time: The growth time of plants is patched during their initialization.
- Recipe Cook Time: The cooking duration for recipes is patched when a cook operation is set in the Chemistry Station.
Development
Code Overview
- Core.cs:
- Contains the main mod logic.
- Patches the Plant.Initialize and ChemistryStation.SetCookOperation methods using Harmony.
- Loads and applies configuration settings.
Key Classes:
- Core: The main entry point for the mod.
- PlantPatches: Adjusts plant growth times.
- ChemistryStationPatches: Adjusts recipe cook times.
Requirements
- MelonLoader: v0.5.7 or higher
-.NET 6 Runtime
- Game: Schedule I
Troubleshooting
- Error: System.AccessViolationException:
- Ensure the game and mod are compatible with the latest version of MelonLoader.
- Verify that the LongplayConfig.json file is correctly formatted.
- Mod Not Working:
- Check the MelonLoader logs for errors.
- Ensure the mod is placed in the correct Mods folder.
Contributing
Huge thanks to my good people over at the modding Discord for Schedule 1 for their love and support.
Massive thanks to Max on Discord for suggesting I use Mono instead of IL2Cpp. That helped a ton.
Thanks a bunch to Estonia, whose mod SpeedGrow I looked at to start my project, go check their mod out:
I also borrowed code from DeliveryDash mod for the Harmony setup, so thanks to the author Hyde.
Contributions are welcome! Feel free to submit issues or pull requests to improve the mod.
Declaration of AI usage
Large portions of this code was generated with the help of Copilot autocomplete, but the logic was my own.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Credits
- Author: Freshairkaboom
- Frameworks Used:
- MelonLoader
- Harmony
- Game: Schedule I by TVGS
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。