CustomDamageNumbers

版本 v1.2.2·更新於 2020-09-25

Customize your damage numbers's look.

模組介紹 作者原文

Custom Damage Number Plugin

Allows you to change damage number's appearance:

  • Texture
  • Separate texture for critical hits
  • Size
  • Lifetime/duration
  • Movement
  • Max digits

Settings can be adjusted from the config file. (Risk of Rain 2/BepInEX/config/com.Minitte.CustomDamageNumbers.cfg)

@Minitte#6490 on the Risk of Rain 2 modding discord if you need something.

Installation

For r2modman

  • Just install with r2modman.

For not r2modma

  • Extract into the plugins folder
  • Should look kinda like this /Risk of Rain 2/BepInEx/plugins/Minitte-CustomDamageNumbers/

Custom Texture Location

/Risk of Rain 2/BepInEx/plugins/Minitte-CustomDamageNumbers/

/Risk of Rain 2/r2modman/BepInEx/plugins/Minitte-CustomDamageNumbers/

Recommend backing up your own damage number texture/image file before updating.

Making your own Damage Number Texture

  • Use a square texture (512x512 is default)
  • Split into 4x4 even sections (512x512 -> each section is 128x128 and there are 16 of them)
  • Use the example damage number texture to know where numbers go
  • Your custom texture goes into the plugin folder. (Risk of Rain 2/BepInEx/plugins/Minitte-CustomDamageNumbers)
  • Configure the configs with the filename of your texture. (example: my_damage_texture.png)
  • JPEG.jpg does not support transparency!

You could also make one with google drawings using this template:

  • File > Make a Copy
  • Open your copy of the template
  • View > Guides > Show guides
  • Use text box or drag in pictures or draw.
  • File > Download > PNG

11 Digit Damage Number Shader (alternative)

This uses a custom material/shader which is less stable and optimized than the default one. Kinda experimental.

Enabling this shader will override the default handling/format for spawning damage numbers. Other mods may not work with this enabled.

To enable: In config file, set useLongLineShader to true (useLongLineShader=true)

Default(RoR2) shader vs the alternative:

  • RoR2 dmg number shader squishes numbers together with more digits
  • The alternative shader will only use the primary texture.

Videos

More damage number digits:

Twitter animal emoji for damage:

Math for damage (Separate critical hit texture):

Troubleshooting

My damage numbers are white rectangles.

The path may not be correct. If you installed this manually, make sure the path to this plugin is:

Plugin Folder: /Risk of Rain 2/BepInEx/plugins/Minitte-CustomDamageNumbers/

Plugin DLL: /Risk of Rain 2/BepInEx/plugins/Minitte-CustomDamageNumbers/CustomDamageNumberPlugin.dll

Change Log

1.2.2

  • Updated installation instructions for non-r2modman players
  • Added troubleshooting info for white rectangle issue
  • Improved plugin path path processing
  • Removed mod from networked mod list. (Doesn't require multiplayer sync)

1.2.1

  • Increased the default max digits to 6
  • Fixed some typos on the readme

1.2.0

  • Added options for a separate texture on critical hits
  • Added more digit support using the default shader
  • Included another sample damage number texture using math symbols

Older change log entries in ChangeLog file.

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

tristanmcpherson-R2APIbbepis-BepInExPack

檔案與校驗

檔案名稱
CustomDamageNumbers-1.2.2.zip
檔案大小
229.8 KiB