Lenny’s Mod Loader RDR 0.4.7790 for RDR2

Lenny’s Mod Loader RDR 0.4.7790 for Red Dead Redemption 2
Lenny’s Mod Loader RDR 0.4.7790 for RDR2

The General Idea Of Lenny’s Mod Loader Is To Provide An Easy Way To Modify The Game. In Its Current State For RDR 2 It Will Allow You To Replace Any File In The Game, Whether They Are Streaming Files Such As Models, Data Files, Font Files Etc. In Comparison To GTA 5 There Is No UI Support Yet Or Support For Addon Files, But I Might Add That In The Future!

The three screenshots show replaced assets, replaced font and an altered meta file to change the police response in Valentine to Saint Denis police. These are all included in the examples in the download for you to explore.

Conceptually there are two different ways to replace files depending on your needs. Streaming files (models, textures etc.) can be placed under lmlstream and will replace the original game assets automatically. Hashed names are also supported. Data files or other non-streaming assets require the full game path to properly override the file. This is why under lmlreplace you can replicate the internal game file structure to replace files. E.g. for dispatch.meta in update.rpf/common/data you would place your modified copy under lmlreplaceupdatecommondatadispatch.meta. See the readme.txt for more information.

1.) Copy all files into your game folder, including the lml folder.
2.) See lmlreadme.txt for instructions on the various replacement modes available.

This Download Comes With A Few Examples That Modify Various Aspects Of The Game. Check Them Out In The Included Examples Folder!

Verify your file got replaced
If you feel that your file is not being replaced properly, have a look at the log file and see if you can find any entry related to it. Perhaps the path was not correct and hence it did not work. Search for “replaced” for files in replace and “adding” for files in stream.

Since this is the first release for RDR I expect there to be quite a few problems and certain files might not work as expected. If you have trouble replacing specific files, please do not hesitate to comment here or reach out and include your modified file and file structure so I can have a look.

Detailed explanation of stream vs replace
In the lml folder you can find two subfolders, one called “replace” and one called “stream”. Both can be used for the same thing but replace is ultimately more powerful, but also more advanced. The stream folder you might recognize from Map Editor or Rampage Trainer and just loads streaming files directly.

As mentioned, similar to other tools available this merely loads streaming files into the game when the game is loading. For instance, model or texture files would go in there and will replace the existing assets in the game. If you do not know the name of an asset, but only its hash, simply name it 0xhash.ext (e.g. 0x9E54B506.ytd for w_melee_machete01+hi.ytd) and it will still be recognized and replace the asset correctly.

This is the most convenient way to quickly replace streaming files as you do not have to worry about where in the game files they are located but only their name.

This Folder Creates A Virtual Mapping Of The Entire Game File Structure And Hence Allows You To Replace Any Game File, Granted You Know Its Full Location. This Is Similar To The Paths You Can See In OpenIV When Navigating RPFs, But Not Exactly The Same. If You Want To Change The Dispatch.meta File For Instance, You Will Need To Modify It In Update.rpf, As The One In Common.rpf Is Superseded By That. To Do That, You Would Create The Following Structure: “replaceupdatecommondatadispatch.meta”. This Is Exactly The Path You Would Use In OpenIV (without The .rpf Ending For Update). Now, Whenever The Game Wants To Access This File, It Will Load Yours Instead. It Is That Simple!

If you want to replace the font file font_lib_efigs.gfx in scaleform_frontend.rpf for instance, you would create the following structure: “replaceupdatex64patchdatacdimagesscaleform_frontendfont_lib_efigs.gfx”.

Word of caution: File paths do not always match their RPF names unfortunately, hence this is a bit more advanced but also allows greater control. Say you want to replace player_zero_coat_001_open.ydd which is present in both packs_1.rpf (original) and dlc.rpf (from patchpack001, an update to the file). Files DLCs follow a slightly different pathing scheme. The full path to this file would be “replacedlc_patchPack001x64packsbasemodelscomponent_modelsplayer_zero_coat_001_open.ydd”. As you can see, it does not match the file path directly, which is also why for many files using the stream folder is just simpler. This is because the game maps some files differently and when you open the dlc.rpf (in patchpack001) and its setup2.xml you will see why: the device name is dlc_patchPack001 which is the “root” of all files inside this archive. Thus the path starts at “dlc_patchPack001” and then follows the RPF structure until you arrive at “replacedlc_patchPack001x64packsbasemodelscomponent_modelsplayer_zero_coat_001_open.ydd”. Not that complicated, but certainly not as easy as the streaming folder and something to look out for.

Thanks to NTA for his work on fwEvents, hooking, fiDevice and sysAllocator
Thanks to listener for his work on fiDevice and advice over the years (hope you are well!)
Thanks to the OpenIV team for OpenIV
Thanks to dexyfex for CodeWalker
Thanks to Gan Ceann, Will and GameRoll for testing as well as Jewels, GuiCORLEONEx794 and jack.sharif for providing example assets

Author: LMS



ModsHost claims no ownership or authorship of this mod - files, images & description. All credit goes to the author of this work.
Are we missing something? Download link incorrect? Let us know!

Add Media

Submit a YouTube video. Paste your link and hit Submit.

Leave a Comment!

Incorrect? Let us know!