In depth guide for installing Random Encounter Reworked


Installing the dependencies

How to install the dependencies and why Random Encounters Reworked needs them, and in which cases you could skip this step.

Dependency - modBootstrap

What is its role?

Mod boostrap is what allows Random Encounters Reworked to start automatically as soon as you enter a game. Because RER is like a DLC which adds content to the game without changing anything, it needs a way to start itself. The modBootstrap solves this. It creates a common way for modders to inject some of their come to an invisible quest that is started on launch.

When should you skip this mod?

Do not install it if you have already installed it. To check if you've installed it already go into The Witcher 3/mods/ and look for a folder named modBootstrap. If you find one then skip this step.

How to install it?

  1. Go to modBootstrap's mod page
  2. Download modBootstrap-registry
  3. Download either
    • modBootstrap-v0.4.1 if you don't have mod that change your map or the UI like "all quest objectives on map" or "E3 UI" or "Colored map markers"
    • modBootstrap-v0.4.1-unmodified-worldmap if you DO have such mods or are not sure (i don't have these mods but still downloaded this one and it works)
  4. Drop the content of the archives you downloaded directly into The Witcher 3/ so that you merge the archive mods directory with your mods directory

Dependency - Shared Imports

What is its role

It's a simple mod that imports tons of helper functions (things to interact with the game) so people don't have to. Because if two mods import the same function the game won't start and will give you an error, hence the name "Shared" imports.

When should you skip it?

If you've installed it already or if you have Witcher 3 Enhanced Edition. To check if you've installed it already go into The Witcher 3/mods/ and look for a folder named modSharedImports If you find one skip this dependency.

How to install it?

  1. Go to Shared Imports' mod page
  2. Download modSharedImports-v0.6
  3. Drop the content of the archive you downloaded directly into The Witcher 3/ so that you merge the archive mods directory with your mods directory

Dependency - CommunityPatch - Base

What is its role

Not all versions have the same code and somes helper functions were added to later versions. But if RER uses one of these functions while you're not on the latest version you won't be able to use my mod. This mod creates a "base" (clever name eh?) for mod makers so everyone can use their mods.

When should you skip it?

If you've installed it already, if you have Unification Patch or if you have GM/W3EE you may not need it. To check if you've installed CP-Base already go into The Witcher 3/mods/ and look for a folder named mod0000___CompilationTrigger If you find one skip this dependency.

How to install it?

  1. Go to CP - Base's mod page
  2. Download CommunityPatch-Base
  3. Drop the content of the archive you downloaded directly into The Witcher 3/ so that you merge the archive mods directory with your mods directory and also the content directory
  4. Replace every file when prompted

Installing Random Encounters Reworked

How to actually install Random Encounters Reworked.
As of July 2021, nexusmods is no longer used for my mods. Updates will continue to be hosted on GitHub. You can also see the rest of my work on modspot a free & ad-free alternative i'm developing
  1. Go to the releases on Github
  2. Download the file RER_Vsomething
  3. Drop the content of the archive into your The Witcher 3 directory so that you merge the three directories mods/bin/content with those already here
  4. Merge the shared utils mods from RER with the script merger of your choice. The only exception is if you use the FHUD patch, let it win by priority

Updating the bootstrap registry

Setting up the registry so Random Encounters Reworked get started automatically

Why do we need this?

As i said in part 1.1 the bootstrap mod allows RER to start every time you enter the game. But you have to tell him where to look for RER, this is what you do with the registry. It may seem complicated but it's actually the simplest solution.

How to update the registry

Go into The Witcher 3/mods/modRandomEncountersReworked and run update-registry.bat by double clicking it. Please always take a glance at a .bat file before running, by doing a right-click and edit, i know you may not be a programmer but it's a good habit and this one has comments explaining it. You never know 👍

Optional patches

Some patches may simplify your merging process, here are a few

Optional patches

Friendly HUD (not compatible with EE)

You can apply this patch to friendly HUD to see the custom markers added by RER as 3D markers. If the patch is used, it is simpler not to merge it with friendly HUD and let the patch win by priority. Download it here

Enhanced Edition

A small patch to a few sharedutils to simplify your merging process with EE. If the patch is used, you MUST NOT merge the sharedutils_bossbar utility and let it win by priority. Download it here

Merging instructions

Some patches may simplify your merging process, here are a few
Enhanced Edition
Since EE comes with FHUD bundled-in it is necessary you also look at the Friendly HUD section below.

Files to merge

All of them will merge automatically, the names of the files in the merger are blue.
  • engine\component.ws
    • mod_sharedutils_npcInteraction
    • modW3EE
  • engine\persistentEntity.ws
    • mod_sharedutils_npcInteraction
    • modW3EE
  • game\gui\hud\modules\hudModuleDialog.ws
    • mod_sharedutils_dialogChoices
    • modW3EE
  • game\gui\hud\modules\hudModuleMinimap2.ws
    • mod_sharedutils_mappins
    • modW3EE
  • game\gui\menus\mapMenu.ws
    • mod_sharedutils_mappins
    • modW3EE
  • game\player\r4Player.ws
    • mod_sharedutils_mappins
    • modW3EE
  • game\gameplay\damage\damageManagerProcessor.ws
    • mod_sharedutils_damagemodifiers
    • modW3EE
  • game\gameplay\npc\npc.ws
    • mod_sharedutils_damagemodifiers
    • modW3EE

Files NOT to merge

You do not need to merge these mods, however you MUST ensure they are loaded before W3EE.
  • game\areaTypes.ws
    • modBootstrap
    • modW3EE
  • game\gui\hud\modules\hudModuleBossFocus.ws
    • mod_sharedutils_custombossbar
    • modW3EE
Friendly HUD
  • playerInput.ws
    • modFriendlyHUD
    • mod_sharedutils_npcInteraction
If a conflict between the two appears (the name of the file is in red), you should merge the files and wait until you are shown the conflict between the two given mods. image showing the kdiff3 between sharedutils and FHUD hold left click on the image to zoom
On the two top right panels you should see one panel for sharedutils and one for Friendly HUD. To confirm which panel is which mod you should read the comments in the code, the lines starting with //.
Once you know which side is FHUD and which side is sharedutils, using the B and C letters on the top menu, you should first pick the sharedutils one and in second the FHUD one.
Refer to the screenshot to see the expected result in the bottom panel.

Only if you used the FHUD patch (incompatible with W3EE)
  • fhudscripts/modMarker.ws
    • modFriendlyHUD
    • mod000_sharedutilsmappinsfhudpatch
Do no merge it, but make sure it is loaded before FHUD.

Adding the keyboard keybinds

What each keybind does and how to add them to your game

Keybind - Trigger an encounter

What is its role?

When you press the key an encounter will be created by RER after a 5 seconds delay.

How to add it?

  1. Go to Documents/The Witcher 3 and open input.settings with a text editor
  2. Search for [Exploration] and add a line below it with IK_0=(Action=RandomEncounter)
  3. You can replace the 0 in IK_0 by the key you want, here it means the 0 of your keyboard

Keybind - Reload the settings

What is its role?

When you change the settings you usually have to load a save for them to be applied. This keybind solves this by forcing a settings refresh without the need to load a save.

How to add it?

  1. Go to Documents/The Witcher 3 and open input.settings with a text editor
  2. Search for [Exploration] and add a line below it with IK_0=(Action=OnRefreshSettings)
  3. You can replace the 0 in IK_0 by the key you want, here it means the 0 of your keyboard

Keybind - Toggle Random Encounters Reworked

What is its role?

Sometimes you want to stop RER from doing its job, you can go into the mod menu and set the Enabled toggle to OFF. This keybind can be used to toggle it without going to the mod menu

How to add it?

  1. Go to Documents/The Witcher 3 and open input.settings with a text editor
  2. Search for [Exploration] and add a line below it with IK_0=(Action=OnRER_enabledToggle)
  3. You can replace the 0 in IK_0 by the key you want, here it means the 0 of your keyboard

Keybind - Analyse surrounding ecosystem

What is its role?

Geralt can analyse the surrounding ecosystem to get information about the creatures that live here and also offers advice on how to change the ecosystem.

How to add it?

  1. Go to Documents/The Witcher 3 and open input.settings with a text editor
  2. Search for [Exploration] and add a line below it with IK_C=(Action=EcosystemAnalyse,State=Duration,IdleTime=0.4)
  3. You can replace the C in IK_C by the key you want, here it means the C of your keyboard
  4. Note that you need to press the key for 0.4s for it to trigger.