PlaneShift
Support => Technical Help: Problems BEFORE entering the game => Topic started by: yesure on August 25, 2004, 08:04:34 am
-
Finally, I successfully compiled the ps sever and the client. It\'s really tough to compile the code especially for a newbie. Why? It\'s a little bit hard to explain...
Now I try to lanuch the ps server, hower, I get the error message listed as below.
---------------------------------------------------------------------------
planeshift.application.server:
No idataConnection plugin!
<\\Ps\\planeshift\\src\\server\\psserver.cpp:183> psServer::Initialize:
Could not create database or connect to it.
---------------------------------------------------------------------------
I trully have the database run and work fine. But how come?
Could anyone help me to sovle this problem?
-
Was the dbmysql.so ( or .dll ) created correctly?
-
The dbmysql.dll was created correctly, even no a warning.
I noticed there were two warnings before the errors, maybe this was a clue?
-----------------------------------------------------------------------------
WARNING: Could not load plugin \'Crystalspace.motion.manager.default\'
WARNING: Could not load plugin \'planeshift.database.mysql\'
-----------------------------------------------------------------------------
-
then the ps MySQL wrapper didn\'t build
Try to compile PS again to see what failed.
You will also need the correct version of libmysql/-d.dll
-
I re-compiled the psall.sln again and found only the projects appupdater and apppartview failed. Does this matter?
And, which version of MySQL is more stable and you prefer to use?
-
Now this is really truely finally. I overcome many proplems and compiled the whole psall.sln, all the twenty projects including the appupdater and the apppartview, successfully.
For newbies, don\'t try to compile the ps code, at least not by yourself alone. It\'s too tough. Why? In one word, \"missing\". There are always something missing somehwere in the code. Missing .lib, missing declares, missing include, missing .cpp, missing this, missing that, missing something, even missing everything maybe.
-
Hi yesure,
> WARNING: Could not load plugin \'planeshift.database.mysql\'
is your libmysql.dll in your library path?
Put it either in %SYSTEMROOT%\\SYSTEM32 (e.g. C:\\WINDOWS\\SYSTEM32) or in your planeshift directory.
This did it for me.
-
Thanks, Skibereen. But the libmysql.dll is in its exact path already.
I think I\'ve found the cause and solved this problem. I used the wrong version of psserver.cfg. The setting in the older one is as below.
; Planeshift plugins
System.PlugIns.iConnection = planeshift.database.mysql
The newer one is this.
; Planeshift plugins
System.PlugIns.iDataConnection = planeshift.database.mysql
Just use the newer one and solve the problem.