Pages

Monday, November 18, 2013

[TUT] Scripthook installation - Manual setup - GTA iV

To manually set up the ScriptHook we want to determine and copy some files.

Ahead of commence, make certain that you have installed:
  • Microsoft .Net Framework 4.
  • Microsoft Visual C++ 2010 Redistributable Package (x86)
  • At least game patch 1..four. installed
Source: http://www.gtaforums.com/index.php?showtopic=392325


Let me explain how it operates:

  1. ASI loader is loaded by game since game "thinks" that is a normal dsound.dll file
  2. ASI loader loads any file that is in GTAIV.exe folder that ends with .asi (extension .asi)
  3. The ScriptHookDotNet.asi is loaded by the ASI loader 
  4. ScriptHookDotNet.asi loads the ScriptHook.dll file
  5. ScriptHook.dll loads any .net.dll, .vb or .cs file that is inside the Scripts folder

Let's start with the ASI loader, in my mods its the file dsound.dll, it have to be copied to GTAIV.exe file folder:


We need to do the very same with the following files: NAudio.dll, ScriptHook.dll, ScriptHookDotNet.asi, if your GTA have patch 1..four. or decrease you want to copy the file ScriptHook.dll.four rather of ScriptHook.dll and paste in GTAIV.exe folder and rename from ScriptHook.dll.four to ScriptHook.dll:


Now we copy the Scripts folder from the ZIP and paste in GTAIV.exe folder:


If you run the game without administrator rights you may possibly obtain an error message indicating the file asilog.txt, in this case you need to have to verify if the file exists in your GTAIV.exe folder and create it if necessary using notepad for example.



Now let's test the ScriptHook, open the game, load an save game and when your character is on screen press ' or ~, a black window should appear, this indicates that the ScriptHook was loaded:


Done! Now you can drag to Scripts folder any .net script for GTA IV :)



Other mod files

Some mods like Dual wielding goes with files that must be added to .img game files making use of OpenIV or SparkIV, if it really is a animation (.wad extension) it need to be inserted in the anim.img file (animanim.img), if it really is a weapon it need to be inserted in the weapons.img (modelscdimagesweapons.img), if it really is a ped it should be inserted in the componentpeds.img (modelscdimagescomponentpeds.img), if it's a playerped.rpf file it have to replace the playerped.rpf file (modelscdimagesplayerped.rpf), constantly enable the Edit Mode ahead of insert any file and do this with the game closed, you can export the original game files prior to to make backups.



Troubleshooting

  • My game don't load any longer
You almost certainly have an problem with the ASI loader, remove the dsound.dll file from GTAIV.exe folder and see if the game opens once more. Now try o uncover yet another ASI loader version, gtaforums is a very good selection to search for this sort of file.
If you are operating the game without having admin rights perhaps you will get an error message indicating that the file asilog.txt can't be designed, in this case you can try to run the game as admin using right click or manually produce the asilog.txt file and saving inside gtaiv.exe folder 

  • My game crash at loading screen
This is almost certainly connected to wrong ScriptHook.dll version, make confident that you select the appropriate ScriptHook based in your  patch version.

  • Black window never seem 
ScriptHook or ASI loader failed in the startup, try other ScriptHook or ASI loader versions

  •  The mod menu never seem when i press Insert
This can be a situation with the ScriptHook version, send to me the ScriptHook.log file :) 
[TUT] Scripthook installation - Manual setup - GTA iV
9out of 10 based on 10 ratings. 9 user reviews.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.