Log in to reply
 

Most of the Mods in the script folder in GTA v aren't working!



  • I am trying to run the BAM (BuildaMission) mod and the Psychokinetic mod, But none of them are working.
    I have installed every needy files properly (the nativeUI, scripthook v , script hookvdotnet, c++.... , etc). Though no luck.

    The "ScriptHookVDotNet" log file says this,

    [14:35:23] [DEBUG] Loading API from .\ScriptHookVDotNet2.dll ...
    [14:35:23] [DEBUG] Loading API from .\ScriptHookVDotNet3.dll ...
    [14:35:23] [DEBUG] Loading scripts from C:\Program Files (x86)\steam\Rockstar Games\Grand Theft Auto V\scripts ...
    [14:35:25] [DEBUG] Loading assembly AMLSNativeUI.dll ...
    [14:35:25] [INFO] Found 1 script(s) in AMLSNativeUI.dll resolved to API 2.10.14.
    [14:35:25] [DEBUG] Loading assembly BAM.dll ...
    [14:35:27] [INFO] Found 1 script(s) in BAM.dll resolved to API 2.10.14.
    [14:35:27] [DEBUG] Loading assembly NativeUI.dll ...
    [14:35:27] [INFO] Found 1 script(s) in NativeUI.dll resolved to API 2.10.14.
    [14:35:27] [DEBUG] Loading assembly Psychokinetic.dll ...
    [14:35:27] [INFO] Found 1 script(s) in Psychokinetic.dll resolved to API 2.10.14.
    [14:35:27] [DEBUG] Loading assembly SharpDX.dll ...
    [14:35:27] [INFO] Found 0 script(s) in SharpDX.dll.
    [14:35:27] [DEBUG] Loading assembly SharpDX.Mathematics.dll ...
    [14:35:27] [INFO] Found 0 script(s) in SharpDX.Mathematics.dll.
    [14:35:27] [DEBUG] Loading assembly SharpDX.XAudio2.dll ...
    [14:35:27] [INFO] Found 0 script(s) in SharpDX.XAudio2.dll.
    [14:35:27] [DEBUG] Instantiating script AMLSNativeUI.AMLSBigMessageThread ...
    [14:35:27] [INFO] Started script AMLSNativeUI.AMLSBigMessageThread.
    [14:35:27] [DEBUG] Instantiating script buildamission ...
    [14:35:28] [ERROR] Failed to instantiate script buildamission because constructor threw an exception: System.TypeInitializationException: The type initializer for 'SHVDN.NativeMemory' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at SHVDN.NativeMemory..cctor()
    --- End of inner exception stack trace ---
    at SHVDN.NativeMemory.StringToCoTaskMemUTF8(String s)
    at SHVDN.ScriptDomain.PinString(String str)
    at GTA.Native.Function.ObjectToNative(Object value)
    at GTA.Scaleform.Load(String scaleformID)
    at AMLSNativeUI.UIMenu..ctor(String title, String subtitle, Point offset, String spriteLibrary, String spriteName)
    at AMLSNativeUI.UIMenu..ctor(String title, String subtitle, Point offset)
    at buildamission..ctor()
    [14:35:28] [DEBUG] Instantiating script NativeUI.BigMessageThread ...
    [14:35:28] [INFO] Started script NativeUI.BigMessageThread.
    [14:35:28] [DEBUG] Instantiating script Psychokinetic.Main ...
    [14:35:28] [ERROR] Failed to instantiate script Psychokinetic.Main because constructor threw an exception: System.TypeInitializationException: The type initializer for 'Psychokinetic.Main' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SHVDN.NativeMemory' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at SHVDN.NativeMemory..cctor()
    --- End of inner exception stack trace ---
    at SHVDN.NativeMemory.GetHashKey(String key)
    at GTA.Model..ctor(String name)
    at Psychokinetic.Main..cctor()
    --- End of inner exception stack trace ---
    at Psychokinetic.Main..ctor()

    Please Help!



  • @Sumeet_5981 author gives instructions in pinned comments

    https://www.gta5-mods.com/scripts/mission-maker#comments_tab



  • @Sumeet_5981
    Correct NativeUI Version:
    What version of NativeUI do you have installed?
    Try NativeUI v1.7 if not installed already & see if that resolves any of your issues. If not, then try NativeUI v1.8 as well after that.

    NativeUI - General Info:
    Basically, as far as NativeUI is concerned, the safest option is to use the version that was available at the time of the scripts release (you can find them all here with their release dates). I believe there are ways to get different versions working at the same time, but the script would need to be coded with that in mind from the start & few mod authors utilise that capability.

    For most scripts that use it, you pretty much have to choose one version of NativeUI & only choose scripts that work with that version. Or, alternatively, hop between different versions manually (by replacing the 'NativeUI.dll' in the 'scripts' folder) inbetween loading the game, depending on what scripts you want active for that gaming session. Unless, as mentioned above, scripts are coded to use their own renamed NativeUI '.dll', you generally can't have a script that requires NativeUI v1.7 & a script that requires, for example, NativeUI v1.9 active at the same time while playing without some sort of negative consequences. Sometimes you can get away with it, but in most cases, the script that requires a different version of NativeUI than the one you have installed will act funny, have missing parts, crash the game, not function correctly etc.

    Mod Authors no longer active:
    Looks like neither of the mod authors have been online for ~2 years, so I doubt you will get any help there, unless in future the mod author comes back or the scripts are opensource & somebody else decides to pick them up & update/fix them/create a new version etc.

    Further Diagnosis:
    Not sure incorrect NativeUI version is the only issue with those scripts, but it's something that needs ruled out. So, test out v1.7/v1.8 & report back. :thumbsup:

    Note:
    Also, if you have other scripts that explicitly require a newer version than v1.7/v1.8 (say you have v1.9 installed at the moment & one/some of your other installed scripts need that), they will most likely stop working or have issues while either of those older versions are installed. As mentioned, you would normally have to choose between them depending on which scripts you want active in any one game session. Sometimes it can work tho, so no harm in trying.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.