Rico-GeneticArtifact icon

GeneticArtifact

A new artifact that adds a pseudo-genetic backend to the monster spawning system.

Last updated 2 weeks ago
Total downloads 24839
Total rating 10 
Dependency string Rico-GeneticArtifact-2.4.0
Dependants 13 other mods depend on this mod

This mod requires the following mods to function

bbepis-BepInExPack-5.3.1 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.3.1
tristanmcpherson-R2API-2.5.14 icon
tristanmcpherson-R2API

A modding API for Risk of Rain 2

Preferred version: 2.5.14
README

´╗┐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, Regen, MoveSpeed, Damage, AttackSpeed, and Armor (and Size if its enabled)
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 six (seven if Size is enabled) multipliers that are randomly assigned on spawn.
  • If a monster manages to damage you, it will be awarded points based on how much damage it did.
  • When the monster dies (or is despawned by a stage change), its performance is sent to the master that spawned it.
  • Every so often, the master will adapt its core values to reflect its best performers.
  • These masters are then used to determine how the multipliers are assigned in future spawns.
    Also, this video is my attempt at explaining this along with how the config values can affect the artifact and its systems: Its a bit scatter-brained but covers all of it.
    https://youtu.be/V4uxtHPvQKY

Known Issues/Planned Updates

  • A feedback system to let the player know how the mutations are trending
  • Reimplement the size modifier once I figure out the networking
  • If you find a case of the -infinity health bug, type !geneticsbughunt into the discord chat
  • Make a video for devs to explain how to use the genetic system for their own mods
  • The underlying system is getting close to being a standalone API. If you're interested in using it, let me know, I'm looking for design help in converting it.
  • There is a conflict with Rein-RogueWisp that I am currently working with Rein to resolve, ETA unknown

Changelog

2.4.0 - Added optional "Rapid Mutation" mode that can be triggered by Teleporter events, the final stage, or both (and a bit of polish)
2.3.1 - Changed master assignment in order to resolve bug where generic mode would fail to find a valid master
2.3.0 - Artifact can now be enabled/disabled/paused during a run (for use with KingEnderBrine-ArtifactsRandomizer)
2.2.0 - Major refactor of underlying mutation and balance system, each stat now has its own configurable cap and floor (manual installs will need to delete the old config)
2.1.1 - Moved component activation to prevent a visual bug with teleporter healthbars when Swarm is also active
2.1.0 - Minor refactor of stat application, fixed Armor and Regen not working in some cases, and cut Acceleration since MoveSpeed dominates it
2.0.0 - Major refactor of the underlying systems, and publicized most of the functionality for potential use by other mods
1.5.0 - Switched the stat application from the On space to the IL space (help from ThinkInvis and Rein)
1.4.7 - Switched logging system as per Harb's request
1.4.6 - The link broke in the readme for some reason, fixed that
1.4.5 - Housekeeping update, fixed the readme and added a video explanation
1.4.4 - Added even more NaN checks and security to the scoring system
1.4.3 - Added a NaN check for damage calculations in attempt to fix -infinty bug
1.4.2 - Added the body level to the optional logging to help cut out some guesswork
1.4.1 - Added some optional logging for the bug-hunters, and a bit a additional safety in the master/child relationship
1.4.0 - Brand new balance system in attempt to prevent the -infinity health bug, expect new bugs
1.3.0 - Added config option to apply the artifact to neutrals and player minions
1.2.1 - Added config options for per-generation deviation and re-enabling the Size modifier
1.2.0 - Refactored the hook registry to prevent behaviour's from spamming hooks, should greatly reduce lag issue
1.1.1 - Minor improvement to garbage collection, at this point I'm fighting with the engine's computational power
1.1.0 - Major change to genetic system, possible performance hit, but should be more consistent
1.0.1 - Minor optimization due to bug report, should almost halve the computations required
1.0.0 - Initial upload, expect day one bugs

Installation

Place the .dll in Risk of Rain 2\BepInEx\plugins or use a mod manager.

Contact

If you have issues/suggestions leave them on the github as an issue/suggestion or reach out to Rico#6416 on the modding Discord.

Available versions

Please note that the install buttons only work if you have compatible client software installed. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2021-1-8 2.4.0 2833 Rico-GeneticArtifact-2.4.0.zip Install
2020-12-23 2.3.1 2719 Rico-GeneticArtifact-2.3.1.zip Install
2020-12-21 2.3.0 548 Rico-GeneticArtifact-2.3.0.zip Install
2020-12-8 2.2.0 2084 Rico-GeneticArtifact-2.2.0.zip Install
2020-12-1 2.1.1 1076 Rico-GeneticArtifact-2.1.1.zip Install
2020-11-25 2.1.0 948 Rico-GeneticArtifact-2.1.0.zip Install
2020-10-30 2.0.0 4541 Rico-GeneticArtifact-2.0.0.zip Install
2020-10-23 1.5.0 1940 Rico-GeneticArtifact-1.5.0.zip Install
2020-10-22 1.4.7 378 Rico-GeneticArtifact-1.4.7.zip Install
2020-10-17 1.4.6 959 Rico-GeneticArtifact-1.4.6.zip Install
2020-10-17 1.4.5 26 Rico-GeneticArtifact-1.4.5.zip Install
2020-10-15 1.4.4 662 Rico-GeneticArtifact-1.4.4.zip Install
2020-10-14 1.4.3 613 Rico-GeneticArtifact-1.4.3.zip Install
2020-10-13 1.4.2 356 Rico-GeneticArtifact-1.4.2.zip Install
2020-10-13 1.4.1 40 Rico-GeneticArtifact-1.4.1.zip Install
2020-10-12 1.4.0 356 Rico-GeneticArtifact-1.4.0.zip Install
2020-10-2 1.3.0 1802 Rico-GeneticArtifact-1.3.0.zip Install
2020-9-27 1.2.1 979 Rico-GeneticArtifact-1.2.1.zip Install
2020-9-25 1.2.0 700 Rico-GeneticArtifact-1.2.0.zip Install
2020-9-25 1.1.1 281 Rico-GeneticArtifact-1.1.1.zip Install
2020-9-24 1.1.0 442 Rico-GeneticArtifact-1.1.0.zip Install
2020-9-23 1.0.1 359 Rico-GeneticArtifact-1.0.1.zip Install
2020-9-23 1.0.0 197 Rico-GeneticArtifact-1.0.0.zip Install