Quantcast

Jump to content

» «
Photo

[REL|OpenSrc] Silent's ASI Loader

71 replies to this topic
Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#1

Posted 08 September 2012 - 03:41 PM Edited by SilentPL, 26 January 2014 - 04:04 PM.

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 (Steam) game.
  • 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

As GTAGarage widget is gone for now:
http://www.gtagarage...ow.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.
  • Wesser, lpgunit, Blackbird88 and 3 others like this

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#2

Posted 08 September 2012 - 03:44 PM

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

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#3

Posted 08 September 2012 - 05:14 PM

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

direstraits
  • direstraits

  • Feroci Racing
  • Joined: 08 Mar 2011
  • Portugal

#4

Posted 08 September 2012 - 05:49 PM

Nice. I like it.

5x cookie.gif

Shrektastic
  • Shrektastic

    /pol/itician and /b/ro from 8chan

  • Members
  • Joined: 17 Oct 2010
  • Austria

#5

Posted 08 September 2012 - 07:50 PM

Nice icon14.gif

lpgunit
  • lpgunit

    It's L, as in Lpgunit, not I.

  • Feroci Racing
  • Joined: 24 May 2008
  • Philippines

#6

Posted 09 September 2012 - 01:21 AM

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

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#7

Posted 09 September 2012 - 10:47 AM

QUOTE (lpgunit @ Sunday, Sep 9 2012, 03:21)
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

lpgunit
  • lpgunit

    It's L, as in Lpgunit, not I.

  • Feroci Racing
  • Joined: 24 May 2008
  • Philippines

#8

Posted 09 September 2012 - 12:21 PM

QUOTE (SilentPL @ Sunday, Sep 9 2012, 10:47)
QUOTE (lpgunit @ Sunday, Sep 9 2012, 03:21)
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

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#9

Posted 19 September 2012 - 09:54 AM

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

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#10

Posted 19 September 2012 - 01:05 PM

QUOTE (arijitsen @ Wednesday, Sep 19 2012, 11:54)
So is it completely compactible with citizen launcher & CLEO 4 ??

Yes.

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#11

Posted 19 September 2012 - 01:48 PM

Short & quick reply ...Huh!! lol.gif
Anyways can I use your loader for my upcoming TC GTA 2012
http://www.gtaforums...howtopic=515279
I wish I ll get a positive reply ??
alien.gif alien.gif tounge.gif

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#12

Posted 20 September 2012 - 08:46 AM

QUOTE (arijitsen @ Wednesday, Sep 19 2012, 15:48)
Short & quick reply ...Huh!! lol.gif
Anyways can I use your loader for my upcoming TC GTA 2012
http://www.gtaforums...howtopic=515279
I wish I ll get a positive reply ??
alien.gif alien.gif tounge.gif

Yeah, sure.

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#13

Posted 21 September 2012 - 03:55 PM

Thanks..Good work with the loader..

Methical
  • Methical

    ★★★★★

  • Feroci Racing
  • Joined: 23 May 2008
  • New-Zealand

#14

Posted 11 October 2012 - 10:05 AM

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

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#15

Posted 12 October 2012 - 03:52 PM

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.

Methical
  • Methical

    ★★★★★

  • Feroci Racing
  • Joined: 23 May 2008
  • New-Zealand

#16

Posted 14 October 2012 - 08:41 AM

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.

l911
  • l911

    ⒶⓌⒺⓈⓄⓂⒺ

  • Members
  • Joined: 02 Oct 2008

#17

Posted 17 December 2012 - 10:25 PM

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.j...hell/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

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#18

Posted 18 December 2012 - 04:02 PM

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

l911
  • l911

    ⒶⓌⒺⓈⓄⓂⒺ

  • Members
  • Joined: 02 Oct 2008

#19

Posted 18 December 2012 - 04:35 PM

I have i3, 3gigs of ram and 1giga gforce
i think this is enough for gta sa, also i use HOODLUM no cd exe

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#20

Posted 18 December 2012 - 04:38 PM

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

l911
  • l911

    ⒶⓌⒺⓈⓄⓂⒺ

  • Members
  • Joined: 02 Oct 2008

#21

Posted 18 December 2012 - 04:55 PM

QUOTE (SilentPL @ Tuesday, Dec 18 2012, 16:38)
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 ?

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#22

Posted 18 December 2012 - 05:00 PM

You could try one of my ASI mods*.

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

ThirteenAG
  • ThirteenAG

    Soldier

  • Feroci Racing
  • Joined: 29 Dec 2008
  • None

#23

Posted 25 December 2012 - 02:13 PM Edited by ThirteenAG, 25 December 2012 - 02:18 PM.

I've got a proposition. An ini file, which allows [not] to load specific dll's for specific exes. For example:
asiloader.ini
CODE
[INCLUDE]
gta_united.exe=val.dll
snow_sa.exe=snowfall.dll
[EXCLUDE]
the_95_story.exe=bullet.asi
gta_united.exe=shadows.asi
gta_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.

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#24

Posted 25 December 2012 - 06:41 PM

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

ThirteenAG
  • ThirteenAG

    Soldier

  • Feroci Racing
  • Joined: 29 Dec 2008
  • None

#25

Posted 25 December 2012 - 08:39 PM

QUOTE (SilentPL @ Tuesday, Dec 25 2012, 22:41)
I could try to add a feature which would read scripts\*exename*.ini file with similar syntax.

Yeah, that's would be great.

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#26

Posted 25 December 2012 - 09:03 PM

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

ThirteenAG
  • ThirteenAG

    Soldier

  • Feroci Racing
  • Joined: 29 Dec 2008
  • None

#27

Posted 25 December 2012 - 09:19 PM

QUOTE (SilentPL @ Wednesday, Dec 26 2012, 01:03)
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

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#28

Posted 27 December 2012 - 01:07 PM

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?

ThirteenAG
  • ThirteenAG

    Soldier

  • Feroci Racing
  • Joined: 29 Dec 2008
  • None

#29

Posted 27 December 2012 - 01:22 PM

QUOTE (SilentPL @ Thursday, Dec 27 2012, 17:07)
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?
QUOTE

GTA SA:
           <DIR>  scripts
           <DIR>  gta_united.exe
                                             val.asi
                                             <DIR>  exclude
                                                                    [0-byte] ragdoll.asi
                                                                    [0-byte] shadows.asi



Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#30

Posted 27 December 2012 - 01:24 PM Edited by SilentPL, 27 December 2012 - 01:28 PM.

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 )?




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users