PeakChatOps
A chat system for PEAK. Basic messaging functionality with UI enhancements.
| Date uploaded | 9 months ago |
| Version | 1.1.2 |
| Download link | LIghtPeak-PeakChatOps-1.1.2.zip |
| Downloads | 239 |
| Dependency string | LIghtPeak-PeakChatOps-1.1.2 |
This mod requires the following mods to function
BepInEx-BepInExPack_PEAK
BepInEx pack for PEAK. Preconfigured and ready to use.
Preferred version: 5.4.75301Snosz-PhotonCustomPropsUtils
Helps modders easily synchronize room/player properties across all connected clients through Photon's Custom Properties.
Preferred version: 1.1.0Cysharp-UniTask
Provides an efficient allocation free async/await integration for Unity.
Preferred version: 2.5.0README
PeakChatOps
PeakChatOps is a modified version based on PeakTextChat.
Retained from the original:
- PeakTextChat's UI framework
- Some patches from PeakTextChat
Major changes:
- Removed PeakTextChat's original chat message logic, replaced with a custom message handler chain
- Added a new command system supporting custom commands (auto registration/hot reload)
- Some components now use PeakLib implementations
- Improved Chinese support
Features:
- Chat box now supports paging! Use the mouse wheel to scroll up and down
- Supports config hot-reload, changes take effect immediately
- Minecraft-like command system! (支持内置命令和插件扩展)
- System messages now support multi-language and rich text color tags!
- Each language line can have its own color, making notifications vibrant and easy to distinguish
- Default system messages (death, revive, pass out) are preset with colorful styles for all supported languages
Features
- Chat message sending/receiving and UI display
- Supports custom commands (auto registration/hot reload)
- Multi-language internationalization and dynamic switching
- System messages (death, revive, pass out) support multi-language and per-line color customization via Unity rich text tags
- Chat input box Tab completion and prediction
- Supports config hot-reload
Installation
- Recommended: Use a mod manager for installation
Usage
- Chat: Press the configured hotkey (e.g. Y) to open the input box, type and press Enter to send
- Commands: Type
/helpto see all commands
Configuration
- Chat box size, position, font, opacity, etc. can be adjusted in the config file
- System message templates can be customized for each language and color using Unity rich text
<color>tags.- Example (default death message):
<color=#FF4040>没想到我也有死的这一天!</color> <color=#FFA500>I never thought I'd see the day I die!</color> <color=#40A0FF>まさか自分が死ぬ日が来るとは!</color> ...
- Example (default death message):
- Supports runtime hot-reload
build
dotnet build -c Release -target:PackTS -v d
Credits (in no particular order)
- PeakTextChat (Inspiration)
- BepInEx (Framework)
- PeakLib (Utility library)
For questions or suggestions, feel free to open an issue or PR!
CHANGELOG
Changelog
-
1.2.0
-
UI Improvements:
- Fixed chat panel occupying entire screen, now only uses actual panel size
- Fixed input text appearing white and hard to read - now uses proper contrast
- Improved maximize/minimize functionality using USS styles instead of hardcoded values
- Fixed long text overflowing horizontally - now properly wraps to new lines
-
Message System Fixes:
- Fixed remote player messages not displaying properly
- Fixed null reference exception in
/dev mock playercommand - Improved message receiving and display pipeline
-
Code Quality:
- Removed unnecessary thread switching calls
- Enhanced error handling and debug logging
- Fixed compilation errors
-
1.1.4
-
added command: /ai usage: /ai [prompt] @send : send prompt to OpenAI chat completion API and get response,send to other players if @send is specified : if @send is not specified, only send to yourself
-added config: autoTranslate : if true, automatically translate received messages to your language using OpenAI API.(need test,default: false)
- 1.0.1
- Added command: /hide : hide chat box immediately