R.E.P.O.
Install

Details

Last Updated
First Uploaded
Downloads
1.6K
Likes
0
Size
156KB
Dependency string
matsu-Emergency_Dice_REPOED_Fixed-1.0.2
Dependants

Emergency Dice REPOED Fixed

A compatibility patch for Emergency Dice REPOED by slayer6409.

Emergency Dice REPOED was built for an older version of R.E.P.O. Two things broke silently in the current version:

  • Dice never rolled — throwing or pressing E did nothing. The original FixedUpdate logic called a method (RunManager.levelShop) whose type changed from Level to List<Level>, throwing a MissingFieldException every frame.
  • No in-game chat message — the dice has always shown "Rolling …" in the BepInEx log, but the RPC it used to send that as an in-game chat message (ChatMessageSendRPC) no longer exists in the current R.E.P.O. ChatManager.

This patch fixes both.

What it does

  • Fixes dice rolling. Replaces the broken FixedUpdate with a fully compatible version that correctly detects throws (by velocity) and E-key presses (via ItemToggle). All reflection lookups are cached once at startup — no per-frame overhead.
  • The roller announces the result. Every time a dice effect triggers, the player who rolled the die says it through their own in-game chat — the same call vanilla typed chat uses, so it comes out as their character's own voice line (works with any TTS voice pack), heard by everyone. With SpoilerMode off, the effect's tooltip is announced instead of its name.
  • Makes every effect work in singleplayer. Many effects start with a Photon RPC, which throws outside a room — so in singleplayer they silently did nothing. A scoped RPC emulator now runs those calls locally (only for this mod's objects; nothing else is touched).
  • Multiplayer fixes: the rainbow die's instant-reroll actually rerolls now, a rolled 6 no longer crashes the reroll, and chat lines are no longer doubled.

Requirements

You need Emergency Dice REPOED installed — this is a patch for it, not a replacement.

Notes

  • Works in singleplayer and multiplayer (host and clients).
  • The announcement goes through the game's own chat/voice system, so it's heard by everyone, not just shown locally.
  • No configuration needed.

Credit

All credit for the dice system goes to slayer6409, the author of Emergency Dice REPOED. Please install and support the original mod: https://thunderstore.io/c/repo/p/slayer6409/Emergency_Dice_REPOED/

Bug reports & requests

Found a bug or have an idea? Please use this form: https://docs.google.com/forms/d/e/1FAIpQLSfl7f-oNiwjXjd7mUkfQoqBIhbJhQhhfV-ZmovjJVQ9orwuYQ/viewform


Emergency Dice REPOED Fixed(日本語)

slayer6409 の Emergency Dice REPOED 向け互換パッチです。

Emergency Dice REPOED は古いバージョンの R.E.P.O. 向けに作られており、現在のバージョンでは以下の2点が壊れていました:

  • サイコロが振れない — 投げても E キーを押しても何も起きない。元の FixedUpdate が参照していた RunManager.levelShop の型が Level から List<Level> に変わり、毎フレーム MissingFieldException が発生していた。
  • ゲーム内チャットメッセージが出ない — サイコロはBepInExログに「Rolling …」と出力しているが、それをゲーム内チャットに送る RPC(ChatMessageSendRPC)が現在の R.E.P.O. の ChatManager から削除されていた。

このパッチで両方を修正します。

修正内容

  • サイコロの投げ&Eキーを修正。 壊れた FixedUpdate を完全互換版に置き換え。速度による投擲検出と ItemToggle による E キー検出を正しく動作させます。リフレクション検索は起動時に1回キャッシュするため、毎フレームのオーバーヘッドはありません。
  • 振った本人が結果を発言。 サイコロの効果が発動するたびに、振ったプレイヤー自身がゲーム内チャットで その結果を発言します。バニラのチャット入力と全く同じ経路を使うため、実際にはキャラクターの音声(TTS)として 発声され、全員に聞こえます。SpoilerMode がオフの場合は効果名の代わりにツールチップを発言します。

必要なもの

Emergency Dice REPOED が必要です(このMODはパッチです。単体では動きません)。

補足

  • シングルプレイ・マルチプレイ両対応(ホスト・クライアント問わず動作)。
  • ゲーム本体のチャット/音声システムを経由するため、ローカル表示ではなく全員に聞こえます。
  • 設定不要。

クレジット

サイコロシステムの全てのクレジットは slayer6409 氏にあります。オリジナルMODの導入もお願いします: https://thunderstore.io/c/repo/p/slayer6409/Emergency_Dice_REPOED/

バグ報告・要望

このフォームからどうぞ: https://docs.google.com/forms/d/e/1FAIpQLSfl7f-oNiwjXjd7mUkfQoqBIhbJhQhhfV-ZmovjJVQ9orwuYQ/viewform

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.