Jump to content

Recommended Posts

Big thanks to Aru, Listener, and GOD!! cookie.gif  cookie.gif  cookie.gif

Big thanks to:

 

Aru ... YES!

Listener ... YES!

God ... UMM NO! Dude, god couldn't even write the bible. So man had to write that crappy teaching instead! lol

 

Most people don't know this but there cannot be an effect without a cause. It is a law! Termed "The Mystic Law".

Meaning, god can't create itself out of nothingness. Meaning, god is not real! That's why there's still no proof! Hmmmm,

I'm looking around my whole life and wow I still don't see any proof --> rolleyes.gif WOW Not Even A Single Shred of Evidence Either.

 

But life forms like people are real! Like Aru, Listener and Everyone Else out there who makes Video Game Life better with mods ...

 

Thankyou so much for your great cause! My fav mod so far is NetKick! To KICK the Cheaters OUT of the GAME! Fair Play = Game ON!

...

 

 

 

 

 

mystic law?

 

 

 

 

your f*ckin kidding right?

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059815334
Share on other sites

XxXDeltaXxX

 

Hi everyone, i am having a bit of troubles with running this when i go to play multiplayer, I have GTA 4 Patch 5 (1.0.0.4/1.0.5.0) and latest scripthook, it works fine in singleplayer but when I try to use multiplayer I get "The connection to LIVE was lost. Returning to singleplayer." (Tested on LAN Free Mode) but if I remove scripthook.dll multiplayer works with no errors. I am also using the file check fix so if it is supposed to be blocked i should be able to use it.

Any ideas on how i can get it working?

 

Edit: I am using Windows 7 x64.

I've got the same issue...

 

Vista x64.

 

Trainer works in single player, but i get that message when trying to connect to multiplayer.

 

Edit . it did work fine for quite a while, then my broadband had issues, hub set the NAT to something strict (got kicked a few times). Now I've put NAT to open, it just displays that message - connection lost confused.gif

Edited by XxXDeltaXxX
Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059817881
Share on other sites

  • 2 weeks later...

Playing around with GetPositionOfAnalogueSticks(u32 padIndex, u32 *pLeftX, u32 *pLeftY, u32 *pRightX, u32 *pRightY)

 

I noticed that each axis variable are actually set to a value between -128 and 127

(or it might have been between -127 and 128) so they should be signed integers as in

 

static void GetPositionOfAnalogueSticks(u32 padIndex, i32 *pLeftX, i32 *pLeftY, i32 *pRightX, i32 *pRightY)

 

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059830997
Share on other sites

  • 2 weeks later...

 

I've been stuck on this for over a month, and although I've made some improvements, I have yet to experience a breakthrough:

 

I've tried looping through 10000 car IDs (Vehicle = u32) every tick. (The performance impact doesn't seem to be all that noticeable -- for me anyway), but the trouble is that the car IDs can reach up to 20000, so if I'm only checking for IDs up to 10000, a LOT -- actually most -- of the cars I need to detect are simply ignored. Now, if I was to loop through 20000, ALL the cars are ignored.

 

So my question would be: is there any efficient way of getting the IDs of all the cars in single player?

 

 

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059848011
Share on other sites

DaRkMiLlEnIuM
I've been stuck on this for over a month, and although I've made some improvements, I have yet to experience a breakthrough:

 

I've tried looping through 10000 car IDs (Vehicle = u32) every tick. (The performance impact doesn't seem to be all that noticeable -- for me anyway), but the trouble is that the car IDs can reach up to 20000, so if I'm only checking for IDs up to 10000, a LOT -- actually most -- of the cars I need to detect are simply ignored. Now, if I was to loop through 20000, ALL the cars are ignored.

 

So my question would be: is there any efficient way of getting the IDs of all the cars in single player?

I don't know anything about C++, but from what I can tell, 20000 = all cars ignored, 10000 = less cars ignored. Might the code be backwards and instead of increasing the number, you need to decrease it?

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059850332
Share on other sites

Ok, got so far as creating the pickup with a blip. However when I walk into it, it doesn't get triggered. Tried 2 different approaches:

 

  if (HasPlayerCollectedPickup(GetPlayer(), pickup1)) { 	LogInfo("Pickup entered ID"); 	PrintStringWithLiteralStringNow("string", "pickup collected", 3000, 1); } if (HasPickupBeenCollected(pickup1) && DoesPickupExist(pickup1)) { 	LogInfo("Pickup entered ID 2"); 	PrintStringWithLiteralStringNow("string", "pickup collected", 3000, 1); }

 

This code is just before the Waint in CustomFiberThread::RunScript()

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059863711
Share on other sites

Here are some natives I implemented and tested from the ScriptingDirty.h file.

Hope this gets to you in time for the next update.

 

 

     static void SetObjectAsStealable(Object object, int toggle) { NativeInvoke::Invoke<scriptVoid>("SET_OBJECT_AS_STEALABLE", object, toggle); }   static void GetWeaponTypeSlot(eWeapon weapon, u32 * slotType) { NativeInvoke::Invoke<scriptVoid>("GET_WEAPONTYPE_SLOT", weapon, slotType); }   static void TaskPickupAndCarryObject(Ped ped, Object targetObject, ScriptAny p2, ScriptAny p3, ScriptAny p4, ScriptAny p5) { NativeInvoke::Invoke<scriptVoid>"TASK_PICKUP_AND_CARRY_OBJECT", ped, targetObject, p2, p3, p4, p5); }   static void GivePedPickupObject(Ped ped, Object targetObject, ScriptAny p2) { NativeInvoke::Invoke<scriptVoid>("GIVE_PED_PICKUP_OBJECT", ped, targetObject, p2); }   static void SetPedAlpha(Ped ped, u32 alpha) { NativeInvoke::Invoke<scriptVoid>("SET_PED_ALPHA", ped, alpha); }   static b8 IsGameKeyboardKeyPressed(u32 key) {return NativeInvoke::Invoke<NATIVE_IS_GAME_KEYBOARD_KEY_PRESSED, b8>(key); }   static void SetPedDontDoEvasiveDives(Ped ped, b8 toggle) { NativeInvoke::Invoke<scriptVoid>("SET_PED_DONT_DO_EVASIVE_DIVES", ped, toggle); }

 

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059875416
Share on other sites

NTAuthority
Hey, aru! Are you going to update ScriptHook for work with patch 1.0.6.0 and EFLC? There weren't any news yet.

Well, obviously he will. wink.gif

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059878467
Share on other sites

Updated first post with new version (0.5.0) to support new patch/EFLC. A big special thanks to sjaak327 for his testing efforts.

 

Whats New in 0.5.0

 

- Added support for GTAIV 1.0.6.0 and EFLC 1.1.1.0.

- Enabled MP on all unranked modes, however your multiplayer session will be isolated from people not using mods.

- Fixed bug with text flickering when using ScriptThread/NativeFiberThread

- Fixed bug with crashing when going in/out of video editor

 

Link to download on first post.

 

I'm not updating the SDK for now... the old SDK can still be used to compile, it just needs the latest runtime ScriptHook.dll. However, there is an updated DevLoader that works with 0.5.0 that is also available on the first post.

 

Have fun!

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059878635
Share on other sites

 

can any1 veryfy if the download link workis im getting 404 error

Link works fine for me,however, here is a alternativ Mirror:

 

GTA IV C++ Script Hook Version 0.5.0 Rev.1 (Redistributable) (Apr 16 2010) by aru

DL: Click for Download

 

GTA IV C++ Script Hook Version 0.4.0 (Development Kit) (Apr 16 2010) by aru

DL: Click for Download

Edited by SPYFAN
Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059878789
Share on other sites

for some reason scripthook will not load for me sad.gif i had the same issue with the mmghook i get no scripthook log

heres what my asi log looks like

 

 

 

// -- GTA IV ASI LOADER LOG -- //

//-- © Alexander Blade 2008 -- //

C:\Windows\system32\dsound.dll is loaded, address 0x6D450000

Hooking dsound proc named "DirectSoundCreate"

"DirectSoundCreate" hooked, address 0x6D457E3D

Hooking dsound proc named "DirectSoundEnumerateA"

"DirectSoundEnumerateA" hooked, address 0x6D49D993

Hooking dsound proc named "DirectSoundEnumerateW"

"DirectSoundEnumerateW" hooked, address 0x6D49D9B0

Hooking dsound proc named "DllCanUnloadNow"

"DllCanUnloadNow" hooked, address 0x6D4841BB

Hooking dsound proc named "DllGetClassObject"

"DllGetClassObject" hooked, address 0x6D457792

Hooking dsound proc named "DirectSoundCaptureCreate"

"DirectSoundCaptureCreate" hooked, address 0x6D49D2C5

Hooking dsound proc named "DirectSoundCaptureEnumerateA"

"DirectSoundCaptureEnumerateA" hooked, address 0x6D49D9CD

Hooking dsound proc named "DirectSoundCaptureEnumerateW"

"DirectSoundCaptureEnumerateW" hooked, address 0x6D49D9EA

Hooking dsound proc named "GetDeviceID"

"GetDeviceID" hooked, address 0x6D49D160

Hooking dsound proc named "DirectSoundFullDuplexCreate"

"DirectSoundFullDuplexCreate" hooked, address 0x6D49D429

Hooking dsound proc named "DirectSoundCreate8"

"DirectSoundCreate8" hooked, address 0x6D48DE69

Hooking dsound proc named "DirectSoundCaptureCreate8"

"DirectSoundCaptureCreate8" hooked, address 0x6D49D371

Loading ASI C:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV\Trainer.asi

ASI loaded : C:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV\Trainer.asi, Address 0x00000000

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059878886
Share on other sites

Ok, now this is getting serious, i updated my GTA to 1.0.6 and i have only these mods installed:

1. The newest scripthook (No .log file)

2. The newest Xliveless (.log file exists)

3. Awwu's InGame Trainer

 

The scripthook isn't working. When i go ingame and i try to use the trainer, nothing happens, NOTHING. What is the problem??? It is just like it wouldn't work at all, it doesnt hook up to the GTA...

Edited by Teo265
Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059879910
Share on other sites

Luc 12345678

I also have a problem with the scripthook, it doesn't seem to load at all.

Also it doesn't generate a log, while the Asiloader (Dsound.dll for 1.0.3.0) actually does generate a log.

I use the scripthook.dll dating from 16 April 2010 - 3:42:48

It seems the problem is not coming from the Asiloader itself, since mmgHook runs perfectly with all it's scripts.

 

Here is the asilog:

 

 

// -- GTA IV ASI LOADER LOG -- ////-- © Alexander Blade 2008 -- //C:\WINDOWS\system32\dsound.dll is loaded, address 0x73E80000Hooking dsound proc named "DirectSoundCreate""DirectSoundCreate" hooked, address 0x73E8473BHooking dsound proc named "DirectSoundEnumerateA""DirectSoundEnumerateA" hooked, address 0x73EA708DHooking dsound proc named "DirectSoundEnumerateW""DirectSoundEnumerateW" hooked, address 0x73EA70AAHooking dsound proc named "DllCanUnloadNow""DllCanUnloadNow" hooked, address 0x73EABE61Hooking dsound proc named "DllGetClassObject""DllGetClassObject" hooked, address 0x73E909C5Hooking dsound proc named "DirectSoundCaptureCreate""DirectSoundCaptureCreate" hooked, address 0x73EA68BBHooking dsound proc named "DirectSoundCaptureEnumerateA""DirectSoundCaptureEnumerateA" hooked, address 0x73EA70C7Hooking dsound proc named "DirectSoundCaptureEnumerateW""DirectSoundCaptureEnumerateW" hooked, address 0x73EA70E4Hooking dsound proc named "GetDeviceID""GetDeviceID" hooked, address 0x73EA6D42Hooking dsound proc named "DirectSoundFullDuplexCreate""DirectSoundFullDuplexCreate" hooked, address 0x73EA6A32Hooking dsound proc named "DirectSoundCreate8""DirectSoundCreate8" hooked, address 0x73EA67F5Hooking dsound proc named "DirectSoundCaptureCreate8""DirectSoundCaptureCreate8" hooked, address 0x73EA696FLoading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\NixoMod2.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\NixoMod2.asi, Address 0x10000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Nos.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Nos.asi, Address 0x00000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\servMods.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\servMods.asi, Address 0x0A930000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\SimpleCarSpawner1.2.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\SimpleCarSpawner1.2.asi, Address 0x0AA20000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Skylift.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Skylift.asi, Address 0x00000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Trainer.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Trainer.asi, Address 0x00000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\VehicleSelector.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\VehicleSelector.asi, Address 0x00000000

 

 

Nixomod, Simplecarspawner run via mmgHook, everything looks and works fine.

But the scripts that need to run via scripthook: Nos, Skylift, Trainer (SNT 5.3), and Vehicle selector do not load at all, and the addresses of the scripts via scripthook are all 0x00000000, while mmgHook's scripts all have differend addresses and running fine.

 

I also have tried Sjaak327's trainer without anything else than scripthook.dll and the Asiloader, but the address 0x00000000 doesn't change, and I bet it also applies to other scripts if I try to run them without anything else.

 

I hope it's usefull information.

Good luck fixing it.

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059879972
Share on other sites

I also have a problem with the scripthook, it doesn't seem to load at all.

Also it doesn't generate a log, while the Asiloader (Dsound.dll for 1.0.3.0) actually does generate a log.

I use the scripthook.dll dating from 16 April 2010 - 3:42:48

It seems the problem is not coming from the Asiloader itself, since mmgHook runs perfectly with all it's scripts.

 

Here is the asilog:

 

 

// -- GTA IV ASI LOADER LOG -- ////-- © Alexander Blade 2008 -- //C:\WINDOWS\system32\dsound.dll is loaded, address 0x73E80000Hooking dsound proc named "DirectSoundCreate""DirectSoundCreate" hooked, address 0x73E8473BHooking dsound proc named "DirectSoundEnumerateA""DirectSoundEnumerateA" hooked, address 0x73EA708DHooking dsound proc named "DirectSoundEnumerateW""DirectSoundEnumerateW" hooked, address 0x73EA70AAHooking dsound proc named "DllCanUnloadNow""DllCanUnloadNow" hooked, address 0x73EABE61Hooking dsound proc named "DllGetClassObject""DllGetClassObject" hooked, address 0x73E909C5Hooking dsound proc named "DirectSoundCaptureCreate""DirectSoundCaptureCreate" hooked, address 0x73EA68BBHooking dsound proc named "DirectSoundCaptureEnumerateA""DirectSoundCaptureEnumerateA" hooked, address 0x73EA70C7Hooking dsound proc named "DirectSoundCaptureEnumerateW""DirectSoundCaptureEnumerateW" hooked, address 0x73EA70E4Hooking dsound proc named "GetDeviceID""GetDeviceID" hooked, address 0x73EA6D42Hooking dsound proc named "DirectSoundFullDuplexCreate""DirectSoundFullDuplexCreate" hooked, address 0x73EA6A32Hooking dsound proc named "DirectSoundCreate8""DirectSoundCreate8" hooked, address 0x73EA67F5Hooking dsound proc named "DirectSoundCaptureCreate8""DirectSoundCaptureCreate8" hooked, address 0x73EA696FLoading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\NixoMod2.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\NixoMod2.asi, Address 0x10000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Nos.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Nos.asi, Address 0x00000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\servMods.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\servMods.asi, Address 0x0A930000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\SimpleCarSpawner1.2.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\SimpleCarSpawner1.2.asi, Address 0x0AA20000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Skylift.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Skylift.asi, Address 0x00000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Trainer.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Trainer.asi, Address 0x00000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\VehicleSelector.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\VehicleSelector.asi, Address 0x00000000

 

 

Nixomod, Simplecarspawner run via mmgHook, everything looks and works fine.

But the scripts that need to run via scripthook: Nos, Skylift, Trainer (SNT 5.3), and Vehicle selector do not load at all, and the addresses of the scripts via scripthook are all 0x00000000, while mmgHook's scripts all have differend addresses and running fine.

 

I also have tried Sjaak327's trainer without anything else than scripthook.dll and the Asiloader, but the address 0x00000000 doesn't change, and I bet it also applies to other scripts if I try to run them without anything else.

 

I hope it's usefull information.

Good luck fixing it.

i actually had the same problem with the mmghook asilog.txt shoew simplecarspawner adress 0x0000000. this is very strange seems alot of people have the same problem

 

im on win7 home premium 64bit if it makes any difference

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059880033
Share on other sites

I also have a problem with the scripthook, it doesn't seem to load at all.

Also it doesn't generate a log, while the Asiloader (Dsound.dll for 1.0.3.0) actually does generate a log.

I use the scripthook.dll dating from 16 April 2010 - 3:42:48

It seems the problem is not coming from the Asiloader itself, since mmgHook runs perfectly with all it's scripts.

 

Here is the asilog:

 

 

// -- GTA IV ASI LOADER LOG -- ////-- © Alexander Blade 2008 -- //C:\WINDOWS\system32\dsound.dll is loaded, address 0x73E80000Hooking dsound proc named "DirectSoundCreate""DirectSoundCreate" hooked, address 0x73E8473BHooking dsound proc named "DirectSoundEnumerateA""DirectSoundEnumerateA" hooked, address 0x73EA708DHooking dsound proc named "DirectSoundEnumerateW""DirectSoundEnumerateW" hooked, address 0x73EA70AAHooking dsound proc named "DllCanUnloadNow""DllCanUnloadNow" hooked, address 0x73EABE61Hooking dsound proc named "DllGetClassObject""DllGetClassObject" hooked, address 0x73E909C5Hooking dsound proc named "DirectSoundCaptureCreate""DirectSoundCaptureCreate" hooked, address 0x73EA68BBHooking dsound proc named "DirectSoundCaptureEnumerateA""DirectSoundCaptureEnumerateA" hooked, address 0x73EA70C7Hooking dsound proc named "DirectSoundCaptureEnumerateW""DirectSoundCaptureEnumerateW" hooked, address 0x73EA70E4Hooking dsound proc named "GetDeviceID""GetDeviceID" hooked, address 0x73EA6D42Hooking dsound proc named "DirectSoundFullDuplexCreate""DirectSoundFullDuplexCreate" hooked, address 0x73EA6A32Hooking dsound proc named "DirectSoundCreate8""DirectSoundCreate8" hooked, address 0x73EA67F5Hooking dsound proc named "DirectSoundCaptureCreate8""DirectSoundCaptureCreate8" hooked, address 0x73EA696FLoading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\NixoMod2.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\NixoMod2.asi, Address 0x10000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Nos.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Nos.asi, Address 0x00000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\servMods.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\servMods.asi, Address 0x0A930000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\SimpleCarSpawner1.2.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\SimpleCarSpawner1.2.asi, Address 0x0AA20000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Skylift.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Skylift.asi, Address 0x00000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Trainer.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Trainer.asi, Address 0x00000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\VehicleSelector.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\VehicleSelector.asi, Address 0x00000000

 

 

Nixomod, Simplecarspawner run via mmgHook, everything looks and works fine.

But the scripts that need to run via scripthook: Nos, Skylift, Trainer (SNT 5.3), and Vehicle selector do not load at all, and the addresses of the scripts via scripthook are all 0x00000000, while mmgHook's scripts all have differend addresses and running fine.

 

I also have tried Sjaak327's trainer without anything else than scripthook.dll and the Asiloader, but the address 0x00000000 doesn't change, and I bet it also applies to other scripts if I try to run them without anything else.

 

I hope it's usefull information.

Good luck fixing it.

my pc is running under Win7. I have ASIloader, latest scripthook and simple native trainer 5.3 and EVERYTHING works perfect smile.gif

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059880044
Share on other sites

Luc 12345678

I'm saying thanks to Sjaak and Aru for their time, the problem is solved for me, so I guess it's fixed for everyone, everything runs fine now:

 

 

// -- GTA IV ASI LOADER LOG -- ////-- © Alexander Blade 2008 -- //C:\WINDOWS\system32\dsound.dll is loaded, address 0x73E80000Hooking dsound proc named "DirectSoundCreate""DirectSoundCreate" hooked, address 0x73E8473BHooking dsound proc named "DirectSoundEnumerateA""DirectSoundEnumerateA" hooked, address 0x73EA708DHooking dsound proc named "DirectSoundEnumerateW""DirectSoundEnumerateW" hooked, address 0x73EA70AAHooking dsound proc named "DllCanUnloadNow""DllCanUnloadNow" hooked, address 0x73EABE61Hooking dsound proc named "DllGetClassObject""DllGetClassObject" hooked, address 0x73E909C5Hooking dsound proc named "DirectSoundCaptureCreate""DirectSoundCaptureCreate" hooked, address 0x73EA68BBHooking dsound proc named "DirectSoundCaptureEnumerateA""DirectSoundCaptureEnumerateA" hooked, address 0x73EA70C7Hooking dsound proc named "DirectSoundCaptureEnumerateW""DirectSoundCaptureEnumerateW" hooked, address 0x73EA70E4Hooking dsound proc named "GetDeviceID""GetDeviceID" hooked, address 0x73EA6D42Hooking dsound proc named "DirectSoundFullDuplexCreate""DirectSoundFullDuplexCreate" hooked, address 0x73EA6A32Hooking dsound proc named "DirectSoundCreate8""DirectSoundCreate8" hooked, address 0x73EA67F5Hooking dsound proc named "DirectSoundCaptureCreate8""DirectSoundCaptureCreate8" hooked, address 0x73EA696FLoading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\NixoMod2.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\NixoMod2.asi, Address 0x10000000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Nos.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Nos.asi, Address 0x0A5B0000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\servMods.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\servMods.asi, Address 0x0A780000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\SimpleCarSpawner1.2.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\SimpleCarSpawner1.2.asi, Address 0x0A7C0000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Skylift.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Skylift.asi, Address 0x0A800000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Trainer.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Trainer.asi, Address 0x0A840000Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\VehicleSelector.asiASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\VehicleSelector.asi, Address 0x0AC00000

 

 

And scripthook now finnaly generated a log file:

 

 

Log start: Sat Apr 17 14:57:13 2010-----------------------------------------------[iNFO] GTA IV Script Hook 0.5.0 - © 2009, Aru - Initialized[iNFO] Process base address: 0x400000[iNFO] Auto detecting game version[iNFO] Using game version 1.0.6[iNFO] [Nos] Thread started[iNFO] [skyLift] Thread started[iNFO] [simpleTrainer] Thread started[iNFO] [VehicleSelector] Thread started[iNFO] Loading car stats[iNFO] [VehicleSelector] Thread killed[iNFO] [simpleTrainer] Thread killed[iNFO] [skyLift] Thread killed[iNFO] [Nos] Thread killed[iNFO] Script Hook - Shutdown

 

 

 

Here is the link to the latest Scripthook.dll: http://aru.mtasa.com/gta4/GTAIVScriptHook_...ist_r1_alt2.zip

 

Can also be found in Sjaak327's Trainer thread: http://www.gtaforums.com/index.php?showtop...st&p=1059880040

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059880073
Share on other sites

When I patched my game my mod started crashing.

I am using Win 7 64 Bit and the Steam version of GTAIV.

I am using the r1_alt2 version of ScriptHook Luc 12345678 posted (before it wouldn't detect version and stopped logging)

 

The log says

 

 

Log start: Sat Apr 17 11:13:43 2010-----------------------------------------------[iNFO] GTA IV Script Hook 0.5.0 - © 2009, Aru - Initialized[iNFO] Process base address: 0x1390000[iNFO] Auto detecting game version[iNFO] Using game version 1.0.6[ERROR] Native function with hash 0xa4ea0691 is not available.[ERROR] Native function with hash 0xa4ea0691 is not available.[ERROR] Native function with hash 0xa4ea0691 is not available.[ERROR] Native function with hash 0xa4ea0691 is not available.[ERROR] Native function with hash 0xa4ea0691 is not available.[ERROR] Native function with hash 0xa4ea0691 is not available.[ERROR] Native function with hash 0xa4ea0691 is not available.[ERROR] Native function with hash 0xa4ea0691 is not available.[ERROR] Native function with hash 0xa4ea0691 is not available.[ERROR] Native function with hash 0xa4ea0691 is not available.[ERROR] Native function with hash 0xa4ea0691 is not available.

 

 

When I look that up in ScriptingNatives.h I see

NATIVE_GET_GAME_TIMER = 0xa4ea0691,

 

 

Is this something that needs to be implemented in ScriptHook.dll or is access to this native lost with the current patch ?

 

 

Link to comment
https://gtaforums.com/topic/390582-c-script-hook/page/45/#findComment-1059880299
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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