GeneticArtifact
Adds an artifact that emulates a genetic algorithm on monster stats.
模組介紹 作者原文
Basic Description
- This mod adds a genetics system to the monsters, with every stat being able to mutate in specific ways
- The core stats that are affected are: Health, MoveSpeed, Damage, and AttackSpeed
- The goal of the system detailed below is to allow the game to adapt to the player, and in turn force the player to adapt to it
How it Works
- Every monster has four genes (Health, MoveSpeed, Damage, and AttackSpeed)
- Every minute (or after 40 monster deaths), the algorithm learns from the fallen monsters and adjusts it's "strategy"
- This learning is primarily done through a weighted average system that attempts to judge the "combat effectiveness" of a mutation
Video Explanations
- 1.4.5 - 30-minute overview (outdated, but still semi-accurate)
-
- 2.4.1 - "Rapid Mutation" overview (outdated, this functionality hasn't been re-added yet)
-
- 4.1.0 - Challenge Portal Promo
-
- 4.4.0 - 5-minute overview for 4.X versions
-
Known Issues/Planned Updates
- A feedback system (visual or other) to let the player know how the mutations are trending
- I need to make some actual documentation/architecture to explain how it works from a dev point-of-view
- Is GeneticsVariantsPatch coming back? Yep! Check it out here:
- Is there anything else to add? Maybe. I'm considering making a patch for Artifacts of Doom and Risk of Chaos (\wink\)
- Are you a dev who has questions? Make an issue on GitHub and flag it as a question, I'm always happy to help
Changelog
4.5.3
- Added compatibility for RiskOfOptions
- Gone are the days of restarting the game to update a config value
- (Technically already could do this with DebugToolkit and saving over the config file)
4.5.2
- Publicized the monster copy adaption method, for dev usage
- Should`ve done this a long time ago, but now devs can force specific mutations ad-hoc
- Monster copy methods do not trigger RecalculateStats on their own, to avoid duplicated effort
- Added explicit RecalculateStats call on monster copy first generation
- Monster spawn already does this iirc, but this guarantees genes take effect in fringe cases
4.5.1
- No new functionality, just refactored to use the Nuget packages instead of local libraries
- Should make remote development much easier if I ever need to do that
4.5.0
- Gene-specific cap and floor overrides are back, and without config bloat this time
- Two new config options, one to opt into using the overrides and the other to actually define them
- Override syntax is "Gene1,FloorForGene1,CapForGene1|Gene2,FloorForGene2,CapForGene2"
- Current valid Gene names are MaxHealth, MoveSpeed, AttackSpeed, and AttackDamage
- Floors/caps need to be parseable into floats, and should follow the same rules as shared floor/cap
4.4.1
- Bugfix for the token calculation and application methods
- Stat modifications should more accurately and consistently represent the monster`s genes
- Previously was bugged to represent the difference from the master copy instead sometimes
- Also added public events to most major steps in the genetic engine, for dev usage
- These include: master copy creation and mutation, monster copy mutation and scoring, and global engine learning
4.4.0
- Added mode that allows stat modifications to apply even if the artifact is disabled
- This means no sudden drops in difficulty if you disable it mid-run
- Theres a config option for this, and its disabled by default (ie the old behaviour)
4.3.2
- Re-Added a configuration file for this
- Tweak-able values include: when and how the algorithm decides to learn, mutation rates and limits
- Safety limits might be a bit strict for now, but I want testing a feedback before lifting them
4.3.1
- Fix for Patch 1.2.3 since there are items in here
- Converted to the new ArtifactCodeAPI methods since they work now
- Also
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
前置依賴
下面這些內容需要先安裝,否則該模組不會生效:
bbepis-BepInExPackRiskofThunder-HookGenPatcherRiskofThunder-R2API_CoreRiskofThunder-R2API_ArtifactCodeRiskofThunder-R2API_ContentManagementRiskofThunder-R2API_ItemsRiskofThunder-R2API_LanguageRiskofThunder-R2API_RecalculateStats