ASI Support for RAGE Plugin Hook 0.4.5 BETA

ASI Support for RAGE Plugin Hook 0.4.0 BETA

This is a RPH plugin that converts ASI mods into UASI (“Universal ASI”) mods which can be loaded with RAGE Plugin Hook in the same way ASI mods are loaded with ScriptHookV. Everything but the raw DirectX access (“Present callbacks”) has been implemented, so most ASIs should load and work properly.

To use this plugin, you must have:
.NET Framework 4.6
RAGE Plugin Hook

How does it work?
The first version was entirely coded in C++/CLI: native C++ code was used to interact with native ASI plugins, and the “CLI” (or “managed”) part of the code was used to interact with the .NET Framework and RAGE Plugin Hook. Though, this mix between managed and native code created problems and confusion: errors were hard to track down, the program was hard to maintain, and the plugin didn’t work for a lot of people.
This version was created with compatibility and user-friendliness in mind: managed code is in its own file (“AsiSupport.dll”, which is the RPH Plugin), and all unmanaged code (the bare minimum the make the plugin work) is in UnvAsiIntrf.dll (which stands for “Universal ASI Interface”). UnvAsiIntrf.dll should be supported by the end user as it is pure C++, and AsiSupport.dll should also not cause any problem if the end user has all required dependencies to use RPH.
UnvAsiIntrf.dll has been created as a generic way for ASI plugins to interact with another entity: said entity would register as an “API Handler” which has access to GTA V (in this instance, to RPH which gives it access to GTA V) and which would load UASI files (converted ASI files); then, the ASI scripts would interact with GTA V the same way the would’ve done it with ScriptHookV, except they would do via UnvAsiIntrf.dll, which itself serves as a simple bridge between UASI scripts and the API Handler.

Please note I only created it to be able to use old ASI plugins created by inactive authors. If you’re a new developer wanting to create a GTA V plugin, I highly recommend you directly use RPH instead, as it will improve performance.

Thanks to MulleDK19 and LMS for RAGE Plugin Hook
Thanks to Alexander Blade for ScriptHookV
Thanks to JackD111 for OpenVHook
Thanks to alexguirre for helping me figure out stuff

The source is available on Github under the GPLv3 license.



Download mod

FileFile size
zip AsiSupport-0.4.5-BETA112 KB

Leave a Reply

Your email address will not be published. Required fields are marked *