You are on page 1of 24

The Game

Realization
@ywx
Experience
love games in previous time

Programmers curiosity

private server hosting


The game

Knight online 3.0

http://v.youku.com/v_show/id_XMTU2MDIzMjQ0OA==.html

MMORPG(Massively Multiplayer Online Role Playing Game)

One World, Two Camp, Many Citis, Many Character

A society composed of Many people

Each player acts one citizen

Grow up, Team killing , Alliance, Camp Battle, Business


The game
First : Login
-


GameServer Group

Group


Game Server

,,,,

IN

AI ServerNPC

OutPut


Game Server

NPC,

10

,,,
Game Server
Game Server



Personal Info

DB

dumpDB

GSKill
SIGKILL

DB

The Wolrd

-> (x,y)

(x,y)

The world
?
MapRegion
array[][]
,,Regiony
List
Region8
Region()
RegionList
,
300ms,
perform

/
TCP/UDP UDPSizeMTU
TCP or UDP

TCP
MMOTCP,TCP

UDP
64K 2 2^16=64kMTU 1500

TCP
, TCPcheck, Size
(TCP
TCP)
Nagle


TCP;UDP
NPC
GSClient

1s

(<=1000)

,, Client

,,int,
Game Server

/ A*
Anti Cheat

NPC
NPC

lua

lua C

lua
luaCGS

Business
or
ClientopcodeGS





Kill Monster
The Others

,,
AI Server

NPC

IN

Game DBNPC

,,

OutPut

NPC
AI Server

,,

,
AI Server
GS,
/,
,HP,MP,

AS
,
,

HP=0,AI
Priority Queuesore=

AI Server
NPC

NPCrand%88

NPCNPC

N,NPC

Operation Platform

84

bug,

You might also like