Daodan DLL: Difference between revisions

1,853 bytes added ,  11 July 2014
→‎All patches: Updated with help text for all ini settings
(→‎C-Daodan: Dropped languages into its own section)
(→‎All patches: Updated with help text for all ini settings)
Line 104: Line 104:
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.
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===
===All Configuration Settings===
Below are the names of the patches you can turn on and off in Daodan.ini (names are case-insensitive). Also noted is whether the DLL has this patch turned on or off by default.
Below are the names of the configuration settings you can turn on and off in Daodan.ini (names and sections are case-insensitive). Also noted is whether the DLL has this patch turned on or off by default.
{| class="wikitable"
{| class="wikitable"
!INI name
!INI Section
!INI Name
!Default
!Default
!Description
!Description
|-
|-
|alttab
|[devmode]
|highres_console
|true
|true
|Allows user to switch applications while in Oni (Alt-Tab) and use Windows key, however it may enable the screensaver as well.
|Fixes bug where console line becomes invisible at higher resolutions.
|-
|-
|argb8888
|[devmode]
|true
|showtriggervolumes
|Textures using ARGB8888 can be used.
|-
|binkplay
|true
|true
|Fix binkplay calls to use GDI and outro same mode as intro.
|Allows BSL variable "show_triggervolumes" and Ctrl+Shift+X (in devmode) to work.
|-
|-
|[gameplay]
|cheatsenabled
|cheatsenabled
|true
|true
|Enables cheats without having to beat the game first.
|Enables cheats without having to beat the game first. Required for using 'tellmetheversion'.
|-
|-
|[gameplay]
|cheattable
|cheattable
|true
|true
|Replaces Oni's cheat table with table that includes new cheats (see section below).
|Replaces Oni's cheat table with table that includes new cheats (see section below). Required for using 'tellmetheversion'.
|-
|-
|chinese
|[gameplay]
|cooldowntimer
|true
|true
|Loads chinese font engine if available
|Disables weapon cooldown exploit, e.g. dropping the Mercury Bow and picking it back up right away to reset weapon cooldown.
|-
|-
|clipcursor
|[gameplay]
|kickguns
|false
|EXPERIMENTAL! Unfinished, do not use.
|-
|[gameplay]
|pathfinding
|true
|true
|Limit cursor to Oni's window
|Multiplies size of pathfinding grid cache by eight in order to prevent crashes in large levels.
|-
|-
|cooldowntimer
|[gameplay]
|projaware
|true
|true
|Disables weapon cooldown exploit.
|Allows AI to dodge incoming gunfire properly.
|-
|-
|d_regen
|[gameplay]
|throwtest
|false
|EXPERIMENTAL! Enables experimentation with allowing enemies to be thrown over railings.
|-
|[gameplay]
|wpfadetime
|true
|true
|Enables script command d_regen (query/set regeneration for any character).
|Adds working function for existing BSL command wp_fadetime, sets fade time to 4800.
|-
|-
|daodandisplayenum
|[graphics]
|binkplay
|true
|true
|Offers more display modes in the Options menu.
|Fixes binkplay calls to use GDI and outro same mode as intro.
|-
|-
|directinput
|[graphics]
|daodangl
|true
|true
|Forces on DirectInput.
|Provides an improved windowed mode (-noswitch); this patch is known to break the hiding of the Windows taskbar in fullscreen mode.
|-
|-
|disablecmdline
|[graphics]
|displayenum
|true
|true
|Disables Oni's existing command line parser as Daodan has its own.
|Offers a more accurate list of available display modes in the Options menu.
|-
|-
|fonttexturecache
|[graphics]
|gamma
|true
|true
|Doubles size of font texture cache.
|Enables gamma slider in fullscreen, disables it in windowed mode.
|-
|-
|hdscreens_lowres
|[graphics]
|newweap
|true
|true
|?
|Enables weapon info, so that standing above a weapon displays a message containing the weapon name and amount of ammo.
|-
|-
|highres_console
|[graphics]
|optionsvisible
|true
|true
|Fixes bug where console line becomes invisible at higher resolutions.
|Enables always showing the options button in main menu, even when pausing from a game.
|-
|-
|kickguns
|[graphics]
|showalllasersights
|false
|false
|Unfinished, do not use.
|Enables visibility of all (also enemies') weapon lasersights
|-
|-
|killvtune
|[graphics]
|false
|widescreenportraits
|Prevent loading of vtuneapi.dll.
|true
|Prevents fly-in portraits from being stretched when playing in widescreen resolutions.
|-
|-
|largetextures
|[language]
|chinese
|true
|true
|Textures up to 512x512 can be used.
|Allows Chinese fonts to be shown if the required DLL is available.
|-
|-
|levelplugins
|[language]
|fonttexturecache
|true
|true
|Allows level files to be loaded from the GDF which do not end in "_Final".
|Doubles size of font texture cache.
|-
|-
|newweap
|[language]
|true
|language
|Picking up a weapon displays a message containing the weapon name and amount of ammo.
|en
|Sets localization for hardcoded strings (e.g. "Savepoints").
|-
|-
|[language]
|nomultibyte
|nomultibyte
|true
|true
|Enables languages which use multibyte coding (such as Chinese).
|Enables languages which use multibyte coding (such as Chinese).
|-
|-
|optionsvisible
|[modding]
|argb8888
|true
|Enables the use of textures using ARGB8888.
|-
|[modding]
|d_regen
|true
|Enables script command d_regen (query/set regeneration for any character).
|-
|[modding]
|daodanbsl
|true
|true
|Always show options button in main menu, even when pausing from a game
|Adds new BSL commands (see below).
|-
|-
|pathfinding
|[modding]
|hdscreens_lowres
|true
|true
|Multiplies size of pathfinding grid cache by eight in order to prevent crashes in large levels.
|Allows HD intro/ending screens on game resolutions smaller than 1024x768.
|-
|-
|projaware
|[modding]
|largetextures
|true
|true
|Allows AI to dodge incoming gunfire properly.
|Enables the use of textures up to 512x512.
|-
|-
|safeprintf
|[modding]
|levelplugins
|true
|true
|Replaces Oni's function that prints to startup.txt with a safer one.
|Allows level files that do not end in "_Final" to be loaded from the GDF.
|-
|[oni]
|debug
|false
|Not useful; probably does nothing.
|-
|[oni]
|debugfiles
|false
|Enables function logging; when active, BSL function calls are logged to script_debug.txt.
|-
|[oni]
|findsounds
|false
|Not useful, extends output of sound_list_broken_links.
|-
|-
|showalllasersights
|[oni]
|ignore_private_data
|false
|false
|Show all (also enemies') weapon lasersights
|Disables the loading of 'private data' in level0. Probably has no effect.
|-
|[oni]
|sound
|true
|Enables sound.
|-
|-
|showtriggervolumes
|[oni]
|switch
|true
|Enables always switching screen to resolution on Oni's Options screen, making the game fullscreen; opposite of Oni's built-in argument "noswitch".
|-
|[windows]
|alttab
|true
|true
|Allows BSL variable "show_triggervolumes" to work when set to 1
|Allows user to switch applications while in Oni (Alt-Tab) and use the Windows key; however, it may enable the screensaver as well.
|-
|-
|throwtest
|[windows]
|false
|border
|Not recommended for use; experiment with allowing enemies to be thrown over railings.
|true
|Adds a border in windowed mode if '[graphics] daodangl' is active.
|-
|-
|usedaodanbsl
|[windows]
|clipcursor
|true
|true
|Adds new BSL commands (see below).
|Limits cursor to Oni's window.
|-
|-
|usedaodangl
|[windows]
|directinput
|true
|true
|Provides an improved windowed mode (-noswitch); this patch is known to break the hiding of the Windows taskbar in fullscreen mode.
|Forces on DirectInput. Should be off for Linux/Wine.
|-
|-
|usegettickcount
|[windows]
|disablecmdline
|true
|true
|Replaces Oni's timing functions with more accurate ones.
|Disables Oni's existing command line parser as Daodan has its own.
|-
|[windows]
|killvtune
|false
|Prevents loading of vtuneapi.dll.
|-
|-
|widescreenportraits
|[windows]
|safeprintf
|true
|true
|Prevents fly-in portraits from being stretched when playing in widescreen resolutions.
|Replaces Oni's function that prints to startup.txt with a safer one.
|-
|[windows]
|topmost
|false
|Keeps game window on top in windowed mode, even when switching applications.
|-
|-
|wpfadetime
|[windows]
|usegettickcount
|true
|true
|Adds working function for existing BSL command wp_fadetime, sets fade time to 4800.
|Replaces Oni's timing functions with more accurate ones.
|}
|}


6

edits