Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

Script Hook V


Alexander Blade
 Share

Recommended Posts

InfamousSabre

Is it not possible to return the Pickups themselves?

 

Yeah it returns pickup objects which exist in the game's world .

 

So it looks like WorldGetAllPickups does not actually return Pickups. Instead, it returns the Entities belonging to those Pickups. This makes no difference for what I need it for at the moment, but it does mean that natives that take a Pickup as a parameter will not work. for example, using anything returned by WorldGetAllPickups with OBJECT::DOES_PICKUP_EXIST will return 0.

 

Link to comment
Share on other sites

For starters I am very new to modding, literally the first game Ive modded so please bare with me..


The game consistently crashes while loading story mode by the 3rd loading screen. Just says GTA5 has stopped. Under windows application event veiwer It shows


Faulting application name: GTA5.exe, version: 1.0.617.1, time stamp: 0x56a0f7f2

Faulting module name: GTA5.exe, version: 1.0.617.1, time stamp: 0x56a0f7f2

Exception code: 0xc0000005

Fault offset: 0x000000000119b73c

Faulting process id: 0x958

Faulting application start time: 0x01d177e5e1f2ca65

Faulting application path: E:\Steam\Games\steamapps\common\Grand Theft Auto V\GTA5.exe

Faulting module path: E:\Steam\Games\steamapps\common\Grand Theft Auto V\GTA5.exe

Report Id: 49b8d5ed-e3d9-11e5-9b9f-5cf370625a29



ASI log



// GTA V ASI LOADER (build May 2 2015)

// © Alexander Blade 2015

LIB: "C:\Windows\system32\dinput8.dll" => 000007FEEB540000

API: "DirectInput8Create" => 000007FEEB544820

API: "DllCanUnloadNow" => 000007FEEB5520DC

API: "DllGetClassObject" => 000007FEEB552014

API: "DllRegisterServer" => 000007FEEB561050

API: "DllUnregisterServer" => 000007FEEB561064

LOADER: Loading *.asi plugins

ASI: Loading "E:\Steam\Games\steamapps\common\Grand Theft Auto V\J10RailroadEngineer.asi"

"J10RailroadEngineer.asi" => 000007FEEAC60000

ASI: Loading "E:\Steam\Games\steamapps\common\Grand Theft Auto V\NativeTrainer.asi"

"NativeTrainer.asi" => 000007FEE9930000

ASI: Loading "E:\Steam\Games\steamapps\common\Grand Theft Auto V\openCameraV.asi"

"openCameraV.asi" => 000007FEEB2E0000

ASI: Loading "E:\Steam\Games\steamapps\common\Grand Theft Auto V\OpenIV.asi"

"OpenIV.asi" => 000007FEEA8F0000

ASI: Loading "E:\Steam\Games\steamapps\common\Grand Theft Auto V\RiotMode.asi"

"RiotMode.asi" => 000007FEE98E0000

ASI: Loading "E:\Steam\Games\steamapps\common\Grand Theft Auto V\ScriptHookVDotNet.asi"

"ScriptHookVDotNet.asi" => 000007FEE1A60000

ASI: Loading "E:\Steam\Games\steamapps\common\Grand Theft Auto V\vehicle cannon.asi"

"vehicle cannon.asi" => 000007FEE4910000

LOADER: Finished loading *.asi plugins





Scripthook log



// GTA V SCRIPT HOOK (build Feb 25 2016, v1.0.617.1a)

// © Alexander Blade 2015-2016

[16:25:53] INIT: Started

[16:25:53] INIT: Success, game version is VER_1_0_617_1_STEAM

[16:25:53] INIT: Registering script 'J10RailroadEngineer.asi' (0x000007FEEAC669C0)

[16:25:53] INIT: Registering script 'NativeTrainer.asi' (0x000007FEE993A4F0)

[16:25:53] INIT: Registering script 'RiotMode.asi' (0x000007FEE98E5080)

[16:25:53] INIT: Registering script 'ScriptHookVDotNet.asi' (0x000007FEE1A70700)

[16:25:53] INIT: Registering script 'vehicle cannon.asi' (0x000007FEE49122A0)

[16:25:58] INIT: Pool 1 extended

[16:25:58] INIT: Pool 2 extended

[16:25:58] INIT: Pool 3 extended

[16:25:58] INIT: Pool 4 extended

[16:26:03] INIT: GtaThread collection size 175

[16:26:03] INIT: wnd proc 0x00000000FFFF0D43

[16:26:03] INIT: IDXGISwapChain 0x000007FEF8175AE0 (0x000007FEF819B2F8)

[16:26:03] INIT: IDXGISwapChain set

[16:26:03] INIT: DX init started

[16:26:03] INIT: DX feature level B000

[16:26:03] INIT: DX init succeeded

[16:26:34] UNINIT: Unregistering script 'vehicle cannon.asi'




Not sure what happened or what changed since the last time I played a month ago the game ran flawless. My guess is its the patch update 617/1.32 and I have no Idea how to update the conflicting mods folder/files. If I uninstall ASI loader and OpenIV.ASI in ASI manager the game loads fine. However with ASI and openIV enabled, it shows its on build 573 and online 1.31 and not 617/1.32.


I have updated

OpenIV v2.7

ScriptHookV v1.0617.1

Enhanced Native Trainer v28

dinput8.dll v1.00.1


Any help is greatly appreciated cuz I am over my head and overwhelmed.


Thank you Alex!

Edited by MoPar_Kid
Link to comment
Share on other sites

Alexander Blade

InfamousSabre

Going to look into that .

 

MoPar_Kid

Delete mods/update/update.rpf .

Edited by Alexander Blade
  • Like 1
Link to comment
Share on other sites

InfamousSabre

Going to look into that .

 

MoPar_Kid

Delete mods/update/update.rpf .

Hate to ask what probably seems like a dumb question... Will this effect my existing mods? Probably hard to answer not knowing what mods I have, and I cant remember what I may or may not have changed in the sub folders {obviously something being it was copied to mod folder}. Is there a way to update the rpf without effecting my mods? Would really hate to lose 3+ weeks of work, only to have to do it all over again in a month or so for the next patch :/

Edited by MoPar_Kid
Link to comment
Share on other sites

Alexander Blade

It will affect your mods installed into the update.rpf .

 

 

InfamousSabre

Going to look into that .

 

MoPar_Kid

Delete mods/update/update.rpf .

Hate to ask what probably seems like a dumb question... Will this effect my existing mods? Probably hard to answer not knowing what mods I have, and I cant remember what I may or may not have changed in the sub folders {obviously something being it was copied to mod folder}. Is there a way to update the rpf without effecting my mods? Would really hate to lose 3+ weeks of work, only to have to do it all over again in a month or so for the next patch :/

 

Link to comment
Share on other sites

I tried to dump the memory pattern of pickup pool by patching ScriptHookV.dll to port worldGetAllPickups to Script Hook V .NET, but failed. Would you tell me the pattern? The object pool contains few kind of pickup objects.

Edited by kagikn
Link to comment
Share on other sites

Alexander Blade
InfamousSabre

I've checked pickup placements and they are per thread binded i.e. only the script that created pickup placement may use it .

 

kagikn

There is no pattern there .

Link to comment
Share on other sites

InfamousSabre

I've checked pickup placements and they are per thread binded i.e. only the script that created pickup placement may use it .

kagikn

There is no pattern there .

Well, how worldGetAllPickups find the pickup object pool address? Script Hook V .NET uses the FindPattern method to find pool addresses, such as entity pool address. https://github.com/crosire/scripthookvdotnet/blob/dev/source/core/NativeMemory.cpp Edited by kagikn
Link to comment
Share on other sites

Alexander Blade
kagikn

Direct address .

Link to comment
Share on other sites

InfamousSabre

InfamousSabre

I've checked pickup placements and they are per thread binded i.e. only the script that created pickup placement may use it .

 

kagikn

There is no pattern there .

 

Well thats unfortunate. Do they even return true with DOES_PICKUP_EXIST? Or are they unusable for absolutely everything? (or am I really not understanding?)

Edited by InfamousSabre
Link to comment
Share on other sites

Alexander Blade

They are usable only when created in your script thread i.e. you create that pickup and then you access it , other script threads can't access your pickups and you can't access pickups created by another script threads .

 

 

InfamousSabre

I've checked pickup placements and they are per thread binded i.e. only the script that created pickup placement may use it .

 

kagikn

There is no pattern there .

 

Well thats unfortunate. Do they even return true with DOES_PICKUP_EXIST? Or are they unusable for absolutely everything? (or am I really not understanding?)

 

Link to comment
Share on other sites

cptalpdeniz

Hey Alexander!

 

With the latest update, even with deleting update.rpf from mods, dinput8.dll makes my game crash. Can you help me? How can I solve this issue?

Link to comment
Share on other sites

Alexander Blade

Meaning that some of your mods are incompatible with the latest patch , show the logs .

 

Hey Alexander!

 

With the latest update, even with deleting update.rpf from mods, dinput8.dll makes my game crash. Can you help me? How can I solve this issue?

Link to comment
Share on other sites

cptalpdeniz

I'll show you the logs later today. I have W10 64 bit and even without any mod (only RAGE Plugin Hook and ScripthookV) dinput8.dll makes the game crash. That's the interesting part

Link to comment
Share on other sites

Mr. Blade

I could never play native trainer until today. I met now in February and had never used any mod. I have tryed like 1 month to fix what appears to be a simple error. "The crash while loading screen" . I read a lot of pages here watch videos and try follow instructions but not changes. I updated the update.rpf. I reinstalled this giant game to see the same error. I'm very frustrated now

 

// GTA V SCRIPT HOOK (build Feb 25 2016, v1.0.617.1a)
// © Alexander Blade 2015-2016
[11:43:15] INIT: Started
[11:43:15] INIT: Success, game version is VER_1_0_617_1_STEAM
[11:43:15] INIT: Registering script '11zero11.asi' (0x000007FEE204A1C0)
[11:43:15] INIT: Registering script 'EqualityMenu.asi' (0x000007FEE1DAAF0D)
[11:43:15] INIT: Registering script 'GamertagTest.asi' (0x000007FEEB824910)
[11:43:15] INIT: Registering script 'gtaforce25.asi' (0x000007FEE1CE8020)
[11:43:15] INIT: Registering script 'NativeTrainer.asi' (0x000007FEE94AA4F0)
[11:43:24] INIT: Pool 1 extended
[11:43:24] INIT: Pool 2 extended
[11:43:24] INIT: Pool 3 extended
[11:43:24] INIT: Pool 4 extended
[11:43:30] INIT: GtaThread collection size 175
[11:43:30] INIT: wnd proc 0x00000000FFFF06CB
[11:43:30] INIT: IDXGISwapChain 0x000007FEF8ED5AE0 (0x000007FEF8EFB2F8)
[11:43:30] INIT: IDXGISwapChain set
[11:43:30] INIT: DX init started
[11:43:30] INIT: DX feature level B000
[11:43:30] INIT: DX init succeeded
[11:44:32] CORE: Requesting thread creation
[11:44:32] CORE: Creating threads
[11:44:34] CORE: Started control thread, id 35 active 1
[11:44:34] CORE: Started thread '11zero11.asi' (0x000007FEE204A1C0), id 36 active 1
[11:44:34] CORE: Started thread 'EqualityMenu.asi' (0x000007FEE1DAAF0D), id 37 active 1
[11:44:34] CORE: Started thread 'GamertagTest.asi' (0x000007FEEB824910), id 38 active 1
[11:44:34] CORE: Started thread 'gtaforce25.asi' (0x000007FEE1CE8020), id 39 active 1
[11:44:34] CORE: Started thread 'NativeTrainer.asi' (0x000007FEE94AA4F0), id 40 active 1
[11:44:34] CORE: Launching main() for '11zero11.asi' (0x000007FEE204A1C0), id 36
[11:44:34] CORE: Launching main() for 'EqualityMenu.asi' (0x000007FEE1DAAF0D), id 37
[11:44:34] CORE: Launching main() for 'GamertagTest.asi' (0x000007FEEB824910), id 38
[11:44:34] CORE: Launching main() for 'gtaforce25.asi' (0x000007FEE1CE8020), id 39
[11:44:35] CORE: Launching main() for 'NativeTrainer.asi' (0x000007FEE94AA4F0), id 40
// GTA V ASI LOADER (build May 2 2015)
// © Alexander Blade 2015
LIB: "C:\Windows\system32\dinput8.dll" => 000007FEEF640000
API: "DirectInput8Create" => 000007FEEF644820
API: "DllCanUnloadNow" => 000007FEEF6520DC
API: "DllGetClassObject" => 000007FEEF652014
API: "DllRegisterServer" => 000007FEEF661050
API: "DllUnregisterServer" => 000007FEEF661064
LOADER: Loading *.asi plugins
ASI: Loading "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\11zero11.asi"
"11zero11.asi" => 000007FEE2030000
ASI: Loading "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\EqualityMenu.asi"
"EqualityMenu.asi" => 000007FEE1D30000
ASI: Loading "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\GamertagTest.asi"
"GamertagTest.asi" => 000007FEEB820000
ASI: Loading "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\gtaforce25.asi"
"gtaforce25.asi" => 000007FEE1CC0000
ASI: Loading "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\NativeTrainer.asi"
"NativeTrainer.asi" => 000007FEE94A0000
LOADER: Finished loading *.asi plugins
Link to comment
Share on other sites

Alexander Blade

leovilela

Are you sure that you are not using it Online ? If this is SP you are launching then remove all scripts but NativeTrainer.asi and test again .

Edited by Alexander Blade
Link to comment
Share on other sites

leovilela

Are you sure that you are not using it Online ? If this is SP you are launching then remove all scripts but NativeTrainer.asi and test again .

 

No sir. I never even try to play online with the script. This happen when i try enter the story mod. If i delete only ScriptHookV the game works fine without the native trainer if i delete only dinput8 the game works fine without the native trainer and with the three files together the game stop working on loading screen of story mod

Link to comment
Share on other sites

Alexander Blade

leovilela

Delete all asi but NativeTrainer and test it ! If it will crash then show me the logs again and a screenshot of you game folder contents .

Edited by Alexander Blade
Link to comment
Share on other sites

leovilela

Delete all asi but NativeTrainer and test it ! If it will crash then show me the logs again and a screenshot of you game folder contents .

 

it works after do that!!! thank you so much Alexander Blade.

Link to comment
Share on other sites

cptalpdeniz

Hey Alexander,

 

I tried launching the game only with dinput8.dll and NativeTrainer.asi but still no luck. Still game is crashing.Tried deleting NativeTrainer and use another .asi and it didn't work too. If I delete dinput8.dll, game launches flawlessly.

 

asiloader log:

// GTA V ASI LOADER (build May  2 2015)//     © Alexander Blade 2015LIB: "C:\Windows\system32\dinput8.dll" => 00007FF9786F0000API: "DirectInput8Create" => 00007FF9786FA570API: "DllCanUnloadNow" => 00007FF978709ED0API: "DllGetClassObject" => 00007FF978709FA0API: "DllRegisterServer" => 00007FF978713C50API: "DllUnregisterServer" => 00007FF978713EF0LOADER: Loading *.asi pluginsASI: Loading "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\NativeTrainer.asi"     "NativeTrainer.asi" => 00007FF9716B0000LOADER: Finished loading *.asi plugins

Scripthookv Log:

// GTA V SCRIPT HOOK (build Feb 25 2016, v1.0.617.1a)//     © Alexander Blade 2015-2016[22:35:44] INIT: Started[22:35:44] INIT: Success, game version is VER_1_0_617_1_STEAM[22:35:44] INIT: Registering script 'NativeTrainer.asi' (0x00007FF9716BA4F0)
Edited by cptalpdeniz
Link to comment
Share on other sites

Alexander Blade
cptalpdeniz

And what if you launch without rage plugin hook ?

Link to comment
Share on other sites

cptalpdeniz

It crashes again! This time, Gta 5 has stopped working message pops up. There is something wrong with the logs. It seems scripthookV didn't produce a new log?! (Shows the time -date modified- 2 hours ago which I just did the test)

 

ScripthookV:

// GTA V SCRIPT HOOK (build Feb 25 2016, v1.0.617.1a)//     © Alexander Blade 2015-2016[22:35:44] INIT: Started[22:35:44] INIT: Success, game version is VER_1_0_617_1_STEAM[22:35:44] INIT: Registering script 'NativeTrainer.asi' (0x00007FF9716BA4F0)

Asiloader:

// GTA V ASI LOADER (build May  2 2015)//     © Alexander Blade 2015LIB: "C:\Windows\system32\dinput8.dll" => 00007FF98E400000API: "DirectInput8Create" => 00007FF98E40A570API: "DllCanUnloadNow" => 00007FF98E419ED0API: "DllGetClassObject" => 00007FF98E419FA0API: "DllRegisterServer" => 00007FF98E423C50API: "DllUnregisterServer" => 00007FF98E423EF0LOADER: Loading *.asi pluginsASI: Loading "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\OpenIV.asi"     "OpenIV.asi" => 00007FF98F9B0000LOADER: Finished loading *.asi plugins
Link to comment
Share on other sites

Alexander Blade
cptalpdeniz

You had no OpenIV.asi in the previous log , just reinstall the game , don't use copied folders and install mods by one .

Link to comment
Share on other sites

cptalpdeniz

It's the 6th time I am reinstalling the game and it doesn't change the status. The problem is with the dinput8.dll . There was no OpenIV.asi on the previous log because it was right after a clean reinstall only with Scripthook and dinput8.dll. To keep the game files, I'm using the mods folder which the OpenIV.asi is needed. I'm telling you (actually I told you this several times) I tried it without using any mod and still, dinput8.dll makes the game crash! If I delete the dinput8.dll game works with 100+mods. Please don't tell me to reinstall. There has been an update to game and this problem persists after the update. All the mods I'm using have been updated to work with the latest version so it's not another mod's issue, it's with dinput8.dll.

Edited by cptalpdeniz
Link to comment
Share on other sites

Alexander Blade
cptalpdeniz

Show screenshot of your game folder .

Link to comment
Share on other sites

Alexander Blade

cptalpdeniz

Are using x360ce ? If not then you need to make clean game copy and make sure that it runs fine , then put only script hook binaries there (ScriptHookV.dll , dinput8.dll and NativeTrainer.asi) and check if it will launch , no other mods !

Edited by Alexander Blade
Link to comment
Share on other sites

arewenotmen

EDIT: No longer a problem, see below

 

In the 9 months or so since I did any GTA scripting, has anything happened that stops the reload working nicely?

ENT comes up OK, but once I press Ctrl-R, nothing happens.

 

The following log is me starting the game, pressing Ctrl-R to unload ENT at 20:39, and then pressing it again to load the new one.

// GTA V SCRIPT HOOK (build Feb 25 2016, v1.0.617.1a)//     © Alexander Blade 2015-2016[20:30:06] INIT: Started[20:30:06] INIT: Success, game version is VER_1_0_617_1_STEAM[20:30:06] INIT: Registering script 'EnhancedNativeTrainer.asi' (0x00007FFF06EE3792)[20:31:10] INIT: Pool 1 extended[20:31:10] INIT: Pool 2 extended[20:31:10] INIT: Pool 3 extended[20:31:10] INIT: Pool 4 extended[20:31:16] INIT: GtaThread collection size 175[20:31:16] INIT: wnd proc 0x00000000FFFF0CF5[20:31:16] INIT: IDXGISwapChain 0x00007FFF37633D80 (0x00007FFF375D11A0)[20:31:16] INIT: IDXGISwapChain set[20:31:16] INIT: DX init started[20:31:16] INIT: DX feature level B000[20:31:16] INIT: DX init succeeded[20:32:27] CORE: Requesting thread creation[20:32:27] CORE: Creating threads[20:32:34] CORE: Started control thread, id 27 active 1[20:32:34] CORE: Started thread 'EnhancedNativeTrainer.asi' (0x00007FFF06EE3792), id 28 active 1[20:32:34] CORE: Launching main() for 'EnhancedNativeTrainer.asi' (0x00007FFF06EE3792), id 28[20:32:34] CORE: Creating texture 'C:\Users\Rob\AppData\Local\Temp\GTAV Enhanced Native Trainer\VP_AIRTUG.png', id 0<snip>[20:32:38] CORE: Creating texture 'C:\Users\Rob\AppData\Local\Temp\GTAV Enhanced Native Trainer\VP_COGNOSCENTI2.png', id 178[20:39:44] UNINIT: Unregistering script 'EnhancedNativeTrainer.asi'[20:39:44] CORE: Cleaning texture, id 0<snip>[20:39:46] CORE: Cleaning texture, id 178[20:40:44] INIT: Registering script 'EnhancedNativeTrainer.asi' (0cx00007FFF06EE3792)[20:40:45] CORE: Requesting thread creation

That's it. If I then press it again, to unload the dead ENT instance, I get two more lines:

[20:48:27] UNINIT: Unregistering script 'EnhancedNativeTrainer.asi'[20:48:27] CORE: Requesting thread creation

In terms of my own logs, I'm seeing the DLL process detach and a bunch of stuff happen, so that's working on every unload, but nothing from the second & subsequent attaches.

 

What am I missing?

Edited by arewenotmen
Link to comment
Share on other sites

arewenotmen

Figured it out - was because I was using first person cam in a vehicle to test the Benny's stuff. I never knew that was a restriction until I did a search.

Link to comment
Share on other sites

Yay! ScriptHook is gonna be screwed again. Do backups, guys!

  • Like 3

HHnErXC.png


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
 Share

  • 2 Users Currently Viewing
    1 member, 0 Anonymous, 1 Guest

    • c0d3x94
×
×
  • Create New...

Important Information

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