Author Topic: starting a server  (Read 6697 times)

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: starting a server
« Reply #15 on: April 10, 2008, 01:32:20 am »
Code: [Select]
(3,'NPCroom','N',15000,15000,10000,10000,8000,8000,5000,5000,5000,5000,4000,4000,0,'Laanx'),
 (4,'NPCroom1','N',15000,15000,10000,10000,8000,8000,5000,5000,5000,5000,4000,4000,0,'Kemedes'),
 (5,'NPCroom2','N',15000,15000,10000,10000,8000,8000,5000,5000,5000,5000,4000,4000,0,'Laanx'),
 (6,'NPCroom3','N',15000,15000,10000,10000,8000,8000,5000,5000,5000,5000,4000,4000,1,'Laanx'),
 (7,'NPCroomwarp','N',15000,15000,10000,10000,8000,8000,5000,5000,5000,5000,4000,4000,0,'Laanx');
 (8,'akkroad','N',15000,15000,10000,10000,8000,8000,5000,5000,5000,5000,4000,4000,0,'Laanx');
 (9,'arena','N',15000,15000,10000,10000,8000,8000,5000,5000,5000,5000,4000,4000,0,'Laanx');
 (10,'bdr2bdoors','N',15000,15000,10000,10000,8000,8000,5000,5000,5000,5000,4000,4000,0,'Laanx');

you started to use ; instead of , only the last line should end with ;

Velh Krome

  • Guest
Re: starting a server
« Reply #16 on: April 10, 2008, 03:11:02 am »
Yay! \\o//
That was the one - thanks for your help and patience, Caarrie!

Velh Krome

  • Guest
Re: starting a server
« Reply #17 on: June 10, 2008, 08:19:48 pm »
Hope you dont mind me digging this old thread, but since I already posted in here..

I just have compiled the trunk sources once more, according to the same documentation mentioned above.
But this time it fails finding libcrystalspace-1.3.so:
Code: [Select]
# ./serverstart
./psserver: error while loading shared libraries: libcrystalspace-1.3.so: cannot open shared object file: No such file or directory

Code: [Select]
# cat serverstart
#!/bin/bash
source profile
./psserver --run=/this/autorun

And profile containing exports of both env variables, autorun all needed loadmaps.

Code: [Select]
# mlocate libcrystalspace-1.3.so
PS_compile/cs/libcrystalspace-1.3.so
PS_compile/cs/out/linuxx86/optimize/libs/libcrystalspace-1.3.so
PS_compile/cs/out/linuxx86/optimize/libs/libcrystalspace-1.3.so.resp

For any idea on where's the bug I would be grateful.

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: starting a server
« Reply #18 on: June 10, 2008, 08:23:02 pm »
update your LD_LIBRARY path to include cs and cel

Velh Krome

  • Guest
Re: starting a server
« Reply #19 on: June 10, 2008, 08:53:25 pm »
Hey Caarrie, you replied much quicker than I would have guessed!  \\o//

Hm okay.. didnt do so before, and I sort of replaced old cs with the new one, hence I thought no new definitions were needed.
My modified profile:
Code: [Select]
#export LD_LIBRARY_PATH=/opt/planeshift_svn/planeshift/cal3d/cal3d/src/cal3d/.libs/:$LD_LIBRARY_PATH
export CRYSTAL=.../PS_compile/cs
export CEL=.../PS_compile/cel
export CSCONFPATH=.../PS_compile/cel
export LD_LIBRARY_PATH=.../PS_compile/cs:$LD_LIBRARY_PATH

I am not even sure if this is all correct, but it works to a certain degree:
Code: [Select]
# ./serverstart
WARNING: could not load plugin 'planeshift.database.mysql'

[many lines about "flag deactivated with no filter."

Tue Jun 10 20:40:22 2008, Database Host: 'localhost' User: 'planeshift' Databasename: 'planeshift' Port: 0
Tue Jun 10 20:40:22 2008,
planeshift.application.server:
  No iDataConnection plugin!
Tue Jun 10 20:40:22 2008, <src/server/psserver.cpp:286 Initialize SEVERE>
Tue Jun 10 20:40:22 2008, Could not create database or connect to it:
Tue Jun 10 20:40:22 2008, error while initializing server!

For some reason I have a feeling this must be some embarrassing little thing I will have forgotten lol..
Mysql is up and running, as well I did that "mysql: use planeshift;", and even recreating it all new with "source create_all;" I gave a shot..

Thanks a lot for your great support Caarrie, perhaps you once more do have an idea?=P

EDIT:
I just found the only (?) reference to "planeshift.database.mysql" is in a file in the mysql-folder - I mindlessly copied my all my.. backed up.. sql.. files into the new one.. does that mean I need to recompile at least PS again? Would the latest dbmysql.csplugin be any different (the linked one is like my current one)?
« Last Edit: June 10, 2008, 09:29:34 pm by Velh Krome »

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: starting a server
« Reply #20 on: June 10, 2008, 09:29:18 pm »
make sure the mysql dev package is installed. then reconfigure ps and make sure it finds mysql and rebuild.

Velh Krome

  • Guest
Re: starting a server
« Reply #21 on: June 10, 2008, 10:43:42 pm »
Alright, I rebuilt PS and now it says
Code: [Select]
Tue Jun 10 22:32:42 2008, Database version mismatch: we have '1182' while we are looking for '1188'. Recreate your database using create_all.sql
Tue Jun 10 22:32:42 2008, error while initializing server!

Is there a way I still can use my old database that of course contains custom data?

Ralleyon

  • Hydlaa Citizen
  • *
  • Posts: 304
  • Protector in the Survivors of Vaern
    • View Profile
Re: starting a server
« Reply #22 on: June 10, 2008, 10:57:21 pm »
Yes, you can. Take a looksie here for the mysql data. http://planeshift.svn.sourceforge.net/viewvc/planeshift/trunk/src/server/database/

What you're interested in following is upgrade_schema.sql
To see the world in a grain of sand
And Heaven in a wild flower,
Hold Infinity in the palm of your hand
And Eternity in an hour.
     
   [William Blake - Auguries of Innocence]

kidara

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
Re: starting a server
« Reply #23 on: January 27, 2009, 10:49:36 am »
Hey I just finished with building....one problem...no two.

1) I have no psserver.exe
2) My psclient says I'm missing crystalspace-1.4-vc9.dll

and my mysql is probably ready - the ps folder is in the data folder of C:/mysql
 :oops: please help

Thanks,
Ms.Kida

Any help is great cause I can't find the answer in the guide.

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: starting a server
« Reply #24 on: January 27, 2009, 10:57:57 am »
Hey I just finished with building....one problem...no two.

1) I have no psserver.exe
2) My psclient says I'm missing crystalspace-1.4-vc9.dll

and my mysql is probably ready - the ps folder is in the data folder of C:/mysql
 :oops: please help

Thanks,
Ms.Kida

Any help is great cause I can't find the answer in the guide.


the server is a different target in the build project you should build also that. I think it was appspsserver or something like that
as for the dll not found are you sure you did build either cs and ps with the same build type? (debug dynamic with debug dynamic, release static with release static etc)

Lanarel

  • Testers
  • Hydlaa Notable
  • *
  • Posts: 782
    • View Profile
Re: starting a server
« Reply #25 on: January 27, 2009, 09:24:07 pm »
You have to add the CS directory to the path environment variable for psclient to find the CS dlls.

kidara

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
Re: starting a server
« Reply #26 on: January 27, 2009, 10:36:23 pm »
Ok got it....now next....the client says "failed to load effects" also I have psclient.exe and not psserver.exe - what do I do to get psserver.exe because it doesn't exist.

thanks for the quick response guys.  \\o//

Raekh

  • Guest
Re: starting a server
« Reply #27 on: January 27, 2009, 10:47:17 pm »
Failed to load effects - did you copy the art and the data foldera into your compilation? Easiest way to do so might be to use the one being shipped with standard installation.

Since I never compiled on Windows I am not sure about the process there. On linux however, "jam -a" during the process of compiling does provide all necessary files.

kidara

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
Re: starting a server
« Reply #28 on: January 27, 2009, 10:56:29 pm »
hmmm, I definitely have the art and data in the planeshift folder. I probably have to figure out the psserver.exe fow windows  ??? I'm patient so no worries.

kidara

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
Re: starting a server
« Reply #29 on: January 28, 2009, 07:32:37 am »
Ok I created my Client and server thanks for all the help. I'll be doing character editing in the morning. Please, how do I create characters? I believe it's with Cal3d so I went here http://svn.gna.org/svn/cal3d/trunk/   So how do I start? I'll also get Blender for map creation.  :) Thanks guys

-Kidara