IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Creating .asi files for gta sa.

 
Saint Burak  
Posted: Sunday, Jul 22 2012, 20:28
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



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

 
Deji  
Posted: Sunday, Jul 22 2012, 21:01
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



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

 
Saint Burak  
Posted: Sunday, Jul 22 2012, 21:10
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



is there any tutorial?
PM
  Top
 

 
Deji  
Posted: Sunday, Jul 22 2012, 21:36
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



Yeah, millions. Google "C++ Tutorial".

Here's one: http://www.cplusplus.com/doc/tutorial/

It's not an overnight thing, you know.
Users WebsitePM
  Top
 

 
Saint Burak  
Posted: Sunday, Jul 22 2012, 21:39
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



QUOTE (Deji @ Sunday, Jul 22 2012, 21:36)
Yeah, millions. Google "C++ Tutorial".

Here's one: http://www.cplusplus.com/doc/tutorial/

It's not an overnight thing, you know.

about asi files.
PM
  Top
 

 
Link2012  
Posted: Sunday, Jul 22 2012, 21:56
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



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...
CODE
#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;
}
PMMSN
  Top
 

 
Michael-Knight1  
Posted: Sunday, Jul 22 2012, 23:47
Quote Post


Never Give UP
Group Icon
Group: Members
Joined: Jul 8, 2012

gr.gif

XXXXX



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

 
Bad.boy!  
Posted: Monday, Jul 23 2012, 12:37
Quote Post


SA modder
Group Icon
Group: Members
Joined: Jun 20, 2010

nl.gif

XXXXX



QUOTE (Saint Burak @ Jul 22 2012, 20:28)
How can I do? C++ or C# or VB ?


QUOTE (Deji @ Jul 22 2012, 21:01)
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++.
PM
  Top
 

 
Ashwin the new boy  
Posted: Tuesday, Aug 7 2012, 13:08
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



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,
CODE

-------------- Build: Release in MSG ---------------

Compiling: main.cpp
Linking dynamic library: bin\Release\MSG.dll
Creating library file: bin\Release\libMSG.dll.a
Output size is 6.50 KB
Process 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 ???
Users WebsitePM
  Top
 

 
Link2012  
Posted: Tuesday, Aug 7 2012, 15:40
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



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)

This post has been edited by Link2012 on Wednesday, Aug 8 2012, 02:44
PMMSN
  Top
 

 
Bad.boy!  
Posted: Tuesday, Aug 7 2012, 19:43
Quote Post


SA modder
Group Icon
Group: Members
Joined: Jun 20, 2010

nl.gif

XXXXX



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

 
fastman92  
Posted: Tuesday, Aug 7 2012, 19:49
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



QUOTE (Bad.boy! @ Tuesday, Aug 7 2012, 20:43)
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.
Users WebsitePMMSN
  Top
 

 
Ashwin the new boy  
Posted: Wednesday, Aug 8 2012, 12:53
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



QUOTE
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,
Users WebsitePM
  Top
 

 
Bad.boy!  
Posted: Wednesday, Aug 8 2012, 16:42
Quote Post


SA modder
Group Icon
Group: Members
Joined: Jun 20, 2010

nl.gif

XXXXX



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

 
krasiejow  
Posted: Thursday, Aug 23 2012, 23:09
Quote Post


VC:MP betatester
Group Icon
Group: Members
Joined: May 15, 2008

XXXXX



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.
Users WebsitePM
  Top
 

 
Bad.boy!  
Posted: Friday, Aug 24 2012, 11:59
Quote Post


SA modder
Group Icon
Group: Members
Joined: Jun 20, 2010

nl.gif

XXXXX



Read this: link

Example:
CODE
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).
PM
  Top
 

 
Meklood  
Posted: Tuesday, Jan 29 2013, 11:58
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jan 19, 2013

hg.gif

XXXXX



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.
Users WebsitePM
  Top
 

 
Bad.boy!  
Posted: Tuesday, Jan 29 2013, 16:29
Quote Post


SA modder
Group Icon
Group: Members
Joined: Jun 20, 2010

nl.gif

XXXXX



What do you mean with saloader? The asi loader has to be a dll file (vorbisFile & vorbisHooked).
And don't bump old topics.
PM
  Top
 

 
arijitsen  
Posted: Tuesday, Jan 29 2013, 16:41
Quote Post


Modder,Gamer & GFX Artist
Group Icon
Group: Members
Joined: Jun 19, 2012

ia.gif

XXXXX



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..
Users WebsitePM
  Top
 

 
Link2012  
Posted: Tuesday, Jan 29 2013, 17:05
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



QUOTE (arijitsen @ Tuesday, Jan 29 2013, 13:41)
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.
CODE
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.


This post has been edited by Link2012 on Tuesday, Jan 29 2013, 17:09
PMMSN
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG