Quantcast

Jump to content

» «
Photo

[GTAIV|REL|SRC] gompie lua interpreter

24 replies to this topic
grinny
  • grinny

    Stoner

  • Members
  • Joined: 06 Jun 2010

#1

Posted 26 June 2010 - 04:11 PM Edited by grinny, 04 July 2010 - 05:07 AM.

Hi guys,

I just completed my lua interpreter called GOMPIE. I use it for a faster debugging cycle. If you like it leave a message so I know people are interested. The last 3 days the only bugs I've been able to find were in the examples and not in gompie, but this is still alpha quality, so if you find any bugs, post them here. Or better yet, post a fix here, source is included biggrin.gif .

To install, you'll need asiloader and a correct version of scripthook for your game (included is scripthook 0.5.0). Just copy gompie0.1.asi and lua5.1.4.dll to your game directory, make a folder called lua inside your game dir and make sure there's a main.lua in there.

All info on usage is in the readme.

For the examples I created two 'micro-missions'. Hopefully I will create more so they can be combined in different ways to create cool and complex missions easily. If you have a cool micro-mission or some other source
you'd like to share (any language) post them here.

So, enjoy....

Grinny

Edit: I've seem to have made some small mistakes in the examples, I'll fix them next version.

BTW. I suddenly remembered I made this with VS2008.... It MAY have a dependency on the vs2008 redist....
If anyone can confirm this I'll try to remove the dependency. Get it here: vs2008 redistributable



temporary link:

http://www.megafileu.../gompie-0-1-zip

Kucikuc24
  • Kucikuc24

    C/C++ Developer

  • Members
  • Joined: 29 Nov 2009
  • None

#2

Posted 27 June 2010 - 05:46 AM

NICE ! i want to try it soon, pls can you reupload it to other side ? becouse gtagarage long approving mods

Fry200
  • Fry200

    Random member

  • Members
  • Joined: 20 May 2010

#3

Posted 27 June 2010 - 09:58 AM

inlove.gif Strongly that we can try it!

I have a question please. Is it compatible with eflc ?



grinny
  • grinny

    Stoner

  • Members
  • Joined: 06 Jun 2010

#4

Posted 27 June 2010 - 12:32 PM

QUOTE
  NICE ! i want to try it soon, pls can you reupload it to other side ? becouse gtagarage long approving mods


Ok, I uploaded it here awaiting approval:

http://www.megafileu.../gompie-0-1-zip
Nice to know people are interested

QUOTE
I have a question please. Is it compatible with eflc ?


This should be compatible with whatever scripthook is compatible with..... So GTA should be supported up to 1.0.7.0 and efcl 1.1.2.0....

T.r.i.p.
  • T.r.i.p.

    Player Hater

  • Members
  • Joined: 20 Jun 2010

#5

Posted 27 June 2010 - 09:11 PM

Great Work :-)
Did you include all native (gta4) functions like the alice lua interpreter or only those which were used in the original gta4 scripts?
And might you include in gompie to load all lua scripts in the lua folder (I didn't had a look over the source atm sry)?

grinny
  • grinny

    Stoner

  • Members
  • Joined: 06 Jun 2010

#6

Posted 27 June 2010 - 11:20 PM Edited by grinny, 27 June 2010 - 11:34 PM.

All natives should be present

QUOTE
And might you include in gompie to load all lua scripts in the lua folder


It just loads main.lua but if you put some 'require' statements in main.lua it includes your other scripts. smile.gif

If you are talking about running multiple scripts at the same time, this is something I'd like to implement, or maybe a mechanism to start a new thread from lua.... It's not that easy though, since I have only one thread I can easily pass functions as WAIT to the only thread, gompieThread. With multiple threads we'd have to pass a reference to the thread in these functions and pass the reference from c to the script on startup....

Erem
  • Erem

  • Members
  • Joined: 17 Mar 2010

#7

Posted 28 June 2010 - 04:00 AM

Looks interesting, Grinny. I'm running Alice on v1.0.0.4 of the game at the moment, but if I'm ever forced to patch and Alice still hasn't been updated, this could be very useful.

The syntax differs a little from Alice's but it doesn't look like it would be too complicated to convert scripts to run with Gompie. You mentioned in the Alice topic that you might add some compatibilty support for Alice scripts, and it would certainly be nice if it could run existing Lua mods without them having to be rewritten. I'm not sure if that would be possible though, as I see that you and Alexander are using the .b notation to signify different things (binaries and floats respectively).

I've only had a quick read of the example scripts and will have to find the time to try this out properly. So far, though, I'm liking the Log() function and the .i and .f notation which is much more intuitive than .a and .b.

I did spot a small typo in one of the example scripts: In the_meeting.lua, in CHANGE_BLIP_NAME_FROM_ASCII at the end of start_mission() , you have friend_bip instead of friend_b l ip.

ZAZ
  • ZAZ

    Kernlochbohrer

  • Members
  • Joined: 10 Jan 2005
  • European-Union

#8

Posted 28 June 2010 - 05:31 AM

What a surprise but I didn't got it to work.
I have running GTA IV with 7.patch
I installed first sjaak327's trainerv60 to see that dsound.dll and ScriptHook is working,
then copied gompie0.1.asi and lua5.1.4.dll into GTA IV root dir and created a folder named lua,
copied the show_coords.lua from your example folder into Grand Theft Auto IV\lua folder
and renamed the show_coords.lua into main.lua
Then I started the game and ingame I pressed F4 but nothing happend.
The asilog:
CODE
// -- GTA IV ASI LOADER LOG -- //
//-- (C) Alexander Blade 2008 -- //
C:\WINDOWS\system32\dsound.dll is loaded, address 0x73E70000
Hooking dsound proc named "DirectSoundCreate"
"DirectSoundCreate" hooked, address 0x73E7473B
Hooking dsound proc named "DirectSoundEnumerateA"
"DirectSoundEnumerateA" hooked, address 0x73E9708D
Hooking dsound proc named "DirectSoundEnumerateW"
"DirectSoundEnumerateW" hooked, address 0x73E970AA
Hooking dsound proc named "DllCanUnloadNow"
"DllCanUnloadNow" hooked, address 0x73E9BE61
Hooking dsound proc named "DllGetClassObject"
"DllGetClassObject" hooked, address 0x73E809C5
Hooking dsound proc named "DirectSoundCaptureCreate"
"DirectSoundCaptureCreate" hooked, address 0x73E968BB
Hooking dsound proc named "DirectSoundCaptureEnumerateA"
"DirectSoundCaptureEnumerateA" hooked, address 0x73E970C7
Hooking dsound proc named "DirectSoundCaptureEnumerateW"
"DirectSoundCaptureEnumerateW" hooked, address 0x73E970E4
Hooking dsound proc named "GetDeviceID"
"GetDeviceID" hooked, address 0x73E96D42
Hooking dsound proc named "DirectSoundFullDuplexCreate"
"DirectSoundFullDuplexCreate" hooked, address 0x73E96A32
Hooking dsound proc named "DirectSoundCreate8"
"DirectSoundCreate8" hooked, address 0x73E967F5
Hooking dsound proc named "DirectSoundCaptureCreate8"
"DirectSoundCaptureCreate8" hooked, address 0x73E9696F
Loading ASI F:\Grand Theft Auto IV\gompie0.1.asi
ASI loaded : F:\Grand Theft Auto IV\gompie0.1.asi, Address 0x00000000
Loading ASI F:\Grand Theft Auto IV\Trainer.asi
ASI loaded : F:\Grand Theft Auto IV\Trainer.asi, Address 0x10000000


the scripthooklog:
CODE
Log start: Mon Jun 28 07:00:03 2010
-----------------------------------------------
[INFO] GTA IV Script Hook 0.5.1 - (C) 2009, Aru - Initialized
[INFO] Process base address: 0x400000
[INFO] Auto detecting game version
[INFO] Using game version 1.0.7
[INFO] [SimpleTrainer] Thread started
[INFO] [SimpleTrainer] Thread killed
[INFO] [SimpleTrainer] Thread started
[INFO] [SimpleTrainer] Thread killed
[INFO] Script Hook - Shutdown


I tried also the ScriptHook of your download but it didn't work and didn't create any logfile
I tried also to run the lua script with other name, show_coords.lua instead of main.lua but nothing happend

grinny
  • grinny

    Stoner

  • Members
  • Joined: 06 Jun 2010

#9

Posted 28 June 2010 - 03:25 PM

QUOTE (ZAZ @ Jun 28 2010, 05:31)
What a surprise but I didn't got it to work.
I have running GTA IV with 7.patch
I installed first sjaak327's trainerv60 to see that dsound.dll and ScriptHook is working,
then copied gompie0.1.asi and lua5.1.4.dll into GTA IV root dir and created a folder named lua,
copied the show_coords.lua from your example folder into Grand Theft Auto IV\lua folder
and renamed the show_coords.lua into main.lua
Then I started the game and ingame I pressed F4 but nothing happend.
The asilog:
CODE
// -- GTA IV ASI LOADER LOG -- //
//-- (C) Alexander Blade 2008 -- //
C:\WINDOWS\system32\dsound.dll is loaded, address 0x73E70000
Hooking dsound proc named "DirectSoundCreate"
"DirectSoundCreate" hooked, address 0x73E7473B
Hooking dsound proc named "DirectSoundEnumerateA"
"DirectSoundEnumerateA" hooked, address 0x73E9708D
Hooking dsound proc named "DirectSoundEnumerateW"
"DirectSoundEnumerateW" hooked, address 0x73E970AA
Hooking dsound proc named "DllCanUnloadNow"
"DllCanUnloadNow" hooked, address 0x73E9BE61
Hooking dsound proc named "DllGetClassObject"
"DllGetClassObject" hooked, address 0x73E809C5
Hooking dsound proc named "DirectSoundCaptureCreate"
"DirectSoundCaptureCreate" hooked, address 0x73E968BB
Hooking dsound proc named "DirectSoundCaptureEnumerateA"
"DirectSoundCaptureEnumerateA" hooked, address 0x73E970C7
Hooking dsound proc named "DirectSoundCaptureEnumerateW"
"DirectSoundCaptureEnumerateW" hooked, address 0x73E970E4
Hooking dsound proc named "GetDeviceID"
"GetDeviceID" hooked, address 0x73E96D42
Hooking dsound proc named "DirectSoundFullDuplexCreate"
"DirectSoundFullDuplexCreate" hooked, address 0x73E96A32
Hooking dsound proc named "DirectSoundCreate8"
"DirectSoundCreate8" hooked, address 0x73E967F5
Hooking dsound proc named "DirectSoundCaptureCreate8"
"DirectSoundCaptureCreate8" hooked, address 0x73E9696F
Loading ASI F:\Grand Theft Auto IV\gompie0.1.asi
ASI loaded : F:\Grand Theft Auto IV\gompie0.1.asi, Address 0x00000000
Loading ASI F:\Grand Theft Auto IV\Trainer.asi
ASI loaded : F:\Grand Theft Auto IV\Trainer.asi, Address 0x10000000


the scripthooklog:
CODE
Log start: Mon Jun 28 07:00:03 2010
-----------------------------------------------
[INFO] GTA IV Script Hook 0.5.1 - (C) 2009, Aru - Initialized
[INFO] Process base address: 0x400000
[INFO] Auto detecting game version
[INFO] Using game version 1.0.7
[INFO] [SimpleTrainer] Thread started
[INFO] [SimpleTrainer] Thread killed
[INFO] [SimpleTrainer] Thread started
[INFO] [SimpleTrainer] Thread killed
[INFO] Script Hook - Shutdown


I tried also the ScriptHook of your download but it didn't work and didn't create any logfile
I tried also to run the lua script with other name, show_coords.lua instead of main.lua but nothing happend

wow.gif Never had that problem.... But then again I've never tested it with trainer loaded.... It might be that they conflict over the usage of keyboard keys.

Please try again with gompie as the only mod loaded to see if it works.

Did lualog.txt get created? What's in it? To be sure I didn't make an error in the script you could delete every line except the call to Log.

I'm not able to do any test now but I wil tonight

BTW I did all testing with 1.0.6 patch but that shouldn't matter.

ZAZ
  • ZAZ

    Kernlochbohrer

  • Members
  • Joined: 10 Jan 2005
  • European-Union

#10

Posted 28 June 2010 - 06:23 PM

QUOTE (grinny @ Jun 28 2010, 15:25)

wow.gif Never had that problem.... But then again I've never tested it with trainer loaded.... It might be that they conflict over the usage of keyboard keys.

Please try again with gompie as the only mod loaded to see if it works.

Did lualog.txt get created? What's in it? To be sure I didn't make an error in the script you could delete every line except the call to Log.

I'm not able to do any test now but I wil tonight

BTW I did all testing with 1.0.6 patch but that shouldn't matter.

Yes, i tried also without the trainer files.
No lualog.txt
I'm shure that your scripthook only works with 6.patch and your gompie0.1.asi works only with this older scripthook

grinny
  • grinny

    Stoner

  • Members
  • Joined: 06 Jun 2010

#11

Posted 28 June 2010 - 09:10 PM

Hi ZAZ, thanks for testing. It should be compatible with the new version of scripthook because the whole SDK I link to has remained unchanged since scripthook 0.4 (see aru's scripthook thread). So it should work on version 0.4, 0.5 and 0.5.1 without recompiling.
Since you confirmed that mods are working with the new version of scripthook, I decided it was safe to upgrade too. biggrin.gif
So I tried, and got some script to work... Then I tried the show_coords script and found a stupid bug blush.gif , sorry must have included a wrong version in the zip whatsthat.gif .

CODE

mission_name = "Show coords"

player_ped = nil
player_idx = nil

function get_player()
local bla = GET_PLAYER_ID().i
 local pi = CONVERT_INT_TO_PLAYERINDEX(bla)
return pi.p;
end

function get_player_ped()
 local ped = {}
 GET_PLAYER_CHAR(player_idx, ped)
 return ped.p
end


function start_mission()
local x, y, z = {}, {}, {}
player_idx = get_player()
 player_ped = get_player_ped()
 
GET_CHAR_COORDINATES(player_ped, x, y, z)
local msg = "(" .. x.f .. ", " .. y.f .. ", " .. z.f .. ")"
PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", msg, 3000, 1)
Log(msg)
end

function main()
 Trace(true)
 Log("Starting mission: " .. mission_name)
 start_mission()
end

main()


After fixing this little error and saving the above code as $(gta_dir)/lua/main.lua, I ran gta again and after hitting F4 it shows my location on screen.

CODE

// -- GTA IV ASI LOADER LOG -- //
//-- (C) Alexander Blade 2008 -- //
C:\WINDOWS\system32\dsound.dll is loaded, address 0x73E50000
Hooking dsound proc named "DirectSoundCreate"
"DirectSoundCreate" hooked, address 0x73E689F1
Hooking dsound proc named "DirectSoundEnumerateA"
"DirectSoundEnumerateA" hooked, address 0x73E694BF
Hooking dsound proc named "DirectSoundEnumerateW"
"DirectSoundEnumerateW" hooked, address 0x73E694DC
Hooking dsound proc named "DllCanUnloadNow"
"DllCanUnloadNow" hooked, address 0x73E7099F
Hooking dsound proc named "DllGetClassObject"
"DllGetClassObject" hooked, address 0x73E713E6
Hooking dsound proc named "DirectSoundCaptureCreate"
"DirectSoundCaptureCreate" hooked, address 0x73E68B6E
Hooking dsound proc named "DirectSoundCaptureEnumerateA"
"DirectSoundCaptureEnumerateA" hooked, address 0x73E694F9
Hooking dsound proc named "DirectSoundCaptureEnumerateW"
"DirectSoundCaptureEnumerateW" hooked, address 0x73E69516
Hooking dsound proc named "GetDeviceID"
"GetDeviceID" hooked, address 0x73E68FF5
Hooking dsound proc named "DirectSoundFullDuplexCreate"
"DirectSoundFullDuplexCreate" hooked, address 0x73E68CE5
Hooking dsound proc named "DirectSoundCreate8"
"DirectSoundCreate8" hooked, address 0x73E68AA8
Hooking dsound proc named "DirectSoundCaptureCreate8"
"DirectSoundCaptureCreate8" hooked, address 0x73E68C22
Loading ASI h:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV\gompie0.1.asi
ASI loaded : h:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV\gompie0.1.asi, Address 0x10000000


CODE

Log start: Mon Jun 28 22:55:27 2010
-----------------------------------------------
[INFO] GTA IV Script Hook 0.5.1 - (C) 2009, Aru - Initialized
[INFO] Process base address: 0x400000
[INFO] Auto detecting game version
[INFO] Using game version 1.0.7
[INFO] [GompieThread] Thread started
[INFO] [GompieThread] Thread killed
[INFO] Script Hook - Shutdown


CODE

Starting gompiethread
Running script
Starting mission: Show coords
TRACE: Invoking GET_PLAYER_ID
TRACE: Invoking CONVERT_INT_TO_PLAYERINDEX
TRACE: Invoking GET_PLAYER_CHAR
TRACE: Invoking GET_CHAR_COORDINATES
TRACE: Invoking PRINT_STRING_WITH_LITERAL_STRING_NOW
(-423.4811706543, 1496.1514892578, 18.896728515625)
done


I have no idea why it's not working, it should at least create lualog.txt, it's the first thing it does....


grinny
  • grinny

    Stoner

  • Members
  • Joined: 06 Jun 2010

#12

Posted 28 June 2010 - 09:29 PM Edited by grinny, 28 June 2010 - 09:35 PM.

QUOTE
Looks interesting, Grinny.


Thanks, I overlooked your post smile.gif

QUOTE

The syntax differs a little from Alice's but it doesn't look like it would be too complicated to convert scripts to run with Gompie. You mentioned in the Alice topic that you might add some compatibilty support for Alice scripts, and it would certainly be nice if it could run existing Lua mods without them having to be rewritten. I'm not sure if that would be possible though, as I see that you and Alexander are using the .b notation to signify different things (binaries and floats respectively).


Actually:
CODE

gompie:     gta/scripthook type:                        lua type:
i                 int (signed integer 32 bit)                number
u                u32 (unsigned integer 32 bit)          number
b                bool (unsigned integer 32 bit)         boolean
p                void * ( pointer 32 bit )                    light user data
s                const char * ( pointer to string )      string
f                 f32 ( floating point 32 bit)                number

As you can see b isn't really needed, lua will accept numbers as booleans too.
So you can replace any b with i, u, or p. Much the same way, u and p are actually the same. It's just good practice to use p for pointers and handles because lua will not allow arithmetic on them.

sjaak327
  • sjaak327

    Big Homie

  • Feroci Racing
  • Joined: 01 Dec 2008
  • None

#13

Posted 28 June 2010 - 09:45 PM Edited by sjaak327, 28 June 2010 - 10:04 PM.

Nice work !

I guess people who used to run lua scripts using Alice will be thrilled.

Edit: I can confirm this working on EFLC 1.1.2.0.


grinny
  • grinny

    Stoner

  • Members
  • Joined: 06 Jun 2010

#14

Posted 28 June 2010 - 10:58 PM

QUOTE (sjaak327 @ Jun 28 2010, 21:45)
Nice work !

I guess people who used to run lua scripts using Alice will be thrilled.

Edit: I can confirm this working on EFLC 1.1.2.0.

Thanks for confirming that it works, I was starting to doubt smile.gif

BTW your trainer rulez.

G_M_StYlEr_M
  • G_M_StYlEr_M

    Rat

  • Members
  • Joined: 05 Apr 2009

#15

Posted 03 July 2010 - 01:01 PM

its not work for me
i add the files from the BIN folder (you have forget to say that the files from the BIN folder must add into the GTA IV/ EFlc folder)


so my asi log file say
Loading ASI C:\Program Files\Rockstar Games\EFLC\gompie0.1.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\gompie0.1.asi, Address 0x00000000
Loading ASI C:\Program Files\Rockstar Games\EFLC\ScriptHookDotNet.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\ScriptHookDotNet.asi, Address 0x65CD0000
Loading ASI C:\Program Files\Rockstar Games\EFLC\Trainer.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\Trainer.asi, Address 0x63D40000
Loading ASI C:\Program Files\Rockstar Games\EFLC\Trainertbogt.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\Trainertbogt.asi, Address 0x63590000
Loading ASI C:\Program Files\Rockstar Games\EFLC\Trainertlad.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\Trainertlad.asi, Address 0x631F0000

Gompie0.1 is load but its not create a Lua log and its not work in game ?

grinny
  • grinny

    Stoner

  • Members
  • Joined: 06 Jun 2010

#16

Posted 04 July 2010 - 04:34 AM Edited by grinny, 04 July 2010 - 05:09 AM.

QUOTE (G_M_StYlEr_M @ Jul 3 2010, 13:01)
its not work for me
i add the files from the BIN folder (you have forget to say that the files from the BIN folder must add into the GTA IV/ EFlc folder)


so my asi log file  say
Loading ASI C:\Program Files\Rockstar Games\EFLC\gompie0.1.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\gompie0.1.asi, Address 0x00000000
Loading ASI C:\Program Files\Rockstar Games\EFLC\ScriptHookDotNet.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\ScriptHookDotNet.asi, Address 0x65CD0000
Loading ASI C:\Program Files\Rockstar Games\EFLC\Trainer.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\Trainer.asi, Address 0x63D40000
Loading ASI C:\Program Files\Rockstar Games\EFLC\Trainertbogt.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\Trainertbogt.asi, Address 0x63590000
Loading ASI C:\Program Files\Rockstar Games\EFLC\Trainertlad.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\Trainertlad.asi, Address 0x631F0000

Gompie0.1 is load but its not create a Lua log and its not work in game ?

Yes, I forgot to add that you need the files from the bin directory, I'll edit the first post and update the readme for the next version.

I'm baffled that it's not working for you, I even reinstalled GTA from some iso's on the net and cracked it just to see if that would cause it not to work... I even thought that might be it, but I forgot to use the newest version of scripthook instead of the one supplied (Did you make this mistake?). But ZAZ said he used 1.0.7 with scripthook 0.5.1 which is the same as mine......

I do see you have various other mods loaded, this might cause a conflict. Especially trainer since it hogs all the keys smile.gif (Both gompie and trainer use F4). Please tell me if it works for you without other mods enabled.

Just to be sure get the vs2008 redistributable too: vs2008 redist

G_M_StYlEr_M
  • G_M_StYlEr_M

    Rat

  • Members
  • Joined: 05 Apr 2009

#17

Posted 04 July 2010 - 09:37 AM

QUOTE (grinny @ Jul 4 2010, 04:34)
QUOTE (G_M_StYlEr_M @ Jul 3 2010, 13:01)
its not work for me
i add the files from the BIN folder (you have forget to say that the files from the BIN folder must add into the GTA IV/ EFlc folder)


so my asi log file  say
Loading ASI C:\Program Files\Rockstar Games\EFLC\gompie0.1.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\gompie0.1.asi, Address 0x00000000
Loading ASI C:\Program Files\Rockstar Games\EFLC\ScriptHookDotNet.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\ScriptHookDotNet.asi, Address 0x65CD0000
Loading ASI C:\Program Files\Rockstar Games\EFLC\Trainer.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\Trainer.asi, Address 0x63D40000
Loading ASI C:\Program Files\Rockstar Games\EFLC\Trainertbogt.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\Trainertbogt.asi, Address 0x63590000
Loading ASI C:\Program Files\Rockstar Games\EFLC\Trainertlad.asi
ASI loaded : C:\Program Files\Rockstar Games\EFLC\Trainertlad.asi, Address 0x631F0000

Gompie0.1 is load but its not create a Lua log and its not work in game ?

Yes, I forgot to add that you need the files from the bin directory, I'll edit the first post and update the readme for the next version.

I'm baffled that it's not working for you, I even reinstalled GTA from some iso's on the net and cracked it just to see if that would cause it not to work... I even thought that might be it, but I forgot to use the newest version of scripthook instead of the one supplied (Did you make this mistake?). But ZAZ said he used 1.0.7 with scripthook 0.5.1 which is the same as mine......

I do see you have various other mods loaded, this might cause a conflict. Especially trainer since it hogs all the keys smile.gif (Both gompie and trainer use F4). Please tell me if it works for you without other mods enabled.

Just to be sure get the vs2008 redistributable too: vs2008 redist

allso i use the 1.1.2 version (i dont know is this the right neme ) version for EFLC
i have delete the traienr files out of the gta Iv direcktory and its not work its not create a lua.log or whatever

and i i use virsuel studio 2010 i think this is not a problem ?

grinny
  • grinny

    Stoner

  • Members
  • Joined: 06 Jun 2010

#18

Posted 04 July 2010 - 05:26 PM Edited by grinny, 04 July 2010 - 05:31 PM.

QUOTE (G_M_StYlEr_M @ Jul 4 2010, 09:37)
allso i use the 1.1.2 version (i dont know is this the right neme ) version for EFLC
i have delete the traienr files out of the gta Iv direcktory and its not work its not create a lua.log or whatever

and i i use virsuel studio 2010 i think this is not a problem ?

I guess that wouldn't be a problem, but I'd be surprised if the redistributable would cause any problems at all. I don't think I have any dependencies on that stuff but I'm not a windows programmer.

As you can see from the source, the very first thing it does on dll attachment is creating the log.... So asiloader says it has loaded the dll, but dll main is either never called or it fails to create the log file....

I don't know what could cause this as I'm not a windows programmer, do you use vista or something? I did my testing on XP64. It looks like trainer is working for you with the newest EFLC so you must have the correct version of scripthook (0.5.1). Please make sure you haven't accidentally overwritten your scripthook.dll with the scripthook.dll that's included in the zip, as the included version is 0.5.0.

I'm sorry but I cannot help you with this cryani.gif , as I have no way to reproduce this error, as I said it works for me. If you do manage to get it working, please report back here so others can benefit from your experience.

asyntax
  • asyntax

    Player Hater

  • Members
  • Joined: 10 Jul 2010

#19

Posted 10 July 2010 - 10:19 PM Edited by asyntax, 10 July 2010 - 10:31 PM.

hello,

i recently installed gompie and when i tried to press F4 in-game, nothing happened.

my asilog shows that gompie is loading up, but the log for aru's scripthook shows the following:

CODE
[INFO] GTA IV Script Hook 0.5.1 - (C) 2009, Aru - Initialized
[INFO] Process base address: 0xfb0000
[INFO] Auto detecting game version
[INFO] Using game version 1.0.7
[INFO] [FirstPerson] Thread started
[INFO] [SimpleTrainer] Thread started
[INFO] [SimpleTrainer] Thread killed
[INFO] [FirstPerson] Thread killed
[INFO] Script Hook - Shutdown


For some reason the gompie thread isn't starting, does anyone have any idea how to fix this?

G_M_StYlEr_M
  • G_M_StYlEr_M

    Rat

  • Members
  • Joined: 05 Apr 2009

#20

Posted 11 July 2010 - 10:30 AM

QUOTE (asyntax @ Jul 10 2010, 22:19)
hello,

i recently installed gompie and when i tried to press F4 in-game, nothing happened.

my asilog shows that gompie is loading up, but the log for aru's scripthook shows the following:

CODE
[INFO] GTA IV Script Hook 0.5.1 - (C) 2009, Aru - Initialized
[INFO] Process base address: 0xfb0000
[INFO] Auto detecting game version
[INFO] Using game version 1.0.7
[INFO] [FirstPerson] Thread started
[INFO] [SimpleTrainer] Thread started
[INFO] [SimpleTrainer] Thread killed
[INFO] [FirstPerson] Thread killed
[INFO] Script Hook - Shutdown


For some reason the gompie thread isn't starting, does anyone have any idea how to fix this?

Another Script Hook Version I think

dragonov5
  • dragonov5

    Player Hater

  • Members
  • Joined: 15 Jul 2010

#21

Posted 24 July 2010 - 09:53 PM

when i try to start EFLC the game won't start i've put everything where it should be

Erem
  • Erem

  • Members
  • Joined: 17 Mar 2010

#22

Posted 17 August 2010 - 09:43 PM

Grinny, what's the current status with Gompie? Has anyone other than you and Sjaak got it to work yet? I really must try to find the time to test it myself.

On the subject of me being slow, I've only just realised why you called it Gompie! lol.gif

imperialmaster
  • imperialmaster

    Player Hater

  • Members
  • Joined: 28 Feb 2009

#23

Posted 20 August 2010 - 05:52 AM

not found main.lua.............

work in 1.0.6??

soryy my bad english cry.gif

RobZombie
  • RobZombie

    Player Hater

  • Members
  • Joined: 05 Feb 2008

#24

Posted 28 October 2010 - 10:17 PM Edited by RobZombie, 29 October 2010 - 02:08 PM.

i got problem too with that...
CODE
// -- GTA IV ASI LOADER LOG -- //
//-- (C) Alexander Blade 2008 -- //
C:\WINDOWS\system32\dsound.dll is loaded, address 0x73EA0000
Hooking dsound proc named "DirectSoundCreate"
"DirectSoundCreate" hooked, address 0x73EA473B
Hooking dsound proc named "DirectSoundEnumerateA"
"DirectSoundEnumerateA" hooked, address 0x73EC708D
Hooking dsound proc named "DirectSoundEnumerateW"
"DirectSoundEnumerateW" hooked, address 0x73EC70AA
Hooking dsound proc named "DllCanUnloadNow"
"DllCanUnloadNow" hooked, address 0x73ECBE61
Hooking dsound proc named "DllGetClassObject"
"DllGetClassObject" hooked, address 0x73EB09C5
Hooking dsound proc named "DirectSoundCaptureCreate"
"DirectSoundCaptureCreate" hooked, address 0x73EC68BB
Hooking dsound proc named "DirectSoundCaptureEnumerateA"
"DirectSoundCaptureEnumerateA" hooked, address 0x73EC70C7
Hooking dsound proc named "DirectSoundCaptureEnumerateW"
"DirectSoundCaptureEnumerateW" hooked, address 0x73EC70E4
Hooking dsound proc named "GetDeviceID"
"GetDeviceID" hooked, address 0x73EC6D42
Hooking dsound proc named "DirectSoundFullDuplexCreate"
"DirectSoundFullDuplexCreate" hooked, address 0x73EC6A32
Hooking dsound proc named "DirectSoundCreate8"
"DirectSoundCreate8" hooked, address 0x73EC67F5
Hooking dsound proc named "DirectSoundCaptureCreate8"
"DirectSoundCaptureCreate8" hooked, address 0x73EC696F
Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\FirstPerson.asi
ASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\FirstPerson.asi, Address 0x02A30000
Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\gompie0.1.asi
ASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\gompie0.1.asi, Address 0x00000000
Loading ASI C:\Program Files\Rockstar Games\Grand Theft Auto IV\Trainer.asi
ASI loaded : C:\Program Files\Rockstar Games\Grand Theft Auto IV\Trainer.asi, Address 0x02C20000


FirstPerson.asi was loading with addres 0x00000000 too, also trainer.asi but when they was together they load normal (dunno why, maybe because of xliveless) please help (game ver is 1.0.7.0)

//also i was testing it with IV:MP lastest ver. I will test it on Single Player later.

// on Single Player same ;/

rrgrrg
  • rrgrrg

    Player Hater

  • Members
  • Joined: 16 Sep 2008

#25

Posted 03 June 2011 - 06:19 PM

it workes gr8 but when i press f4 it tells me "cannot , permisssion denied" angry.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users