Skip to content
mgoeppner edited this page Mar 6, 2012 · 7 revisions

This page contains information pertaining to the technologies in use with the CemeteryMania game server. Any software depending on other software is listed below the parent. Eventually this page will also contain API information for the server as well.

General Architecture

Event Processor

Will handle all packets coming in from players. Has stored collections of Opcodes and actions, and validates anything the client sends, and fires off the correct events

Cache

Stuff to cache

  • Quest data
  • NPC data
  • Item Data
  • Conversations and responses
  • Any static data about the world
  • Opcodes for event processor
  • Zombie survival pack
  • Bacon
  • Steak

Stuff not to cache

  • Anything the player can modify
  • Dirty laundry
  • Vegetables

Database

Stuff gets stored here. Database access should not be wasteful.

Packet Structure

Based on JSON to be flexible and extendable. THe most basic packet consists of an OpCode and an Action

{ "opcode": 000, "action": "load" }

Software Stack

Node.js http://nodejs.org/ => 0.6.12

Redis http://redis.io/ => 2.4.8

Clone this wiki locally