Register for your free account! | Forgot your password?

You last visited: Today at 13:47

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

Advertisement



LibM2 - A LibGame SDK

Discussion on LibM2 - A LibGame SDK within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #76
 
elite*gold: 0
Join Date: Sep 2010
Posts: 9
Received Thanks: 0
Quote:
Originally Posted by iMer View Post
I am using Codeblocks with uniwin to do the compiling for me


Other than that you'll need gcc48 (or higher) and a FreeBSD (32bit) system to compile on.
I myself use a vm for that.
What you'll have to do is install gcc48 and move the old gcc/g++ commands to gcc_old or something and then rename the new gcc48 to gcc (same with g++)


iMer
I have installed gcc49 so I'll run gcc49 main.cpp -o -shared lib.so or
what?
dhbfurrff_bugnot is offline  
Old   #77

 
iMer's Avatar
 
elite*gold: 606
Join Date: Apr 2008
Posts: 3,180
Received Thanks: 5,376
Quote:
Originally Posted by dhbfurrff_bugnot View Post
I have installed gcc49 so I'll run gcc49 main.cpp -o -shared lib.so or
what?
You'll have to compile all the .cpp files your use and link them together
It's generally easier to just let an ide or something like that do that work for you
iMer is offline  
Old   #78
 
elite*gold: 0
Join Date: Mar 2009
Posts: 28
Received Thanks: 13
Now, i'm compiling with NetBeans with remote support.
I had problems even with the NetBeans. After linking and starting the server i had errors like: undefined vtable for CInputMain. I solved them by adding void constructors and destructors on class definitions. Now the compiled library it seams to work. Shall i add constructor (and destruct) ClassName(void); to all the .hpp files that doesn't have ?

Edit:
Ups (only now i saw the update from git)

Later edit:
You may also add DBManager class to the project.
ionutxp is offline  
Old   #79
 
miguelmig's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
You should also add SectreeManager and SectreeMap to git
miguelmig is offline  
Old   #80

 
elite*gold: 0
Join Date: Feb 2008
Posts: 2,754
Received Thanks: 1,748
Quote:
Originally Posted by miguelmig View Post
You should also add SectreeManager and SectreeMap to git
You could sign in to GitHub and create a new issue.
Then everybody can see when it's fixed and you've got a log about all requests.

Just go and click on "New Issue".
Computerfreek is offline  
Old   #81
 
miguelmig's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
Quote:
Originally Posted by Computerfreek View Post
You could sign in to GitHub and create a new issue.
Then everybody can see when it's fixed and you've got a log about all requests.

Just go and click on "New Issue".
It's not really an "issue" , it's just a thing I would like to see added
miguelmig is offline  
Old   #82

 
elite*gold: 0
Join Date: Feb 2008
Posts: 2,754
Received Thanks: 1,748
Yip. An Issue can be nearly anything, also an improvement. Just take a look at the GitHub Site I posted.
Computerfreek is offline  
Old   #83
 
elite*gold: 200
Join Date: Apr 2012
Posts: 577
Received Thanks: 290
Awesome work but im New to c++ so i Guess it will take some time until i can work with your Sdk.
Is there any Chance of only replacing a part of a function or Overwrite a variable? I need this to do the current check for socket2 in item award or for giving dss fks Directory on Platine the item in Investor. The old query doesnt take care of this Points.

Kind Regards
MartPwnS
MartPwnS is offline  
Old   #84

 
iMer's Avatar
 
elite*gold: 606
Join Date: Apr 2008
Posts: 3,180
Received Thanks: 5,376
Quote:
Originally Posted by Computerfreek View Post
Yip. An Issue can be nearly anything, also an improvement. Just take a look at the GitHub Site I posted.
This
So If you need a class, just post it on there
It's usually not much work to add them
I just didnt add all of them 'cause thats waaaaay too much work - most of them probably wouldnt ever be used anyways
Quote:
Originally Posted by MartPwnS View Post
Awesome work but im New to c++ so i Guess it will take some time until i can work with your Sdk.
Is there any Chance of only replacing a part of a function or Overwrite a variable? I need this to do the current check for socket2 in item award or for giving dss fks Directory on Platine the item in Investor. The old query doesnt take care of this Points.

Kind Regards
MartPwnS
Yes, you can apply difs during runtime thus (theoretically) change only parts of a function - gets harder depending on you want to do though
iMer is offline  
Old   #85
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
Great work I think many people can make use of this.
.Shōgun is offline  
Old   #86



 
MrTherzon's Avatar
 
elite*gold: 0
The Black Market: 180/0/1
Join Date: Dec 2012
Posts: 9,407
Received Thanks: 2,744
Mal wieder was gescheites Danke iMer
MrTherzon is offline  
Old   #87
 
elite*gold: 200
Join Date: Apr 2012
Posts: 577
Received Thanks: 290
Danke imer sry für das englisch da oben autokorrektur und so ist es möglich das ich dich mal via pn was fragen kann? Stehe da mit meinem Problem leicht auf dem Schlauch brauche nen wert aus der Datenbank der in ne variable muss genug platz sollte eig sein denke der Pointen zur Datenbank existiert auch weil er sonst alles richtig liest.
MartPwnS is offline  
Old   #88

 
iMer's Avatar
 
elite*gold: 606
Join Date: Apr 2008
Posts: 3,180
Received Thanks: 5,376
Quote:
Originally Posted by MartPwnS View Post
Danke imer sry für das englisch da oben autokorrektur und so ist es möglich das ich dich mal via pn was fragen kann? Stehe da mit meinem Problem leicht auf dem Schlauch brauche nen wert aus der Datenbank der in ne variable muss genug platz sollte eig sein denke der Pointen zur Datenbank existiert auch weil er sonst alles richtig liest.
klar
iMer is offline  
Old   #89
 
Sphinx²'s Avatar
 
elite*gold: 1918
Join Date: Feb 2008
Posts: 1,368
Received Thanks: 1,287
Ne frage bezüglich compilen.

Ich hab probleme mit Uniwin und Codeblocks...
Es kommt öfters dazu das gssh einfach abstürzt. (Uniwin modul).

Ich wollte fragen wie es aussieht mit dem Befehl um das ganze zu compilen?


Ich hab es damit probiert aber irgendwie, passiert einfach nichts beim preloaden....

PHP Code:
g++48 -std=c++11 -shared -fPIC game/CHARACTER.cpp game/misc.cpp game/lua.cpp game/EVENT.cpp game/DESC.cpp game/CInputProcessor.cpp game/CInputMain.cpp game/CInputAuth.cpp game/quest/CQuestManager.cpp lib/dif.cpp lib/log.cpp IQuest.cpp LibM2.cpp Command.cpp src/ban.cpp src/main.cpp -o /usr/home/metin2/metintest/server/share/bin/libgame_ext.so 
Edit: Hab es hingekriegt ...

Grüessli
Sphinx
Sphinx² is offline  
Old   #90
 
elite*gold: 0
Join Date: Aug 2013
Posts: 15
Received Thanks: 2
Hm, it would be nice if you added classes:

- DBManager
- CGuildManager
- CShopManager
- LogManager
- mining

I didn`t check that they exist because I haven`t got your lib on this PC, but some of them are useful and they don`t exist. Thanks
redoname is offline  
Reply




All times are GMT +2. The time now is 13:48.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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