|
You last visited: Today at 12:18
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.
01/05/2014, 11:35
|
#46
|
elite*gold: 0
Join Date: Dec 2010
Posts: 2
Received Thanks: 0
|
Main problem is convert char to unsigned char.
Code:
MetinClient:
PythonGraphic.cpp(294): error C2664: 'CPythonGraphic::SaveJPEG' : cannot convert parameter 2 from 'char *' to 'LPBYTE'
AffectFlagContainer.cpp(68): error C2440: 'initializing' : cannot convert from 'CAffectFlagContainer::Element' to 'char &'
3>PythonPlayerModule.cpp(770): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(774): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(812): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(842): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(873): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(900): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(912): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(919): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(958): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(991): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(1021): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(1083): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(1294): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(1340): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(1393): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(1456): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(1531): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(1616): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(1673): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(1713): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(1976): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(2017): error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(6): could be 'bool PyTuple_GetInteger(PyObject *,int,unsigned char *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(7): or 'bool PyTuple_GetInteger(PyObject *,int,int *)'
3> l:\dev\srcs\client\scriptlib\PythonUtils.h(8): or 'bool PyTuple_GetInteger(PyObject *,int,WORD *)'
3> while trying to match the argument list '(PyObject *, int, char *)'
3>PythonPlayerModule.cpp(2130): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>PythonPlayerModule.cpp(2152): error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
|
|
|
01/05/2014, 11:49
|
#47
|
elite*gold: 0
Join Date: May 2011
Posts: 45
Received Thanks: 0
|
You should start game with these errors i think.
|
|
|
01/05/2014, 13:07
|
#48
|
elite*gold: 0
Join Date: Jan 2009
Posts: 104
Received Thanks: 126
|
Quote:
Originally Posted by Pawelmol
Cant find anything about it
#edit:
Maybe it is it:

|
gtest is called googletest in ports. Anyway it's also in the Extern/include folder!
|
|
|
01/05/2014, 13:14
|
#49
|
elite*gold: 0
Join Date: Dec 2010
Posts: 2
Received Thanks: 0
|
Code:
1> Generating Code...
1> Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1>
1>UserInterface.rc(11): fatal error RC1015: cannot open include file 'afxres.h'.
1>
========== Build: 0 succeeded, 1 failed, 15 up-to-date, 0 skipped ==========
|
|
|
01/05/2014, 13:23
|
#50
|
elite*gold: 0
Join Date: May 2013
Posts: 1,266
Received Thanks: 627
|
Please lean to use google.
|
|
|
01/05/2014, 13:36
|
#51
|
elite*gold: 300
Join Date: Apr 2013
Posts: 3,234
Received Thanks: 1,205
|
Has anyone compile the World Editor succesfully?
|
|
|
01/05/2014, 13:37
|
#52
|
elite*gold: 0
Join Date: Sep 2013
Posts: 160
Received Thanks: 30
|
109.230.228.124 developer ts :3
|
|
|
01/05/2014, 14:32
|
#53
|
elite*gold: 0
Join Date: May 2011
Posts: 45
Received Thanks: 0
|
Quote:
Originally Posted by atag
gtest is called googletest in ports. Anyway it's also in the Extern/include folder!
|
It is, but when i try compile i get error even if it is in the extern/include
#edit
Im done. I tried everything now and now only that error is blocking my way to compile this game:
gmake: svnversion:
Can you help? Pls.
|
|
|
01/05/2014, 15:58
|
#54
|
elite*gold: 0
Join Date: Jan 2009
Posts: 104
Received Thanks: 126
|
Quote:
Originally Posted by Pawelmol
It is, but when i try compile i get error even if it is in the extern/include
|
Because the gmake includes azre fail. Copy all files/folders from Extern/include to /usr/local/include. Uggly solution but works.
|
|
|
01/05/2014, 16:12
|
#55
|
elite*gold: 0
Join Date: May 2011
Posts: 254
Received Thanks: 68
|
Quote:
Originally Posted by xKoRe'
Has anyone compile the World Editor succesfully?
|
I compile the world editor, but is in chinesse xD
|
|
|
01/05/2014, 16:14
|
#56
|
elite*gold: 0
Join Date: Jan 2009
Posts: 104
Received Thanks: 126
|
I think it's korean, not chienese
Translate it
|
|
|
01/05/2014, 16:25
|
#57
|
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
|
Quote:
Originally Posted by sema1995
I compile the world editor, but is in chinesse xD
|
Korean -> Euc-KR encoding
|
|
|
01/05/2014, 16:28
|
#58
|
elite*gold: 0
Join Date: May 2011
Posts: 45
Received Thanks: 0
|
Quote:
Originally Posted by atag
Because the gmake includes azre fail. Copy all files/folders from Extern/include to /usr/local/include. Uggly solution but works.
|
Tried, still doesnt work.
|
|
|
01/05/2014, 16:28
|
#59
|
elite*gold: 0
Join Date: Jul 2013
Posts: 10
Received Thanks: 10
|
Quote:
Originally Posted by sema1995
I compile the world editor, but is in chinesse xD
|
How did you do? *_*
I'm trying to compile it since yesterday with VC 2003 and VC 2008SP1, but the only things I got are errors.
|
|
|
01/05/2014, 16:38
|
#60
|
elite*gold: 135
Join Date: Oct 2007
Posts: 1,088
Received Thanks: 210
|
change some code then ...
its not intended to work out of the box
|
|
|
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 12:19.
|
|