Overlord II Trainer 1.0.0
by Gutwormy
========================

An in-game trainer for Overlord II (single-player).
Press F1 in the game to open it. There is no extra program to run.


WHAT YOU NEED
-------------
- Overlord II, Steam version (Steam build 1247522, the current one).
  Other versions (retail discs, other stores) are not supported: the
  trainer then keeps every switch off.
- Windows 10 or 11.


HOW TO INSTALL
--------------
1. Close the game.

2. Open the game's folder: right-click the game in your Steam Library,
   then choose Manage > Browse local files.
   You are in the right place if you can see Overlord2.exe.

3. Copy everything from this download into that folder:
       dinput8.dll
       OverlordIITrainer   (folder)
   If Windows asks whether to replace files, choose Yes.

4. Start the game, load a save, and press F1.

Updating from an older version: do the same and replace the files.


FEATURES (default keys)
-----------------------
F1  Open or close the trainer (the game pauses while it is open)
F2  God Mode                - the Overlord takes no damage
F3  Unlimited Minion Health - minions and their wolves, salamanders and
                              spiders take no damage
F4  Unlimited Mana          - mana stays full
F5  Instant Kill            - any hit from you, your minions or your
                              spells kills an enemy
F6  Unlimited Minions       - horde limit raised to 100
F7  Unlimited Life Force    - the tower's brown, red, green and blue
                              reserve held at 999
F8  Player Speed            - the Overlord moves at the slider's speed
                              (0.5x to 3.0x)

In the panel (no key by default):
- Free Forging: forging costs nothing - no gold, Fairy Gems, Dark Crystals
  or minions
- Edit Treasury: Gold, Fairy Gems, Dark Crystals and Spell Catalysts
- Spawn Minions: Brown, Red, Green or Blue - 5 minions appear at the
  Overlord and join your horde
- Unlock All: Gear (every forge weapon, helmet and armour, forged and
  ready to equip), Spells (every spell at its highest level) and Hives
  (every minion colour unlocked and every hive at its top level)
  (click twice to confirm)
- Teleport: Save remembers where the Overlord stands, Load puts him back
  there (same map)

Hover the mouse over a feature name for a short explanation.
To change a key, click its key box in the panel and press the new key
(Esc cancels). "Hotkeys: On/Off" at the top switches the feature keys off;
F1 always works. Switches start off each time the game starts. Keys and
the Player Speed slider are saved in OverlordIITrainer\OverlordIITrainer.ini.


GOOD TO KNOW
------------
- Back up your saves first. Edit Treasury, Unlock All and the minions
  from Unlimited Life Force and Spawn Minions are saved with your game.
  Saves: Documents\My Games\Overlord II
- Unlimited Minions is never saved: switching it off puts your own horde
  limit back. Above about 40 minions of one colour the game starts
  dropping minions, so mix colours.
- Unlimited Life Force also fills colours the story has not unlocked yet,
  ready for when you unlock them. It does not unlock the colours.
- Unlock All -> Spells also gives spells the story has not given you yet.
  If the story later sets one back to level 1, press Spells again.
- Instant Kill never harms your own minions or the mistresses. Characters
  the game itself makes unbeatable still take no damage.
- If a story scene waits for one of your minions to die, switch
  Unlimited Minion Health off for a moment.
- Spawn Minions works past the horde limit. A colour is greyed where the
  game has not loaded those minions.
- Unlock All -> Hives unlocks the red, green and blue minions, so every
  minion gate summons all four colours (saved with your game, it stays
  unlocked). The game itself never saves hive levels (even bought ones
  drop back on reload), so once you confirm Hives the trainer keeps every
  hive at the top level after every load, also next time you play. Click
  "Hives: kept" to stop. The hive buildings keep their look.
- Teleport does not work while you possess a minion, ride a mount or
  stand on the ship. The saved spot is forgotten when you leave or reload
  the map.
- Cheats can unlock Steam achievements early.


HOW TO UNINSTALL
----------------
Close the game, then delete these two from the game's folder:
    dinput8.dll and OverlordIITrainer (the whole folder)
The trainer does not change any game files.


TROUBLESHOOTING
---------------
- F1 does nothing: check that dinput8.dll and the OverlordIITrainer
  folder are both next to Overlord2.exe.
- "New game version": this trainer knows only Steam build 1247522, so on
  any other version the switches stay off.
- Antivirus removed a file: this is a false positive. Add the game folder
  as an exception and copy the file again. The trainer does not connect
  to the internet and only runs inside the game.
- When reporting a problem, include OverlordIITrainer.log from the
  OverlordIITrainer folder.


CREDITS
-------
Overlord II Trainer by Gutwormy.
Uses Dear ImGui (MIT licence) and MinHook (BSD 2-Clause licence);
their licences are below.


LICENCES
--------
Dear ImGui

The MIT License (MIT)

Copyright (c) 2014-2026 Omar Cornut

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


MinHook

MinHook - The Minimalistic API Hooking Library for x64/x86
Copyright (C) 2009-2017 Tsuda Kageyu.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

 1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
 2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

================================================================================
Portions of this software are Copyright (c) 2008-2009, Vyacheslav Patkov.
================================================================================
Hacker Disassembler Engine 32 C
Copyright (c) 2008-2009, Vyacheslav Patkov.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

 1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
 2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-------------------------------------------------------------------------------
Hacker Disassembler Engine 64 C
Copyright (c) 2008-2009, Vyacheslav Patkov.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

 1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
 2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
