Author Topic: Finally...  (Read 912 times)

yesure

  • Traveller
  • *
  • Posts: 21
    • View Profile
Finally...
« 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?

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #1 on: August 25, 2004, 03:53:16 pm »
Was the dbmysql.so ( or .dll ) created correctly?
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

yesure

  • Traveller
  • *
  • Posts: 21
    • View Profile
(No subject)
« Reply #2 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\'
-----------------------------------------------------------------------------

Androgos

  • Guest
(No subject)
« Reply #3 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
« Last Edit: August 26, 2004, 04:29:17 pm by Androgos »

yesure

  • Traveller
  • *
  • Posts: 21
    • View Profile
(No subject)
« Reply #4 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?

yesure

  • Traveller
  • *
  • Posts: 21
    • View Profile
(No subject)
« Reply #5 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.
« Last Edit: August 31, 2004, 07:03:28 am by yesure »

Skibereen

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
libmysql.dll needs to be in your library path
« Reply #6 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.
Regards, Skibbereen

yesure

  • Traveller
  • *
  • Posts: 21
    • View Profile
(No subject)
« Reply #7 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.