Skip to content

Basic Usage

Download the Mod

First of all, download the mod which we will be using to extend the functionality of our mod. In this case, the Reloaded File Redirector.

DownloadMod

Add Dependency to Redirector

In the Edit Mod menu we're going to add Reloaded File Redirector as a dependency.

AddDependency

Adding a 'dependency' to your mod will make it such that the other mod will always be loaded when your mod is loaded. This is a necessary step.

Opening the Mod Folder

OpenModFolder

Go to the folder where your mod is stored, this can be done by simply clicking the Open Folder button.

Add Some Files

Make a folder called Redirector. Inside it place files that we want to be replaced.

FileRedirectorFolder

Files are mapped by their location relative to the EXE of the application you are using the Redirector with.

For a game at E:/SonicHeroes/TSonic_win.exe, the paths are relative to: E:/SonicHeroes/.

To replace a music file at E:/SonicHeroes/dvdroot/bgm/SNG_STG26.adx, your mod should place the file at Redirector/dvdroot/bgm/SNG_STG26.adx.

The contents of our mod folder should now look as follows.

// Mod Contents
ModConfig.json
Preview.png
Redirector
└─dvdroot
  ├─advertise
  │   adv_pl_rouge.one
  └─playmodel
      ro.txd
      ro_dff.one

The connectors └─ represent folders.

Debugging

DebugMod

To debug the mod, highlight the mod in the Reloaded File Redirector mod in your mod manager and click Configure Mod.

The following settings are available:
- Log Open Files: Prints a message to Console when a new file is being opened.
- Log Redirections: Prints a message when a custom file is loaded from your or another mod.
- Log Attribute Fetches: Prints a message when game gets file properties such as file size.