This is an ASI plugin for Red Dead Redemption 2, ported from ScriptHookVDotNet, based on the C++ ScriptHook by Alexander Blade, which allows running scripts written in any .NET language in-game. THIS PROJECT IS NO LONGER IN DEVELOPMENT AND LIKELY DOES NOT WORK. THERE IS AN IMPROVED, UPDATED FORK OF THIS PROJECT ON GITHUB
Only download it if you're going to use .dll version (Version 1.2 and below) Locate ScriptHookRDRDotNet.asi, ScriptHookRDRDotNet.ini and ScriptHookRDRNetAPI.dll to game folder.
This mod is required as it serves as a wrapper for AB's ScriptHook for loading .NET assemblies.
Permissions and credits
Author's instructions
See LICENSE in download.
File credits
Crosire - ScriptHookVDotNet
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.0.5.5
Community changes can be found on Github
Version 1.0.5.4
Updated for latest patch (v1.0.1232.17) & Updated Natives (pulled from https://alloc8or.github.io/rdr3-native-db/)
Version 1.0.5.3
Updated Native Hashes: Grabbed from: https://alloc8or.github.io/rdr3-native-db/ . Credit to Unknown (alloc8or) as always.
Version 1.0.5.2
Update for newest patch v1.0.1232.13; SDK update for source; Fixed World Pools
Version 1.0.5.1
Mooshe's External API Merged to .NET Api This includes: Updates to UI.Screen > UI.Sprite > RDR2.Blip (Added Sprites and Type IDs) RDR2.Entity > Ped (Core Values!) > Ped.AnimationFlags > Ped.Bone (Just names, no hashes) Ped.Tasks (Bunch of Tasks implemented into API) > Ped.VehicleFlags > Vehicle (Model Hashes & Seats!) RDR2.Game > RDR2.Pickup / PickupType > Player (Money Values!) > RaycastResult > RDR2.Weapon (Hashes!) RDR2.Weapon.AmmoType > Weapon.WeaponCollection > Weapon.WeaponGroup > RDR2.World RDR2.Weather --- Added RDR2.Prompt
Version 1.0.5.0
General bug fixes & support for latest patch. Retarget to .NET 4.6
Version 1.0.4.7
added vc++ redist files in download, as well as a tutorial to get the .asi file to work (for most users)
Version 1.0.4.6
General cleanup & attempt to solve errors loading .asi file for some users. Added diagnostics program for these reports (Thanks MoosheTV!) Changed target framework to v4.5.2 (possible that v4.8 was causing issues before, this is just a debug run, if this is not the issue then the framework will be put back to v4.8)
v1.0.4.4 Added in game console, Fixed Vector3 offsets, Fixed TextElement, Fixed Drawing Text, Updated Entity.Position
Version 1.0.4.1
v1.0.4.1 Fixed script reloading, Files are no longer "locked" in scripts folder
Version 1.0.4.0
v1.0.4.0 Fixed return pointers, issue with passing string as arg. Added UI.Screen.ShowSubtitle() -> This can be called in or outside of loop, use GET_GAME_TIMER if you want to have it disappear after certain ms. Default will show for around 6 seconds if called outside of loop.
USE: Copy ScriptHookRDRDotNet.asi, ScriptHookRDRNetAPI.dll, AND ScriptHookRDRDotNet.ini to your RDR2 Install folder. Install scripts to /scripts/ folder inside root folder
For Developers: Create .NET Framework project ≥ 4.6 Add Reference to ScriptHookRDRNetAPI.dll use RDR2 namespace **See ExampleScript.cs**
Contributing The source for this project is on Github here You'll need Visual Studio 2017 or higher to open the project file and the Script Hook RDR2 SDK extracted into "/sdk".Additionally, create an environment variable called RDR2DN_VERSION and set it to the version you are attempting to build. Any contributions to the project are welcomed, it's recommended to use GitHub pull requests.
Credits Crosire (ScriptHookVDotNet) Jedijosh920 - lots of help <3 Mooshe - RDR3CrashDiagnostics program