Scripthook .NET Compatibility Patch Enhanced 1.2
450
20
450
20
Scripthook Compatibility Patch
This mod provides a runtime compatibility layer between
ScriptHookVDotNet Nightlies and Script Hook V .Net Enhanced by Chiheb-Bacha
Newest update split the mod in two, Enhanced version or Nightly Version
If you use Enhanced version and need compatibility with Nightly then use Enhanced
If you use Nightly and need compatibility with older mods then use Nightly
The mod operates entirely in memory and does not modify the original
script assemblies on disk. A Dll injects a lightweight
compatibility directly into ScriptHookVDotNet's script AppDomain.
The Dll monitors assemblies as they are loaded by the CLR and inspects their
managed metadata for known API compatibility issues.
When an incompatible assembly is detected, the required metadata is patched directly
within the CLR-loaded image before the script is instantiated. This allows scripts
to continue operating against newer ScriptHookVDotNet API layouts without requiring
the original DLL to be decompiled, recompiled, or permanently modified.
The compatibility layer is designed to operate independently of GTA V executable memory
addresses and does not rely on game-version-specific pattern scanning. Its primary
dependency is the ScriptHookVDotNet/CLR loading environment rather than the underlying
GTA V executable version.
The only errors to be fixed right now are
constructor threw an exception: System.MissingMethodException:
Method not found: 'GTA.UI.FeedPost GTA.UI.Notification.PostTicker(System.String, Boolean, Boolean)'.
This can fix issues with mods like Cinematic Idle/AFK Cam
Potentially this can fix other Scripthook errors as well on outdated scripts, i just need to know what errors
Updates:
⠀⠀⠀⠀➤ Enhanced 1.2
⠀⠀⠀⠀⠀● If you use Script Hook Enhanced then use this for Nightly compatibility
⠀⠀⠀⠀➤ Nightly 1.2
⠀⠀⠀⠀⠀● If your on Script Hook Nightly then use this for older scripts
⠀⠀⠀⠀➤ 1.2
⠀⠀⠀⠀⠀● Nothing new was added except for better error handling on dll's
⠀⠀⠀⠀➤ 1.1
⠀⠀⠀⠀⠀● New error patched
⠀⠀⠀⠀⠀'GTA.Vehicle' does not contain a definition for 'Create'
⠀⠀⠀⠀⠀Change Vehicle.Create
⠀⠀⠀⠀⠀Back to World.CreateVehicle
How To Use
● Simply install 000_CompatibilityPatch.dll to the scripts folder
This mod provides a runtime compatibility layer between
ScriptHookVDotNet Nightlies and Script Hook V .Net Enhanced by Chiheb-Bacha
Newest update split the mod in two, Enhanced version or Nightly Version
If you use Enhanced version and need compatibility with Nightly then use Enhanced
If you use Nightly and need compatibility with older mods then use Nightly
The mod operates entirely in memory and does not modify the original
script assemblies on disk. A Dll injects a lightweight
compatibility directly into ScriptHookVDotNet's script AppDomain.
The Dll monitors assemblies as they are loaded by the CLR and inspects their
managed metadata for known API compatibility issues.
When an incompatible assembly is detected, the required metadata is patched directly
within the CLR-loaded image before the script is instantiated. This allows scripts
to continue operating against newer ScriptHookVDotNet API layouts without requiring
the original DLL to be decompiled, recompiled, or permanently modified.
The compatibility layer is designed to operate independently of GTA V executable memory
addresses and does not rely on game-version-specific pattern scanning. Its primary
dependency is the ScriptHookVDotNet/CLR loading environment rather than the underlying
GTA V executable version.
The only errors to be fixed right now are
constructor threw an exception: System.MissingMethodException:
Method not found: 'GTA.UI.FeedPost GTA.UI.Notification.PostTicker(System.String, Boolean, Boolean)'.
This can fix issues with mods like Cinematic Idle/AFK Cam
Potentially this can fix other Scripthook errors as well on outdated scripts, i just need to know what errors
Updates:
⠀⠀⠀⠀➤ Enhanced 1.2
⠀⠀⠀⠀⠀● If you use Script Hook Enhanced then use this for Nightly compatibility
⠀⠀⠀⠀➤ Nightly 1.2
⠀⠀⠀⠀⠀● If your on Script Hook Nightly then use this for older scripts
⠀⠀⠀⠀➤ 1.2
⠀⠀⠀⠀⠀● Nothing new was added except for better error handling on dll's
⠀⠀⠀⠀➤ 1.1
⠀⠀⠀⠀⠀● New error patched
⠀⠀⠀⠀⠀'GTA.Vehicle' does not contain a definition for 'Create'
⠀⠀⠀⠀⠀Change Vehicle.Create
⠀⠀⠀⠀⠀Back to World.CreateVehicle
How To Use
● Simply install 000_CompatibilityPatch.dll to the scripts folder
पहले अपलोड: 10 दिन पहले
आखरी अपडेट: 3 दिन पहले
Last Downloaded: 13 कुछ मिनट पहले
28 टिप्पणियाँ
More mods by InfiniteQuestion:
- Map Model
5.0
5,000
34
Legacy 1.0
Scripthook Compatibility Patch
This mod provides a runtime compatibility layer between
ScriptHookVDotNet Nightlies and Script Hook V .Net Enhanced by Chiheb-Bacha
Newest update split the mod in two, Enhanced version or Nightly Version
If you use Enhanced version and need compatibility with Nightly then use Enhanced
If you use Nightly and need compatibility with older mods then use Nightly
The mod operates entirely in memory and does not modify the original
script assemblies on disk. A Dll injects a lightweight
compatibility directly into ScriptHookVDotNet's script AppDomain.
The Dll monitors assemblies as they are loaded by the CLR and inspects their
managed metadata for known API compatibility issues.
When an incompatible assembly is detected, the required metadata is patched directly
within the CLR-loaded image before the script is instantiated. This allows scripts
to continue operating against newer ScriptHookVDotNet API layouts without requiring
the original DLL to be decompiled, recompiled, or permanently modified.
The compatibility layer is designed to operate independently of GTA V executable memory
addresses and does not rely on game-version-specific pattern scanning. Its primary
dependency is the ScriptHookVDotNet/CLR loading environment rather than the underlying
GTA V executable version.
The only errors to be fixed right now are
constructor threw an exception: System.MissingMethodException:
Method not found: 'GTA.UI.FeedPost GTA.UI.Notification.PostTicker(System.String, Boolean, Boolean)'.
This can fix issues with mods like Cinematic Idle/AFK Cam
Potentially this can fix other Scripthook errors as well on outdated scripts, i just need to know what errors
Updates:
⠀⠀⠀⠀➤ Enhanced 1.2
⠀⠀⠀⠀⠀● If you use Script Hook Enhanced then use this for Nightly compatibility
⠀⠀⠀⠀➤ Nightly 1.2
⠀⠀⠀⠀⠀● If your on Script Hook Nightly then use this for older scripts
⠀⠀⠀⠀➤ 1.2
⠀⠀⠀⠀⠀● Nothing new was added except for better error handling on dll's
⠀⠀⠀⠀➤ 1.1
⠀⠀⠀⠀⠀● New error patched
⠀⠀⠀⠀⠀'GTA.Vehicle' does not contain a definition for 'Create'
⠀⠀⠀⠀⠀Change Vehicle.Create
⠀⠀⠀⠀⠀Back to World.CreateVehicle
How To Use
● Simply install 000_CompatibilityPatch.dll to the scripts folder
This mod provides a runtime compatibility layer between
ScriptHookVDotNet Nightlies and Script Hook V .Net Enhanced by Chiheb-Bacha
Newest update split the mod in two, Enhanced version or Nightly Version
If you use Enhanced version and need compatibility with Nightly then use Enhanced
If you use Nightly and need compatibility with older mods then use Nightly
The mod operates entirely in memory and does not modify the original
script assemblies on disk. A Dll injects a lightweight
compatibility directly into ScriptHookVDotNet's script AppDomain.
The Dll monitors assemblies as they are loaded by the CLR and inspects their
managed metadata for known API compatibility issues.
When an incompatible assembly is detected, the required metadata is patched directly
within the CLR-loaded image before the script is instantiated. This allows scripts
to continue operating against newer ScriptHookVDotNet API layouts without requiring
the original DLL to be decompiled, recompiled, or permanently modified.
The compatibility layer is designed to operate independently of GTA V executable memory
addresses and does not rely on game-version-specific pattern scanning. Its primary
dependency is the ScriptHookVDotNet/CLR loading environment rather than the underlying
GTA V executable version.
The only errors to be fixed right now are
constructor threw an exception: System.MissingMethodException:
Method not found: 'GTA.UI.FeedPost GTA.UI.Notification.PostTicker(System.String, Boolean, Boolean)'.
This can fix issues with mods like Cinematic Idle/AFK Cam
Potentially this can fix other Scripthook errors as well on outdated scripts, i just need to know what errors
Updates:
⠀⠀⠀⠀➤ Enhanced 1.2
⠀⠀⠀⠀⠀● If you use Script Hook Enhanced then use this for Nightly compatibility
⠀⠀⠀⠀➤ Nightly 1.2
⠀⠀⠀⠀⠀● If your on Script Hook Nightly then use this for older scripts
⠀⠀⠀⠀➤ 1.2
⠀⠀⠀⠀⠀● Nothing new was added except for better error handling on dll's
⠀⠀⠀⠀➤ 1.1
⠀⠀⠀⠀⠀● New error patched
⠀⠀⠀⠀⠀'GTA.Vehicle' does not contain a definition for 'Create'
⠀⠀⠀⠀⠀Change Vehicle.Create
⠀⠀⠀⠀⠀Back to World.CreateVehicle
How To Use
● Simply install 000_CompatibilityPatch.dll to the scripts folder
पहले अपलोड: 10 दिन पहले
आखरी अपडेट: 3 दिन पहले
Last Downloaded: 13 कुछ मिनट पहले

This is completely experimental approach so if this doesn't work or you have other Scripthook errors I can try to patch then let me know
@InfiniteQuestion ok,Is the current script running detection and performing fixes every frame, and will it affect performance?
@JoyLucien It should have no impact on performance. The patch is done in memory before loaded in game.
@InfiniteQuestion I ran into:
Could not load type 'GTA.Input.Controls' from assembly 'ScriptHookVDotNet3, Version=3.9.0.0
Using Pullmeoverremade
@Van_Zandt Thank you. I'll take a look as soon as I can.
@Van_Zandt Sorry nothing can be done with this mod as its code has been obfuscated making patching impossible
Could you also create a version of the nightly build that is compatible with the old API?
@JoyLucien I'm not sure what you mean by old API? The old API should still be compatible with the on by Chiheb-Bacha. If you can give me an example of an error i can maybe patch it. This isn't a version of the nightly builds, this is just a patch to allow some functions from the nightly builds into the enhanced version on this site.
@InfiniteQuestion What I mean is that if I use the shvdn nightly build, some scripts using the old API names will stop working. Please also create a compatibility patch for the shvdn nightly build.
@JoyLucien so you want the opposite direction of this mod, instead of nightly to enhanced you want enhanced to nightly? Can you give an example of a mod compiled against enhanced instead of nightly.
Use the latest nightly version to load this mod: https://www.gta5-mods.com/scripts/advanced-persistence-2-0#description_tab
Method not found: 'GTA.FeedPost GTA.UI.Notification.PostTicker(System.String, Boolean, Boolean)'.
And your current compatibility script cannot be loaded in nightly. Can you add a detection to your 000_CompatibilityPatch.dll and use different patches according to whether you are currently using shvdnenh or shvdn nightly?
[ERROR] Failed to load script assembly 000_CompatibilityPatch.dll when searching for script types because there is an assembly that the script tried to load as a dependency but couldn't. Exception message: One or more of the requested types could not be loaded. For more information, retrieve the LoaderExceptions property.
First LoaderException message (which tells what assembly is missing): System.IO.FileNotFoundException: Could not load file or assembly 'ScriptHookVDotNet3, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: "ScriptHookVDotNet3, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null"
Sounds coool
@JoyLucien I added a old scripthook api to nightlies patch, but i cant patch the advanced persistence. This would require creating a fake scripthook to load before dot net then forcing it to use its version checker over scripthooks but some memory hacking like that would truly set off false positives.
@InfiniteQuestion only to modify the nightly source code.
@JoyLucien I dont understand? It still might be possible, but so far i havent found it.
@InfiniteQuestion I do use a couple of Enhanced scripts in Legacy and they work just fine.
Please correct me if I'm wrong but this mod enables scripts that are built for nightly to work with the regular version of SHVDN? I have one that is nightly I need but another mod I need more works only with regular SHVDN.
@IreBurn Yes and that should include the enhanced version on this site. If someone so chooses to use nightly version then can also fix scripts the other way too. Right now it's kinda limited but any errors or old scripts I can possibly patch.
@InfiniteQuestion I did ask them to consider switching from nightly to shvdne.
@IreBurn Well unless something drastic changes with the nightly this should patch simple name changes between the two versions. Which mod was it?
@InfiniteQuestion https://www.gta5-mods.com/scripts/save-vehicle-beta-1-0-0