Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (84,810 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

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

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

    2. Site Suggestions

The_GTA

[REL/OpenSrc] GTA ASI Injector

Recommended Posts

Tomas.

^The game will sill require ScriptHook.dll lol so you're out of luck.

 

And I'm not sure this tool works well at all with Patch 8, gives WTV270 error when without any XLiveLess (tested with RIL.Budgeted and ColAccel which are Patch 8 compatible). Works just fine with Patch 7 though.

Edited by Tomasino

Share this post


Link to post
Share on other sites
The_GTA

^The game will sill require ScriptHook.dll lol so you're out of luck.

 

And I'm not sure this tool works well at all with Patch 8, gives VDS10 error with XLiveLess and WTV270 without (tested with RIL.Budgeted and ColAccel which are Patch 8 compatible). Works just fine with Patch 7 though.

ScriptHook (aru) based hacks will require it, yes :)

 

Patch 8 has improved anti-cheat (I heard). R* has gone mad. When IV's on sale I will buy it to check.

Share this post


Link to post
Share on other sites
Tomas.

Turns out it doesn't work for Patch 7 too if any XLiveLess isn't used (WS10 error), looks like it works with Patch 8 if both "GTA IV tool" and xliveless from here are used.

Share this post


Link to post
Share on other sites
B Dawg

Patch 8 has improved anti-cheat (I heard). R* has gone mad. When IV's on sale I will buy it to check.

The only anti-cheat the game has is detecting whether or not you've modified any data/texture files (which doesn't apply to TLAD/TBOGT for some reason and also IMG archives are excluded from this check regardless if it's IV/episode), from which then it separates you into mod only lobbies and prevents you from playing Ranked Match until you remove it/get original files back. Nothing's changed.

Edited by B Dawg

Share this post


Link to post
Share on other sites
Classic_93

How to inject CLEO 4.1?

Share this post


Link to post
Share on other sites
The_GTA

How to inject CLEO 4.1?

confirmed working, GTA 1.0 + all CLEO files in GTA folder.

 

p3P7y99m.png

 

pefrmdllembed.exe GTA_SA.EXE CLEO.asi CLEO_SA.EXE

 

if you face issues please post with more information here.

Share this post


Link to post
Share on other sites
Inan-Ahammad

Nice mod bro.But can u make this mod for FLA support.

I mean to say is that can Make the exe to load the other added asi data from another file.Like gta-sa.dat or what ever.It may make the FLA work with this mod.Cause FLA got some exe limits.If u do that the main exe size would remain the same but your work will also be done..

But I know programming isn't so easy so...I was just suggesting.Never hurts to dream....

 

Edit:Solved.

Edited by inan.ahammad

Share this post


Link to post
Share on other sites
Rachel Amber

i have problem with this when i try it it says for me "failed to load executable image" i want do it on already custom exe. Also what about a asi's that have an ini file for customization?

Edited by NOskillx

Share this post


Link to post
Share on other sites
Inan-Ahammad

i have problem with this when i try it it says for me "failed to load executable image" i want do it on already custom exe. Also what about a asi's that have an ini file for customization?

I have reseated it today...and it's working.And as for the ini configuration file it remains the same.This tool just puts the asi code in the exe nothing more.So no changes made.So the ini file will work as if it would work on the asi plugin...No need to rename it or do any changes to it but it will still me necessary cause the exe will now load it instead of the asi plugin.

Share this post


Link to post
Share on other sites
Rachel Amber

well good luck it doesnt work for me :(

Share this post


Link to post
Share on other sites
Inan-Ahammad

Will this tool change the priority of the asi files.I mean with the normal exe and the asi files the game loads the files as plugins.So there is no chance of giving one bigger priority than another.But if I place the code of one asi file in the exe what will happen then.If the game will give the asi code the bigger priority than others which are just included as asi file..

Share this post


Link to post
Share on other sites
The_Human

I injected some asi in SA. Almost every script worked except a couple.

 

 

✔ - Works, ✘ - Doesn't work

Advanced Aiming ✔
BlackRoadFix ✔
ImFast ✘
ImVehFt ✔
OLA ✘
Triangle Radar ✔
IMFX ✔
Extended Gang Wars ✔
SAWindowed by ModelingMan ✔
MobileSpecualrReflection ✔
Custom Plate Format ✔

 

Share this post


Link to post
Share on other sites
Inan-Ahammad

I injected some asi in SA. Almost every script worked except a couple.

 

 

✔ - Works, ✘ - Doesn't work

 

Advanced Aiming ✔

BlackRoadFix ✔

ImFast ✘

ImVehFt ✔

OLA ✘

Triangle Radar ✔

IMFX ✔

Extended Gang Wars ✔

SAWindowed by ModelingMan ✔

MobileSpecualrReflection ✔

Custom Plate Format ✔

 

The Limit Adjusters Won't work as well as the asi files that need to be started before the game starts...

Share this post


Link to post
Share on other sites
The_GTA

The Limit Adjusters Won't work as well as the asi files that need to be started before the game starts...

 

I injected some asi in SA. Almost every script worked except a couple.

 

 

✔ - Works, ✘ - Doesn't work

 

Advanced Aiming ✔

BlackRoadFix ✔

ImFast ✘

ImVehFt ✔

OLA ✘

Triangle Radar ✔

IMFX ✔

Extended Gang Wars ✔

SAWindowed by ModelingMan ✔

MobileSpecualrReflection ✔

Custom Plate Format ✔

 

 

I know how to fix OLA support. Still working on "bugfix".

 

Will this tool change the priority of the asi files.I mean with the normal exe and the asi files the game loads the files as plugins.So there is no chance of giving one bigger priority than another.But if I place the code of one asi file in the exe what will happen then.If the game will give the asi code the bigger priority than others which are just included as asi file..

For example you have asi SilentPatchSA and skygfx. If you do

 

prefrmdllembed.exe SilentPatchSA.asi skygfx.asi GTA_SA.EXE

 

SilentPatchSA runs first, skygfx runs second.

 

With pefrmdllembed you have control over loading order :)

Share this post


Link to post
Share on other sites
Inan-Ahammad

 

The Limit Adjusters Won't work as well as the asi files that need to be started before the game starts...

I injected some asi in SA. Almost every script worked except a couple.

 

 

✔ - Works, ✘ - Doesn't work

 

Advanced Aiming ✔

BlackRoadFix ✔

ImFast ✘

ImVehFt ✔

OLA ✘

Triangle Radar ✔

IMFX ✔

Extended Gang Wars ✔

SAWindowed by ModelingMan ✔

MobileSpecualrReflection ✔

Custom Plate Format ✔

 

I know how to fix OLA support. Still working on "bugfix".

 

Will this tool change the priority of the asi files.I mean with the normal exe and the asi files the game loads the files as plugins.So there is no chance of giving one bigger priority than another.But if I place the code of one asi file in the exe what will happen then.If the game will give the asi code the bigger priority than others which are just included as asi file..

For example you have asi SilentPatchSA and skygfx. If you do

 

prefrmdllembed.exe SilentPatchSA.asi skygfx.asi GTA_SA.EXE

 

SilentPatchSA runs first, skygfx runs second.

 

With pefrmdllembed you have control over loading order :)

Really thanks bro...I really needed a tool like this...Loading FLA at last will give me much help.

Share this post


Link to post
Share on other sites
Claude_Lib

Now we can LITERALLY SilentPatch EXEs.

But the resulting exe will include both the original (broken) code and the fixed one. This is not patching.

Share this post


Link to post
Share on other sites
The_GTA

Really thanks bro...I really needed a tool like this...Loading FLA at last will give me much help.

Just released version 1.1! New commandline option "-efix". For example...

 

pefrmdllembed.exe -efix GTA_SA.EXE modloader.asi GTA_SA_ML.EXE

 

This will put back old entry point address at launch so that version detection will work. The catch: this fix works for the first ASI only. More powerful fix will come later.

 

 

But the resulting exe will include both the original (broken) code and the fixed one. This is not patching.

Such a purist opinion :p

 

In my opinion this is the best patching you can do considering compatibility with every other ASI.

 

=================

Download new version from: https://osdn.net/projects/pefrm-units/downloads/67523/gta_asi_injector.zip/

Edited by The_GTA

Share this post


Link to post
Share on other sites
Inan-Ahammad

Nice Work👍

But can u make a GUI for this tool.It will help those who can't do it manually.

Share this post


Link to post
Share on other sites
The_Human

I would love to have a GUI too. Can someone explain me how do I get access to the command line? I'm really confused.

Share this post


Link to post
Share on other sites
Ash_735

 

Now we can LITERALLY SilentPatch EXEs.

But the resulting exe will include both the original (broken) code and the fixed one. This is not patching.That's GTAV patching :D Still counts!

Share this post


Link to post
Share on other sites
ural

I would love to have a GUI too. Can someone explain me how do I get access to the command line? I'm really confused.

The manual is very simple:

1) Into any folder (folder on the desktop do not need to create) we throw gta_sa.exe, pefrmdllembed.exe and the necessary plugins..

2) For those who forgot the DOS commands:

Being inside the folder, press the Shift key and right-click in the context menu select Open command window here.

You can also right-click on any folder and select the item Open command window here in the context menu.

3)Next, on the command line, enter command line with spaces as in the fifth (5) item of Readme

 

My example: pefrmdllembed.exe -efix GTA_SA.EXE modloader.asi EffectLoader.asi GTA_SA_ML_EL.EXE

 

p.s. By the way the plugin GFXHack.asi also does not work (also check the version of the exe) :monocle:

Found a solution: in the game directory must be saved the original gta_sa.exe 14047kb

Edited by ural

Share this post


Link to post
Share on other sites
The_GTA

I would love to have a GUI too. Can someone explain me how do I get access to the command line? I'm really confused.

 

Nice Work

But can u make a GUI for this tool.It will help those who can't do it manually.

Maybe :) Could be really great.

 

Btw, a new version is out! Now there is no limitation for "-efix" anymore. I highly optimized the embedding so that one big&fast entry point is being created.

 

To make use of the optimization you have to use the multiple embed feature.

 

pefrmdllembed.exe -efix GTA.EXE asi1.asi asi2.asi (...) asi21.asi GTA_OUTPUT.EXE

Edited by The_GTA

Share this post


Link to post
Share on other sites
fastman92

@The_GTA, it's good that you keep on learning stuff, that you've learnt how the PE files are structured, but this software is totally unnecessary I think.

Consider that we lose the possibility to update the ASI files.

Edited by fastman92

Share this post


Link to post
Share on other sites
The_GTA

@The_GTA, it's good that you keep on learning stuff, that you've learnt how the PE files are structured, but this software is totally unnecessary I think.

Consider that we lose the possibility to update the ASI files.

I think you have a point! There has to be an application that detects what ASIs have been embedded and give you a button to update. But this maybe in the future.

 

Would be great to have fastman92 limit adjuster support, too! :)

Share this post


Link to post
Share on other sites
MrGTAmodsgerman

 

What about GTA V support?

Should work. I assume you know about the quirks. GetModuleHandle to get the memory base address of GTA V executable, etc.

 

Important: avoid __declspec( thread ) like a plague, it screws up the embedding (pretty sure also the C++11 thead_local thing?)

 

I am speaking about: 64bit exe GTA V is no problem. No experience in anti-cheat for new R* games.

 

Sorry to say aber ich habe keine Ahnung wo von du da redest! Also ich weiß das man die Memoryadresse kriegen muss, und warum aber der Rest, ka.

Could you please do this? I will provide you a gta5.exe file. I did it, but the launcher says in a about a second that the game was canceled

Edited by MrGTAmodsgerman

Share this post


Link to post
Share on other sites
lpgunit

Yeah, I can confirm that this works on practically any game you throw at it. As a test I tried it on an old kids' game I have on my archives - normally Dress Designer loads ASIs through a loader that can inject code via ddraw, but with pefrmdllembed I am able to get LINK/2012's example code to work unaided.

Share this post


Link to post
Share on other sites
The_GTA

For some reason I was inspired to work on this again. So here is support for removing DLL dependencies by direct import table injection aswell as Linux support!

 

Download latest version at https://osdn.net/projects/pefrm-units/releases/ .

 

Example: removing vorbis.dll, vorbisFile.dll, eax.dll, ogg.dll dependencies from GTA_SA.EXE

1. place pefrmdllembed.exe into your GTA folder

2. open cmd.exe in your GTA folder

3. execute: pefrmdllembed -impinj GTA_SA.EXE vorbisFile.dll vorbis.dll ogg.dll eax.dll GTA_SA_NODEPEND.EXE

4. (optional): remove vorbisFile.dll vorbis.dll ogg.dll eax.dll from your GTA SA folder

5. run GTA_SA_NODEPEND.EXE; it should work without loading the DLLs from disk

 

The big new feature is the "-impinj" commandline option. If the input executable imports things from vorbisFile.dll and you inject it using -impinj then pefrmdllembed will attempt to resolve all the dependencies using the embedded module. The result is a more compact executable: you do not have to ship the embedded DLL anymore! Also users cannot mistakenly replace the vorbisFile.dll anymore, less attack surface. Consider using this feature for more than just ASI files. :)

Edited by The_GTA

Share this post


Link to post
Share on other sites
Davve95

Cool. But what's the point of it? I mean I don't know the benefits. Less files and more compability with other mods?

Share this post


Link to post
Share on other sites
George Costanza

total conversions could benefit from it

Share this post


Link to post
Share on other sites
The_GTA

Creating specialized executable files could be the future of GTA modding. :) At least such a tool has not existed before, after countless search on the Internet, and that is what my research aims at most of the time.

Share this post


Link to post
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

×

Important Information

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