LibM2 - A LibGame SDK

08/09/2013 22:50 dhbfurrff_bugnot#76
Quote:
Originally Posted by iMer View Post
I am using Codeblocks with uniwin to do the compiling for me
[Only registered and activated users can see links. Click Here To Register...]

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++)
[Only registered and activated users can see links. Click Here To Register...]

iMer
I have installed gcc49 so I'll run gcc49 main.cpp -o -shared lib.so or
what?
08/09/2013 23:41 iMer#77
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
08/10/2013 13:35 ionutxp#78
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.
08/10/2013 15:38 miguelmig#79
You should also add SectreeManager and SectreeMap to git
08/10/2013 17:31 Computerfreek#80
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 [Only registered and activated users can see links. Click Here To Register...] and click on "New Issue".
08/10/2013 18:59 miguelmig#81
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 [Only registered and activated users can see links. Click Here To Register...] and click on "New Issue".
It's not really an "issue" , it's just a thing I would like to see added :)
08/10/2013 21:16 Computerfreek#82
Yip. An Issue can be nearly anything, also an improvement. Just take a look at the GitHub Site I posted.
08/11/2013 02:14 MartPwnS#83
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
08/11/2013 06:31 iMer#84
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
08/11/2013 06:42 .Shōgun#85
Great work I think many people can make use of this.
08/11/2013 11:15 MrTherzon#86
Mal wieder was gescheites Danke iMer
08/11/2013 13:46 MartPwnS#87
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.
08/11/2013 15:13 iMer#88
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
08/12/2013 03:38 Sphinx²#89
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 -/usr/home/metin2/metintest/server/share/bin/libgame_ext.so 
Edit: Hab es hingekriegt :)...

Grüessli
Sphinx
08/12/2013 15:28 redoname#90
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