MissionUtils

版本 v1.0.2·更新於 2025-05-27

A patch to make the mission system more flexible and easier for modders to use.

截圖 共 1 張

模組介紹 作者原文

MissionUtils

A BETA helper plugin for R.E.P.O. that patches `MissionUI for it to be easier for modders to add their own mission ("FOCUS >") messages. It currently offers a queue system for displaying messages to players, and aims to not interfere with the default MissionUI` system.

To use it, simply call `MissionUI.instance.MissionText()` with the message you want to display as you normally would. The plugin will handle the rest, including queuing them and displaying them in the correct order, with a configurable delay between messages.

Features

  • Queue System: The plugin automatically queues messages and displays them in the order they were received. This means you can send multiple messages without worrying about them overlapping or being displayed at the same time.
  • Configurable Delay: You can configure the delay between messages to suit your needs. This allows you to control how long each message is displayed before the next one is shown.
  • Configure Dead Player Behavior: You can configure how the plugin behaves when a player dies. By default, the plugin will not show missions to dead players (the way it is in vanilla), but you can change this behavior in the config file, or forcefully override it in your mod's code.
  • Broadcasting: There's a built-in networking event that allows you to send messages to all players in the game, and it will automatically handle the queuing and displaying of those messages. This means you can easily send messages to all players without having to worry about the underlying mechanics of `MissionUI just by prepending your mission messsage with %broadcast%`. The plugin will automatically detect this and send the message to all players in the game. Without it, the message will be sent to the local player only. For example:

// This will send the message "This is a test message to all players!" to all players in the game for 4 seconds

MissionUI.instance.MissionText("%broadcast%This is a test message to all players!",

Color.white,

Color.white,

4f

);

// This will send the message to the local player only for 4 seconds

MissionUI.instance.MissionText("This is a test message to the local player!",

Color.white,

Color.white,

4f

);

If you have any suggestions, feel free to reach out to me on Discord!

© Pencil Fox Studios SP

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPackZehs-REPOLib

檔案與校驗

檔案名稱
MissionUtils-1.0.2.zip
檔案大小
37.4 KiB