|
 |
|
|
|
|
|
GTA Modification Forums
Creating a dll for VC Tired from Making Custom & Main scripts
 |
|
 |
| |
Ashwin the new boy  |
Posted: Wednesday, May 9 2012, 13:27
|
I am The Most Confused Person

Group: Members
Joined: Nov 14, 2010


|
Hi Friends, as the topic says, i need your help in making a Working DLL for Vice city. ::DLL:: which write some value to a memory address example >>>> writing 1 byte value 245 to 0xA10B81 writing a string 'blabla' to 0x68F1F4 & writing a float value 99999.99 to 0x69C780 I want to do this by using 'Code blocks' please tell me the code that i should write in CB for this or a Link to your uploaded Project will be great Actually i know what to write but the DLL is not working,Waiting ... This post has been edited by Ashwin the new boy on Wednesday, May 9 2012, 13:29
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Ashwin the new boy  |
Posted: Wednesday, May 9 2012, 13:44
|
I am The Most Confused Person

Group: Members
Joined: Nov 14, 2010


|
i was using | CODE | *(float*)0x68E704 = 1.0f; *(byte*)0x4A6B7C = 113;
|
but doesn't work, i am using C++ after a looong gap. May be possible i forgot something (also using CODE BLOCK First time  ) ---------------------- i want the full code from TOP to END i mean from "#include" to "return TRUE;}" sorry for behaving like a Big NOOB here also > found a prob. that i was building it in Debug mode  is it necessary to do that all .res & .def thing ? This post has been edited by Ashwin the new boy on Wednesday, May 9 2012, 13:48
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Link2012  |
Posted: Wednesday, May 9 2012, 16:14
|
Wut?

Group: Members
Joined: Jan 30, 2011


|
You can take a look at the source of http://www.gtagarage.com/mods/show.php?id=17919from fastman92. --- And I did this some times ago, but didn't finished (I just started and stopped, maybe later I continue), since I just started the code is very simple (and bugged, but it writes in the address very well) Here is it: http://pastebin.com/AnbvvieiIt has a replica of the CLEO Opcode Write Memory, for string: | CODE | void WriteMemory(void* Address, int size, char* value, bool vp = false) { DWORD oldProtect; if(vp) VirtualProtect(Address, size, PAGE_EXECUTE_READWRITE, &oldProtect);
strncpy(Address, value, size);
if(vp) VirtualProtect(Address, size, oldProtect, &oldProtect); } |
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Deji  |
Posted: Tuesday, May 15 2012, 13:16
|
Coding like a Rockstar!

Group: Members
Joined: Dec 24, 2007


|
| QUOTE (Ashwin the new boy @ Tuesday, May 15 2012, 12:47) | I tried a lot but There is NO effect on those mem addresses Can anyone make & upload a DLL Project so that i can also start DLL coding please ... |
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|