Quantcast

Jump to content

» «
Photo

ScriptHookDotNet Crashes

7 replies to this topic
Exxon
  • Exxon

    The Obvious Child

  • Members
  • Joined: 11 Oct 2010

#1

Posted 27 May 2011 - 03:25 PM

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
CODE
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

icelaglace
  • icelaglace

    See futures in balls

  • Members
  • Joined: 04 May 2011

#2

Posted 27 May 2011 - 03:27 PM

QUOTE (Exxon @ May 27 2011, 15:25)
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
CODE
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.


Exxon
  • Exxon

    The Obvious Child

  • Members
  • Joined: 11 Oct 2010

#3

Posted 27 May 2011 - 03:47 PM

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)?

icelaglace
  • icelaglace

    See futures in balls

  • Members
  • Joined: 04 May 2011

#4

Posted 27 May 2011 - 03:53 PM

http://www.gtaforums...howtopic=392325

smile.gif

Exxon
  • Exxon

    The Obvious Child

  • Members
  • Joined: 11 Oct 2010

#5

Posted 27 May 2011 - 03:56 PM

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

Exxon
  • Exxon

    The Obvious Child

  • Members
  • Joined: 11 Oct 2010

#6

Posted 27 May 2011 - 04:14 PM

When I put EPM in it, I get this error:
CODE
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()

???

ericericeric888
  • ericericeric888

    Player Hater

  • Members
  • Joined: 16 Feb 2011

#7

Posted 25 March 2012 - 09:10 AM

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?

lamar_mustapha
  • lamar_mustapha

    Player Hater

  • BUSTED!
  • Joined: 17 Mar 2012

#8

Posted 26 March 2012 - 04:52 PM Edited by lamar_mustapha, 26 March 2012 - 04:56 PM.

CODE
Index was outside the bounds of the array.


the code is written poorly




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users