Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 22:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE] Source library for add functions to game

Discussion on [RELEASE] Source library for add functions to game within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old 03/19/2013, 22:59   #16
 
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
Quote:
Originally Posted by balika01 View Post
not nice source
Wait wait wait, are you fu**ing serious? You "wrote" an archiver tool with the worst syntax and style I've ever seen. And you even accuse others of having stolen your work when you have no proof of what you say (I'm making a reference to the "EterNexus" thread).
Yet, you came here saying "not nice source", and you probably also rated this thread at just one star just to make people think this release is rubbish. I'm astonished.

Back on topic, anyway, this is a great release and will allow greater development on the metin2 server files. I already had a library I made, but I'm sure this will let people be creative.
ricky92 is offline  
Thanks
11 Users
Old 03/20/2013, 00:37   #17
 
elite*gold: 0
Join Date: Feb 2012
Posts: 26
Received Thanks: 1
Every idiot who can at least do some C++, you mean.
Not all can understand those kind of thing
xcape414 is offline  
Old 03/20/2013, 01:31   #18
 
balika01's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 179
Received Thanks: 350
Wink

Quote:
Originally Posted by ricky92 View Post
Wait wait wait, are you fu**ing serious? You "wrote" an archiver tool with the worst syntax and style I've ever seen. And you even accuse others of having stolen your work when you have no proof of what you say (I'm making a reference to the "EterNexus" thread).
Yet, you came here saying "not nice source", and you probably also rated this thread at just one star just to make people think this release is rubbish. I'm astonished.

Back on topic, anyway, this is a great release and will allow greater development on the metin2 server files. I already had a library I made, but I'm sure this will let people be creative.
you think this accidentally have worst syntax? lets see the source.. parts from s0beit for samp ( ) xD and "void __attribute__ ((constructor)) my_load(void);
void __attribute__ ((destructor)) my_unload(void); .." from not full copy?! and detour main? what the hell? xD no, this not nice souce. that all form full stolen stuffs.. and any copyright or licence? i found nothing.. (and i said nothing about your releases..)

edit:
who didn't made own dinamic library? (ex.: my petsytem in a lib )
balika01 is offline  
Old 03/20/2013, 01:55   #19
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 39
Quote:
Originally Posted by balika01 View Post
you think this accidentally have worst syntax? lets see the source.. parts from s0beit for samp ( ) xD and "void __attribute__ ((constructor)) my_load(void);
void __attribute__ ((destructor)) my_unload(void); .." from not full copy?! and detour main? what the hell? xD no, this not nice souce. that all form full stolen stuffs.. and any copyright or licence? i found nothing.. (and i said nothing about your releases..)

edit:
who didn't made own dinamic library? (ex.: my petsytem in a lib )

ADE32 is adapted (from darkanima and mr.lucifer) to run on linux, so, how it can be copied?
Part of this code was taken on stackoverflow, and documentation of BSD.
my_load and my_unload, are just a coincidence that they are like the code that you linked.
Are you angry because you no longer have the exclusive?
Niks90 is offline  
Old 03/20/2013, 02:09   #20
 
balika01's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 179
Received Thanks: 350
Quote:
Originally Posted by Niks90 View Post
ADE32 is adapted (from darkanima and mr.lucifer) to run on linux, so, how it can be copied?
Part of this code was taken on stackoverflow, and documentation of BSD.
my_load and my_unload, are just a coincidence that they are like the code that you linked.
Are you angry because you no longer have the exclusive?
i said 3 word and a smiley.. xD (and respond for ricky92) im angry? no xD

--> mr.lucifer have it from s0beit

WinDef.h for linux: (form vc++2010 whit removed unneeded stuffs for linux) (whit this work official ADE32)
Code:
/****************************************************************************
*                                                                           *
* windef.h -- Basic Windows Type Definitions                                *
*                                                                           *
* Copyright (c) Microsoft Corporation. All rights reserved.                 *
*                                                                           *
****************************************************************************/


#ifndef _WINDEF_
#define _WINDEF_
#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#ifndef BASETYPES
#define BASETYPES
typedef unsigned long ULONG;
typedef ULONG *PULONG;
typedef unsigned short USHORT;
typedef USHORT *PUSHORT;
typedef unsigned char UCHAR;
typedef UCHAR *PUCHAR;
typedef char *PSZ;
#endif  /* !BASETYPES */

#undef far
#undef near

#define far
#define near

#undef FAR
#undef  NEAR
#define FAR                 far
#define NEAR                near
#ifndef CONST
#define CONST               const
#endif

typedef unsigned long       DWORD;
typedef int                 BOOL;
typedef unsigned char       BYTE;
typedef unsigned short      WORD;
typedef float               FLOAT;
typedef FLOAT               *PFLOAT;
typedef BOOL near           *PBOOL;
typedef BOOL far            *LPBOOL;
typedef BYTE near           *PBYTE;
typedef BYTE far            *LPBYTE;
typedef int near            *PINT;
typedef int far             *LPINT;
typedef WORD near           *PWORD;
typedef WORD far            *LPWORD;
typedef long far            *LPLONG;
typedef DWORD near          *PDWORD;
typedef DWORD far           *LPDWORD;
typedef void far            *LPVOID;
typedef CONST void far      *LPCVOID;

typedef int                 INT;
typedef unsigned int        UINT;
typedef unsigned int        *PUINT;

#ifndef NOMINMAX

#ifndef max
#define max(a,b)            (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define min(a,b)            (((a) < (b)) ? (a) : (b))
#endif

#endif  /* NOMINMAX */

#define MAKEWORD(a, b)      ((WORD)(((BYTE)(((DWORD_PTR)(a)) & 0xff)) | ((WORD)((BYTE)(((DWORD_PTR)(b)) & 0xff))) << 8))
#define MAKELONG(a, b)      ((LONG)(((WORD)(((DWORD_PTR)(a)) & 0xffff)) | ((DWORD)((WORD)(((DWORD_PTR)(b)) & 0xffff))) << 16))
#define LOWORD(l)           ((WORD)(((DWORD_PTR)(l)) & 0xffff))
#define HIWORD(l)           ((WORD)((((DWORD_PTR)(l)) >> 16) & 0xffff))
#define LOBYTE(w)           ((BYTE)(((DWORD_PTR)(w)) & 0xff))
#define HIBYTE(w)           ((BYTE)((((DWORD_PTR)(w)) >> 8) & 0xff))

#ifdef __cplusplus
}
#endif

#endif /* _WINDEF_ */
balika01 is offline  
Old 03/20/2013, 02:58   #21
 
elite*gold: 0
Join Date: Mar 2009
Posts: 1
Received Thanks: 5
Quote:
Originally Posted by balika01 View Post
i said 3 word and a smiley.. xD (and respond for ricky92) im angry? no xD

--> mr.lucifer have it from s0beit

WinDef.h for linux: (form vc++2010 whit removed unneeded stuffs for linux) (whit this work official ADE32)
Code:
/****************************************************************************
*                                                                           *
* windef.h -- Basic Windows Type Definitions                                *
*                                                                           *
* Copyright (c) Microsoft Corporation. All rights reserved.                 *
*                                                                           *
****************************************************************************/


#ifndef _WINDEF_
#define _WINDEF_
#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#ifndef BASETYPES
#define BASETYPES
typedef unsigned long ULONG;
typedef ULONG *PULONG;
typedef unsigned short USHORT;
typedef USHORT *PUSHORT;
typedef unsigned char UCHAR;
typedef UCHAR *PUCHAR;
typedef char *PSZ;
#endif  /* !BASETYPES */

#undef far
#undef near

#define far
#define near

#undef FAR
#undef  NEAR
#define FAR                 far
#define NEAR                near
#ifndef CONST
#define CONST               const
#endif

typedef unsigned long       DWORD;
typedef int                 BOOL;
typedef unsigned char       BYTE;
typedef unsigned short      WORD;
typedef float               FLOAT;
typedef FLOAT               *PFLOAT;
typedef BOOL near           *PBOOL;
typedef BOOL far            *LPBOOL;
typedef BYTE near           *PBYTE;
typedef BYTE far            *LPBYTE;
typedef int near            *PINT;
typedef int far             *LPINT;
typedef WORD near           *PWORD;
typedef WORD far            *LPWORD;
typedef long far            *LPLONG;
typedef DWORD near          *PDWORD;
typedef DWORD far           *LPDWORD;
typedef void far            *LPVOID;
typedef CONST void far      *LPCVOID;

typedef int                 INT;
typedef unsigned int        UINT;
typedef unsigned int        *PUINT;

#ifndef NOMINMAX

#ifndef max
#define max(a,b)            (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define min(a,b)            (((a) < (b)) ? (a) : (b))
#endif

#endif  /* NOMINMAX */

#define MAKEWORD(a, b)      ((WORD)(((BYTE)(((DWORD_PTR)(a)) & 0xff)) | ((WORD)((BYTE)(((DWORD_PTR)(b)) & 0xff))) << 8))
#define MAKELONG(a, b)      ((LONG)(((WORD)(((DWORD_PTR)(a)) & 0xffff)) | ((DWORD)((WORD)(((DWORD_PTR)(b)) & 0xffff))) << 16))
#define LOWORD(l)           ((WORD)(((DWORD_PTR)(l)) & 0xffff))
#define HIWORD(l)           ((WORD)((((DWORD_PTR)(l)) >> 16) & 0xffff))
#define LOBYTE(w)           ((BYTE)(((DWORD_PTR)(w)) & 0xff))
#define HIBYTE(w)           ((BYTE)((((DWORD_PTR)(w)) >> 8) & 0xff))

#ifdef __cplusplus
}
#endif

#endif /* _WINDEF_ */
come on man, do you think that i need to copy stuff because i'm too stupid to do it? be serious, i got ADE32 from CDetours lib (for windows) from someone that i don't remember on a forum, when i was writing my lib for the client, then i realized that "DETOUR_LEN_AUTO" could be used with a detour library on *nix, so i fixed a couple of types (because only an idiot would include that header you posted on linux os, that convention is NOT standard, why the hell should i use LPDWORD instead of int *?). not lucifer nor me got code from that link, contructor and destructor comes from the link you poster, you are right, i read them here. now tell me, that is an article that explains how to use a constructor when a library is loaded, so that code "following your idea" should not be used, right? you are ridiculous. detour func for linux comes from someone on the 'net too but who cares, why would i have to reinvent the wheel? i wrote a petsystem too! oh, maybe you think that i copied it from someone
doraemonita is offline  
Thanks
5 Users
Old 03/20/2013, 10:51   #22
 
elite*gold: 0
Join Date: Jan 2011
Posts: 22
Received Thanks: 19
Quote:
Originally Posted by ricky92 View Post
Wait wait wait, are you fu**ing serious? You "wrote" an archiver tool with the worst syntax and style I've ever seen. And you even accuse others of having stolen your work when you have no proof of what you say (I'm making a reference to the "EterNexus" thread).
Yet, you came here saying "not nice source", and you probably also rated this thread at just one star just to make people think this release is rubbish. I'm astonished.
That's really funny
Copied or not, these are things never seen on a metin2 forum since i remember.
Cescoso is offline  
Old 03/20/2013, 15:09   #23
 
elite*gold: 0
Join Date: Oct 2011
Posts: 32
Received Thanks: 37
This library works on AMD 64bit's?
zeromentu is offline  
Old 03/20/2013, 15:41   #24
 
balika01's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 179
Received Thanks: 350
Quote:
Originally Posted by zeromentu View Post
This library works on ADM 64bit's?
what is the ADM?

(if you mean amd i can say yes)
balika01 is offline  
Old 03/20/2013, 16:05   #25
 
Anohros's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 288
Received Thanks: 1,170
Hello,

the source code doesn't look nice, needs a rework of code.

I worked out this method of modding with ld_preload since months, it's nothing special.
Use g++(c++) to compile! (Object oriented programming)

To attaching the i386 library in a amd64 environment you must adjust the ld_preload environment variable. To inject the library in amd64 environment you can make usage of the coreext_amd64 injector.


With regards,
Anohros
Anohros is offline  
Old 03/20/2013, 21:10   #26
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Quote:
Originally Posted by Anohros View Post
To inject the library in amd64 environment you can make usage of the coreext_amd64 injector.
Rotfl?

Code:
#compile
g++ -m32 ...
#env var
LD_32_PRELOAD="/path/lib.so"
./game
lollo_9_1 is offline  
Old 03/21/2013, 16:00   #27
 
elite*gold: 0
Join Date: Aug 2012
Posts: 113
Received Thanks: 81
but we have to get some game functions such as equipitem etc. can we get current functions ? if yes then how?
LazYGirl. is offline  
Old 03/21/2013, 20:03   #28
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 39
Yes, you can use all default functions how you prefer.
How? Eheh, you must analyze your elf
Niks90 is offline  
Old 03/21/2013, 20:27   #29
 
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 58
look, if i inject new func, like pc.kill or something like that.. then, how to do, that first argument of this function is vid of player? you know, like:
int kill(a1){
gamefunctionkill(a1)
return 1 }
xDeStRuCtx is offline  
Old 03/21/2013, 20:32   #30
 
elite*gold: 0
Join Date: Aug 2012
Posts: 113
Received Thanks: 81
Quote:
Originally Posted by Niks90 View Post
Yes, you can use all default functions how you prefer.
How? Eheh, you must analyze your elf
okey i did it and why we didnt think that its awesome idea
LazYGirl. is offline  
Reply


Similar Threads Similar Threads
Release Library
06/04/2013 - Maestia - 6 Replies
Here are all the working Releases and Tutorials. Speed Hack: This will increase your movement speed http://www.elitepvpers.com/forum/maestia/1288146- release-maestia-speed-hack-v-1-x86-64-a.html Hackshieldkiller, Bot,...: The bot will level automatically. The Hackshieldbypass will bypass the Hackshield, so you wont get kicked.
[Biete] Elitepvpers Library Source [VB.NET] | [Suche] elite*gold
01/19/2013 - elite*gold Trading - 3 Replies
.
Small CO Memory Functions Library...
01/15/2007 - Conquer Online 2 - 4 Replies
I've begun to work on a small dynamic load library (DLL) for Conquer Online in pure assembler. Due to it being programmed in assembler not only will the library be incredibly small in file size, but it will also be much faster than any Visual Basic, C++, or Pascal equivalent. Not to mention I just plain love programming in assembler languages. Before I get started on some major functions, I would like some of the more intelligent users to suggest and chose features for each so that...



All times are GMT +2. The time now is 22:53.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.