Jump to content

ScriptHookDotNet Crashes


Exxon

Recommended Posts

Hi everyone,

 

I've got myself a little problem here:

Whenever I put ScriptHookDotNet.asi in the IV directory, the game crashes after showing the name of the last mission you played (LOADING - NO LOVE LOST)

In the ScriptHookDotNet.txt, I get this error

 

2011-05-27 17:20:04 - Initializing ScriptHookDotNet v0.893 BETA (GTA IV version 1.0.4.0) 2011-05-27 17:21:38 - Direct3D device created! 2011-05-27 17:21:40 - SEARCHING FOR SCRIPTS... 2011-05-27 17:21:40 - DONE! No DotNet script found! 2011-05-27 17:21:41 - Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.                        at unmanaged.MemoryAccess.GetPhoneNumber()                        at GTA.NetHook.CheckPhone() at GTA.NetHook.Tick()                        at StartupThreadC.RunTick(StartupThreadC* )

 

 

Any help?

 

Thanks in advance guys!

 

Exxon

Link to comment
Share on other sites

icelaglace
Hi everyone,

 

I've got myself a little problem here:

Whenever I put ScriptHookDotNet.asi in the IV directory, the game crashes after showing the name of the last mission you played (LOADING - NO LOVE LOST)

In the ScriptHookDotNet.txt, I get this error

 

2011-05-27 17:20:04 - Initializing ScriptHookDotNet v0.893 BETA (GTA IV version 1.0.4.0) 2011-05-27 17:21:38 - Direct3D device created! 2011-05-27 17:21:40 - SEARCHING FOR SCRIPTS... 2011-05-27 17:21:40 - DONE! No DotNet script found! 2011-05-27 17:21:41 - Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.                        at unmanaged.MemoryAccess.GetPhoneNumber()                        at GTA.NetHook.CheckPhone() at GTA.NetHook.Tick()                        at StartupThreadC.RunTick(StartupThreadC* )

 

 

Any help?

 

Thanks in advance guys!

 

Exxon

Use Scripthook 0.4.0, if you use the 1.0.4.0

And use the lastest ScripthookDotNet 1.7.1.7 Beta.

 

 

Link to comment
Share on other sites

Oke, thanks! I'll give it a try.

 

By the way, I already use 0.4.0.0 so I gues I'll be searching for the ScripthookDotNet 1.7.1.7 Beta.

Do you know where to get it (link please)?

Link to comment
Share on other sites

Yes, I already found it. I googled it and found that page biggrin.gif

And ... it works! Thanks for the help man!

Let's see how I can get EPM to work wink.gif

Link to comment
Share on other sites

When I put EPM in it, I get this error:

 

2011-05-27 18:16:41 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.0.4.0 with C++ Hook version 0.4.0)2011-05-27 18:17:49 - Direct3D device created!2011-05-27 18:17:50 - SEARCHING FOR SCRIPTS...2011-05-27 18:17:50 - Loading scripts in Assembly 'scripts\moveDoors.net.dll' ...2011-05-27 18:17:50 -  ...found script 'Test.EPM0'!2011-05-27 18:17:50 -  ...found script 'Test.ButtonTest'!2011-05-27 18:17:50 -  ...found script 'Test.EPM5'!2011-05-27 18:17:50 -  ...found script 'Test.EPM4'!2011-05-27 18:17:50 -  ...found script 'Test.EPM3'!2011-05-27 18:17:50 -  ...found script 'Test.EPM2'!2011-05-27 18:17:50 -  ...found script 'Test.EPM1'!2011-05-27 18:17:50 - DONE! 7 valid scripts found!2011-05-27 18:17:50 - STARTING SCRIPTS...2011-05-27 18:17:50 - INFO: Phone number checks are not available!2011-05-27 18:17:50 -  ...successfully started script 'Test.EPM1'!2011-05-27 18:17:50 -  ...successfully started script 'Test.EPM2'!2011-05-27 18:17:50 -  ...successfully started script 'Test.EPM3'!2011-05-27 18:17:50 -  ...successfully started script 'Test.EPM4'!2011-05-27 18:17:50 -  ...successfully started script 'Test.EPM5'!2011-05-27 18:17:50 -  ...successfully started script 'Test.ButtonTest'!2011-05-27 18:17:50 -  ...successfully started script 'Test.EPM0'!2011-05-27 18:18:13 - Error during Tick in script 'Test.EPM1':                      System.IndexOutOfRangeException: Index was outside the bounds of the array.                         at Test.EPM1.GetLightsOnOff_Tick(Object sender, EventArgs e)                         at System.EventHandler.Invoke(Object sender, EventArgs e)                         at GTA.Script.TryTick()                         at GTA.Script.DoTick()                         at GTA.ScriptThread.OnTick()2011-05-27 18:18:13 - Error during Tick in script 'Test.EPM2':                      System.IndexOutOfRangeException: Index was outside the bounds of the array.                         at Test.EPM2.GetLightsOnOff_Tick(Object sender, EventArgs e)                         at System.EventHandler.Invoke(Object sender, EventArgs e)                         at GTA.Script.TryTick()                         at GTA.Script.DoTick()                         at GTA.ScriptThread.OnTick()2011-05-27 18:18:13 - Error during Tick in script 'Test.EPM3':                      System.IndexOutOfRangeException: Index was outside the bounds of the array.                         at Test.EPM3.GetLightsOnOff_Tick(Object sender, EventArgs e)                         at System.EventHandler.Invoke(Object sender, EventArgs e)                         at GTA.Script.TryTick()                         at GTA.Script.DoTick()                         at GTA.ScriptThread.OnTick()2011-05-27 18:18:13 - Error during Tick in script 'Test.EPM4':                      System.IndexOutOfRangeException: Index was outside the bounds of the array.                         at Test.EPM4.GetLightsOnOff_Tick(Object sender, EventArgs e)                         at System.EventHandler.Invoke(Object sender, EventArgs e)                         at GTA.Script.TryTick()                         at GTA.Script.DoTick()                         at GTA.ScriptThread.OnTick()2011-05-27 18:18:13 - Error during Tick in script 'Test.EPM5':                      System.IndexOutOfRangeException: Index was outside the bounds of the array.                         at Test.EPM5.GetLightsOnOff_Tick(Object sender, EventArgs e)                         at System.EventHandler.Invoke(Object sender, EventArgs e)                         at GTA.Script.TryTick()                         at GTA.Script.DoTick()                         at GTA.ScriptThread.OnTick()2011-05-27 18:18:13 - Error during Tick in script 'Test.EPM0':                      System.IndexOutOfRangeException: Index was outside the bounds of the array.                         at Test.EPM0.GetLightsOnOff_Tick(Object sender, EventArgs e)                         at System.EventHandler.Invoke(Object sender, EventArgs e)                         at GTA.Script.TryTick()                         at GTA.Script.DoTick()                         at GTA.ScriptThread.OnTick()

 

???

Link to comment
Share on other sites

  • 9 months later...
ericericeric888

Hi, I have the same problem with Exxon (game crash after loading into the game), I am also using game version 1.0.4.0 and Scripthook 0.4.0. I followed the instructions above , however, when I use ScripthookDotNet 1.7.1.7 Beta instead of the older version ScripthookDotNet, the game crashes immediately after I start the gta IV.exe............ cryani.gif Does anyone know what is my problem?

Link to comment
Share on other sites

lamar_mustapha

 

Index was outside the bounds of the array.

 

 

the code is written poorly

Edited by lamar_mustapha
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.