RoguelikeUnlimitedLevelProgression
Progress past Roguelike level 20 in solo and co-op. Each player earns levels and rewards for their own characters. Use the same mod version and settings on all co-op players.
| Last updated | 2 days ago |
| Total downloads | 195 |
| Total rating | 0 |
| Categories | Mods |
| Dependency string | DefRuivo_StolenRealmMods-RoguelikeUnlimitedLevelProgression-0.1.5 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305README
RoguelikeUnlimitedLevelProgression
Lets a Roguelike run go past level 20 in solo and co-op. Host and guest paths have offline coverage; a live Steam co-op session has not yet been verified.
- GUID:
com.gumatos.roguelikeunlimitedlevelprogression - Harmony owner id: the same GUID (the mod unpatches by id, never by type).
- Version: 0.1.5
- Works with: Stolen Realm (Roguelike mode).
- Needs: BepInEx 5 (r2modman installs it for you) and nothing else — no ModAPI, no BetterStats.
- BepInEx display name:
Roguelike Unlimited Level Progression
What it does
In Roguelike mode the game normally stops awarding levels at 20. The mod continues that progression through the native post-battle reward menu without rewriting the battle-result method.
- One level per victory. The mod grants XP to eligible characters the game did not already level up. It only adds them to the reward list after the XP actually increases their level.
- Loading a saved character never loses levels.
Character.Load(int)clamps the saved level withMathf.Min(Character.MaxLevel, CharacterSaveFile.ExperienceLevel), andCharacter.MaxLevelis exactly the getter this mod patches — before that assignment the character's own level is still ~1, so it cannot protect the save. While a character is loading (IsLoaded == false) the patched getter is therefore floored by the savedCharacterSaveFile.ExperienceLevel, on every path including the vanilla fallback (so a save above level 30 is never truncated to 30). - Extended XP after 20 (linear, O(1)).
F(20)/D(20)are read from the game itself (Character.GetExperienceFloorForLevel(20)and(21)), and forlevel > 20F(L) = F20 + D20 * (L - 20). Nothing is hardcoded: if those numbers are unusable (NaN, non-finite,D20 <= 0) the mod stays vanilla instead of guessing. - Skills, Items, Attributes stay eligible. When the skill pool is exhausted the stage is
skipped and a durable receipt (S) is written under
<BepInEx config>/com.gumatos.roguelikeunlimitedlevelprogression/receipts/<character-guid>.json; S is subtracted from the level-up queue count so the skipped skill is not silently lost. If the receipt cannot be written, the stage is not skipped (no reward is consumed). Items/attributes keep coming after that. No fake skills are invented. - Item/skill reward queries stay at level 20 (
Rewards.RewardQueryLevel) so loot quality does not extrapolate past the vanilla curve. - UI: the level-up bar and the "Max" label are recalculated only for the extended scope,
so they do not show a false maximum or
NaN.
Nothing else changes. No new areas, no endless mode, no invented gold, no meta powerup increase, no item/fortune cap removal, no Bard/music (its tree arrives with a later game update), no forced achievements, no campaign changes.
Configuration
| Key | Default | Meaning |
|---|---|---|
General.Enabled |
true |
Master switch. false reproduces the vanilla behaviour exactly. |
Progression.MaxLevel |
0 |
Voluntary ceiling. 0 = no gameplay ceiling. A value >= 21 caps the extended levels; lowering it never lowers a character that is already above it. |
Rewards.RewardQueryLevel |
20 |
Level used for item/skill reward queries (1..30). |
Diagnostics.Verbose |
false |
Extra logging. |
Scope and fail-closed behaviour
- Co-op: Install the same version with matching settings on the host and every guest before using extended characters. Each player grants XP and rewards only to their own characters. The game still syncs character levels; reward receipts stay local to the owner. A host-only install does not enable guest progression. Mixed lobbies are not supported by this release.
- No session context: if the game has not established its network context, progression is not extended. The existing protection against lowering saved levels remains in place.
- Campaign and AI characters are outside the extended scope and keep the exact vanilla comparison.
- The gameplay patch group is all-or-nothing: if any Harmony target is missing, if any
patch throws or if the post-battle granting prefix cannot be resolved, every patch of the
mod is reverted (
Harmony.UnpatchID(guid)), so the game never runs half-patched. - No Harmony patch is applied to
Root.SendGameCompleteFromServer(BANTER-1). HarmonyX rebuilds any patched method with its ILManipulator, which re-emits theleavethat ends the banterifagainst the end of the handler; the branch retargets into theelse, which then runs in addition to theif— a second defeat line on the hero plus a click-to-continue wait before the rewards. The extended level is granted in thePostBattleManager.OpenPostBattleMenuprefix, on the same list instance the reward window consumes, with the samePolicy.CanAdvancedecision and the vanilla duplicate guard.
Build
dotnet build RoguelikeUnlimitedLevelProgression/RoguelikeUnlimitedLevelProgression.csproj -p:DeployToBepInEx=false
dotnet build tests/RoguelikeUnlimitedLevelProgression.Harness/RoguelikeUnlimitedLevelProgression.Harness.csproj -p:DeployToBepInEx=false
The game/BepInEx assemblies are not versioned: they are read from the private lib/ folder at the
root of the checkout (<checkout>/lib, gitignored — see docs/ESTRUTURA.md).
Both the mod and the harness resolve that folder relative to the checkout they belong to, so the
same source builds at any depth: no absolute path of the owner's machine, no dependency on where a
worktree happens to live. A canonical checkout (C:/dev/stolen-realm) therefore builds with no extra
argument.
There is no silent fallback: an isolated clone/worktree that does not have its own lib/ fails
with a single clear error and needs the owner-authorized override —
dotnet build RoguelikeUnlimitedLevelProgression/RoguelikeUnlimitedLevelProgression.csproj -p:CommonLibDir=<absolute path of a lib folder>
LEVEL-LIB: lib de referencias nao encontrada em '<...>\lib'. Rode o build na raiz do checkout
canonico (lib/ e local, gitignored) ou passe o override autorizado: -p:CommonLibDir=<caminho>.
Never copy the game DLLs into the repository or into a worktree to satisfy a build.
Deploying into the r2modman profile is opt-in: dotnet build -p:DeployToBepInEx=true
copies the DLL to .../profiles/Default/BepInEx/plugins/RoguelikeUnlimitedLevelProgression/.
Verification
The offline tests exercise the production progression policy and reward hook with simulated host and guest roles, including the level 20 → 21 transition and protection against duplicate rewards. The reference-assembly tests also check that the battle-result method remains unpatched. Live replication and save/reload across two Steam players have not yet been verified for this release.
RoguelikeUnlimitedLevelProgression (português)
Remove o teto de nível 20 do modo Roguelike solo e cooperativo: um nível por vitória,
XP estendido depois do 20 (linear, F(L) = F20 + D20·(L-20), com F20/D20 lidos do próprio
jogo) e recompensas de Skills/Itens/Atributos que continuam funcionando quando um pool esgota
— o skill pulado vira um recibo durável (sidecar JSON por personagem) e é subtraído da
contagem da fila, para não ser perdido em silêncio.
Nada mais muda: sem áreas novas, sem endless, sem ouro inventado, sem remover teto de item ou
de fortune, sem Bard/música, sem conquista forçada e sem alteração de campanha. Campanha e IA
ficam fora do escopo ampliado e mantêm a comparação vanilla. No co-op, anfitrião e convidados devem
usar a mesma versão e configuração: cada jogador concede XP só aos próprios personagens. O caminho de
ambos foi testado offline; falta verificar replicação e saves numa sala Steam real. O grupo de patches de gameplay é tudo-ou-nada: qualquer
alvo ausente, exceção ou prefix de pós-batalha ausente reverte o mod inteiro. O método de
resultado (Root.SendGameCompleteFromServer) não recebe patch: o HarmonyX reemite o corpo e o
emissor desloca o leave do banter para dentro do else, o que duplicava a fala no herói e travava
a recompensa. O nível estendido é concedido no prefix de OpenPostBattleMenu.
Build: as DLLs do jogo ficam em lib/ na raiz do checkout (gitignored, nunca versionadas nem
copiadas para o repositório/worktree) e são resolvidas por caminho relativo ao próprio checkout,
sem caminho absoluto do computador do dono. Um clone/worktree isolado sem lib/ própria falha com
LEVEL-LIB: lib de referencias nao encontrada em '<...>\lib' e exige o override autorizado
-p:CommonLibDir=<caminho absoluto>; não existe fallback silencioso.
Source, issues and forks: https://github.com/DefRuivo/stolenRealmMods — contributions are welcome. Código-fonte, issues e forks: https://github.com/DefRuivo/stolenRealmMods — contribuições são bem-vindas.