C# ASI files
Posted 10 October 2012 - 05:35 PM
I've seen multiple mods (Including CLEO) that use an ASI file and are put into the GTA SA directory.
What does an ASI file do that script cant?:S
Also can an ASI file be created in C# (Stupid question but I like to be certain)
Posted 10 October 2012 - 06:23 PM
In GTA IV era, this idea was brought back. While the game wouldn't load .asi files automatically, loaders have been written that do that. I will not get into details of how these work, but they effectively replicate the above behavior. The .asi extension has been kept both because people have been used to them and to distinguish mod libraries from libraries used by the game.
In principle, with ASI mods you can do absolutely anything in the game. You can change absolutely any behavior. However, it can be quite a bit of work depending on what you want to do. If you are writing an ASI script from scratch, you will have to know exactly which functions you want to hook into, write your own hooks, etc. That requires fairly detailed knowledge of the main process of the GTA game you are working with as well as good understanding of both machine language and whichever high-level language you happen to use.
Of course, for GTA IV, you have an option of using Script Hook library which covers most of this. It's not quite as flexible as writing your own hooks from scratch, but it's far easier to use. If you know some basic programming, you can write a basic mod with it.
And yes, you absolutely can write an ASI mod in C#. There is a ScriptHook.Net library, a modified version of the above, which can be used to write your GTA IV mod in C#. If you want to write an ASI file from scratch, then absolutely any language that can be used to compile a DLL file will do. That naturally includes C#.
Posted 10 October 2012 - 06:28 PM
I was wondering if I could use a .asi file to check if an achievement has been completed and update a text file with the results?
I know it sounds simple, but like you said, writing it from scratch takes knowledge and there aren't any tutorials on the internet on how to write asi files that manipulates GTA.
Posted 10 October 2012 - 07:11 PM
By the way, I said ASI would get loaded automatically in Vice and SA. That's wrong. Only Vice did that. San Andreas requires a loader. But it's pretty much the same from there on.
Posted 06 November 2012 - 12:41 PM
|QUOTE (K^2 @ Wednesday, Oct 10 2012, 20:11)|
|San Andreas requires a loader. But it's pretty much the same from there on.|
If SA required a .asi loader then how does CLEO load its .asi file?
Posted 06 November 2012 - 06:33 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users