Skip to content

xoxor4d/t4-rtx

Repository files navigation

CoD-WaW (cod5) rtx-remix compatibility mod

This client modification is made to make the game compatible with nvidia's rtx-remix.
How? By manually reimplementing fixed function rendering :)

It does not come with a 'rtx mod' -> meaning no custom models nor materials.

A demo mod can be found over at modDB: https://www.moddb.com/mods/cod5-nacht-der-untoten-demo
^ Footage: https://www.youtube.com/watch?v=hCv3p1qT3q0

fully sp / mp compatible


img

If you want to buy me a coffee:

ko-fi

Usage

A. Easy way but might not feature the latest and greatest:

  1. Download the latest release and extract the contents into your CoDWaW root directory.

The in-game console should show t4-rtx-version > if the dll was loaded correctly.
If not, look at the troubleshoot section further down.


  1. Read the Dvars / Console Commands and Current issues sections

B. Manual way but always up-to-date:

  1. Install the latest full rtx-remix release (0.4.0 at this time)
    https://github.com/NVIDIAGameWorks/rtx-remix/tags

  1. (Optional) Install the latest github action builds of:
    remix bridge - https://github.com/NVIDIAGameWorks/bridge-remix/actions
    remix runtime - https://github.com/NVIDIAGameWorks/dxvk-remix/actions

  1. Download the latest t4-rtx github actions build:
    Release-binaries-t4-rtx - https://github.com/xoxor4d/t4-rtx/actions
  • Drop nvapi.dll and the contents of the assets folder into your CoDWaW root directory and start the game.
    The in-game console should show t4-rtx-version > if the dll was loaded correctly.

  1. Read the Dvars / Console Commands and Current issues sections


Dvars / Console Commands to further tweak the game to your liking:

🔸 skybox and fog settings can be tweaked per map by using map_settings.ini found in the t4rtx folder 🔸

  • use console commands starting with rtx_sky_ to spawn/change the skybox

  • rtx_disable_world_culling :: tweak culling to your needs (set to less by default)

  • r_aspectRatio :: AUTO is truly auto now and supports any aspect ratio

  • use console commands noborder & windowed to switch between borderless and normal windowed mode
    (set dvars vid_xpos 0 and vid_ypos 0 to put the window in the top left corner)

  • use console command unlockall to unlock all sp missions



Advanced Settings:

  • A. Commandline Arguments:

    • -no_default_sky :: disable spawning of a default sky on each map
    • -stock_effects :: render effects using shaders
    • -no_fog :: disable fog
    • -no_forced_lod :: do not set r_forceLod to high by default
    • -load_normal_spec :: enable loading of specular and normal maps (if you need to for some reason)

    eg:  c:\path\CoDWaWmp.exe -no_default_sky -stock_effects


  • B. Dvars:
    • r_forceLod :: force all models to a specific LOD (highest by default)
    • r_lodScaleRigid :: adjust static model draw distances (lower values increase draw distance)
    • fx_cull_elem_draw_radius :: fx elements inside this radius are not affected by culling (needs fx_cull_elem_draw)
    • rtx_sky_follow_player :: sky follows the player to prevent culling issues
    • rtx_disable_entity_culling :: disable culling of game entities
    • r_warm_dpvs :: disable all culling if true (not recommended - use rtx_disable_world_culling)
    • r_warm_static :: unlimited draw distance for static models if true (not recommended, use r_lodScaleRigid)

  • C. Console commands:
    • export_entities :: export map entities and static models (misc_models) to cod5root/t4rtx/entity-export/mapname.map


⚠️ Current issues:

  • fullscreen, changing resolution or anything else that requires the game to restart the renderer might crash the game
  • effects will slow down the game (really depends on the effect and the amount - use fx_enable 0 or fx_cull_ dvars to adjust to your liking - marking certain effect textures as ignore might help as well)

💭 Troubleshoot:

game wont load or shows an error on startup

  • make sure you are on the latest version (1.7)
  • disable your onboard gpu (BIOS)
  • download a debug build and watch for descriptive errors in the external console
  • try to run the game in windowed mode:
    • use commandline arguments like c:\path\CoDWaW.exe +set r_fullscreen 0
    • or edit your player config (appdata/local/Activision/CoDWaW/players/yourprofile)

t4-rtx is not being loaded

  1. download asiloader (the non x64 variant)
  2. rename the downloaded file to dsound.dll and place it into the cod5 root folder
  3. rename nvapi.dll to nvapi.asi or any other name as long as it ends with .asi
  4. start the game

other issues

  • captures loaded in the toolkit dont work correctly (UTF8 error), look here
  • black main menu? Make sure shadermodel is not set to 2.0


Compiling yourself:

  1. setup COD5_ROOT environment variable with path to your cod5 directory (optional)
  2. run generate-buildfiles_vs22.bat to generate build files (build folder)
  3. compile and copy nvapi.dll (renamed t4-rtx.dll) to your CoDWaW root folder
    • ^ automatically happens if you setup COD5_ROOT

Questions?

Not required but makes life easier:
https://community.pcgamingwiki.com/files/file/714-call-of-duty-world-at-war-replacement-steam-multiplayer-executable/


Credits



img img