Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

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

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

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. 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. 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. News

    2. Forum Support

    3. Site Suggestions

Saint Burak

Creating .asi files for gta sa.

Recommended Posts

Saint Burak

How can I do? C++ or C# or VB ?

Share this post


Link to post
Share on other sites
Deji

Yes, all 3 will probably work. I wouldn't recommend VB, though...

Share this post


Link to post
Share on other sites
Saint Burak

is there any tutorial?

Share this post


Link to post
Share on other sites
LINK/2012

A asi is a dll renamed.

Just write a dll in C/C++/Whatever, compile, rename to asi, fun. Of course you can set the compiler to output the file directly to asi.

 

 

Some kind of Hello World, can give you some direction...

 

#include <Windows.h>BOOL APIENTRY DllMain( HMODULE hModule,                      DWORD  ul_reason_for_call,                      LPVOID lpReserved     ){switch (ul_reason_for_call){ case DLL_PROCESS_ATTACH: 	MessageBoxA(NULL, "HAI WORLD!", "Attach", NULL); 	break; case DLL_PROCESS_DETACH:   MessageBoxA(NULL, "THX, BYE", "Detach", NULL);   break; case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: 	break;}return TRUE;}

 

  • Like 3

Share this post


Link to post
Share on other sites
Michael-Knight1

@Saint Burak When You Learn C++ Language Tutorial , You Can To Know Creating Asi File wink.gif

Share this post


Link to post
Share on other sites
Bad.boy!

 

How can I do? C++ or C# or VB ?

 

 

Yes, all 3 will probably work. I wouldn't recommend VB, though...

 

It isn't really possible in C# directly, because there is no dllmain. Also working with ASM is not supported and everything needs to be unsafe to use pointers. If you want to use C#, you will also need C++.

Share this post


Link to post
Share on other sites
Ashwin.Star

I am tired from trying to make working .asi files,

i am having code blocks for these Works,

 

after putting Link's Code,

i build it,

 

-------------- Build: Release in MSG ---------------Compiling: main.cppLinking dynamic library: bin\Release\MSG.dllCreating library file: bin\Release\libMSG.dll.aOutput size is 6.50 KBProcess terminated with status 0 (0 minutes, 0 seconds)0 errors, 0 warnings

 

then i put the msg.dll file into root dir of VC,

i thought i'll get a MSG box "HAI WORLD!"

but Nooothing sad.gif again

 

is there anything to do with "libMSG.dll.def" file ???

Share this post


Link to post
Share on other sites
LINK/2012

I know a guy that was trying to make a ASI in Code Blocks and has the same result: Nothing!

He tried in MSVC and worked fine...

 

Should be something with GCC (MinGW on Win)

Edited by Link2012

Share this post


Link to post
Share on other sites
Bad.boy!

Is there a windows version of Code::Blocks with the windows api? I thought it was linux only.

Share this post


Link to post
Share on other sites
fastman92
Is there a windows version of Code::Blocks with the windows api? I thought it was linux only.

What makes you ask this question here?

Isn't it faster to check the answer in Google?

 

Yes. There is Code Blocks for Windows.

Share this post


Link to post
Share on other sites
Ashwin.Star

 

I know a guy that was trying to make a ASI in Code Blocks and has the same result: Nothing!

He tried in MSVC and worked fine...

This Was My story lol.gif

TNK U,

Share this post


Link to post
Share on other sites
Bad.boy!

Google didn't work (I'm on a sh*tty hotel wifi).

Share this post


Link to post
Share on other sites
xNCx

Interesting topic, thanks Link2012 for the sample code. I am not familiar with C or anything else, I just had visual basic in school wink.gif.

 

I googled now for 2-3 hours to find a way how to write memory using a dll, got many results, but they are not working at all, I get an error while compiling the code or crash while writing the memory ( http://www.p-programowanie.pl/cpp/dll-inje...e-funkcji-cz-2/ second example on that page, I used other memory addresses and still crash). I'm using Visual C++ 2008 Express.

 

So, could someone post a full example in "noob style" biggrin.gif how to write a memory address? I'll be thankful for this.

Share this post


Link to post
Share on other sites
Bad.boy!

Read this: link

 

Example:

 

DWORD* CMoney = (DWORD*)0xB7CE50;*CMoney = 100;

 

 

I don't know much about vb, but in C# you can use pointers in unsafe code (not used alot).

Share this post


Link to post
Share on other sites
Meklood

How can i create from saloader's .dll file an asi file? If i rename the dll to asi, the game crashing, but with dll extension work good. Another asi files work correctly.

Share this post


Link to post
Share on other sites
Bad.boy!

What do you mean with saloader? The asi loader has to be a dll file (vorbisFile & vorbisHooked).

And don't bump old topics.

Share this post


Link to post
Share on other sites
TheGodfather.

Well as the topic is bumped already ..Can someone suggest me a good C++ IDE for making ASI Plugins ??

Don't lock the topic as it has become useful now..

Share this post


Link to post
Share on other sites
LINK/2012

 

Well as the topic is bumped already ..Can someone suggest me a good C++ IDE for making ASI Plugins ??

Don't lock the topic as it has become useful now..

Visual Studio.

 

@Topic

Good to have this bumped, I managed to compile a working ASI with MinGW, you just have to mark DllMain with a [extern "C"] and hey, it works!

e.g.

 

extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)

 

 

MinGW\GCC ASM Block is harder to do than Visual Studio ASM block, and also uses AT&T syntax and I don't like it, Intel syntax owns.

 

Edited by Link2012

Share this post


Link to post
Share on other sites
Gian_Yagami

I am interested too to make some ASI plugin.

we/I am need a tutorial contains existing identifier word that work to the game. and the way of writing too.

Share this post


Link to post
Share on other sites
indo_14

is there connection between CLEO and ASI plugin, i mean the codes, sorry for bumps

Share this post


Link to post
Share on other sites
Ashwin.Star

What a beautiful BUMP!!!

Yes, an .asi file AKA "Cleo.asi" load them to the Game,

Share this post


Link to post
Share on other sites
Ge Be' eS

And how about to making other files

Like :

.JSON (I fint it at GTA IV Bullet Hole to SA)

 

And how to make the .INI files, like hotkeys

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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