You are viewing a potentially older version of this package. View all versions.
LIghtPeak-PeakChatOps-1.0.0 icon

PeakChatOps

A chat system for PEAK. Basic messaging functionality with UI enhancements.

Date uploaded 9 months ago
Version 1.0.0
Download link LIghtPeak-PeakChatOps-1.0.0.zip
Downloads 245
Dependency string LIghtPeak-PeakChatOps-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack_PEAK-5.4.75301 icon
BepInEx-BepInExPack_PEAK

BepInEx pack for PEAK. Preconfigured and ready to use.

Preferred version: 5.4.75301
Snosz-PhotonCustomPropsUtils-1.1.0 icon
Snosz-PhotonCustomPropsUtils

Helps modders easily synchronize room/player properties across all connected clients through Photon's Custom Properties.

Preferred version: 1.1.0
PEAKModding-PEAKLib_Core-1.6.0 icon
PEAKModding-PEAKLib_Core

Core module of the PEAKLib community API.

Preferred version: 1.6.0
Cysharp-UniTask-2.5.0 icon
Cysharp-UniTask

Provides an efficient allocation free async/await integration for Unity.

Preferred version: 2.5.0

README

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! (Easily extensible, currently a few built-in commands, more can be added)

New command set mod: PeakChatOps Extra In development, for reference Source: https://github.com/LIghtJUNction/PeakMods

Features

  • Chat message sending/receiving and UI display
  • Supports custom commands (auto registration/hot reload)
  • Multi-language internationalization and dynamic switching
  • Chat input box Tab completion and prediction
  • Supports config hot-reload
  • Supports player teleport and other extension commands

Installation

  1. 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 /help to see all commands

Configuration

  • Chat box size, position, font, opacity, etc. can be adjusted in the config file
  • Supports runtime hot-reload

Development & Extension

  • To add a new command: Inherit from PCmd, implement the Handler, and put it in an extension DLL for auto loading

build

dotnet build -c Release -target:PackTS -v d

Credits (in no particular order)


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 player command
    • 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