Bennu Game Development

Foros en Español => Extensiones => Topic started by: l1nk3rn3l on November 15, 2012, 08:43:25 PM

Title: bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: l1nk3rn3l on November 15, 2012, 08:43:25 PM
 ;D

bueno ya salio del horno la libreria de red , con posibilidad de declarar varias replicas


http://code.google.com/p/otherfenixbennuprojects/downloads/list
Title: Re:bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: alex on November 16, 2012, 01:30:00 PM
muy bueno xD, Karma up!!! Cuando pueda la pruebo... esto, es el codigo fuente?...bfff... ya he cogido el truco un poco a compilar en C una libreria, pero, puede que vengn otras muchas. Cuando la tenga compilada a ver si la subo y te cuento.
Title: Re:bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: Erkosone on November 16, 2012, 05:26:27 PM
Vaya, esto es fantastico, haber si saco un rato y la pruebo.
Gracias por el trabajo.
Title: Re:bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: alex on November 17, 2012, 12:00:59 AM
me salen un monton de errores al compilar la lib:

-------------- Build: Release in bennuplaynet ---------------

Compiling: main.cpp
In file included from /usr/include/SDL/SDL_main.h:26:0,
                 from /usr/include/SDL/SDL.h:30,
                 from /home/alejandro/Escritorio/dll/main.cpp:34:
/usr/include/SDL/SDL_stdinc.h:403:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
/usr/include/SDL/SDL_stdinc.h:403:8: aviso: '__declspec' inicializado y declarado como 'extern' [activado por defecto]
/usr/include/SDL/SDL_stdinc.h:403:8: error: 'dllexport' no se declaró en este ámbito
/usr/include/SDL/SDL_stdinc.h:403:17: error: expected ',' or ';' before 'size_t'
/usr/include/SDL/SDL_stdinc.h:409:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
/usr/include/SDL/SDL_stdinc.h:409:8: aviso: '__declspec' inicializado y declarado como 'extern' [activado por defecto]
/usr/include/SDL/SDL_stdinc.h:409:8: error: redefinición de 'int __declspec'
/usr/include/SDL/SDL_stdinc.h:403:8: error: se define 'int __declspec' previamente aquí
/usr/include/SDL/SDL_stdinc.h:409:8: error: 'dllexport' no se declaró en este ámbito
/usr/include/SDL/SDL_stdinc.h:421:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
/usr/include/SDL/SDL_stdinc.h:421:8: aviso: '__declspec' inicializado y declarado como 'extern' [activado por defecto]
/usr/include/SDL/SDL_stdinc.h:421:8: error: redefinición de 'int __declspec'
/usr/include/SDL/SDL_stdinc.h:403:8: error: se define 'int __declspec' previamente aquí
/usr/include/SDL/SDL_stdinc.h:421:8: error: 'dllexport' no se declaró en este ámbito
/usr/include/SDL/SDL_stdinc.h:427:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
/usr/include/SDL/SDL_stdinc.h:427:8: aviso: '__declspec' inicializado y declarado como 'extern' [activado por defecto]
/usr/include/SDL/SDL_stdinc.h:427:8: error: redefinición de 'int __declspec'
/usr/include/SDL/SDL_stdinc.h:403:8: error: se define 'int __declspec' previamente aquí
/usr/include/SDL/SDL_stdinc.h:427:8: error: 'dllexport' no se declaró en este ámbito
/usr/include/SDL/SDL_stdinc.h:433:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
/usr/include/SDL/SDL_stdinc.h:433:8: aviso: '__declspec' inicializado y declarado como 'extern' [activado por defecto]
/usr/include/SDL/SDL_stdinc.h:433:8: error: redefinición de 'int __declspec'
/usr/include/SDL/SDL_stdinc.h:403:8: error: se define 'int __declspec' previamente aquí
/usr/include/SDL/SDL_stdinc.h:433:8: error: 'dllexport' no se declaró en este ámbito
/usr/include/SDL/SDL_stdinc.h:467:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
/usr/include/SDL/SDL_stdinc.h:467:8: aviso: '__declspec' inicializado y declarado como 'extern' [activado por defecto]
/usr/include/SDL/SDL_stdinc.h:467:8: error: redefinición de 'int __declspec'
/usr/include/SDL/SDL_stdinc.h:403:8: error: se define 'int __declspec' previamente aquí
/usr/include/SDL/SDL_stdinc.h:467:8: error: 'dllexport' no se declaró en este ámbito
/usr/include/SDL/SDL_stdinc.h:479:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
/usr/include/SDL/SDL_stdinc.h:479:8: aviso: '__declspec' inicializado y declarado como 'extern' [activado por defecto]
/usr/include/SDL/SDL_stdinc.h:479:8: error: redefinición de 'int __declspec'
/usr/include/SDL/SDL_stdinc.h:403:8: error: se define 'int __declspec' previamente aquí
/usr/include/SDL/SDL_stdinc.h:479:8: error: 'dllexport' no se declaró en este ámbito
/usr/include/SDL/SDL_stdinc.h:499:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
/usr/include/SDL/SDL_stdinc.h:499:8: aviso: '__declspec' inicializado y declarado como 'extern' [activado por defecto]
/usr/include/SDL/SDL_stdinc.h:499:8: error: redefinición de 'int __declspec'
/usr/include/SDL/SDL_stdinc.h:403:8: error: se define 'int __declspec' previamente aquí
/usr/include/SDL/SDL_stdinc.h:499:8: error: 'dllexport' no se declaró en este ámbito
/usr/include/SDL/SDL_stdinc.h:505:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
/usr/include/SDL/SDL_stdinc.h:505:8: aviso: '__declspec' inicializado y declarado como 'extern' [activado por defecto]
/usr/include/SDL/SDL_stdinc.h:505:8: error: redefinición de 'int __declspec'
/usr/include/SDL/SDL_stdinc.h:403:8: error: se define 'int __declspec' previamente aquí
/usr/include/SDL/SDL_stdinc.h:505:8: error: 'dllexport' no se declaró en este ámbito
/usr/include/SDL/SDL_stdinc.h:605:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
/usr/include/SDL/SDL_stdinc.h:605:8: aviso: '__declspec' inicializado y declarado como 'extern' [activado por defecto]
/usr/include/SDL/SDL_stdinc.h:605:8: error: redefinición de 'int __declspec'
/usr/include/SDL/SDL_stdinc.h:403:8: error: se define 'int __declspec' previamente aquí
/usr/include/SDL/SDL_stdinc.h:605:8: error: 'dllexport' no se declaró en este ámbito
In file included from /usr/include/SDL/SDL_main.h:26:0,
                 from /usr/include/SDL/SDL.h:30,
                 from /home/alejandro/Escritorio/dll/main.cpp:34:
/usr/include/SDL/SDL_stdinc.h:609:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
Process terminated with status 1 (0 minutes, 11 seconds)
50 errors, 0 warnings


Todas tienen que ver con lo mismo.
Title: Re:bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: alex on November 17, 2012, 12:22:14 AM
Pregunta, ¿puede ser igual por la versión SDL que tengo?
Duda sobre el primer error:  /usr/include/SDL/SDL_stdinc.h:403:8: error: ISO C++ prohíbe la declaración de '__declspec' sin tipo [-fpermissive]
Dice algo de C++, ¿puede ser por que no uso el compilador correcto?, Uso el GNU GCC COMPILER creo... o eso pone.
Title: Re:bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: l1nk3rn3l on November 17, 2012, 01:40:49 AM
no tenemos linux para opinar asi que...

:o

JOSEBA hace unos años la porto a linux de pronto te pueda servir de ayuda

http://otherfenixbennuprojects.googlecode.com/files/bennuplaynet_linux2.zip.zip
Title: Re:bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: Milton884 on November 18, 2012, 12:25:33 AM
Dessde ya muchas gracias!!! Lo esperaba muchio, Disculpa pero da muchisimos errores de compilacion, no tenes la DLL compilada para subirla , de la nueva version ? ?
Title: Re:bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: l1nk3rn3l on November 18, 2012, 03:31:35 AM
LA ULTIMA VERSION CON EJEM,PLOS ESTA EN
http://code.google.com/p/otherfenixbennuprojects/downloads/list


LO DE REPLICAS ES EL EJEMPLO EXPERT Y HARD
Title: Re:bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: Milton884 on November 18, 2012, 11:02:50 PM
Vi el ejemplo, gracias, pero te hago una pregunta. Ahi vi que las estructuras son IGUALES, tienen la misma cantidad de variables, se puede una replica declarar con 4 variables en un Type, y otra con 5 por ejemplo. ?
Title: Re:bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: l1nk3rn3l on November 19, 2012, 12:55:26 AM
Quote from: Milton884 on November 18, 2012, 11:02:50 PM
Vi el ejemplo, gracias, pero te hago una pregunta. Ahi vi que las estructuras son IGUALES, tienen la misma cantidad de variables, se puede una replica declarar con 4 variables en un Type, y otra con 5 por ejemplo. ?

ESA ES LA IDEA..
;D


PUEDES DECLARAR LAS QUE SEAN
(LE COLOCAMOS MAX 20 REPLICAS - SUFICIENTES PARA NUESTRA OPINION YA QUE CADA REPLICA PUEDE TENER "N" ELEMENTOS COMO TE PUEDES DAR CUENTA) , PERO RECUERDA QUE JUEGOS COMO AGE OF EMPIRES SE PONEN LENTOS CUANDO HAY DEMASIADOS PAQUETES EN LA RED..


EL QUE MODIFIQUE LA LIBRERIA DLL LE PUEDE CAMBIAR LA CONSTANTE A EJEMPLO MAX 100 REPLICAS PERO SERIA DEMASIADO.....


Title: Re:bENNUPLAYNET (libreria multiplayer - DIV similar)
Post by: Milton884 on November 19, 2012, 01:31:52 AM
Entiendo, pero, te podria pedir por favor que compiles la DLL y pongas maximo 100 replicas... Cosa que si necesitamos 21, 22.. para poder saltear ese maximo digamos. Intente compilar el codigo, y da muchos errores. Podrias subirla ?¿ Asi tenemos todos una libreria sin un Maximo de replicas.
Se agradece mucho de verdad, tu trabajo con esta libreria fue y sera siempre agradecido por todos nosotros.