[SAMMELTHREAD] Metin2 Source Compile Tips/Tuts

01/18/2014 00:25 aok96boom#196
Quote:
Originally Posted by adi97ida View Post
Almost compiled the client source, but then.....
error C2664: 'CPythonGraphic::SaveJPEG' : cannot convert parameter 2 from 'char *' to 'LPBYTE' fille is: PythonGraphic.cpp and project eterPythonLib
Solution for this..... ?
Copy the python22 folder from the world editor and include into your c++ includes, and then the error does not appears anymore
01/18/2014 00:52 adi97ida#197
i am using novaline branch, already tried to copy content from python22....
01/18/2014 01:51 aok96boom#198
use the mainline_released for client binary
01/18/2014 21:06 adi97ida#199
aok96boom thank you, saved my life =))), and my keyboard :D
01/18/2014 22:31 aok96boom#200
Quote:
Originally Posted by adi97ida View Post
aok96boom thank you, saved my life =))), and my keyboard :D
np :)
01/19/2014 13:03 redrpci2008#201
Quote:
Originally Posted by GunnerMBT View Post
When compiling the client project, it might throw something like this:

'std::forward' : cannot convert parameter 1 from '' to '&'

In my case the template would not accept a string literal, the solution is to explicitly create an std::string from it.
How am I supposed to do this? An example would be nice.
01/19/2014 18:05 atag#202
Quote:
Originally Posted by adi97ida View Post
Almost compiled the client source, but then.....
error C2664: 'CPythonGraphic::SaveJPEG' : cannot convert parameter 2 from 'char *' to 'LPBYTE' fille is: PythonGraphic.cpp and project eterPythonLib
Solution for this..... ?
Change
Code:
bool bSaved = SaveJPEG(c_pszFileName, pbyBuffer, uWidth, uHeight);
to
Code:
bool bSaved = SaveJPEG(c_pszFileName, (LPBYTE) pbyBuffer, uWidth, uHeight);
Uggly but works..
01/19/2014 18:20 adi97ida#203
Thank you atag, it works :D
01/19/2014 18:25 Evor™#204
Looking forward for sth awesome :p
01/19/2014 18:36 .Captor#205
Kann mir jemand mit meinen Fehlern helfen... Büdde :p
Bekomme sie einfach nicht weg, egal was ich mache.... -.-

Edit: Habe hier versucht die mainline_release Bin zu compilen.

01/19/2014 22:14 Evor™#206
So, have somebody problems with db? It Has problems with starting. Sometimes it shows segmentation fault core dumped or it starts and shows error about Mysql connections, is it just The matter od mysql or serc btw. I used mainline db
Thanks in advance
01/20/2014 22:21 GunnerMBT#207
Quote:
Originally Posted by redrpci2008 View Post
How am I supposed to do this? An example would be nice.
I can't tell you the exact case in which it occured because I don't remember it. However, explicitly converting a string means passing the string literal to the std::string constructor, for instance:

"MyFunction" takes a string as its only argument, if you call it like this:

Code:
MyFunction("Hello");
It might throw an error, to fix it explicitly create a string out of the string literal ("Hello"), hence:

Code:
MyFunction(std::string("Hello"))


Quote:
Originally Posted by Evor™ View Post
So, have somebody problems with db? It Has problems with starting. Sometimes it shows segmentation fault core dumped or it starts and shows error about Mysql connections, is it just The matter od mysql or serc btw. I used mainline db
Thanks in advance
You'll have to be more specific, show us the syserr (if any), if it instantly closes the process, fool the system into thinking the process is not yet finished (pause) to be able to see the error message.
01/21/2014 10:20 Evor™#208
Okey sory for my stupidity.
First of all:
a) syserr:
b) syslog:
c) gdb:
Compiled with gcc 4.2.1, using libs from Imer's topic.
Thanks in advance
01/21/2014 14:34 callmax#209
01/21/2014 18:22 niquetamereputain#210
How to make work this new game with old client of invoice ? coz all work except items we don't see ig