Code Monkey home page Code Monkey logo

iw3sp-mod-rtx's Introduction

Build Discordโ€‚

iw3sp-mod-rtx - nvidia RTX Remix compatibility mod

This fork of the singleplayer client modification (iw3sp_mod) for Call of Duty 4: Modern Warfare (IW3)
makes the game compatible with nvidia's rtx-remix. The client is originally based on the IW4x Client


img

Usage

Easy Install:

  1. Download the latest iw3sp-mod-rtx release
  • Extract the contents into your cod4 root directory.
  • Skip to Step 5 if you are not interested in nightly builds (featuring the latest changes)

Nightly (always up-to-date):

  1. Install the latest full release (step above)

  2. [rtx only] [optional] Install the latest full rtx-remix release (0.5.1 at this time)
    https://github.com/NVIDIAGameWorks/rtx-remix/tags


  1. [rtx only] [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 iw3sp-mod-rtx github actions build:
    Release-binaries-rtx - https://github.com/xoxor4d/iw3sp-mod-rtx/actions
  • Drop game.dll and the contents of the assets-remix folder into your cod4 root directory and start the game.

  1. Run iw3sp_mod.exe to start the game

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


Remix section

๐Ÿ”ท To clarify, this client mod is only making CoD4 compatible with remix. ๐Ÿ”ท

My actual remix-mod with enhanced materials, meshes and lights can be found over at ModDB:
https://www.moddb.com/mods/cod4-mp-rtx-remix-iw3xo

(the rtx-remix directory contains small and simple sp-specific changes that are not part of the ModDB release) (read the included README)


  • A. Commandline Arguments:

    • -no_rtx :: disable rtx modules
    • -no_default_sky :: disable sky spawning (map settings)
    • -no_sun :: disable sun spawning (map settings)
    • -no_fog :: disable fog (map settings)
    • -stock_effects :: render effects using shaders
    • -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)
  • commandline example: โ€‚c:\path\iw3sp_mod.exe -no_forced_lod -no_fog

  • B. Dvars:

    ๐ŸŸฉ encouraged to be tweaked
    ๐ŸŸฆ can be useful in edge case scenarios
    ๐ŸŸง shouldn't be touched

    Culling dvars:

    ๐ŸŸฉ rtx_culling_tweak_mins :: prevents a bit of culling
    ๐ŸŸฉ rtx_culling_tweak_maxs :: prevents a lot of culling
    ๐ŸŸฉ rtx_culling_tweak_frustum :: disables frustum culling
    ๐ŸŸฉ rtx_culling_tweak_smodel :: disables static model culling
    ๐ŸŸฉ rtx_culling_plane_dist :: distance of frustum culling planes

    General dvars:

    ๐ŸŸฉ r_forceLod :: force all models to a specific LOD
    ๐ŸŸฉ r_forceLod_second_lowest :: prevent game from using the lowest LOD (sometimes used to hide the model)
    ๐ŸŸฉ r_lodScaleRigid :: adjust static model draw distances (lower values increase draw distance)
    ๐ŸŸฉ r_showTess :: draws material info (incl. all image names) of surfaces (geometry / models)
    ๐ŸŸฉ r_showCellIndex :: show portal index info (useful for manual culling overrides via map settings)
    ๐ŸŸฉ r_showModelNames :: draw names of static models around the player

    Dvars that should only be changed if you know what you are doing:

    ๐ŸŸง rtx_extend_smodel_drawing :: disable static model draw limit (max amount of static models drawn at once)


  • C. Console Commands :
    • mapsettings_update :: reload map settings
    • mapsettings_get_defaults :: prints sun direction, color and intensity in map_settings format based on the stock map settings to the consle

map_settings.ini :: root/iw3sp_data

๐Ÿ”ธ Tweak sunlight / color, skybox and fog settings
๐Ÿ”ธ Override culling per portal / cell (to fix light or shadow culling - dvar r_showCellIndex)
๐Ÿ”ธ Spawn unique anchor meshes that can be used to attach unique prims and lights to


โš ๏ธ Current Issues

  • Swift changes in geometry (eg. teleporting) can crash the game.

    • Decrease geometry drawing by increasing culling or play with r_lodScaleRigid
  • Remix might try to use your onboard gpu (that is a general CoD issue), so its best to disable it in the bios or within the device manager

  • Some effects will slow down the game (really depends on the effect and the amount)


img img img


Questions?

visit the rtx-remix showcase discord and check out the cod4 thread (remix-projects channel)

  • join the iw3xo discord if you have questions related to this modification
  • join the iw3sp-mod discord if you have questions related to iw3sp_mod

Credits rtx fork



IW3SP_MOD Features

Mod compatibility list

  • Increased asset limits for IW3
    • FX: 1200
    • Image: 7168
    • Loaded Sound: 2700
    • Streamed Sound: 24000
    • Material: 8192
    • Weapon: 2400
    • Xmodel: 5125
  • Added game achievements;
  • Added gamepad support with aim assist;
  • Added custom methods and functions for GSC;
  • Added loading of additional .ff files [level name]_patch.ff;
  • Added FOV logic from multiplayer to singleplayer;
  • Added map entities editing for the stock maps and more (Wiki)

How to install modification? (For regular users)

  1. Download the latest release
  2. Place the .zip contents into your cod4 root folder
  3. Start iw3sp_mod.exe

How to compile from source? (For advanced users)

  1. Clone this repository. I recommend using git-scm.
    P.S: (Downloading the zip does not include deps!)
  2. Find any directory which you want the placed the content of repository, then open context menu and find "Git Bash Here" and write next line in the cmd: git clone https://github.com/xoxor4d/iw3sp-mod-rtx.git
  3. After cloning click the generate.bat and wait when all files will be ready.
  4. Open build folder and find the iw3sp_dev.sln file and compile.

Credits iw3sp_mod

[Dependencies]

Disclaimer

This software has been created purely for the purposes of academic research. Project maintainers are not responsible or liable for misuse of the software. Use responsibly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.