CardBackInjection
A Balatro mod dedicated to adding customized card backs to the game in ease. Every mod that follows the same convention will be compatible with each other.
模組介紹 作者原文
Balatro_CardBackInjection
A Balatro mod dedicated to adding customized card backs to the game in ease. Every mod that follows the same convention will be compatible with each other.
Special thanks to @JoStro and @Kusoro for helping me along the making of this!
Version 2.0 storms away all of the known bug and made this extremely robust!!!
Installation
- Make sure you have installed Steamodded as it is used for the loading of this module.
- Download the folder CardBackInjection into the mods folder of Steamodded (you can also download the.zip file and unzip there directly, this is mostly for r2mm so there will be extra files. You only really need the folder!) and you are good to go!
Sanity Check: The path should look something like ".../Mods/CardBackInjection"
Usage
You can use the function ReadCardBackInfo() to find your desired cardback via it's name. All of your card back arts of format b_{cardbackname}.png will be added to the game. You can write any_var = ReadCardBackInfo() at the beginning of your initialization code. You can then use this arbitrary any_var to read the position of your own card backs. This mod will initialize itself upon SMODS.INIT, so you don't have to do anything other than getting information to read your cardbacks.
Please make sure that you prepare a 71x95 version of your b_{cardbackname}.png in your assets/1x/ folder and a 142x190 version of your b_{cardbackname}.png in your assets/2x/ folder for each of your card back to be supported with and without pixel smoothing!
Currently if you want to use a custom texture pack, you will want to replace the OGEnhancer.png in the assets folder of this to your own texture pack. I will be working on getting rid of this step soon!
Example
Suppose you have file b_mycardback.png in your mod's assets folder (either in your mod's folder or in the general Mods folder, for both 1x and 2x), do this at the beginning of your mod init function:
_info = ReadCardBackInfo()
you can then simply find the corresponding sprite / spritePos attribute via
_info["mycardback"]
which will look something like { x = 2, y = 5 }, they can be arbitrary value bounded by however deep it gets.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。 這類模組需要先安裝社群載入器(包內 readme 通常會提供下載入口)。
下面這些內容需要先安裝,否則該模組不會生效: