Author Topic: RPMS are here!  (Read 4976 times)

voidinit

  • Traveller
  • *
  • Posts: 10
    • View Profile
RPMS are here!
« on: December 29, 2004, 10:57:38 pm »
I built these to help the linux guys.  Enjoy:

These RPMs are kinda big, and I have limited upstream bandwidth.  I\'ll have to break this if I need to use my internet pipe.  Someone please mirror!

I have RPMS for the latest libcal3d, CrystalSpace, Crystal Entity Layer, and Planeshift.   I plan on updating the Planeshift RPM daily, and the others when needed.  

If you need prerequisites for any of these RPMS, like freetype, libmng or whatever, get the proper packages for your distro.


If you just want to play the game, you\'ll need these rpms

libcal3d
CrystalSpace
cel
planeshift

Install libcal3d first, then CrystalSpace, then cel, then Planeshift.

If you want to build Planeshift yourself from CVS, but don\'t want to screw with the prerequisites, you\'ll need these RPMS in addition to the ones above.  You\'ll also need a mysql package of some sort.

libcal3d-devel
CrystalSpace-devel
cel-devel
Jam
Install libcal3d, libcal3d-devel, cel, cel-devel, CrystalSpace, CrystalSpace-devel.

If you want to run or build a server, you\'ll need a mysql package.  I have one I built for work here, but it\'s not guarunteed to work on any particular platform, You\'ll be better off just getting the pakages for your distro.  This pakcage was custom built for work, so --nodeps is your friend.

MySQL

If you want to develop or code with any of these, you\'ll want the docs.

CrystalSpace-doc
cel-doc

NOTES:  On non-rpm based systems (e.g. Slackware, Debian), you\'ll have to use --nodeps to get these to install.  Your rpm database isn\'t fully populated, so the rpms will complain that you are missing /bin/sh, etc.

You will have to logout/login to your shell after installing these rpms in order for your $CRYSTAL, $CEL, and $CSCONFPATH to be set.  On systems that don\'t support /etc/profile.d/ style of init scripts, you\'ll have to set them yourself.

These are not guarunteed to work on any particular system.  If you have problems, feel free to let me know and I\'ll do my best to remedy them.

The planeshift RPM is currently complaining about perl dependancies.  --nodeps it for now.  I\'ll resolve it eventually.

Updating with the updater sometimes (more like usually) breaks planeshift.  Get the dev packages and rebuild planeshift from CVS.   I\'m  looking into what is causing this behavour, but it\'s not being cooperative.

Jam and RPM don\'t play nice.

Good Practice:

When you install or build Planeshift, you might want to do something like:

groupadd games
chgrp -R games /usr/local/planeshift
usermod -g games $YOUR_USERNAME
chmod -R g+w /usr/local/planeshift

Than run planeshift, the updater, etc. from your user account and not as root.  It\'s never a good idea to run a game, MMORPG, or any beta as root.

.spec files for those interested.

libcal3d.spec
cel.spec
CrystalSpace.spec
jam.spec
planeshift.spec

* Edit to increment build numbers in URLS*
« Last Edit: January 04, 2005, 01:11:25 am by voidinit »

Keyaz

  • Guest
(No subject)
« Reply #1 on: December 29, 2004, 11:17:34 pm »
o_O someone knows what they\'re doing *applause*

voidinit

  • Traveller
  • *
  • Posts: 10
    • View Profile
(No subject)
« Reply #2 on: December 30, 2004, 12:39:08 am »
Just an note:

The planeshift RPM is officially broken.  Well, not really the planeshift RPM, it\'s more the CrystalSpace RPM.  Some of Crystal\'s libraries (.so) hardcode in the build directory as their home instead of using the $libdir variable like they should. So passing a --prefix option to configure doesn\'t work at all.

I have added a workaround to the .spec file and I\'ll update the RPMS when I test it.

voidinit

  • Traveller
  • *
  • Posts: 10
    • View Profile
(No subject)
« Reply #3 on: December 30, 2004, 03:18:39 am »
Alright, I think I figured out what the problem was...


If you install entirely from RPM, you need to do this as root:

mv /usr/local/CS/etc/crystalspace/vfs.bak /usr/local/CS/etc/crystalspace/vfs.cfg

Second run /usr/local/CS/bin/walktest -relight  because this will broken after you follow the rest of these instructions.

Then run the updater.

After running the updater, do this command as root:

mv /usr/local/CS/etc/crystalspace/vfs.cfg /usr/local/CS/crystalspace/etc/crystalspace/vfs.bak

Then run psclient.



It seems that after an update to current, both of these files exist and are merged.  Merging these two files is a bad idea. I\'m not sure if this is the best solution, but it is a solution that seems to work.  

I\'ve updated the planeshift rpm to rename the  /usr/local/CS/crystalspace/crystalspace/vfs.cfg to .bak, but unless you have a current vfs.cfg from planeshift\'s update tool, this is fruitless.  You\'ll have to restore /usr/local/CS/etc/crystalspace/vfs.bak to /usr/local/CS/blahblahblah/vfs.cfg.  Run the updater, then re-rename it to .bak again.

These problems are solveable, it will just take some time to identify problems like these and make sure the solution is universal.

voidinit

  • Traveller
  • *
  • Posts: 10
    • View Profile
Back Up.
« Reply #4 on: January 04, 2005, 12:36:14 am »
My apologies to anyone who tried to download these rpms in the past few days.  Though I doubt anyone did.

My webserver lost a heat sink, which cause the loss of a CPU. (It needed an upgrade anyway).

Anyway, they are back up.

Nedhrys

  • Traveller
  • *
  • Posts: 13
    • View Profile
rpm's
« Reply #5 on: January 04, 2005, 02:00:58 am »
hey there,
thanks for building these.
Can\'t download them now, though - when Mozilla connects, nothing happens until it times out some minutes later - are you no longer online?

Did you resolve the difficulties you encountered?

Are there mirrors of these rpms up elsewhere? Or perhaps bit torrent files?

Thanks,

Nedhrys

voidinit

  • Traveller
  • *
  • Posts: 10
    • View Profile
(No subject)
« Reply #6 on: January 05, 2005, 02:15:47 am »
Quote
Originally posted by Nedhrys
hey there,
thanks for building these.
Can\'t download them now, though - when Mozilla connects, nothing happens until it times out some minutes later - are you no longer online?

Did you resolve the difficulties you encountered?

Are there mirrors of these rpms up elsewhere? Or perhaps bit torrent files?

Thanks,

Nedhrys


I\'m not sure if they are mirrored anywhere, and I haven\'t personally built any torrents out of them.

I think I forgot to reinstate the NAT when I brought my firewall back up.  I\'ve done this now, but of course, I can\'t test it from this side of my firewall.  I\'ll verify it from work tommorow.

The planeshift RPM is the latest and greatest from CVS.  Currently, the updater shipped with the latest from CVS is incompatible with the updater running on the server.  

This means:

Backup your art and data directories! You\'ll have to restore those to play.

If you\'ve never installed before and haven\'t run the updater you may have to wait untill they upgrade the server.  You will not be able to download the art you need before the server-side updater is brought into sync with what is commited to CVS.   If I have the time, I may publish rpms of my art and data directories so that they are available when things like this happen.
« Last Edit: January 05, 2005, 02:20:16 am by voidinit »

Nedhrys

  • Traveller
  • *
  • Posts: 13
    • View Profile
rpms
« Reply #7 on: January 05, 2005, 02:43:46 am »
thanks, voidinit.

I\'ve not installed any version of planeshift or crystal blue before,
so i\'ll probably have to get all the art, etc new. Would be really great if you were to post the relevant data as rpms too...

Currently, i\'m downloading the second rpm mentioned on your first post - CystalSpace.

Seems to be downloading fine.

thanks again for your time in this.

ciao,

Nedhrys

Nedhrys

  • Traveller
  • *
  • Posts: 13
    • View Profile
(No subject)
« Reply #8 on: January 05, 2005, 08:14:41 am »
hi voidinit,

i\'ve now downloaded all of your rpm\'s.

I logged in as root, and ran all the rpm\'s in the order you suggested.

However, the Xandros installation manager moaned about various files it couldn\'t find.

Here\'s a quote:
crystalspace_b0.99-3_i386.deb generated
/var/lib/dpkg/info/crystalspace.postinst: line 9: /etc/profile.d/planeshift.sh: No such file or directory
/var/lib/dpkg/info/crystalspace.postinst: line 10: /etc/profile.d/planeshift.sh: No such file or directory
chmod: failed to get attributes of `/etc/profile.d/planeshift.sh\': No such file or directory
 Xandros Networks has detected the following error:
subprocess post-installation script returned error exit status 1
 Xandros Networks detected errors while processing the following file(s):
crystalspace
 Xandros Networks has detected that dpkg has returned with error code (1)
Please retry your installation.
Done.

Got similar messages while installing the other rpms.
Sorry, but I\'m really a complete newcomer to linux and have no clue about programming, compiling, etc.

Do you have any useful suggestions about how to sort this one out?

Thanks,

Nedhrys

LordVan

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #9 on: January 05, 2005, 11:26:17 am »
Quote
Originally posted by Nedhrys
hi voidinit,

i\'ve now downloaded all of your rpm\'s.

I logged in as root, and ran all the rpm\'s in the order you suggested.

However, the Xandros installation manager moaned about various files it couldn\'t find.

Here\'s a quote:
crystalspace_b0.99-3_i386.deb generated
/var/lib/dpkg/info/crystalspace.postinst: line 9: /etc/profile.d/planeshift.sh: No such file or directory
/var/lib/dpkg/info/crystalspace.postinst: line 10: /etc/profile.d/planeshift.sh: No such file or directory
chmod: failed to get attributes of `/etc/profile.d/planeshift.sh\': No such file or directory
 Xandros Networks has detected the following error:
subprocess post-installation script returned error exit status 1
 Xandros Networks detected errors while processing the following file(s):
crystalspace
 Xandros Networks has detected that dpkg has returned with error code (1)
Please retry your installation.
Done.

Got similar messages while installing the other rpms.
Sorry, but I\'m really a complete newcomer to linux and have no clue about programming, compiling, etc.

Do you have any useful suggestions about how to sort this one out?

Thanks,

Nedhrys


looks like your distribution doesn\'t have an /etc/profile.d directory. try \'mkdir /etc/profile.d\' first and then retry it.

confused

  • Hydlaa Citizen
  • *
  • Posts: 269
    • View Profile
(No subject)
« Reply #10 on: January 05, 2005, 11:26:55 am »
Thanx for the RPMs

Well I had no problems installing any of the RPMS on SUSE 9.1.

But when I run pssetup, I don\'t have a mouse pointer or radio buttons and checkboxes. Also can\'t save the file.

When I start ./psclient I get version 0.3.004 displayed on the window title bar, again no mouse pointer.

Here is the output I get:
========================================================
./pssetup

crystalspace.canvas.glx2d:
  Opening GLX2D
  Creating Context
  Video driver GL/X version (direct renderer)
  Visual ID: 21, 24bit TrueColor
  R8:G8:B8:A0,
  level 0, double buffered

crystalspace.canvas.openglcommon.driverdb:
  Applied: GeForce setting: Texture Compression

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce4 Ti 4200 with AGP8X/AGP/SSE2 (vendor: NVIDIA
  Corporation) version 1.5.2 NVIDIA 66.29
  Using windowed mode at resolution 600x400.
  Pixel format: Color: 24 Alpha: 0 Depth: 24 Stencil: 8 AccumColor: 24
  AccumAlpha: 0 MultiSamples: 0
  Multisample: disabled

crystalspace.sound.software:
  Software Sound Renderer selected

crystalspace.sound.oss:
  SoundDriver OSS selected

crystalspace.sound.software:
    Playing 44100 Hz, 16 bits, Stereo
    Volume: 1

planeshift.setup.application:
  Application initialized successfully.
Error saving configuration \'\'.
SCF WARNING: 1 unreleased instances of class crystalspace.graphics2d.glx!
SCF WARNING: 1 unreleased instances of class crystalspace.graphics3d.opengl!
SCF WARNING: 1 unreleased instances of class crystalspace.kernel.vfs!
SCF WARNING: 1 unreleased instances of class crystalspace.window.x!
SCF WARNING: 1 unreleased instances of class crystalspace.window.x.extf86vm!

===============================================================
./psclient
crystalspace.maploader: Could not get model converter
crystalspace.maploader: Could not get model crossbuilder

crystalspace.canvas.glx2d:
  Opening GLX2D
  Creating Context
  Video driver GL/X version (direct renderer)
  Visual ID: 21, 24bit TrueColor
  R8:G8:B8:A0,
  level 0, double buffered

crystalspace.canvas.openglcommon.driverdb:
  Applied: GeForce setting: Texture Compression

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce4 Ti 4200 with AGP8X/AGP/SSE2 (vendor: NVIDIA
  Corporation) version 1.5.2 NVIDIA 66.29
  Using windowed mode at resolution 1024x768.
  Pixel format: Color: 24 Alpha: 0 Depth: 24 Stencil: 8 AccumColor: 24
  AccumAlpha: 0 MultiSamples: 0
  Multisample: disabled

crystalspace.sound.software:
  Software Sound Renderer selected

crystalspace.sound.oss:
  SoundDriver OSS selected

crystalspace.sound.software:
    Playing 44100 Hz, 16 bits, Stereo
    Volume: 1

planeshift.application.client:
  PlaneShift Crystal Blue
  This game uses Crystal Space Engine created by Jorrit and others
  0.99 r0 [Unix-x86-GCC]
LOG_ANY flag deactivated.
LOG_WEATHER flag deactivated.
LOG_SPAWN flag deactivated.
LOG_CELPERSIST flag deactivated.
LOG_PAWS flag deactivated.
LOG_GROUP flag deactivated.
LOG_CHEAT flag deactivated.
LOG_LINMOVE flag deactivated.
LOG_SPELLS flag deactivated.
LOG_NEWCHAR flag deactivated.
LOG_SUPERCLIENT flag deactivated.
LOG_EXCHANGES flag deactivated.
LOG_ADMIN flag deactivated.
LOG_STARTUP flag deactivated.
LOG_CHARACTER flag deactivated.
LOG_CONNECTIONS flag deactivated.
LOG_CHAT flag deactivated.
LOG_NET flag deactivated.
LOG_LOAD flag deactivated.
LOG_NPC flag deactivated.
LOG_TRADE flag deactivated.
LOG_SOUND flag deactivated.
LOG_COMBAT flag deactivated.
LOG_SKILLXP flag deactivated.
LOG_QUESTS flag deactivated.
  psEngine initialized.
Creating psnetconnection 8614448!

crystalspace.pluginmgr.loadplugin:
  WARNING: could not load plugin \'cel.physicallayer\'
Couldn\'t load plugin for PlLayer.
SCF WARNING: 1 unreleased instances of class crystalspace.graphics2d.glx!
SCF WARNING: 1 unreleased instances of class crystalspace.graphics3d.opengl!
SCF WARNING: 1 unreleased instances of class crystalspace.window.x!
SCF WARNING: 1 unreleased instances of class crystalspace.window.x.extf86vm!

voidinit

  • Traveller
  • *
  • Posts: 10
    • View Profile
(No subject)
« Reply #11 on: January 05, 2005, 12:38:39 pm »
Quote
Originally posted by confused
crystalspace.pluginmgr.loadplugin:
  WARNING: could not load plugin \'cel.physicallayer\'
Couldn\'t load plugin for PlLayer.
SCF WARNING: 1 unreleased instances of class crystalspace.graphics2d.glx!
SCF WARNING: 1 unreleased instances of class crystalspace.graphics3d.opengl!
SCF WARNING: 1 unreleased instances of class crystalspace.window.x!
SCF WARNING: 1 unreleased instances of class crystalspace.window.x.extf86vm!


This looks like your $CRYSTAL, $CEL and $CSCONFDIR environement variables arent\' set correctly.

You see, some linux distrubutions (RedHat, Fedora) will run every script in /etc/profile.d/ every single time a user logs in.   I setup my RPMs to install a script that set\'s the above mentioned environment variables for you every time you log in.  Your linux distribution does not support this method of setting environment variables.  Maybe it uses a different method.  

You can try:

export CRYSTAL=/usr/local/CS
export CEL=/usr/local/CEL
export CSCONFDIR=$CEL

Then try to run planeshift.


If that works, then use pico or vi or some text editor to add these lines to the ~/.bash_profile file.

Hope this works.

confused

  • Hydlaa Citizen
  • *
  • Posts: 269
    • View Profile
(No subject)
« Reply #12 on: January 05, 2005, 01:09:54 pm »
Tried the export commands and also placed them in the .bashrc, there was no .bash_profile but .bashrd had plenty variables for editors, language, etc.

Oh running applications as a normal user.

echo $CRYSTAL
/usr/local/CS
echo $CEL
/usr/local/CEL
echo $CSCONFDIR
/usr/local/CEL

./pssetup still gives the same output and no mouse pointer or radio buttons and checkboxes. Still does not save configuration. If I can get the setup to save the configuration I be able to remove the sound errors.

./psclient same lovely picture with no mouse pointer, though output is slightly different.

==========================================================================
./psclient
crystalspace.maploader: Could not get sound driver
crystalspace.maploader: Could not get model converter
crystalspace.maploader: Could not get model crossbuilder

crystalspace.canvas.glx2d:
  Opening GLX2D

:
All 3 sound parts disappeared!
:

planeshift.application.client:
  PlaneShift Crystal Blue
  This game uses Crystal Space Engine created by Jorrit and others
  0.99 r0 [Unix-x86-GCC]
  Warning: Cannot initialize iSoundManager
LOG_ANY flag deactivated.
LOG_WEATHER flag deactivated.
LOG_SPAWN flag deactivated.
LOG_CELPERSIST flag deactivated.
LOG_PAWS flag deactivated.
LOG_GROUP flag deactivated.
LOG_CHEAT flag deactivated.
LOG_LINMOVE flag deactivated.
LOG_SPELLS flag deactivated.
LOG_NEWCHAR flag deactivated.
LOG_SUPERCLIENT flag deactivated.
LOG_EXCHANGES flag deactivated.
LOG_ADMIN flag deactivated.
LOG_STARTUP flag deactivated.
LOG_CHARACTER flag deactivated.
LOG_CONNECTIONS flag deactivated.
LOG_CHAT flag deactivated.
LOG_NET flag deactivated.
LOG_LOAD flag deactivated.
LOG_NPC flag deactivated.
LOG_TRADE flag deactivated.
LOG_SOUND flag deactivated.
LOG_COMBAT flag deactivated.
LOG_SKILLXP flag deactivated.
LOG_QUESTS flag deactivated.
Couldn\'t create Resource \'sound.standardButtonClick\'
Couldn\'t create Resource \'gui.toolbar\'
Couldn\'t create Resource \'gui.cancel\'
Couldn\'t create Resource \'gui.ok\'
Couldn\'t create Resource \'gui.scrolldown\'
Couldn\'t create Resource \'gui.scrollup\'
Couldn\'t create Resource \'gui.shortcut\'
Couldn\'t create Resource \'gui.quit\'
  psEngine initialized.
Creating psnetconnection 8540060!

:
« Last Edit: January 05, 2005, 01:14:08 pm by confused »

voidinit

  • Traveller
  • *
  • Posts: 10
    • View Profile
(No subject)
« Reply #13 on: January 05, 2005, 01:52:43 pm »
Running the application as a normal user is good form.

Try this:

cd /usr/local/CS/bin/
./walktest --relight


If you get an error about not being able to save configuration or whatever, then your user account doesn\'t have write permissions to the /usr/local/CS*.  

Give your user account write permissions to /usr/local/CS, /usr/local/cel, and /usr/local/planeshift recursively.

confused

  • Hydlaa Citizen
  • *
  • Posts: 269
    • View Profile
(No subject)
« Reply #14 on: January 05, 2005, 02:51:28 pm »
OK received a writing error with ./walktest -relight

changed the group to users for all 3 directories recursively.

This time the ./walktest -relight started without error. Also it is the first time I ever seen the lighting to be correct, not heavily dark in the past.

Tried ./pssetup and ./psclient, still get the same errors.