PlaneShift

Support => Technical Help: Problems BEFORE entering the game => Topic started by: yesure on August 25, 2004, 08:04:34 am

Title: Finally...
Post 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?
Title:
Post by: acraig on August 25, 2004, 03:53:16 pm
Was the dbmysql.so ( or .dll ) created correctly?
Title:
Post by: yesure on August 26, 2004, 04:01:26 pm
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\'
-----------------------------------------------------------------------------
Title:
Post by: Androgos on August 26, 2004, 04:28:44 pm
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
Title:
Post by: yesure on August 28, 2004, 07:35:37 am
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?
Title:
Post by: yesure on August 31, 2004, 01:29:33 am
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.
Title: libmysql.dll needs to be in your library path
Post by: Skibereen on August 31, 2004, 11:03:08 pm
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.
Title:
Post by: yesure on September 02, 2004, 02:45:50 am
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.