Author Topic: Building Molecular Blue From Linux  (Read 20742 times)

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
Building Molecular Blue From Linux
« on: May 28, 2003, 01:53:10 am »
Hopefully this is a complete guide to building PlaneShift Molecular Blue v010 from CVS.   I\'ve tested this on RedHat 7.2 and RedHat 9 so I can only vouch for those two.  I\'ve included a build.sh that should do everything but I cannot guarentee that is will be 100% correctly.

So those of you out there under linux can give it a try if you are interested.  If the script does not work then try doing everything manually.

If it does not work then post (A) what line failed. (B) what disto you are using.  

If it does work then I would be interested in know what distro you used and if you used the script or not.

Build Instructions
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

jamincollins

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
Builds but cannot connect
« Reply #1 on: May 28, 2003, 09:57:00 pm »
I appear to have successfully built the PlaneShift client as it lauches and I\'m able to create a character, but when I attempt to upload my character to planeshift.fragnetics.com I get the following error:

You are not running the correct version of Planeshift for this server.

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #2 on: May 28, 2003, 10:06:29 pm »
Can you grep for PS_NETVERSION?
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

jamincollins

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
(No subject)
« Reply #3 on: May 28, 2003, 10:13:21 pm »
planeshift/src/common/net/messages.h:#define    PS_NETVERSION   0x0012

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #4 on: May 29, 2003, 12:02:48 am »
It appears that you have built this from the latest branch of CVS.  This client version will not work on the fragnetics server because of network differences, hence the error messages.  If you want to build the version to work on the fragnetics server make sure you check out the right branches of the source code as outlined in the doc linked above.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Meracian

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #5 on: May 29, 2003, 04:37:08 pm »
Hi,

Ive tried Your script but it seems that it isnt working right.

After Your Script:
[meracian@localhost planeshift]$ ./psclient -verbose
no CEL environment variable set!
Warning: Failed to load `vfs\'; reason(s):
/usr/local/crystal/lib/vfs.so: File not found
./vfs.so: File not found
/home/meracian/molblue/planeshift/vfs.so: File not found
Warning: Failed to load `vfs\'; reason(s):
/usr/local/crystal/lib/vfs.so: File not found
/usr/local/crystal/lib/libvfs.so: File not found
./vfs.so: File not found
./libvfs.so: File not found
/home/meracian/molblue/planeshift/vfs.so: File not found
/home/meracian/molblue/planeshift/libvfs.so: File not found
WARNING: could not load plugin \'crystalspace.kernel.vfs\'
Couldn\'t load vfs plugin!
csInitializer::SetupConfigManager failed!
Is your CRYSTAL environment var set?
[meracian@localhost planeshift]$

RedHat 9, All versions of the programs needed are ok.

Some more Error messages:
...failed C++ ./out/linuxx86/optimize/blpython/blcel.o ...
...skipped blpython.so for lack of blcel.o...
...failed updating 1 target(s)...
...skipped 1 target(s)...
CEL was built...
Getting PlaneShift...
cvs [checkout aborted]: end of file from server (consult above messages if any)
Failed CVS retrying....

Iam no Linux Expert, so this messages dont tell me anything.


Ive just found a few hundreds lines with such text:
blpython/blcel.cpp: In function `void* _p_iReporterIteratorTo_p_iBase(void*)\':
blpython/blcel.cpp:83558: parse error before `)\' token

May it be a problem with python here?
« Last Edit: May 29, 2003, 04:45:25 pm by Meracian »

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #6 on: May 29, 2003, 05:20:37 pm »
try doing

molblue$ export CRYSTAL=$HOME/molblue/CS
molblue$ export CEL=$HOME/molblue/cel
planeshift$ ./psclient

The script runs in another shell so when you try to run psclient these exports are not defined so you need to re-export them ( or place them in your .bashrc file as well so each shell will have them. )

Sometimes CVS does not respond an returns a message:

cvs [checkout aborted]: end of file from server (consult above messages if any)

But the script is on a \'never give up\' policy so it will keep hitting the server until it connects.  So the \'Retrying... \" messages are ok.  For the cel stuff there are some known erros in the blpython stuff but it does not affect PlaneShift so you can safely ignore those.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Meracian

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #7 on: May 29, 2003, 05:37:46 pm »
OK, it now starts with ./psclient (entered it in the bashrc).
But there comes another problem without an error message in the terminal:
I start via ./psclient
Intro-Screen
Main Menu
click Create
Creation-Screen appears, hangs up (whil typing name and while doin nothing)

Ive tried to change Screen Resolution, color-bits and software/opengl, no effect.

Then i Used ./updater

updates...

still the same problem, again changes screen resolution and other, no effect.

Changed video card type to generic, no effect.

V0.2.0008 is standing in the main menu down right.

Anything I can do?

PS: Thank You for the last message, I thought build.sh would make this automatically.

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #8 on: May 29, 2003, 05:41:34 pm »
Hmm, it should be version 010. You should not need to run the updater since building from source should give you the needed version.  So don\'t run the updater!

Hmm, strange problem with hanging Creation-Screen.  Are you in the middle of typing and it just stops?  Do any of the race selection buttons work?  Is the mouse cursor still active?  Is the screen still redrawn?
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Meracian

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #9 on: May 29, 2003, 05:45:32 pm »
I dont need to type, after 5-10 seconds it hangs up.
mouse is moving around but no button works,
before hanging up all is working
when running in window, it wont refresh if i move another window over it.
I need to press ALT-CTRL-Backspace if Iam in fullscreen, it wont exit otherwise, when in window mode a simply close of the terminal window is enough to kill both windows.

Do I need to uninstall the update (install game again) ? (Would be hard for me: Linux-Newb)
« Last Edit: May 29, 2003, 05:53:09 pm by Meracian »

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #10 on: May 29, 2003, 05:54:29 pm »
Hmm, I hate to say it but it may be better if you deleted the dir and run the script again just to make sure that your version is not out of whack. ( So don\'t run the updater! )

I\'m not sure what could cause the behaviour you are getting.  You could try turning off the sound by editing the psclient.cfg file and placing a ; in front of
System.PlugIns.iSoundRender = crystalspace.sound.render.software

but this is only grasping at straws.  I\'m sorry that I cannot be more helpfull since I really have no idea what the problem could be here.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Meracian

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #11 on: May 29, 2003, 06:06:43 pm »
Found out more:
When this Line appears in Terminal, it hangs up:
PreloadModels: Preloading complete

After about 7 minutes it restarts with this lines in the Terminal:
races[0] is \'Stonebreaker\', not .
races[1] is \'Enkidukai\', not .
races[2] is \'Ynnwn\', not .
races[3] is \'Ylian\', not .
races[4] is \'Xacha\', not .
races[5] is \'Nolthrir\', not .
races[6] is \'Dermorian\', not .
races[7] is \'Hammerwielder\', not .
races[8] is \'Diaboli\', not .
races[9] is \'Kran\', not .
races[10] is \'Lemur\', not .
races[11] is \'Klyros\', not .
Race  was not found!
Couldn\'t find a definition for \'Male\'
Couldn\'t create Resource \'Male\'
races[0] is \'Stonebreaker\', not .
races[1] is \'Enkidukai\', not .
races[2] is \'Ynnwn\', not .
races[3] is \'Ylian\', not .
races[4] is \'Xacha\', not .
races[5] is \'Nolthrir\', not .
races[6] is \'Dermorian\', not .
races[7] is \'Hammerwielder\', not .
races[8] is \'Diaboli\', not .
races[9] is \'Kran\', not .
races[10] is \'Lemur\', not .
races[11] is \'Klyros\', not .
Race  was not found!
Couldn\'t find a definition for \'Female\'
Couldn\'t create Resource \'Female\'
races[0] is \'Stonebreaker\', not .
races[1] is \'Enkidukai\', not .
races[2] is \'Ynnwn\', not .
races[3] is \'Ylian\', not .
races[4] is \'Xacha\', not .
races[5] is \'Nolthrir\', not .
races[6] is \'Dermorian\', not .
races[7] is \'Hammerwielder\', not .
races[8] is \'Diaboli\', not .
races[9] is \'Kran\', not .
races[10] is \'Lemur\', not .
races[11] is \'Klyros\', not .
Race  was not found!
Couldn\'t find a definition for \'Male\'
Couldn\'t create Resource \'Male\'

From now on it is able to create the Character until I try to choose the outfit (hair, eyes etc. wont  change when choosing another). When I need to upload it (linkdead)...But this I think I need to get elsewhere in the forums.

Thank You till here :-)

jamincollins

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
Character uploaded, but crash on connect
« Reply #12 on: May 29, 2003, 06:43:22 pm »
Updating to the specific release has helped with the character upload problem.  However, now after character upload the client abruptly exits.  The last few lines on the terminal are:

CEL is searching for meshfact \'maleylian\'...Found
pf/mesh/meshfact.cpp:231: failed assertion \'s != NULL\'
Trace/breakpoint trap

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #13 on: May 29, 2003, 06:50:43 pm »
Did you rip the art from one of the releases?  I\'m thinking of the lines:

molblue$ wget http://heanet.dl.sourceforge.net/sourceforge/planeshift/planeshift.tar.gz
molblue$ tar -xvzf planeshift.tar.gz planeshift/art
molblue$ rm planeshift.tar.gz

( This is only if you built MB010 using CVS.  If you used the main tarball it should be ok ).
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

jamincollins

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
(No subject)
« Reply #14 on: May 29, 2003, 07:08:27 pm »
Stupid me... that was it... now I\'m in... thanks again.