Script Hook RDR 2 is the library that allows to use RDR 2 script native functions in custom *.asi plugins. Note that it doesn't work in RDR Online, script hook closes RDR 2 when player goes in multiplayer, see details in the readme.
Concept
The main concept is that compiled script plugins depend only on ScriptHookRDR2.dll, so when the game updates the only thing that user must do in order to make scripts working again is to update script hook runtime (i.e. ScriptHookRDR2.dll).
Does anyone have trouble entering the dev c website to download the scripthook I recently just screwed up all my mods so now i have to download and install it all again, but when i go to the website i cant entering it Do you know how i can download the latest version of scripthook without entering the devc website
So i just download RDR2 from empress (1.0.1436.28) and whenever i put any scripthook in the game's folder (dinput8dll from alexander blade or versiondll from lenny's simple trainer) the game just wont get past the first two guns animation when i open it. if i just remove those two files, it works perfectly.
I've just started the game and been trying to get through the story but every time I fail a mission a get an error from script hook that saids, "SCRIPT HOOK RDR2 CRITICAL ERROR" "FATAL: Creating threads while previous are still active" Does anyone know what causes this and/or how to fix it?
Not really too sure where to report bugs about Scripthook. But I found one that causes an issue if you try to unload/load a script using Ctrl + R. The script's filename can cause that to fail. Last night I was trying to troubleshoot all my code wondering why the script was failing to unload and I finally figured out the issue today. I renamed my script from MiniNPCs.asi to Pools.asi and script unloading/loading suddenly started working perfectly. I'm assuming there is some issue with having lowercase/uppercase/lowercase in the name that is causing this bug, but I figured I would post it here since I have no idea how else to contact you.
CTRL+R reloading is exactly the same as before , if Windows refuses to unload your asi it means you have some resources locked , comment your code and test until os stops holding your library , also reloading doesn't undo the changes what the script did , if you set some flag like player's invincibility or unlim ammo which is usually a single native , this will stay in the game .
SCRIPT HOOK RDR 2
Note:
Script hook uses address autosearch, which means it will work with game versions which are not mentioned here until the game update with changes to the script system.
Description:
Script hook is the library that allows to use RDR 2 script native functions in custom *.asi plugins.
Multiplayer:
Script hook closes the game when player goes Online, this is done because the game reports installed mods list to R* while being in Online mode.
Installation:
1. Copy ScriptHookRDR2.dll to the game's main folder, i.e. where RDR2.exe is located.
2. In order to load asi plugins you need to have asi loader installed, you can use the latest version that comes with this distrib (dinput8.dll).
3. This distrib also includes a sample asi plugin - native trainer, if you need a trainer then copy NativeTrainer.asi as well.
Supported game versions:
1.0.1207.58, 1.0.1207.60, 1.0.1207.69, 1.0.1207.73
DOWNLOAD
NATIVE TRAINER
Has anyone encountered a problem that after installing Script Hook RDR2, the control sticks and the keys either do not respond or respond with a huge delay?
Installed:
Script Hook RDR2 (C ++ ScriptHookRDR2 by Alexander Blade) -c.com/rdr2/scripthookrdr2/
Community ScriptHookRDR2 .NET = description
1 shot 1 kill mod
RDR 2 ScriptHook is a library that allows you to use native functions of RDR 2 scripts in custom ASI plugins (plugins with the extension *.asi). Please note that scripthook does not work in RDR Online. Script Hook closes the game Red Dead Redemption 2, when the player moves in multiplayer. This is done because the game sends a report about the installed mod in Rockstar being online.
For convenience, this distribution includes the latest versions of Asi Loader and Native Trainer. So after installing all the files from the archive you will receive immediately prepared for the game plugins and operational trainer, which graphically shows how scripts work. Activation button - F5.
Installation:
- copy ScriptHookRDR2.dll in the directory with the game, that is the place where the file is located RDR2.exe;
- to use ASI plugins you need installed Asi Loader, the latest version which is in unstable, so just copy the file dinput8.dll in the game folder;
- this distribution also includes as an example ASI plugin - Native Trainer and if you need a trainer, then also copy the file NativeTrainer.asi in game folder.
The concept of the work:
The ScriptHook is that ASI plugins depend only on the libraries ScriptHookRDR2.dll and so, when the game is updated, the user only has to update only the library script hook (that is, the file ScriptHookRDR2.dll) that the scripts have earned again.
Last update from 23 Dec 2022:
ScriptHook v1.0.1491.16a supports update version of the game Red Dead Redemption 2:
1.0.1491.16, 1.0.1232.17, 1.0.1232.13, 1.0.1207.73, 1.0.1207.69, 1.0.1207.60, 1.0.1207.58.
Download Script Hook RDR 2 you can use the link below on the page.
Script Hook RDR 2 is a library that allows you to use native RDR 2 script functions in custom *.asi plugins. Please note that it does not work in RDR Online, script interception closes RDR 2 when the player enters multiplayer, see the readme for details. This distribution also includes the latest Asi Loader and Native Trainer.
Installation instructions:
1. Copy ScriptHookRDR2.dll to the main game folder, i.e. where is RDR2.exe located.
2. To load asi plugins you need to install asi loader, you can download it separately or use the latest version that comes with this distribution (dinput8.dll).
3. This distribution also includes an asi plugin - Native Trainer, if you need a trainer, copy NativeTrainer.asi as well.