Jump to content
Freyader

[AYUDA] Compilar cliente

Recommended Posts

Hola, estoy en eso de modificaciones y cosas así, he tratado de compilar el cliente pero arroja muchos errores, no he modificado nada, les cuento:

 

Tengo el source de este tema:

 

Al compilar el game y db no arroja tampoco ningún problema, todo funcionando.

 

Para compilar el cliente sigo los pasos de este tema, instalé los dos archivos que dice la guía:

 

El primer error que tuve fue el de la compatibilidad, que solucioné renombrando el archivo "Metin2Client_VC90.sln.old" a "Metin2Client_VC90.old":

 

a6bc55e4f03ae488d3bcd5b60a0e3988.png

 

Una vez que pude ingresar al programa y cargarlo, aparece esto:

 

8959972f081262ce7c390758aaebd390.png

 

Le doy a ok

 

296ebda405d0caf264d1fa63d461d008.png

 

Ok nuevamente

 

c8a5a9f71da7c456d3a2b46b4bf42095.png

 

Y ok, ahora lo pongo en Release y lo compilo, arrojando las siguientes advertencias y errores:

Error	1	error C2664: 'CPythonGraphic::SaveJPEG' : cannot convert parameter 2 from 'char *' to 'LPBYTE'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\EterPythonLib\PythonGraphic.cpp	294	eterPythonLib
Warning	2	warning C4305: 'initializing' : truncation from '' to 'char'	c:\users\javier\desktop\client limpio\client\client\userinterface\packet.h	2792	UserInterface
Warning	3	warning C4309: 'initializing' : truncation of constant value	c:\users\javier\desktop\client limpio\client\client\userinterface\packet.h	2792	UserInterface
Warning	4	warning C4305: 'initializing' : truncation from '' to 'char'	c:\users\javier\desktop\client limpio\client\client\userinterface\packet.h	2801	UserInterface
Warning	5	warning C4309: 'initializing' : truncation of constant value	c:\users\javier\desktop\client limpio\client\client\userinterface\packet.h	2801	UserInterface
Error	6	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	678	UserInterface
Error	7	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	706	UserInterface
Error	8	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	712	UserInterface
Error	9	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	736	UserInterface
Error	10	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	765	UserInterface
Error	11	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	821	UserInterface
Error	12	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	825	UserInterface
Error	13	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	871	UserInterface
Error	14	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	953	UserInterface
Error	15	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	1222	UserInterface
Error	16	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	1254	UserInterface
Error	17	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonNetworkStreamModule.cpp	1303	UserInterface
Error	18	error C2664: 'lzo1x_decompress_safe' : cannot convert parameter 1 from 'const char *' to 'const unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\MarkImage.cpp	190	UserInterface
Error	19	error C2664: 'lzo1x_999_compress' : cannot convert parameter 1 from 'const char *' to 'const unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\MarkImage.cpp	305	UserInterface
Warning	20	warning C4305: 'initializing' : truncation from '' to 'char'	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2792	UserInterface
Warning	21	warning C4309: 'initializing' : truncation of constant value	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2792	UserInterface
Warning	22	warning C4305: 'initializing' : truncation from '' to 'char'	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2801	UserInterface
Warning	23	warning C4309: 'initializing' : truncation of constant value	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2801	UserInterface
Error	24	error C2440: 'initializing' : cannot convert from 'byte *' to 'char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonApplicationLogo.cpp	122	UserInterface
Warning	25	warning C4309: '=' : truncation of constant value	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonApplicationLogo.cpp	126	UserInterface
Error	26	error C2440: 'initializing' : cannot convert from 'byte *' to 'char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonApplicationLogo.cpp	166	UserInterface
Warning	27	warning C4309: '=' : truncation of constant value	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonApplicationLogo.cpp	170	UserInterface
Warning	28	warning C4305: 'initializing' : truncation from '' to 'char'	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2792	UserInterface
Warning	29	warning C4309: 'initializing' : truncation of constant value	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2792	UserInterface
Warning	30	warning C4305: 'initializing' : truncation from '' to 'char'	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2801	UserInterface
Warning	31	warning C4309: 'initializing' : truncation of constant value	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2801	UserInterface
Warning	32	warning C4309: 'return' : truncation of constant value	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonShop.cpp	31	UserInterface
Error	33	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonShop.cpp	330	UserInterface
Error	34	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonShop.cpp	348	UserInterface
Error	35	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonShop.cpp	360	UserInterface
Error	36	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonShop.cpp	387	UserInterface
Error	37	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonShop.cpp	396	UserInterface
Warning	38	warning C4305: 'initializing' : truncation from '' to 'char'	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2792	UserInterface
Warning	39	warning C4309: 'initializing' : truncation of constant value	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2792	UserInterface
Warning	40	warning C4305: 'initializing' : truncation from '' to 'char'	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2801	UserInterface
Warning	41	warning C4309: 'initializing' : truncation of constant value	c:\users\javier\desktop\client limpio\client\client\userinterface\Packet.h	2801	UserInterface
Error	42	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	770	UserInterface
Error	43	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	774	UserInterface
Error	44	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	812	UserInterface
Error	45	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	842	UserInterface
Error	46	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	873	UserInterface
Error	47	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	900	UserInterface
Error	48	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	912	UserInterface
Error	49	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	919	UserInterface
Error	50	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	958	UserInterface
Error	51	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	991	UserInterface
Error	52	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1021	UserInterface
Error	53	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1083	UserInterface
Error	54	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1294	UserInterface
Error	55	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1340	UserInterface
Error	56	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1393	UserInterface
Error	57	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1456	UserInterface
Error	58	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1531	UserInterface
Error	59	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1616	UserInterface
Error	60	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1673	UserInterface
Error	61	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1713	UserInterface
Error	62	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	1976	UserInterface
Error	63	error C2665: 'PyTuple_GetInteger' : none of the 3 overloads could convert all the argument types	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	2017	UserInterface
Error	64	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	2130	UserInterface
Error	65	error C2664: 'PyTuple_GetByte' : cannot convert parameter 3 from 'char *' to 'unsigned char *'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\PythonPlayerModule.cpp	2152	UserInterface
Error	66	error C2440: 'initializing' : cannot convert from 'CAffectFlagContainer::Element' to 'char &'	c:\Users\Javier\Desktop\Client Limpio\Client\Client\UserInterface\AffectFlagContainer.cpp	68	UserInterface

Compartir esta publicación


Enlace a la publicación
Compartir en otros sitios

La mayoria de source client que ahora suben vienen con las librerias, no necesitas hacer los pasos que dices que haces, estan sencillo como abrir VS2013 o el que tengas (yo uso VS2013), dar en abrir proyecto o solucion buscar el tuyo y listo, ahora dar en compilar y esperar a que acabe, sin complicaciones.

Por lo que veo ahi es error del source client, recuerda que tampoco todos vienen completos, por lo que puede que:

1.- Tenga errores

2.- Este incompleto

Compartir esta publicación


Enlace a la publicación
Compartir en otros sitios

PD: acabo de fijarme que es novaline, se compila en el freebsd

 

As requested by some users i have you a VM with FreeBSD 9.2 32bit, novaline source and pre installed Ports so

you can compile the game. It was like 10 minutes of work to enter the commands so no thanks needed.

 

To compile the game: 

1
2
3
cd /usr/src/novaline/Srcs/Server/game/src
gmake clean
gmake -j20

Compartir esta publicación


Enlace a la publicación
Compartir en otros sitios

Solucionado:

16>.AffectFlagContainer.cpp(68) : error C2440: 'initializing' : cannot convert from 'CAffectFlagContainer::Element' to 'char &'

Right click on the BYTE and click Go to Definition and change the char to unsigned char.

 

6>.PythonGraphic.cpp(294) : error C2664: 'CPythonGraphic::SaveJPEG' : cannot convert parameter 2 from 'char *' to 'LPBYTE'

Double click on the error and change the line to this:

bool bSaved = SaveJPEG(c_pszFileName, (LPBYTE)pbyBuffer, uWidth, uHeight);

 

De Metin2Dev

Compartir esta publicación


Enlace a la publicación
Compartir en otros sitios

  • Recientemente navegando por este tema   0 miembros

    No hay usuarios registrados visitando esta página.

×