Daodan DLL
The Daodan DLL is a modification for Oni that hooks into the game engine and applies bug fixes and patches. It also replaces parts of the engine with its own code. Daodan fixes many issues, including the famous "Blam!" error that occurs on many Windows XP machines. It also adds new features such as support for extra screen resolutions (including many widescreen resolutions) and bonus cheat codes.
Installation Instructions
- Before installation, it is important to know where your copy of Oni has been installed to. For most people, it is stored in "C:\Program Files\Oni" (My Computer -> Local Disk (C:) -> Program Files -> Oni). This folder should contain a "GameDataFolder" and "Oni" or "Oni.exe".
- It is important that you use an "Oni.exe" that is compatible with Daodan. If you are using the FASM-Daodan, Oni will not start unless you have the correct EXE. If you are using the recommended version of C-Daodan, Oni will start, but most of the features of Daodan will not be present.
- Back up your Oni.exe and binkw32.dll files by renaming them (e.g. "Oni-original.exe").
- Place the newly-downloaded Oni.exe, binkw32.dll (and realbink.dll, if provided) in the folder with Oni.exe.
Testing
To test if you have done everything correctly, run "Oni.exe". Enter the pause (Diary) screen (F1 by default) and type "tellmetheversion"; if you get a result like "Daodan v.3.0", the DLL is working.
C-Daodan
The recommended version is the last stable version of C-Daodan. This is also the only version that supports windowed mode.
Download C-Daodan (binkw32.dll) —> Use with this version of the game app (you probably already have it)
Feature summary
- Windows XP patch - Fixed Oni crashing at startup on modern computers.
- Windowed mode - Oni runs inside a window; there is a menu option to enter fullscreen mode.
- Custom screen resolutions - Includes many more default screen resolutions and the ability to add custom resolutions (see below)
- Extra cheats - bigbadboss (player takes less weapon damage), bulletproof (player takes no weapon damage), kangaroo (high jumps), marypoppins (flight)
- Cheats always enabled
- Extra command line options (for advanced users) - For a list, type "Oni -help".
- DirectInput is used on NT, XP and Vista - Better support for keyboard layouts.
- AIs have the ability to properly dodge projectiles.
- Stops fly-in character portraits from being stretched when playing in widescreen.
Settings
Creating a file called Daodan.ini in the same directory as the Daodan DLL will allow you to enable/disable the patches inside Daodan. It can also be used to store configuration settings and language items. Each setting is stored inside a section as a name and value pair.
To enable a patch, look for the patches section in your Daodan.ini. If the patches section doesn't exist, create it by typing
[Patch]
at the end of your file. You can now enable or disable patches by typing the patch name followed by =True or =False (caps and spacing don't matter). For example, let's say you want to turn off the cooldown timer patch (so you can drop and pick up the Mercury Bow after firing to fire again immediately) and the new windowed mode makes your game crash or makes it run slowly:
[Patch] CooldownTimer = False WindowHack = False
All patch names are found in the "All patches" section below.
With an unpatched Oni, the only way to change settings such as windowed mode was to create a batch file (.bat) and type command line options into it. In the beta Daodan, options can be added to the Daodan.ini. To add an option, look for the options section or type
[Options]
at the end of your Daodan.ini. To enable windowed mode by default, type:
[Options] Switch = False
Similarly, to disable sound, add the line:
[Options] Switch = False Sound = False
A list of options can be found in the "All options" section below.
Command line options are still present in the beta Daodan although the syntax is a little different (and a bit more powerful.) The basic syntax for a command line option is this:
-<ini section>.<name> <value>
Where <ini section> is the Daodan.ini section (usually Patch or Options,) <name> is the option and <value> is the value to set it to (usually True or False.) Therefore, to disable sound, start Oni with this:
oni -options.sound false
When <ini section> is ommitted, it is assumed to be options. When <value> is ommitted, it is assumed to be true unless <name> starts with no (eg. nosound) in which case it is assumed to be false. So an easier way to write the above command would be:
oni -nosound
Options or patches specified on the command line take precedence over options specified in Daodan.ini. Currently Oni's command line parser isn't powerful enough to parse language elements (no support for quoting arguments,) this will be fixed in a later release.
All patches
INI name | Default | Description |
---|---|---|
levelplugins | On | Plugins |
fonttexturecache | ||
largetextures | ||
pathfinding | ||
projaware | ||
directinput | ||
wpfadetime | ||
kickguns | ||
cooldowntimer | ||
throwtest | ||
alttab | ||
particledisablebit | ||
multibyte | ||
cheattable | ||
argb8888 | ||
killvtune | ||
getcmdline | ||
disablecmdline | ||
safeprintf | ||
daodandisplayenum | ||
usegettickcount | ||
cheatsenabled | ||
usedaodangl | ||
windowhack | ||
daodaninit | ||
bsl | ||
cheater | ||
newweap |
Developer Mode
The DLL enables Developer Mode; go to the pause screen (F1) and type "thedayismine" or simply 'x' to activate it.
Custom screen resolutions
If you wish to run in a screen resolution that is not available and you are running the recommended version of C-Daodan, create a text file (Notepad document) called "res.txt" in your Oni folder (C:\Program Files\Oni) containing a list of custom resolutions in this format (one resolution per line):
800x600
1024x600
1024x768
FASM-Daodan (old)
There is also a much older release of Daodan, referred to as FASM-Daodan. This is the original version by SFeLi. Unlike the stable version of C-Daodan, FASM-Daodan requires a different DLL to be downloaded depending on which Oni.exe is used. It does not support the newer Daodan features, such as windowed mode and custom resolutions, however it still contains the basic patches such as the Windows XP patch and the custom cheats.
Download a ZIP containing the DLLs for each version.
Download a ZIP containing the DLLs for an experimental (unstable) FASM-Daodan This includes the projectile awareness patch and support for any language (except Chinese and Japanese). This is currently the only version of Daodan with added language support.