DiceModders-Cheats icon

Cheats

Hidden cheats for private and friendly lobbies: developer console, unlock all buildings, build anywhere, meteor rules, force lobby ready. Use them only with everybody's consent.

Last updated 9 hours ago
Total downloads 5
Total rating 0 
Categories Mods Tools AI Generated
Dependency string DiceModders-Cheats-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_IL2CPP-6.0.788 icon
BepInEx-BepInExPack_IL2CPP

BepInEx pack for IL2CPP x64 Unity games. Preconfigured and ready to use.

Preferred version: 6.0.788
DiceModders-UiKit-1.1.0 icon
DiceModders-UiKit

Shared UI toolkit for Dice Kingdoms mods: windows and widgets in the game's own look, and additions to the game's screens (top bar, Settings tabs and blocks, scoreboard, Rules).

Preferred version: 1.1.0
DiceModders-ModCore-1.0.0 icon
DiceModders-ModCore

Shared game and multiplayer logic for Dice Kingdoms mods: lobby rules the host sets for everybody, mod checks between players, new civilizations, unit and building values, hotkeys, and texts in the game's languages.

Preferred version: 1.0.0
DiceModders-ModBridge-1.0.0 icon
DiceModders-ModBridge

Connects ModCore and UiKit: every mod's lobby rules in Settings > Lobby, every mod's keys in Settings > Input, and new civilizations in the Rules screen, in the game's own style.

Preferred version: 1.0.0

README

DiceKingdoms Cheats (DiceModders.Cheats.dll)

Hidden cheats for private / friendly lobbies. A mod for Dice Kingdoms (BepInEx 6 IL2CPP).

Several cheats change the simulation: use them only with everybody's consent.

What it does

The cheats are hidden until unlocked: set Unlocked = true under [Cheats] in BepInEx\config\org.dicemodders.dicekingdoms.cheats.cfg (or with an in-game config editor). A Cheats block then appears in Settings > Game; its Hide button locks them again. While hidden, every cheat is off.

  • Developer console: lets the game's own developer console work (saveisland, loadisland ...).
  • Unlock all buildings: every building can be built without its technology.
  • Build anywhere (RISKY): the island placement checks are skipped. Placement is networked, so this can crash everybody in the lobby.
  • Meteor rules are lobby rules under the Cheats heading of Settings > Lobby > Rules, shown while the cheats are unlocked: Meteor hits castle (any meteor may hit a castle), Meteor limit T (a castle hit is allowed with the chance meteor tiles on the island / T; 0 = the game's 128) and Castle never hit. Only the host edits them, before the match; they are frozen when it starts. Every player with this mod follows the host, because every computer simulates each meteor. A player without the mod would simulate a different meteor and desync; ModCore warns about that in the lobby.
  • Force ready (host): Settings > Lobby > Mods. Every player counts as ready, so Start unlocks. It is not hidden.

The whole mod can be switched off in the mod list. The building and placement patches are only in the game while their cheat is on, so a locked or switched-off mod costs nothing.

Code map

File Job
Plugin.cs the plugin: binds the options, starts the features
Options.cs every option (config entries)
CheatSettings.cs the Settings blocks (Game > Cheats, Lobby > Mods)
Patches.cs developer console, buildings, placement, force ready
Meteor.cs the meteor lobby rules

Requirements

  • Dice Kingdoms with BepInEx 6 IL2CPP (x64): see the wiki's Mods Installation guide. Start the game once so BepInEx creates its folders.
  • The DiceModders libraries in BepInEx\plugins: ModCore (DiceModders.ModCore.dll), UiKit (DiceModders.UiKit.dll) and ModBridge (DiceModders.ModBridge.dll, shows ModCore's mod list and lobby rules on the game's screens; without it the host has nothing to edit the meteor rules with). This mod does not contain copies of them.

Install (players)

Copy DiceModders.Cheats.dll into BepInEx\plugins, next to the libraries.

Build (developers)

Needs the .NET SDK (6 or newer) and PowerShell. Game files are never committed: the script links BepInEx\interop from your game folder and copies the libraries from BepInEx\plugins into libs.

.\scripts\build.ps1 -GameDir "<your Dice-Kingdoms folder>"   # first time: remembers the folder
.\scripts\build.ps1                                           # build + install (Release, console and log OFF)
.\scripts\build.ps1 -Dev -Run                                 # Debug build, console and log ON, then start the game

Close the game before building: it locks the DLLs. If PowerShell refuses to run scripts: powershell -ExecutionPolicy Bypass -File .\scripts\build.ps1.

License

MIT, see LICENSE.