Skip to content

sam-k0/LoopHero_Mods

Repository files navigation

LoopHero_Mods

This repo contains my mods for Loop Hero.

Installation of the modloader

Go to the Releases tab on the right and download your desired mod.

Go to
https://github.com/sam-k0/YYToolkit_LoopHero/releases/
and download the modified version of YYTK (The modding framework / Modloader)

  • Download "YYToolkit.dll"
  • Download "dinput8.dll"
  • Create folders like shown in the graphic here:
    • Move "dinput8.dll" into your main game directory (where the .exe is)
    • Create "NativeMods" folder and put "YYToolkit.dll" there
    • Create "autoexec" folder, this is where you'll put the mods that depend on YYTK

Your directory should look like this:

├── Loop Hero.exe
├── data.win
├── dinput8.dll            <-- the mod loader
├── NativeMods/
│   ├── YYToolkit.dll      <-- the mod framework
│   └── *other mod files*
├── autoexec/
│   └── *other mod files*
└── *other game files*

Installation of the actual mods

You can find a list of mods developed by me here.

The contents of this page below (install instructions for Discord presence and borderless mod) are kept for legacy reasons.

Discord Presence mod

This mod will display a status on your discord profile saying "Playing Loop Hero" and then depending if you're in camp, "In Camp" or "On Expedition"
Download Instructions:

  • Download the "Discord Presence"-release from above mentioned release page
  • Move the "discord-rpc.dll" into the main game directory
  • Move the "DiscordPresence.dll" into the "autoexec" folder

Your directory should look like this:

├── Loop Hero.exe
├── data.win
├── dinput8.dll            <-- the mod loader
├── discord-rpc.dll        <-- ! This is the official discord api dll!
├── NativeMods/
│   ├── YYToolkit.dll      <-- the mod framework
│   └── *other mod files*
├── autoexec/
│   ├── DiscordPresence.dll <-- The actual mod that calls the official discord dll
│   └── *other mod files*
└── *other game files*

Borderless Hero (Borderless window mod)

Your directory should look like this:

! BorderlessHero is a native mod and doesn't depend on the YYToolkit, so make sure to move it to the "NativeMods" folder instead of the "autoexec" folder!

├── Loop Hero.exe
├── data.win
├── dinput8.dll            <-- the mod loader
├── NativeMods/
│   ├── YYToolkit.dll      <-- the mod framework
│   ├── BorderlessHero.dll <-- the actual mod
│   └── *other mod files*
├── autoexec/
│   └── *other mod files*
└── *other game files*

grafik
The mod enables the "maximize button" of the game window ^^

  • Click the "maximize" button of the window to enable borderless fullscreen (Or press F11 on your keyboard)
  • To change back to normal fullscreen:
      1. Click "fullscreen"
      1. Click "window x2"

grafik

The magic

First of all, Loop Hero natively deactivates the maximize button, which I re-enabled with the mod.
I then hook the Maximize-Window-Event to trigger my "Make the window borderless fullscreen"-magic.
The mod gets loaded automatically by using "DLL-Hijacking", the game thinks the dinput8.dll is the real one,
but all it does is load the DLLs inside the "Native Mods" folder, and then forward all calls to the original DLL.

Credits

For loading the mods, I use YellowAfterlife's TinyModInjector.
Can be found here.

The used framework is obv YYTK. lol