Author Topic: vfs problem (psserver.cfg)  (Read 1024 times)

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
vfs problem (psserver.cfg)
« on: January 23, 2005, 01:52:58 am »
I compiled psserver in debug mode but vfs plugin can\'t find psserver.cfg, which I placed near the debug exe. Any idea? Why do I need vfs at all to read from local filesystem?

Im using winXP.
« Last Edit: January 23, 2005, 01:56:36 am by bitula »

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
(No subject)
« Reply #1 on: January 23, 2005, 02:40:05 am »
Just solved it by including the working directory in project/settings/debug :)

I now have problems loading plugins. I found out that some like planeshift.database.mysql are ActiveX... I tried to register them from ide, but it doesnt work. Where can I get some server side script, which makes the registry entries? BTW, how does this Activex stuff run on Linux?
« Last Edit: January 23, 2005, 05:25:31 am by bitula »

Androgos

  • Guest
(No subject)
« Reply #2 on: January 23, 2005, 09:24:07 am »
Set the CRYSTAL var to your CS folder, and CEL var to your CEL folder, do NOT copy over the CS nor CEL files to PS

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
(No subject)
« Reply #3 on: January 23, 2005, 11:27:15 am »
I did that (as was instructed in visualc-compile.txt).  The problem is in scf cpp:

 size_t idx = ClassRegistry->FindClass(iClassID, true);

This looks like it is looking for an ActiveX. But I dont have planeshift.database.mysql in the registry. Also, this psmysql doesnt seem to be COM server. Is this some dummy stuff? Am I missing some wrappers?

dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #4 on: January 25, 2005, 07:49:01 pm »
SCF (the shared-class facility) is its own cross platform library for loading components (i.e. it doesn\'t use ActiveX or COM) so the plugins do not have to have registry entries, they just have to be present in a directory scanned by SCF.  If you want to understand SCF.. well... good luck :)  Look around the Crystal Space documentation for some pointers, maybe?
Quidquid latine dictum sit, altum sonatur.

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
(No subject)
« Reply #5 on: January 25, 2005, 10:21:08 pm »
Well yeah, i\'ve just spent some time studying SCF. True, its not ActiveX, but very similar whith all that QueryInterface and addref stuff. We\'ll I guess I\'ll continue the study unless someone can give a hint why doesnt it happen to fint that psmysql plugin :) :) :) :) :)

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
(No subject)
« Reply #6 on: January 29, 2005, 06:34:56 pm »
Ok, i\'ve solved the problem. It was that scf could not retrieve metadata from dbmysql.dll itself, so that .plugin had to be placed into a scanned folder. Btw, it scans only cs, and cel. How to make it scan planeshift (I mean without rewriting the source.). It does not react to PATH variable in windows global settings...

dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #7 on: January 31, 2005, 08:13:36 am »
SCF also scans the application resource directory (which differs by platform) and the directory which contains the application currently running.  If this is broken, can you explain in detail where everything is?  The .csplugin and .dll files should be in the same folder.
Quidquid latine dictum sit, altum sonatur.

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
(No subject)
« Reply #8 on: February 01, 2005, 03:45:33 pm »
Yes, you are right, lately I\'ve found that scf scans the exe\'s current dir too. My problem was just, that I\'m running debug exe from the ide, which means that the exe is somewhere in the /debug/temp/... folder, thus things have to be configured a bit different, but it\'s ok now.