Thallo
Member
|
RE: RakNet Tutorial
Thx that solved the problem
|
|
04-19-2011 04:13 PM |
|
Agnostic
Member
|
RE: RakNet Tutorial
1>------ Operación Generar iniciada: proyecto: Tutorial, configuración: Release Win32 ------
1>Compilando...
1>Options.cpp
1>.\Source\Options.cpp(115) : error C2228: el operando izquierdo de '.setData' debe tener class/struct/union
1>.\Source\Options.cpp(115) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(116) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(116) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(116) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(117) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(117) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(117) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(118) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(118) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(118) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(119) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(119) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(119) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(120) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(120) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(120) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(121) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(121) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(121) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(122) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(122) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(122) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(123) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(123) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(123) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(124) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(124) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(124) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(125) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(125) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(125) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(126) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(126) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(126) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(127) : error C2228: el operando izquierdo de '.func' debe tener class/struct/union
1>.\Source\Options.cpp(127) : error C2228: el operando izquierdo de '.desc' debe tener class/struct/union
1>.\Source\Options.cpp(127) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(182) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(183) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(184) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(185) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(186) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(187) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(188) : error C3861: 'ELMS': no se encontró el identificador
1>.\Source\Options.cpp(189) : error C3861: 'ELMS': no se encontró el identificador
1>Client.cpp
1>.\Source\Client.cpp(9) : error C2039: 'setTextSize' : no es un miembro de 'EE::_List'
1> c:\program files\microsoft visual studio 9.0\vc\include\esenthelengine\Gui/Objects/List.h(51) : vea la declaración de 'EE::_List'
1>Generando código...
1>El registro de compilación se guardó en el "file://c:\Users\Virtual\Documents\Programación 3D\Esenthel\EsenthelEngineSDK\Tutorial Client\Release\BuildLog.htm"
1>Tutorial - 47 errores, 0 advertencias
========== Generar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ==========
I can't build the client =/
|
|
05-12-2011 10:31 PM |
|
Agnostic
Member
|
RE: RakNet Tutorial
(05-12-2011 10:41 PM)Dynad Wrote: Change all the ELMS functions to Elms()... then it should compile fine
1>------ Operación Generar iniciada: proyecto: Tutorial, configuración: Release Win32 ------
1>Compilando...
1>Options.cpp
1>Client.cpp
1>.\Source\Client.cpp(9) : error C2039: 'setTextSize' : no es un miembro de 'EE::_List'
1> c:\program files\microsoft visual studio 9.0\vc\include\esenthelengine\Gui/Objects/List.h(51) : vea la declaración de 'EE::_List'
1>Generando código...
1>El registro de compilación se guardó en el "file://c:\Users\Virtual\Documents\Programación 3D\Esenthel\EsenthelEngineSDK\Tutorial Client\Release\BuildLog.htm"
1>Tutorial - 1 errores, 0 advertencias
========== Generar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ==========
And... Where i can find version.lib?
(This post was last modified: 05-13-2011 01:45 AM by Agnostic.)
|
|
05-13-2011 01:36 AM |
|
Dynad
Member
|
RE: RakNet Tutorial
If you use visual studio... go to your project properties->linker->input->Additional dependencies->add version.lib
There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 05-13-2011 03:21 PM by Dynad.)
|
|
05-13-2011 03:21 PM |
|
Agnostic
Member
|
RE: RakNet Tutorial
How to get the Username & Password as String to store @ MySQL DB?
Example:
Code:
std::map<RakNet::RakString, Account*>::iterator j = accounts.find(login);
if(j == accounts.end()) {
Account *account = new Account();
account->password = password;
account->active = false;
account->x = 1; account->y = 1; account->z = 1;
accounts[login] = account; // create account
// MySQL Insert
mysql_query(conn, "INSERT INTO bla bla bla");
RakNet::BitStream serverSend; serverSend.Write((unsigned char)SERVER_REGISTER_SUCCESS);
server->Send(&serverSend, HIGH_PRIORITY, RELIABLE, 0, p->systemAddress, false);
} else {
RakNet::BitStream serverSend; serverSend.Write((unsigned char)SERVER_REGISTER_FAIL);
(This post was last modified: 05-13-2011 10:06 PM by Agnostic.)
|
|
05-13-2011 09:31 PM |
|
Avatar
Member
|
RE: RakNet Tutorial
Hi,
Thank for this raknet tutorial.
I try to change in your Server and Client with Raknet 4.020 code , the ip address and port used. So i have create i new EE project in editor tools, i have import all .cpp and .h form source client folder, and a have import all CPP and H of Raknet LIb source folder.
When i try to build with the tools, i have lot of errors in $$Forward.h :
1>d:\esenthel_engine\esenthelenginesdk\tutorials - esenthel script\loading world\_c++ build_\client\source\$$forward.h(28): error C2993: 'InputType' : type non conforme pour le paramètre de modèle sans type '__formal'
1>d:\esenthel_engine\esenthelenginesdk\tutorials - esenthel script\loading world\_c++ build_\client\source\$$forward.h(29): error C2993: 'OutputType' : type non conforme pour le paramètre de modèle sans type '__formal'
1>d:\esenthel_engine\esenthelenginesdk\tutorials - esenthel script\loading world\_c++ build_\client\source\$$forward.h(29): error C2989: 'RAK_DLL_EXPORT' : le modèle de classe a déjà été déclarée comme modèle sans classe
d:\esenthel_engine\esenthelenginesdk\tutorials - esenthel script\loading world\_c++ build_\client\source\$$forward.h(27) : voir la déclaration de 'RAK_DLL_EXPORT'
1>d:\esenthel_engine\esenthelenginesdk\tutorials - esenthel script\loading world\_c++ build_\client\source\$$forward.h(28): error C3857: 'RAK_DLL_EXPORT' : plusieurs listes de paramètres modèle ne sont pas autorisées
1>d:\esenthel_engine\esenthelenginesdk\tutorials - esenthel script\loading world\_c++ build_\client\source\$$forward.h(40): warning C4091: 'static ' : ignoré à gauche de 'mallinfo' quand aucune variable n'est déclarée
1>d:\esenthel_engine\esenthelenginesdk\tutorials - esenthel script\loading world\_c++ build_\client\source\$$forward.h(46): warning C4091: 'static ' : ignoré à gauche de 'malloc_params' quand aucune variable n'est déclarée
1>d:\esenthel_engine\esenthelenginesdk\tutorials - esenthel script\loading world\_c++ build_\client\source\$$forward.h(49): warning C4091: 'static ' : ignoré à gauche de 'malloc_state' quand aucune variable n'est déclarée
1>d:\esenthel_engine\esenthelenginesdk\tutorials - esenthel script\loading world\_c++ build_\client\source\$$forward.h(52): warning C4091: 'static ' : ignoré à gauche de 'termios' quand aucune variable n'est déclarée
Can y ou help me please ?
Thanks
(This post was last modified: 05-28-2011 12:40 AM by Avatar.)
|
|
05-28-2011 12:39 AM |
|
Avatar
Member
|
RE: RakNet Tutorial
Ok, now i build with VS2010 and compilation works. Thanks
Avatar
(This post was last modified: 05-29-2011 03:09 PM by Avatar.)
|
|
05-29-2011 03:07 PM |
|
Avatar
Member
|
RE: RakNet Tutorial
I would like to use this raknet tutorial using only EE Code Editor for both client and server. It is possible , Can you help me please ?
Thx
|
|
05-29-2011 05:40 PM |
|
TBJokers
Member
|
RE: RakNet Tutorial
I slight problem i get when i run this version is with the right click, Its really hard to move the screen now, And if you just hold right click the camera will spinn around you.
Man, it's always that semicolon...
|
|
05-29-2011 05:46 PM |
|
Avatar
Member
|
RE: RakNet Tutorial
Thank Zervox,
So i think i will finaly use vc++2010express for building my projet, new probleme, i dont arrive to open server c++ projet, convertion failded :
Rapport de conversion - :
Cannot load the project due to a corrupt project file.
The following error has occurred during XML parsing: File: D:\EE\Raknet Client and Server\Raknet Client and Server\RaknetServer\Server.vcproj Line: 121 Column: 5 Error Message: System error: -2147154677. The file 'D:\EE\Raknet Client and Server\Raknet Client and Server\RaknetServer\Server.vcproj' has failed to load.
This file is not present in the Tutorial, can you release it please ?
Thank
Avatar
|
|
05-29-2011 07:46 PM |
|
Avatar
Member
|
RE: RakNet Tutorial
Hello,
i have add one condition to validate connection in the client :
if ( network.Connect( (*net_ip)(), CalcR((*net_port)())) == TRUE )
{
Gui.msgBox("Connection Status", "YESSS" );
Gui.draw();
}
else
{
net_ip->clear();
net_port->clear();
Gui.msgBox("Connection Failded", "Player one shoot again !!!" );
Gui.draw();
}
My problem is that always Connection Failed message box, but i can see on server side ID_NEW_INCOMING_CONNECTION From xxxxx
I dont understand why.
Can you help me please ?
(This post was last modified: 06-02-2011 05:19 AM by Avatar.)
|
|
06-02-2011 05:18 AM |
|