henry_™ Posted September 15, 2014 Share Posted September 15, 2014 (edited) Hello everyone I've been working on a GTA V overhaul mod collaberation for GTA IV, and Vstyle has suddenly stopped working when I switch between Michael Franklin or Trevor. Here is the log from scripthookdotnet: 2014-09-15 00:06:38 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.0.7.0 with C++ Hook version 0.5.1)2014-09-15 00:06:53 - Direct3D device created!2014-09-15 00:06:53 - SEARCHING FOR SCRIPTS...2014-09-15 00:06:53 - Loading scripts in Assembly 'scripts\BuzzardV.net.dll' ...2014-09-15 00:06:53 - ...found script 'BuzzardV'!2014-09-15 00:06:53 - Loading scripts in Assembly 'scripts\JerryCan.net.dll' ...2014-09-15 00:06:53 - ...found script 'JerryCan'!2014-09-15 00:06:53 - Loading scripts in Assembly 'scripts\JetVStyle.net.dll' ...2014-09-15 00:06:53 - ...found script 'JetVStyle'!2014-09-15 00:06:53 - Loading scripts in Assembly 'scripts\JulioNIB.Scripts.net.dll' ...2014-09-15 00:06:53 - ...found script 'JulioNIBScriptsMenu'!2014-09-15 00:06:53 - Loading scripts in Assembly 'scripts\VCopMusic.net.dll' ...2014-09-15 00:06:53 - ...found script 'Ambiance'!2014-09-15 00:06:53 - Loading scripts in Assembly 'scripts\VRadioHUD.net.dll' ...2014-09-15 00:06:53 - ...found script 'VRadioHUD'!2014-09-15 00:06:53 - Loading scripts in Assembly 'scripts\V_Style.net.dll' ...2014-09-15 00:06:53 - ...found script 'V_Style'!2014-09-15 00:06:53 - DONE! 7 valid scripts found!2014-09-15 00:06:53 - STARTING SCRIPTS...2014-09-15 00:06:53 - INFO: Phone number checks are not available!2014-09-15 00:06:53 - ...successfully started script 'Ambiance'!2014-09-15 00:06:54 - ...successfully started script 'VRadioHUD'!2014-09-15 00:06:54 - ...successfully started script 'JulioNIBScriptsMenu'!2014-09-15 00:06:54 - ...successfully started script 'JetVStyle'!2014-09-15 00:06:55 - ...successfully started script 'BuzzardV'!2014-09-15 00:06:55 - Error in constructor of script 'JerryCan': System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at GTA.ScriptThread.LoadScriptNow()2014-09-15 00:06:56 - ...successfully started script 'V_Style'!2014-09-15 00:07:39 - Error during Tick in script 'V_Style': System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at NativeInvoke.Invoke<int,int,int,unsigned int,unsigned int>(SByte* name, Int32 p1, Int32 p2, UInt32 p3, UInt32 p4) at Scripting.?A0x9da3cf7f.GiveWeaponToChar(Int32 , Int32 , UInt32 , UInt32 ) at GTA.value.Weapon.set_Ammo(Int32 value) at SomeNativeCalls.addGunAmmoButDontChange(Ped p, Weapon gun, Int32 ammo) at V_Style.switchChar(Boolean bTurnIntoNIKO, Boolean bTurnIntoLuis, Boolean bTurnIntoJohnny, Boolean bTurnIntoMP, Boolean bJustSwitch) at V_Style.general_tick(Object sender, EventArgs e) at GTA.Script.TryTick() at GTA.Script.DoTick() at GTA.ScriptThread.OnTick() Thanks Everyone. Edited September 15, 2014 by henry_™ Link to comment Share on other sites More sharing options...
Jitnaught Posted September 15, 2014 Share Posted September 15, 2014 1. PM the author about it. 2. Looks like the GiveWeaponToChar native is the problem. I believe this means that the ped was dead when the native was called. The only way to fix this (that I know of) is by calling the native using GTA.Native.Function.Call. Link to comment Share on other sites More sharing options...
henry_™ Posted September 15, 2014 Author Share Posted September 15, 2014 1. PM the author about it. 2. Looks like the GiveWeaponToChar native is the problem. I believe this means that the ped was dead when the native was called. The only way to fix this (that I know of) is by calling the native using GTA.Native.Function.Call. I unfortunately am not a coder and I assume by calling a different native you mean modify the code of the .net.dll file Also, JuiloNIB has a GTA Forums account? Link to comment Share on other sites More sharing options...
Jitnaught Posted September 15, 2014 Share Posted September 15, 2014 Yes and yes. Link to comment Share on other sites More sharing options...
byteMe420 Posted September 15, 2014 Share Posted September 15, 2014 what does the method to call the native function have to do with the error and the ped being dead? Link to comment Share on other sites More sharing options...
henry_™ Posted September 15, 2014 Author Share Posted September 15, 2014 Yes and yes. Since I'm not smart with code (and the only thing I can do is create levels in Valve's Hammer Editor, lol) I'm gonna PM JuiloNIB. Thanks for your help. Jitnaught 1 Link to comment Share on other sites More sharing options...
Jitnaught Posted September 15, 2014 Share Posted September 15, 2014 what does the method to call the native function have to do with the error and the ped being dead?Well I've had problems like this before, and calling the native using Native.Function.Call instead seemed to fix it (for my case at least). Link to comment Share on other sites More sharing options...
henry_™ Posted September 15, 2014 Author Share Posted September 15, 2014 Just ran a member search for JulioNIB on the search Tab. Didn't get any results... Link to comment Share on other sites More sharing options...
byteMe420 Posted September 15, 2014 Share Posted September 15, 2014 what does the method to call the native function have to do with the error and the ped being dead? Well I've had problems like this before, and calling the native using Native.Function.Call instead seemed to fix it (for my case at least). what case are you talking about because i doubt that is the reason. If anything using Function.Call allows more room for error... his script is conflicting with the game or using a native wrong but the error tells me he is setting ammo using the scripthookdotnet so his call to the native is fine... he is calling the function at a time the game is not ready to set ammo on this ped for whatever reason... perhaps him being dead is the reason... i dont know Just ran a member search for JulioNIB on the search Tab. Didn't get any results... he has posted here recently in the thread about blackouts Link to comment Share on other sites More sharing options...
Jitnaught Posted September 15, 2014 Share Posted September 15, 2014 Just ran a member search for JulioNIB on the search Tab. Didn't get any results... http://gtaforums.com/user/730667-julionib/ henry_™ 1 Link to comment Share on other sites More sharing options...
henry_™ Posted September 15, 2014 Author Share Posted September 15, 2014 Just ran a member search for JulioNIB on the search Tab. Didn't get any results... http://gtaforums.com/user/730667-julionib/ Thanks. Link to comment Share on other sites More sharing options...
leftas Posted September 15, 2014 Share Posted September 15, 2014 The problem may be with JerryCan, as it's addiontal weapon, and it may be virtualprotected with no rights. Try to remove it. Best regards, Paul. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now