Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

File Injection

Featured Replies

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]

  • 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.

  • Author

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]

  • Author

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]

  • Author

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]

  • 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.

  • Author

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]

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

OK. I thought I saw somewhere that the devs were looking into it, but I guess it is not easily available.

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...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.