Jump to content

File Injection


Revan

Recommended Posts

Whats your opinions on the best way to inject a file so that it loads into GTA IV memory?

I have tons of debugging software that can do the job but thats a tad messy imo

[center][url="http://steamcommunity.com/id/Darth_Revan"][img]http://i1192.photobucket.com/albums/aa340/iconography1/Revan3.jpg[/img][/url] [color=#ff8c00][i][b]Thanks Iconography[/b][/i][/color] OS #1: Windows 7 x64 CPU: AMD Phenom II X4 940 ~3.0Ghz --- GPU: Nvidia GTS 250 (1GB) --- RAM: 4GB Keyboard: Logitech G15 --- Mouse: Logitech G500[/center]

Link to comment
Share on other sites

  • Management Team

It depends on the file type. In some cases a simple CreateFile hook could do the trick so you can pass a modified file. You could also call an engine function with your modified content/path to load it into the game. Just give some more information about the file type you want to inject (handling, texture etc.) please.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Link to comment
Share on other sites

Its a DLL file I could load it with a debugger, but I find that messy because I have to leave the debugging application loaded in memory if I close it it will close the game..

I tried just dropping it into the main directory but it wasnt loaded into memory, because its not created specifically for GTA IV. I was just curious what type of methods other people use.

[center][url="http://steamcommunity.com/id/Darth_Revan"][img]http://i1192.photobucket.com/albums/aa340/iconography1/Revan3.jpg[/img][/url] [color=#ff8c00][i][b]Thanks Iconography[/b][/i][/color] OS #1: Windows 7 x64 CPU: AMD Phenom II X4 940 ~3.0Ghz --- GPU: Nvidia GTS 250 (1GB) --- RAM: 4GB Keyboard: Logitech G15 --- Mouse: Logitech G500[/center]

Link to comment
Share on other sites

Doing that had it loaded.. but returned an address of 0x00000 and crashed IV. When I inject it with a debugger it works properly. So im assuming it has something to do with asi trying to be loaded specificly for IV...

*edit*

This doesnt need to turn into a support topic. I was just curious what methods other people used to inject files

Edited by Revan

[center][url="http://steamcommunity.com/id/Darth_Revan"][img]http://i1192.photobucket.com/albums/aa340/iconography1/Revan3.jpg[/img][/url] [color=#ff8c00][i][b]Thanks Iconography[/b][/i][/color] OS #1: Windows 7 x64 CPU: AMD Phenom II X4 940 ~3.0Ghz --- GPU: Nvidia GTS 250 (1GB) --- RAM: 4GB Keyboard: Logitech G15 --- Mouse: Logitech G500[/center]

Link to comment
Share on other sites

Just a simple test file just trying to figure out the best way to get something into memory for IV without scripting specifically for IV. (I love to mess around for no apparent reason) Its pretty much how I learn.

[center][url="http://steamcommunity.com/id/Darth_Revan"][img]http://i1192.photobucket.com/albums/aa340/iconography1/Revan3.jpg[/img][/url] [color=#ff8c00][i][b]Thanks Iconography[/b][/i][/color] OS #1: Windows 7 x64 CPU: AMD Phenom II X4 940 ~3.0Ghz --- GPU: Nvidia GTS 250 (1GB) --- RAM: 4GB Keyboard: Logitech G15 --- Mouse: Logitech G500[/center]

Link to comment
Share on other sites

  • Management Team

Ah sorry, I thought you are talking about injecting actual new game files into IV. Well you can - as Jay already said - rename your file to .ASI so a asi loader will load it. An address of 0x00000 means loading failed, but you said it works via debugging software so I think it's maybe a permission conflict here. You can try to use a debug version of xliveless to get an actual error code. Anyway, there are other methods to inject a dll into a process. You could create a proxy dll of a file IV needs, e.g. dsound.dll, so the game will load you custom dsound.dll instead the one from Windows32. Make sure you forward all calls to your custom dll to the real dll. Another method would be to create a launcher tool, which would create a remote thread in the target process and this new thread would load your module into the process. There are more than enough examples for these methods in the internet, simply google them.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Link to comment
Share on other sites

Ah sorry, I thought you are talking about injecting actual new game files into IV. Well you can - as Jay already said - rename your file to .ASI so a asi loader will load it. An address of 0x00000 means loading failed, but you said it works via debugging software so I think it's maybe a permission conflict here. You can try to use a debug version of xliveless to get an actual error code. Anyway, there are other methods to inject a dll into a process. You could create a proxy dll of a file IV needs, e.g. dsound.dll, so the game will load you custom dsound.dll instead the one from Windows32. Make sure you forward all calls to your custom dll to the real dll. Another method would be to create a launcher tool, which would create a remote thread in the target process and this new thread would load your module into the process. There are more than enough examples for these methods in the internet, simply google them.

+1 thanks for the info Ill be sure to try the mentioned methods out :happy:

[center][url="http://steamcommunity.com/id/Darth_Revan"][img]http://i1192.photobucket.com/albums/aa340/iconography1/Revan3.jpg[/img][/url] [color=#ff8c00][i][b]Thanks Iconography[/b][/i][/color] OS #1: Windows 7 x64 CPU: AMD Phenom II X4 940 ~3.0Ghz --- GPU: Nvidia GTS 250 (1GB) --- RAM: 4GB Keyboard: Logitech G15 --- Mouse: Logitech G500[/center]

Link to comment
Share on other sites

Is there a way to inject textures? (sorry if this is considered threadjacking)

Threadjacking... Well I haven't actually heard it called that before.

As far as I am aware, there currently isn't a way to inject textures into the game. Something might come along some time but at the moment, I don't think there is a way.

de816a4fa5.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...