A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/scripthookvdotnet/scripthookvdotnet/issues/1451 below:

Fails to run scripts for failing to initialize `NativeMemory` in game version v1.0.3258.0 · Issue #1451 · scripthookvdotnet/scripthookvdotnet · GitHub

What modules are you seeing the problem on?

ScriptHookVDotNet.asi (runtime)

SHVDN Version

between d585fa3 and fdd933b (including v3.6.0 and v3.5.1)

Game Version

v1.0.3258.0 or later

Bug Description

In v1.0.3258.0 or later, SHVDN fails to initialize for some memory patterns not found, making it impossible to run almost any scripts.

Here's a known lines where NativeMemory throws a TypeInitializationException with an inner System.NullReferenceException for the address being not found and left being null:

address = MemScanner.FindPatternBmh("\x3B\x35\x00\x00\x00\x00\x74\x2E\x48\x81\xFD\xDB\x05\x00\x00", "xx????xxxxxxxxx"); s_unkFirstRadarBlipIndexAddress = (int*)(*(int*)(address + 2) + address + 6);

For script developers: You should not built your scripts against nightly versions unless you are building scripts for testing some of new APIs and not for public! This bug happens only when the user have a older SHVDN installed. Which builds scripts are built against does not matter on this bug!

Steps To Reproduce
  1. Launch the game
  2. See if ScriptHookVDotNet.log says a TypeInitializationException is thrown from SHVDN.NativeMemory with an inner System.NullReferenceException
Alternative Steps
  1. Open the console with F4 or whatever you set to open it, or instant reload SHVDN with whatever you set to instant reload
  2. The game crashes (for not catching a TypeInitializationException thrown from NativeMemory, though catching one to live longer is a very bad idea in this case)
Link To Code Example

No response

The Current Behavior

NativeMemory throws an exception before finishing initalization

The Expected Behavior

NativeMemory finishes initalization

Solution for Users

You can avoid the issue by either of following actions


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4