Quantcast

Jump to content

» «
Photo

[Q] DK22PAC Plugin SDK

Best Answer DK22Pac, 3 weeks ago

Do you know how to work with them in CLEO? We have similar functionality in plugin-sdk.

plugin::patch::SetUInt(address, value); // write 4-byte value @ address
unsigned int value = plugin::patch::GetUInt(address); // read 4-byte value @ address
plugin::patch::SetUShort(address, value); // write 2-byte value @ address
unsigned short value = plugin::patch::GetUShort(address); // read 2-byte value @ address
plugin::patch::SetUChar(address, value); // write 1-byte value @ address
unsigned char value = plugin::patch::GetUChar(address); // read 1-byte value @ address
Example:

0xBAB244 - [byte] Wanted level color (RGBA, 4 bytes)

#include "plugin.h"

using namespace plugin;

class RedWantedStars {
public:
    RedWantedStars() {
        Events::initRwEvent += [] {
            patch::SetUInt(0xBAB244, 0xFF0000FF);
        };
    }
} inst;
And to get more understanding about memory addresses, you should start working with IDA and GTA database. You can join our chat in Discord to get more info. Go to the full post


12 replies to this topic
Gian_Yagami
  • Gian_Yagami

    Punk-ass Bitch

  • Members
  • Joined: 08 Nov 2011

#1

Posted 14 May 2014 - 06:27 PM

Hello, I downloaded DK22PAC Plugin SDK. It's have many code functions. Anyone have english tutorial?


CharlesVercetti
  • CharlesVercetti

    Back to the business...

  • Members
  • Joined: 08 Dec 2013
  • India

#2

Posted 15 May 2014 - 01:06 PM

Learn C++ first.

 

All you get is a long list of header files.

Link them to your C++ script,put the plugin.dll in your SA root folder.

  • Gian_Yagami and CrossPT like this

LINK/2012
  • LINK/2012

    LIVIN' IN CODE

  • Feroci
  • Joined: 30 Jan 2011
  • Brazil
  • Best Tool 2014 [Mod Loader]
    Contribution Award [Mods]

#3

Posted 15 May 2014 - 03:16 PM

Learn C++ first.
 
All you get is a long list of header files.
Link them to your C++ script,put the plugin.dll in your SA root folder.

plugin.dll is deprecated, plugin sdk is now a static library.


CharlesVercetti
  • CharlesVercetti

    Back to the business...

  • Members
  • Joined: 08 Dec 2013
  • India

#4

Posted 16 May 2014 - 07:13 AM

 

Learn C++ first.
 
All you get is a long list of header files.
Link them to your C++ script,put the plugin.dll in your SA root folder.

plugin.dll is deprecated, plugin sdk is now a static library.

 

Where can I get the new Plugin SDK?

_DK had that link disabled in his signature.


LINK/2012
  • LINK/2012

    LIVIN' IN CODE

  • Feroci
  • Joined: 30 Jan 2011
  • Brazil
  • Best Tool 2014 [Mod Loader]
    Contribution Award [Mods]

#5

Posted 16 May 2014 - 03:35 PM

 

 

Learn C++ first.
 
All you get is a long list of header files.
Link them to your C++ script,put the plugin.dll in your SA root folder.

plugin.dll is deprecated, plugin sdk is now a static library.

 

Where can I get the new Plugin SDK?

_DK had that link disabled in his signature.

 

https://github.com/t...2012/plugin-sdk


Gian_Yagami
  • Gian_Yagami

    Punk-ass Bitch

  • Members
  • Joined: 08 Nov 2011

#6

Posted 17 May 2014 - 10:38 PM

I mean, I need explanation in each function.


Johnny_D
  • Johnny_D

    inb4 cool kids

  • Members
  • Joined: 13 Apr 2014
  • Unknown

#7

Posted 18 May 2014 - 12:30 PM

From my understanding, once you know C++, then you'll understand the functions. Other than that, you'll be confused as hell.


David_CARP96
  • David_CARP96

    Square Civilian

  • Members
  • Joined: 03 Aug 2014
  • Argentina

#8

Posted 29 September 2014 - 12:59 AM

Somebody here knows how can I install this thing??? ._.


Gian_Yagami
  • Gian_Yagami

    Punk-ass Bitch

  • Members
  • Joined: 08 Nov 2011

#9

Posted 3 weeks ago

Hello again, I bumping my old post because I am now a college student majoring in informatics engineering since 2015. I've learned Java, C and C++ with Object oriented method. Now I can understanding function with myself, only one thing I still don't understand is manipulating memory address. But I won't give up to learn it.

 

 

Somebody here knows how can I install this thing??? ._.

This is SDK, it means tons of library keyword which have their respective functions. so you just add them in your project file from IDE menu.

  • Inan-Ahammad likes this

DK22Pac
  • DK22Pac

  • Feroci
  • Joined: 12 Apr 2009
  • Ukraine
  • Best WIP Mod 2014 [Grand Theft Auto 3D Contribution]
    Contribution Award [Mods]
    Helpfulness Award [Mods]

#10

Posted 3 weeks ago   Best Answer Edited by DK22Pac, 3 weeks ago.

Do you know how to work with them in CLEO? We have similar functionality in plugin-sdk.
plugin::patch::SetUInt(address, value); // write 4-byte value @ address
unsigned int value = plugin::patch::GetUInt(address); // read 4-byte value @ address
plugin::patch::SetUShort(address, value); // write 2-byte value @ address
unsigned short value = plugin::patch::GetUShort(address); // read 2-byte value @ address
plugin::patch::SetUChar(address, value); // write 1-byte value @ address
unsigned char value = plugin::patch::GetUChar(address); // read 1-byte value @ address
Example:

0xBAB244 - [byte] Wanted level color (RGBA, 4 bytes)

#include "plugin.h"

using namespace plugin;

class RedWantedStars {
public:
    RedWantedStars() {
        Events::initRwEvent += [] {
            patch::SetUInt(0xBAB244, 0xFF0000FF);
        };
    }
} inst;
And to get more understanding about memory addresses, you should start working with IDA and GTA database. You can join our chat in Discord to get more info.
  • Gian_Yagami likes this

CharlesVercetti
  • CharlesVercetti

    Back to the business...

  • Members
  • Joined: 08 Dec 2013
  • India

#11

Posted 3 weeks ago

Hello again, I bumping my old post because I am now a college student majoring in informatics engineering since 2015. I've learned Java, C and C++ with Object oriented method. Now I can understanding function with myself, only one thing I still don't understand is manipulating memory address. But I won't give up to learn it.

That is some spirit.Sorry for offtopic,but I am also studying the same course now.


Gian_Yagami
  • Gian_Yagami

    Punk-ass Bitch

  • Members
  • Joined: 08 Nov 2011

#12

Posted 2 weeks ago

Do you know how to work with them in CLEO? We have similar functionality in plugin-sdk.

 

 

Yes I know well about CLEO, DK.

 

 

And to get more understanding about memory addresses, you should start working with IDA and GTA database. You can join our chat in Discord to get more info.

 

I never heard about IDA and GTA database before.


DangerDan12
  • DangerDan12

    #BeamNG.Drive <3

  • Members
  • Joined: 2 weeks ago
  • Germany

#13

Posted 2 weeks ago

Is this the official Plugin SDK topic? If not, which one is ist then?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users