Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (86,159 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

Silent

[REL|OpenSrc] Silent's ASI Loader

Recommended Posts

Silent

Silent's ASI Loader

 

 


This is a DLL file which adds ASI plugin loading functionality to San Andreas.
What makes it better from any other ASI Loaders available?

 

 

  • Increased compatibility - all current loaders share a flaw, which sometimes results in a plugin loading failure. This loader uses a brand new loading method developed by @NTAuthority, which makes it work all the time.
  • Compatible with 3.0 (old Steam) and new Steam Executables.
  • Loads files located in the game root directory and scripts folder (although not all the plugins are guaranteed to work properly when located in the latter!).
  • Has an INI file in which you can toggle on/off plugins loading.
  • Has an ability of loading plugins exclusive for specific Executable and/or exclude another plugins from loading on specific Executable.
  • Lightweight and fast.
  • When an encrypted EXE (like Steam EXE) is used, plugins are loaded after it gets decrypted - no need to wait in the ASI code.

This loader is also used in Grand Theft Auto: Vice City Stories PC Edition and Vigilante Justice Total Conversions.


In order to install it, you just need to place both DLL files into game directory, overwriting the old files.


Usage

Basic Plugin Installation:

  • If you want to add an ASI for all Executable versions you have, put it either in game root directory or scripts folder. Various plugins may fail to work properly when running from scripts folder, it is advised to move it to the game directory if plugin fails to launch properly.

Advanced Plugin Installation:

  • If you have multiple Executable versions and want to make each one use different ASI plugins, you can create a new folder inside scripts folder with the same name as your Executable (so gta_sa.exe gets gta_sa folder, my_fancy_exe.exe gets my_fancy_exe folder etc.). Plugins placed in thisfolder will be exclusive to specific Executable.
    You also can make specific Executables override global settings and load/ignore all plugins via settings.ini edit. Specific Executable can also ignore only some of the plugins - see advanced_plugin_management_example for more info.

Download

 

https://cookieplmonster.github.io/mods/


Mirror:
http://www.gtagarage.com/mods/show.php?id=21709


Credits & License

Firstly, thanks to @NTAuthority for sharing his code snippet, and also for Stanislav "listener" Golovin for sharing his ASI Loader source, which acted as a base for my version of the tool.
As the following tool is open source, it's under the Silent's License. It means that the source code is for learning purposes, as all source code is. You may only use it for your own projects but NOT to recreate or build on the original work.

Edited by Silent

Share this post


Link to post
Share on other sites
fastman92

Thanks for taking your time to make it. I'll test in a while.

Share this post


Link to post
Share on other sites
Silent

Okay, the tool is now reuploaded in 1.01 version - doesn't crash with CLEO 4.1.1.30f no more (damn you Alien!).

Share this post


Link to post
Share on other sites
direstraits

Nice. I like it.

 

5x cookie.gif

Share this post


Link to post
Share on other sites
-DP-

Nice icon14.gif

Share this post


Link to post
Share on other sites
lpgunit

Thank you so much for the loader! The previous one I used required SA to be added to the DEP exceptions list as the game crashes if I don't. cookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gif

Share this post


Link to post
Share on other sites
Silent
Thank you so much for the loader! The previous one I used required SA to be added to the DEP exceptions list as the game crashes if I don't. cookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gif

Ooh, good to know. Wasn't aware about that icon14.gif

Share this post


Link to post
Share on other sites
lpgunit
Thank you so much for the loader! The previous one I used required SA to be added to the DEP exceptions list as the game crashes if I don't.  cookie.gif  cookie.gif  cookie.gif  cookie.gif  cookie.gif  cookie.gif  cookie.gif  cookie.gif  cookie.gif  cookie.gif  cookie.gif  cookie.gif  cookie.gif

Ooh, good to know. Wasn't aware about that icon14.gif

Yep, I can confirm that. CLEO 4.0.1 and almost a dozen scripts loaded. Game seemed stable, no crashes at all. biggrin.gif

Share this post


Link to post
Share on other sites
TheGodfather.

So is it completely compactible with citizen launcher & CLEO 4 ??

 

Share this post


Link to post
Share on other sites
Silent
So is it completely compactible with citizen launcher & CLEO 4 ??

Yes.

Share this post


Link to post
Share on other sites
TheGodfather.

Thanks..Good work with the loader..

Share this post


Link to post
Share on other sites
Gramps

Just a small request ..

 

Any chance that you could make it so that ASI's have to be in a certain folder to be loaded, just like CLEO's ..

 

With all the *.asi mods around these days (and more on the way, as coders seem to be favouring ASI over CLEO), the ROOT directory of GTA:SA is starting to get rather messy.

 

This request is more for organization purposes only icon14.gif

Share this post


Link to post
Share on other sites
Silent

You can already use scripts folder to store the files, but I can't guarantee that all mods will work when placed inside it. Some of them might read specific SA files, thus it would be messed up when not allowing to put them in the main game dir.

Share this post


Link to post
Share on other sites
Gramps

Sorry for wasting your time then, I forgot all about the scripts folder lol icon14.gif

 

And I understand why it wouldn't work on some ASI's.

Share this post


Link to post
Share on other sites
l911

First off i dont know nothing about asi mods, i never used it before but now i want cheeck them out

And i have a problem none of ASI loaders work for me...

i tested them with this mod http://hotmist.ddo.jp/plugin/shell/index.html

When i put the mod in game folder it just dont do no thing when i put in /scripts game crash.

i use windows 7

Share this post


Link to post
Share on other sites
Silent

This ASI mod can crash from two reasons:

 

1) Your EXE version is wrong.

2) Your PC is old and doesn't support it (rly, I've been getting that sort of crash on my old PC).

Share this post


Link to post
Share on other sites
l911

I have i3, 3gigs of ram and 1giga gforce

i think this is enough for gta sa, also i use HOODLUM no cd exe

Share this post


Link to post
Share on other sites
Silent

Oh, luckily (?) it's not a fault of my ASI loader. It seems to crash for me aswell, I just guess it's mod's fault tounge.gif

Share this post


Link to post
Share on other sites
l911
Oh, luckily (?) it's not a fault of my ASI loader. It seems to crash for me aswell, I just guess it's mod's fault tounge.gif

oh.

Can you recomend some asi mod to check out ?

Share this post


Link to post
Share on other sites
Silent

You could try one of my ASI mods*.

 

* Oh well, I've released only one ASI mod for San Andreas.

Share this post


Link to post
Share on other sites
ThirteenAG

I've got a proposition. An ini file, which allows [not] to load specific dll's for specific exes. For example:

asiloader.ini

 

[iNCLUDE]gta_united.exe=val.dllsnow_sa.exe=snowfall.dll[EXCLUDE]the_95_story.exe=bullet.asigta_united.exe=shadows.asigta_united.exe=GTA_IV_HUD.asi

 

Which means, if i run gta_united.exe, ASI loader will load val.dll, and don't load GTA_IV_HUD.asi and shadows.asi. If i run standart gta_sa.exe, loader will load all asi plugins.

Edited by ThirteenAG

Share this post


Link to post
Share on other sites
Silent

I could try to add a feature which would read scripts\*exename*.ini file with similar syntax.

Share this post


Link to post
Share on other sites
ThirteenAG
I could try to add a feature which would read scripts\*exename*.ini file with similar syntax.

Yeah, that's would be great.

Share this post


Link to post
Share on other sites
Silent

I also think I won't unprotect full EXE anymore. It is so useless and only spoils people (isn't that right Link? tounge.gif).

Share this post


Link to post
Share on other sites
ThirteenAG
I also think I won't unprotect full EXE anymore. It is so useless and only spoils people (isn't that right Link? tounge.gif).

user posted image

Share this post


Link to post
Share on other sites
Silent

OK, so shall we make a little summary of what 1.1 needs?

  • Ability to toggle EXE unprotect on/off
  • Ability to load scripts\*exename*.ini file with [includes] and [Excludes] sections + "LoadASIPlugins" switch in the file
Or perhaps I could ditch [includes] and the INI idea and instead make scripts folder kinda global and instead include the INI and "exclusive" plugins in *exename* dir? What seems more suitable?

Share this post


Link to post
Share on other sites
ThirteenAG

 

OK, so shall we make a little summary of what 1.1 needs?

 

 

 

Ability to toggle EXE unprotect on/off

 

 

 

Ability to load scripts\*exename*.ini file with [includes] and [Excludes] sections + "LoadASIPlugins" switch in the file

 

 

 

Or perhaps I could ditch [includes] and the INI idea and instead make scripts folder kinda global and instead include the INI and "exclusive" plugins in *exename* dir? What seems more suitable?

Maybe instead of ini would be better to use blank files?

 

GTA SA:

           <DIR>  scripts

           <DIR>  gta_united.exe

                                             val.asi

                                             <DIR>  exclude

                                                                    [0-byte] ragdoll.asi

                                                                    [0-byte] shadows.asi

 

 

 

Share this post


Link to post
Share on other sites
Silent

Blank files sounds dumb, really tounge.gif

 

Edit:

How about releasing 1.1 in two versions - Full (with all these fancy features) and Lite (basically a renamed 1.01 tounge.gif)?

Edited by SilentPL

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.