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 05:44

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

Advertisement



[SAMMELTHREAD] Metin2 Source Compile Tips/Tuts

Discussion on [SAMMELTHREAD] Metin2 Source Compile Tips/Tuts within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old 01/18/2014, 00:25   #196
 
elite*gold: 0
Join Date: Nov 2010
Posts: 43
Received Thanks: 10
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
aok96boom is offline  
Thanks
1 User
Old 01/18/2014, 00:52   #197
 
elite*gold: 0
Join Date: Sep 2010
Posts: 31
Received Thanks: 6
i am using novaline branch, already tried to copy content from python22....
adi97ida is offline  
Old 01/18/2014, 01:51   #198
 
elite*gold: 0
Join Date: Nov 2010
Posts: 43
Received Thanks: 10
use the mainline_released for client binary
aok96boom is offline  
Old 01/18/2014, 21:06   #199
 
elite*gold: 0
Join Date: Sep 2010
Posts: 31
Received Thanks: 6
aok96boom thank you, saved my life =))), and my keyboard
adi97ida is offline  
Old 01/18/2014, 22:31   #200
 
elite*gold: 0
Join Date: Nov 2010
Posts: 43
Received Thanks: 10
Quote:
Originally Posted by adi97ida View Post
aok96boom thank you, saved my life =))), and my keyboard
np
aok96boom is offline  
Old 01/19/2014, 13:03   #201
 
redrpci2008's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 29
Received Thanks: 24
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.
redrpci2008 is offline  
Old 01/19/2014, 18:05   #202
 
atag's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 104
Received Thanks: 126
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..
atag is offline  
Old 01/19/2014, 18:20   #203
 
elite*gold: 0
Join Date: Sep 2010
Posts: 31
Received Thanks: 6
Thank you atag, it works
adi97ida is offline  
Old 01/19/2014, 18:25   #204
 
elite*gold: 0
Join Date: Dec 2013
Posts: 22
Received Thanks: 1
Looking forward for sth awesome
Evor™ is offline  
Old 01/19/2014, 18:36   #205
 
.Captor's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 223
Received Thanks: 93
Kann mir jemand mit meinen Fehlern helfen... Büdde
Bekomme sie einfach nicht weg, egal was ich mache.... -.-

Edit: Habe hier versucht die mainline_release Bin zu compilen.

.Captor is offline  
Old 01/19/2014, 22:14   #206
 
elite*gold: 0
Join Date: Dec 2013
Posts: 22
Received Thanks: 1
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
Evor™ is offline  
Old 01/20/2014, 22:21   #207
 
elite*gold: 0
Join Date: Jan 2010
Posts: 104
Received Thanks: 158
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.
GunnerMBT is offline  
Thanks
1 User
Old 01/21/2014, 10:20   #208
 
elite*gold: 0
Join Date: Dec 2013
Posts: 22
Received Thanks: 1
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
Evor™ is offline  
Old 01/21/2014, 14:34   #209
 
callmax's Avatar
 
elite*gold: 20
Join Date: Mar 2010
Posts: 1,166
Received Thanks: 684
callmax is offline  
Old 01/21/2014, 18:22   #210
 
niquetamereputain's Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 145
Received Thanks: 23
How to make work this new game with old client of invoice ? coz all work except items we don't see ig
niquetamereputain is offline  
Reply


Similar Threads Similar Threads
Reverse Crypt Systems [Tips/Hints/Tuts needed]]
03/01/2012 - CO2 Private Server - 8 Replies
Hello PVPers, So the Title says it all, Since i came here and i am trying to learn how to be a good Coder and Co2 P.Server Specially , i guess i dd well so far but i'v noticed that all my prev experience ddnt came near Encrypting/Decrypting systems , i also aware of that most of good coders around here are very busy coding stuff and so ,i was away for sometime and about 2 months ago i came back from AD (work trip) and a friend asked for an up to date P.Server , actually i miss that fun so...



All times are GMT +1. The time now is 05:44.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.