Cyphesis development for self starters
From WorldForgeWiki
Contents |
Steps to get to know Cyphesis
Follow the steps in this guide to get to know Cyphesis.
Installation
- Clone the Cyphesis sources from Git.
- Build and install.
- Run a Cyphesis server, and note the database error message.
- Run cyclient to populate the server.
- Make sure you have PostgreSQL installed.
- Create a database user and database for cyphesis. (See README)
- Run cyloadrules to copy your rules into the database
- Re-start Cyphesis using the database.
- Run cyclient to populate the new server.
- Connect using Ember to see your world.
Administration with cycmd
- Run cycmd to get the admin command line.
- Use the stat command to see the servers status.
- Use the monitor/unmonitor commands to see internal operations.
- Use query to see an in-game entity. (Try "query 0")
- Use add_agent to create an admin avatar.
- Use find_by_type to find an entity.
- Use find_by_name to find a know entity. (Try "find_by_name moraf")
- Use flush to purge some entities. (Try "flush oak")
- Use find_by_type to show there are no entities of that type left.
- Use creator_create to create a new one.
- Use find_by_type to see the details for the entity you created.
- Use help and try out the rest of the commands.
If you have now broken your server, see if you can fix it.
Working with types
- Connect with cycmd, and add an admin avatar as above.
- Use creator_create to try and create an entity of a type which does not exist. ("creator_create chestnut")
- Use install to add a new temporary type.
- Use creator_create again to create an instance of this new type.
- Use find_by_type to show it is there.
- Look at data/plants.xml in the source tree and find the definition for oak.
- Run cyaddrules to see how an updated set of rules can be pushed to the server.
- Add a new definition to data/plants.xml to define a new type of tree.
- Install your modified file, and run cyaddrules. Check in the output to see that the new rule has been updated.
- Use cycmd to try out your new rule.