Installing Cyphesis
From WorldForgeWiki
Note: it is not currently possible to install to a normal Windows box but that installing cygwin may make it possible
Contents |
Install of Cyphesis from the autopackage
Autopackage
Autopackage is a software installation on Linux easy. Software distributed using Autopackage can be installed on multiple Linux distributions and integrate well into the desktop environment.
If you don't have it installed, it will be installed automatically when running a .package file; you don't have to install it beforehand. Once it's installed however you'll have access to a nice graphical interface for uninstalling packages. It will also integrate with your desktop, allowing you to install new packages by clicking on them.
To make the cyphesis-0.5.15.package file executable follow these instructions. If you have some errors during install, autopackage will tell you what library you need to install.
Install Cyphesis
To Install, just download the last version of Cyphesis on SourceForge :
elendrim@vana:~$ wget http://downloads.sourceforge.net/worldforge/cyphesis-0.5.15.package elendrim@vana:~$ sh cyphesis-0.5.15.package
Run Cyphesis
Now you can run Cyphesis :
elendrim@vana:~$ cyphesis SCRIPT_ERROR: /usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module SCRIPT_ERROR: DeprecationWarning) [assert] error: 111 (Connection refused) [assert] where: "socket.c", "sw_socket_tcp_connect", line: 720 WARNING: Unable to create MDNS publisher session ERROR: No MDNS Responder for me. INFO: Running
Cyphesis is up and running, but so far it doesn't know about the game rules, and the world is empty. To set this right, do the following:
elendrim@vana:~$ cd ./.local/bin/ elendrim@vana:~/.local/bin$ cyclient [...] created: arrow(2967) [...] elendrim@vana:~/.local/bin$ cyaddrules Reading rules from mason Updating acorn on server. [...]
Installation of Cyphesis from source
Source
It's also possible to build Cyphesis from source, of course. You will need a couple of development libraries installed from your distribution and from WorldForge. You can get the WorldForge libraries from the SourceForge project page.
Build Cyphesis
To compile Cyphesis, you need the development version of the following packages:
- python
- libgcrypt
- AtlasC++
- Varconf
- Mercator
- Skstream
- WFMath
- avahi (optional)
- terminfo or ncurses
- readline
- postgresql
After downloading the Cyphesis tarball, the build process is easy.
kai@blackjack:cyphesis> ./configure --prefix=/opt/worldforge [...] kai@blackjack:cyphesis> make [...] kai@blackjack:cyphesis> make install [...]
Note that by default, Cyphesis will install into /opt/worldforge/, which I assume is your choice and writeable by your user.
Running Cyphesis
Next, you will need to set up the PostgreSQL database for Cyphesis. Do the following as root and replace the username with the name of the account that Cyphesis will run as:
blackjack:~ # su - postgres postgres@blackjack:~> createuser Enter name of user to add: kai Shall the new user be allowed to create databases? (y/n) y Shall the new user be allowed to create more new users? (y/n) n CREATE USER
Now as the user who is going to run Cyphesis:
kai@blackjack:~> createdb cyphesis CREATE DATABASE
Now that our database is set up, we can load the ruleset into the database:
kai@blackjack:~> cyloadrules Reading rules from mason 80 classes stored in rule database. Reading rules from basic 30 classes stored in rule database.
Once that is done, we can start Cyphesis for the first time:
kai@blackjack:~> cyphesis 2006:04:03 23:53:03 NOTICE DATABASE: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "rules_pkey" for table "rules" 2006:04:03 23:53:03 NOTICE DATABASE: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "accounts_pkey" for table "accounts" 2006:04:03 23:53:03 NOTICE DATABASE: NOTICE: CREATE TABLE / UNIQUE will create implicit index "accounts_entity_ent_target_key" for table "accounts_entity_ent" 2006:04:03 23:53:04 NOTICE DATABASE: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "entity_ent_pkey" for table "entity_ent" 2006:04:03 23:53:05 INFO Restoring world from database... 2006:04:03 23:53:05 INFO world restored 2006:04:03 23:53:11 INFO Running
Cyphesis is up and running, but so far the world is empty. To set this right, do the following:
kai@blackjack:~> cyclient [...]
Now you have Cyphesis up and running. Congratulations.
Errors
If you have this error :
SCRIPT_ERROR: /usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module SCRIPT_ERROR: DeprecationWarning) ERROR: Could not create client listen socket. Init failed.
it's because you have already a process who run on this port, probably Cyphesis. you can kill it .. and rerun it :)
elendrim@vana:~$ killall cyphesis elendrim@vana:~$ cyphesis
Note
When installing from cvs source, This is not advised you will need to run the ./autogen.sh before ./configure
Development
The following pages related to cyphesis development are current hosted on the wiki:

