CN101169806B - Role data management device and method in network game system - Google Patents

Role data management device and method in network game system Download PDF

Info

Publication number
CN101169806B
CN101169806B CN 200710175360 CN200710175360A CN101169806B CN 101169806 B CN101169806 B CN 101169806B CN 200710175360 CN200710175360 CN 200710175360 CN 200710175360 A CN200710175360 A CN 200710175360A CN 101169806 B CN101169806 B CN 101169806B
Authority
CN
China
Prior art keywords
role
character
partition
data
region
Prior art date
Application number
CN 200710175360
Other languages
Chinese (zh)
Other versions
CN101169806A (en
Inventor
成珀
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN 200710175360 priority Critical patent/CN101169806B/en
Publication of CN101169806A publication Critical patent/CN101169806A/en
Application granted granted Critical
Publication of CN101169806B publication Critical patent/CN101169806B/en

Links

Abstract

The invention discloses a role data management device in an online game system and a method thereof. The role data management device comprises a parent-zone role management module and at least one sub-zone management module, wherein the sub-zone management module is used for managing role data in the sub-zone, and the parent-zone role management module is used for managing role statistical data inthe parent-zone. The sub-zone role management module transmits a role name to be created to the parent-zone role management module when creating roles; and the parent-zone role management module searches whether the role name to be created has already existed in the parent-zone, if yes, instructs the sub-zone role management module to refuse the creation of the role name, and if not, records thestatistical data of the role name to be created and instructs the sub-zone role management module to create the role. The invention can assure the uniqueness of the role name in the entire online gamesystem parent-zone, so as to facilitate the migration and the merge of the role data in different sub-zones.

Description

网络游戏系统中的角色数据管理装置和方法 Character data network gaming system, apparatus and method of administration

技术领域 FIELD

[0001] 本发明涉及通信网络应用技术,尤其涉及一种网络游戏系统中的角色数据管理装 [0001] The present invention relates to network communication technology applications, in particular, relates to a network game system the character data management apparatus

置和方法。 Apparatus and method. 背景技术 Background technique

[0002] 随着网络通讯技术的飞快发展,网络游戏作为一种休闲娱乐方式已经被越来越多 [0002] With the fast development of network communication technology, online games as a leisure and entertainment has been more and more

的人接受。 People to accept. 网络游戏是指主要通过互联网或局域网由多人共同参与的电子计算机游戏。 It refers to the major online games via the Internet or LAN to participate in a multiplayer computer game. in

目前的技术方案中,网络游戏主要通过网络游戏系统实现。 The current technical solutions, primarily through online games online gaming system. 目前的网络游戏系统建立在通 The current system is based on online games

讯网络上,包括网络侧的网络游戏服务器和终端侧的网络游戏客户端,用户可以通过网络 The telecommunications networks, including the network game server and a terminal-side network side of the network game client, users can network

游戏客户端建立一个或一个以上的角色,并为所建立的角色起名字,通过网络游戏客户端 Game client to establish one or more than one role, and a name for the role established by the network game client

登陆所述网络游戏系统,按照游戏运行逻辑在虚拟世界中操作所扮演的角色。 Log in to the network game system, in accordance with the logic of the game to run in a virtual world in the role played by the operation.

[0003] 目前的网络游戏系统可以对游戏和角色进行分区运行。 [0003] Current network game system can be partitioned to run games and role. 也就是说,在一个分区中 In other words, in one partition

运行一个或一个以上的游戏逻辑,每一个分区业界一般称之为游戏世界(World),玩家可以 Run one or more game logic, each partition industry generally referred to as the game world (World), players can

在分区中创建角色并进行游戏。 Create a role in the partition and games. 一个以上的分区可以组成一个大区,业界一般称之为游戏 More than one partition can be composed of a large area, called the game industry in general

大区(Cluster)。 Region (Cluster).

[0004] 角色名是玩家在分区中的人物标识。 [0004] The role name is the player character identified in the partition. 每一个角色名对应分区游戏中的唯一角色, 游戏逻辑通过角色名来区分各个角色,游戏角色也是通过角色名为索引同其他的游戏角色建立好友、队友、师徒、情侣等关系。 Each partition corresponds to a role name of the game the only role, game logic to distinguish each character by character name, game character is the relationship friend, teammate, mentoring, couples and so on with the other game character by character named index. 所以在一个新角色创建时,虽然角色名可以由玩家在网络游戏系统允许的范围内自由定义,但是网络游戏系统必须保证角色名在当前分区中是唯一的,如果此角色名已被使用,则判定该角色名非法,创建角色失败。 So when a new role is created, although the role name can be freely defined by the player within range of the network game system allowed, but the network game system must ensure that role names are unique, if this role name has already been used in the current partition, determine the role illegal, create a role failed.

[0005] 图1为现有网络游戏系统内某一分区的角色数据管理装置的示意图。 [0005] FIG. 1 is a role of a partition in the conventional network game system data management apparatus FIG. 参见图l,所述角色数据管理装置包括: Referring to Figure l, the character data management apparatus comprising:

[0006] 游戏运行服务器(Zone Server) 101,用于处理具体的游戏逻辑。 [0006] Game server running (Zone Server) 101, for processing a particular game logic.

[0007] 分区注册管理模块(World Login) 102,用于根据游戏运行服务器101的请求管理 [0007] Partition management registration module (World Login) 102, according to a request for running a game management server 101

整个分区内的角色,包括角色创建、角色登入、角色登出、角色删除等操作逻辑。 The entire sub-region of roles, including character creation, character login, logout role, role or delete operation logic.

[0008] 角色统计数据库(All Role DB) 105,用于记录本分区内角色的统计数据,所述某 Statistics [0008] Statistics roles database (All Role DB) 105, sub-area for recording character, the a

一角色的角色统计数据表如表1所示: [0009] A character character statistics table shown in Table 1: [0009]

角色统计数据名称 属性 说明 Statistics Property Description Role

dwID 无符号的自动增量int变量 当前分区角色ID dwID unsigned int variables automatically increment the current partition role ID

szRoleName 主键 角色名 szRoleName primary key role name

dwUin 无符号int变量 帐号 dwUin unsigned int variables account

dtCreateTime 日期时间 角色名创建时间 dtCreateTime role name Date Time Created

4[0010] 表1 4 [0010] TABLE 1

[0011] 如表1,所述一个角色的统计数据中需要包括角色ID、角色名、帐号、角色名创建时间。 [0011] As shown in Table 1, the statistics of the need to include a character role ID, the role name, account number, name of the role creation time. 其中,角色名在一个角色的统计数据中是必须的,在所述统计数据表l中以角色名为主键。 Wherein the role name is necessary statistical data in a role, the role name as the primary key to the statistical data in Table l.

[0012] 分区数据存取模块(World Misc) 103,是所述分区注册管理模块的辅助模块,用于根据分区注册管理模块的操作指令对所述分区角色统计数据库中的角色统计数据进行存取。 [0012] partition data access module (World Misc) 103, the partition is a supplementary module registration management module is configured to access the data partition on the role of statistical character statistical database in accordance with the operation instruction district registration management module .

[0013] 分区角色数据库(Role DB)106,用于记录本分区内角色的详细数据。 [0013] Role partition database (Role DB) 106, sub-area for detailed data character record.

[0014] 角色数据服务器(Role Server) 104,用于根据分区注册管理模块的操作指令对所 [0014] Data server roles (Role Server) 104, an operation instruction for a partition of the registration management module

述分区角色数据库中的角色数据进行存取。 Said character data in the character database partition access.

[0015] 图2为现有技术创建角色的一种流程图。 [0015] FIG 2 is one kind of a flowchart of the prior art created role. 参见图2,该流程包括: Referring to Figure 2, the process comprising:

[0016] 步骤201、游戏运行服务器发出创建角色请求给分区注册管理模块,所述创建角色 [0016] Step 201, the game server sends a create run role request registration management module to a partition, creating the role

请求中包括所要创建的角色的初始化数据,其中至少包括角色名。 Request initialization data including the role to be created, including at least a character name.

[0017] 步骤202、分区注册管理模块发送角色名唯一性的查询请求到分区数据存取模块。 [0017] Step 202, the partition management module sends registration of the unique role name query request to partition data access module. [0018] 步骤203、分区数据存取模块查询分区角色统计数据库,判断其中是否已经存在所述要创建的角色名,并向分区注册管理模块返回查询结果。 [0018] In step 203, the partition data access module queries statistical database partitions role, which has to determine whether there is a role name to be created, and return query results section registration management module.

[0019] 步骤204、分区注册管理模块根据所述查询结果进行操作:如果所述要创建的角色名已经存在,则拒绝创建角色,并通过游戏运行服务器通知玩家所述角色名重复,请玩家重新设置角色名字;如果所要创建的角色名不存在,则向角色数据服务器发送所创建角色的初始化数据。 [0019] Step 204, the partition registration management module operates according to the results of the query: If you want to create the role name already exists, refused to create a role, and informs the player through the game to run the server name of the character repeat, please re-players set character name; if you want to create a role name does not exist, then send initialization data to create the role of character data server.

[0020] 步骤205、角色数据服务器将所述初始化数据存入分区角色数据库,返回创建响应到分区注册管理模块。 [0020] Step 205, the character data server initialization data stored in character database partition, a partition to create a response returned registration management module.

[0021] 步骤206、分区注册管理模块返回对应的创建响应到游戏运行服务器。 [0021] Step 206, the partition corresponding to the registration management module creates a response returned to the game server is running.

[0022] 但是,上述现有技术创建的角色名在整个大区内不是唯一的,因此导致以下技术 [0022] However, the role name above prior art created in the entire region is not the only large, thus resulting in the following technologies

缺陷: defect:

[0023] 1、角色数据不能很方便地在不同分区之间搬移。 [0023] 1, character data can not be easily moved between different partitions.

[0024] 由于角色名字在不同分区中可能重复。 [0024] Since the character name may be repeated in different partitions. 当一个角色数据需要从分区A中搬移到分区B时,如果分区B中有与此角色相同的角色名则不能将角色从分区A中搬移到分区B中, 必须将角色名修改后,比如增加后缀,才能搬移角色数据。 When a character data to move from the partition A and the partition B, if there is not the character moved with this role the same role name from the partition A and the partition B, the partition B, it is necessary after the role name modified, for example increased suffix to move character data. [0025] 2、合并分区时会必须修改两个分区中存在的相同角色名。 [0025] 2, would have to modify the same role name exists in two partitions merge partitions.

[0026] 当需要合并分区的角色时,必须对不同分区中的角色名做检查,如果有相同的角色名,则需要对相同的角色名做修改后,才能合并两个分区的角色。 [0026] When the need for the role of merging partitions must be done to check for different partitions role name, if you have the same role name, you need to make changes after the same role name, role in order to merge two partitions.

发明内容 SUMMARY

[0027] 有鉴于此,本发明所要解决的技术问题在于提供一种网络游戏系统中的角色数据 [0027] Accordingly, the present invention is to solve the technical problem is to provide character data A network game system

管理装置,在保证角色数据在不同分区之间搬移和合并的同时,提高对大区角色统计数据 Management device, ensuring the role of data movement and consolidation between different partitions at the same time, enhance the role of large-area statistics

库和分区角色统计数据库的查询效率,进而提高整个网络游戏系统的运行效率。 Query efficiency and database roles statistical database partitions, thereby increasing the efficiency of the whole network game system.

[0028] 本发明所要解决的另一技术问题在于提供一种网络游戏系统中的角色数据管理 [0028] The present invention further technical problem to be solved is to provide a network game character data management system

方法,在保证角色数据在不同分区之间搬移和合并的同时,提高对大区角色统计数据库和 Method, ensuring the role of data movement and consolidation between different partitions at the same time, enhance the role of the region and statistical databases

5分区角色统计数据库的查询效率,进而提高整个网络游戏系统的运行效率。 5 partitions role query efficiency statistics database, thereby increasing the efficiency of the whole network game system. [0029] 为了实现上述发明目的,本发明的主要技术方案为: [0029] In order to achieve the above object, the main aspect of the present invention is:

[0030] —种网络游戏系统中的角色数据管理装置,所述网络游戏系统对角色进行分区运 [0030] - the network game system kinds of character data management apparatus in the network game system partition on the role of transport

行,所述角色数据管理装置包括大区角色管理模块和至少一个分区角色管理模块,其中: OK, the management apparatus comprises a character data region role management module and at least one partition role management module, wherein:

[0031] 分区角色管理模块,用于管理本分区内角色的数据;在创建角色时,发送包括所要 [0031] Partition module role management data for managing the sub-character area; When creating a role, including the desired transmission

创建的角色名的创建角色请求给所述大区角色管理模块,查询所述角色名在大区内是否存 Create a character role name of the request to create a large area of ​​role management module, query whether there is a role name in big areas

在,不存在时创建角色并记录所述角色数据,存在时拒绝创建所述角色名; Create a role, and the absence of said character data recorded, refuse to create the character name, if present;

[0032] 所述分区角色管理模块进一步包括:分区注册管理模块,用于按照网络游戏系统 [0032] The role of partition management module further comprises: partitioning the registration management module is configured according to the network game system

中的游戏运行服务器的请求,执行角色数据的管理操作;分区角色统计数据库,用于记录本 Request the game to run the server, perform the role of data management operations; partitioning the character statistical database for this record

分区内角色的统计数据,其中至少包括本分区内每个角色的角色名,包括一个以上分区角 Statistical data partition roles, including the role name for each role at least the duty of the region, including more than one partition angle

色统计数据表;分区数据存取模块,用于根据分区注册管理模块的操作指令对所述分区角 Color statistics table; partition data access module, according to the operation instruction for registration management module partitions the corner partition

色统计数据库中的角色统计数据进行存取,包括一个以上分区数据存取单元; Statistics Statistics character color database access, data partition includes more than one access unit;

[0033] 所述分区注册管理模块通过哈希算法选择一个分区数据存取单元维护对应的分 [0033] The registration management module selects a partition partitioned data access unit maintains the corresponding part by hashing

区角色统计数据表; District roles statistics table;

[0034] 大区角色管理模块,用于管理大区内角色的统计数据,并在某分区角色管理模块创建角色时,查询大区内是否已存在所要创建的角色名,如果已存在,则指示所述分区角色管理模块拒绝创建所述角色名,如果不存在,则记录所要创建角色的统计数据,并指示所述分区角色管理模块创建所述角色; [0034] Region Role Management module statistics for large areas of management roles and role management module when a partition is created role, query large area if you want to create the role name already exists, if present, indicates the partition management module refuse to create the role the role name, and if not, the record you want to create the role of statistical data, and indicates the role of the partition management module to create the role;

[0035] 所述大区角色管理模块进一步包括:大区注册管理模块,用于与分区角色管理模块交互,并对大区内角色的统计数据进行管理操作;大区角色统计数据库,用于记录大区角色的统计数据,包括一个以上大区角色统计数据表;大区数据存取模块,用于根据大区注册管理模块的操作指令对所述大区角色统计数据库中的角色统计数据进行存取,包括一个以上大区数据存取单元; [0035] The character region management module further comprising: a registration management module region, means for interacting with a character management partition, and a large region statistics role management operations; region character statistical database for recording statistical data character region, comprising more than one character region statistics table; region data access module for storage of the statistical data character region character statistical database in accordance with the operation instruction register management module region take, comprising more than one data region access unit;

[0036] 所述大区注册管理模块通过哈希算法选择一个大区数据存取单元维护对应的大区角色统计数据表。 The [0036] Large area registration management module by the hash algorithm to select a region corresponding to the data access unit to maintain the role of region statistics table.

[0037] 优选的,所述大区注册管理模块,还用于接收到分区角色管理模块的所要创建的角色名后,通知所述大区数据存取模块查询所述大区角色统计数据库中是否存在所述角色名,并返回查询结果。 After [0037] Preferably, the region management registration module is further configured to receive the partition role name role management module to be created, informing the data access region of the large area module queries whether the statistics database character there is the role name, and returns the query results.

[0038] 优选的,每个大区数据存取单元对应维护一个大区角色统计数据表。 [0038] Preferably, each region corresponding to the data access unit maintains a character region statistics table.

[0039] 优选的,所述分区注册管理模块,还用于在创建角色时,先向大区角色管理模块发 [0039] Preferably, the partition management registration module is further configured to, when creating character region Xianxiang role management module issues

送所要创建的角色名,请求查询所要创建的角色名在大区内是否存在,并根据查询结果决 Send a role name to be created, the role name query request to be created if there is a large area, and decisions based on the query results

定是否创建角色; Whether to create a role;

[0040] 所述分区角色管理模块还包括: [0040] The role of partition management module further comprises:

[0041] 分区角色数据库,用于记录本分区内角色的详细数据; [0041] The character database partitions, detailed sub-data recording area for character;

[0042] 角色数据服务器,用于根据分区注册管理模块的操作指令对所述分区角色数据库中的角色数据进行存取。 [0042] The character data server, for access to the partition of character data character database according to the operation instruction district registration management module.

[0043] 优选的,所述每个分区数据存取单元对应维护一个分区角色统计数据表。 [0043] Preferably, each partition of the access unit corresponding to the data character maintains a partition table statistics. [0044] —种网络游戏系统中的角色数据管理方法, [0045] 预先设置大区角色统计数据库; [0044] - the role of data management in the kinds of network game system, [0045] preset region roles statistical database;

6[0046] 在特定分区中创建角色时,特定分区发送包括所要创建的角色名的创建角色请求,查询大区角色统计数据库中是否存在请求创建的角色名,如果存在,则拒绝创建所述角色名;否则,在所述特定分区中创建所述角色,并将包括所述角色名的角色统计数据存入所述大区角色统计数据库; 6 [0046] When creating a character in a particular partition, the particular partition is sent including the creation of the role the role name you want to create a request, check whether there is a role name request to create a large area of ​​the role of statistics in the database, and if there is, then refuse to create the role name; otherwise, create a role in the specific partition, including the role of statistics and the role name into the region roles statistical database;

[0047] 在所述大区角色统计数据库中设置一个以上大区角色统计数据表;在所述分区中创建角色时,通过哈希算法选择对应的一个大区角色统计数据表,查询所选择的大区角色统计数据表中是否存在所请求创建的角色名,如果存在,则拒绝创建所述角色名;否则,在所述分区中创建所述角色,并将包括所述角色名的角色统计数据存入所选择的大区角色统计数据表; [0047] disposed in the region statistics database character more than one character region statistics table; when creating the role in the partition, by a hash algorithm to select a corresponding character region statistics table, query selected whether there is a large area of ​​the role of statistics in the table requested created role name, if present, refuse to create the role name; otherwise, the role created in the partition, including the role and the role name statistics the selected region into the role of statistical data table;

[0048] 在所述分区中删除角色时,通过哈希算法选择对应的一个大区角色统计数据表, [0048] When character delete, select a corresponding character region by the hash algorithm statistics table in the partition,

从所选择的大区角色统计数据表中删除所要删除角色对应的角色统计数据。 From the large area of ​​the selected character statistics table delete To delete a role corresponding to the role of statistical data.

[0049] 优选的,所述方法进一步包括:设置分区角色统计数据库;在所述分区中删除角 [0049] Preferably, the method further comprising: setting a partition character statistical database; deleting the partition angle

色时,删除分区角色统计数据库中所要删除角色对应的角色统计数据。 When the color, delete partitions role of statistics in the database To delete a role corresponding to the role of statistical data.

[0050] 优选的,在所述分区中创建所述角色时,进一步包括:生成所述角色在所述分区中的唯一角色ID,在本分区中通过所述角色ID区分管理对应的角色。 [0050] Preferably, when creating the role in the partition, further comprising: generating a unique role ID of the role of the partition, by distinguishing the character ID corresponding to the management role in this partition.

[0051] 由于本发明对整个大区内的角色名进行统一记录管理,将大区内所有分区运行的角色名存储在大区角色统计数据库中,在分区中创建角色时,由判断所创建的角色名是否已经在大区角色统计数据库中存在,如果存在,则拒绝创建该角色名,否则,允许创建所述角色,并将角色名添加到所述大区角色统计数据库中。 [0051] Since the invention of unified records management role name throughout large areas of the region when the role of statistics in the database, create a role role in the partition all partitions are running large storage area name, created by the judgment whether the role name already exists in the region the role of statistics in the database, and if there is, then refuse to create the role name, otherwise, allow the creation of the character, and add the role name to the region roles statistical database. 因此,本发明可以保证不论在哪个分区中创建角色,所述角色名在整个网络游戏系统大区中都是唯一的。 Accordingly, the present invention can ensure that no matter which partition is created in the role, the role name is unique in the entire network game system in the region. 当需要在不同分区中搬移角色数据时只需要删除这个角色在旧的分区中同其他角色建立的关系,例如好友关系,情侣关系等,就可以很方便的角色数据搬移到新的分区中;当需要合并游戏分区时,不必转换两个分区中角色的名字,只需要将两个分区中的角色数据合并到同一个角色数据库中即可。 Just remove the relationship of this role established with other actors in the old partition when you need to move the role of data in different partitions, such as friendship, couple relationships, it can move easily character data to the new partition; when when the game need to merge partitions without having to switch roles in the names of two partitions, only need to merge two partitions character data to the same database role can be.

[0052] 本发明还可以在大区角色统计数据库中设置一个以上大区角色统计数据表,在查询所述大区角色统计数据库时,利用哈希算法选择其中的一个大区角色统计数据表进行查询操作,因此可以提高查询效率,非常适用于角色数据量大的网络游戏系统,提高整个网络游戏系统的运行效率。 [0052] The present invention may also be provided more than one character region in the statistical data table statistics database character region, the character region when the query statistics database, using a hashing algorithm to select which of the character region statistics table query operation, it is possible to improve query efficiency, ideal for large character data network gaming system, improve the operating efficiency of the whole network game system.

[0053] 类似的,本发明还可以在分区角色统计数据库中设置一个以上分区角色统计数据表,在查询所述分区角色统计数据库时,利用哈希算法选择其中的一个分区角色统计数据表进行查询操作,因此可以进一步提高查询效率,非常适用于某分区角色数据量大的网络游戏系统,提高整个网络游戏系统的运行效率。 [0053] Similarly, the present invention may be provided more than one partition in the partition table statistics character character statistical database when the partitioned character statistical database query, using a hashing algorithm to select one of the partition role table query statistics operation, it is possible to further improve query performance, apply to a very large role partition data network gaming system, improve the operating efficiency of the whole network game system.

附图说明 BRIEF DESCRIPTION

[0054] 图1为现有网络游戏系统内某一分区的角色数据管理装置的示意图; [0055] 图2为现有技术创建角色的一种流程图; [0054] FIG. 1 is a role of a partition in the conventional network game system schematic of the data management apparatus; [0055] FIG 2 is one kind flowchart role will be created prior art;

[0056] 图3为本发明所述网络游戏系统的角色数据管理装置的示意图; [0057] 图4为本发明所述创建角色时对角色数据进行管理的方法流程图; [0058] 图5为本发明所述删除角色时对角色数据进行管理的方法流程图。 [0056] FIG. 3 is a schematic character data management device of the network game system of the present invention; flowchart of a method for managing character data when the character creating [0057] FIG. 4 of the present invention; [0058] FIG. 5 is a method for managing character data flowchart of the present invention to delete the role. 具体实施方式 Detailed ways

[0059] 下面通过具体实施例和附图对本发明做进一步详细说明。 [0059] further detail below and the drawings illustrate specific embodiments of the present invention will do.

[0060] 本发明的核心思想为:在对角色进行分区运行的网络游戏系统中,设置大区角色统计数据库,将大区内所有分区运行的角色名存储在大区角色统计数据库中,对整个大区内的角色名进行统一记录管理,在分区中创建角色时,判断所创建的角色名是否已经在大区角色统计数据库中存在,如果存在,则拒绝创建该角色名,否则,允许创建该角色,并将角色名添加到所述大区角色统计数据库中。 [0060] The core idea of ​​the invention is: a network game system partition on the role of running, set the region roles statistical database, all partitions are running a large area of ​​the role name is stored in a large area of ​​the role of statistics in the database, the whole role name large area of ​​unified records management, when you create a role in the partition, the role name to determine whether there has been created in the region the role of statistics in the database, and if there is, then refuse to create the role name, otherwise, allow the creation of the role and role names to add to the role of the region in the statistical database.

[0061] 本发明所适用的网络游戏系统对角色进行分区运行。 [0061] The present invention is applicable to a network game system roles partition runs. 在一个分区中运行一个或一 A run or a partition in a

个以上的游戏逻辑,每一个分区业界一般称之为游戏世界,玩家可以在分区中创建角色并 More than a game logic, each partition industry commonly known as the game world, players can create a role in the partition and

进行游戏。 Game. 一个以上的分区可以组成一个大区,业界一般称之为游戏大区。 More than one partition can be composed of a large area, the industry commonly known as region game.

[0062] 图3为本发明所述网络游戏系统的角色数据管理装置的示意图。 [0062] FIG. 3 is a schematic character data management device of the network game system of the present invention. 参见图3,本发明 Referring to Figure 3, the present invention

所述的角色数据管理装置包括至少一个分区角色管理模块301和一个大区角色管理模块 Said character data management apparatus comprises at least one partition module 301, and a role management region role management module

302。 302. 其中: among them:

[0063] 分区角色管理模块301用于管理本分区内角色的数据。 [0063] Partition role management module 301 is used for data management sub-area role. 在创建角色时,先向大区角色管理模块302发送创建角色请求,其中包括所要创建的角色名,请求查询所述角色名在大区内是否存在,当不存在时创建角色并记录所述角色数据,否则拒绝创建所述角色名。 When creating a role, the role Xianxiang region management module 302 sends a request to create a role, including the name of the role to be created, the request to query a large role name exists in the region, creating the role when there is no record of the character and data, or refuse to create the role name. 在删除角色时需要在本分区内删除所要删除角色的角色数据,并向大区角色管理模块302 发送删除角色请求,其中包括所要删除的角色名,大区角色管理模块302收到删除角色请求后,删除对应的角色数据。 After the need to remove the sub-region when deleting roles you want to remove the role of the character data, and sends a large area role management module 302 requests to delete roles, including the role name to be deleted, Ile role management module 302 received a request to delete role , delete the corresponding character data.

[0064] 所述的管理操作除了创建和删除角色,还包括:登入、登出角色数据等,所述登入、 登出角色数据是在创建角色之后,对该角色中除角色名、角色ID等标识信息的其它详细数据进行的添加或删除等修改,由于登入、登出操作与本发明的目的不相关,因此本发明的实施例中只对创建角色和删除角色的过程进行说明。 Management Operation [0064] In addition to the creation and deletion of characters, further comprising: login, logout and other character data, the log in and out after the character data is created role, in addition to the role name, role ID of the role and the like add or delete other modifications and other detailed data identification information are due to sign an object of the present invention, the logout operation is not relevant, so the embodiment of the present invention only delete roles to create roles and process will be described.

[0065] 大区角色管理模块302用于管理大区内角色的统计数据,并在某分区角色管理模块301创建角色时,查询大区内是否已经存在所要创建的角色名,如果已经存在则指示所述分区角色管理模块301拒绝创建所述角色名,如果不存在,则记录所要创建角色的统计数据,并指示所述分区角色管理模块301创建所述角色。 [0065] Region 302 Role Management module statistics for the role of managing a large area, and when a partition role management module 301 to create roles, query whether there has been a large role in the region were to be created, if it already exists indicates the role management module 301 partitions refuse to create the role name, and if not, the record you want to create the role of statistical data, and indicates the role of the partition management module 301 to create the role. [0066] 如图3所示,所述分区角色管理模块301具体包括: [0066] As shown in FIG. 3, the partition role management module 301 comprises:

[0067] 分区注册管理模块311,用于按照网络游戏系统中的游戏运行服务器101的请求, 执行角色的管理操作,例如包括角色创建、删除、登入、登出等操作;在创建角色时,先向大区角色管理模块302发送要创建的角色名,请求查询角色名在大区内是否存在,并根据查询结果决定是否创建角色,如果所创建的角色名在大区中已经存在,则拒绝创建所述角色名,否则,创建所述角色,并将角色的初始化数据存入分区角色数据库312中。 [0067] Partition registration management module 311, a request for a network game system in accordance with the running game server 101, performing the role of the management operations, including, for example, the role of creating, deleting, login, logout and other operations; When creating a role, first region to role management module 302 transmits the name of the role to be created, the role name in the request query whether there is a large area, and decide whether to create a role based on the query results, if the roles were created already exists in the region, the creation is denied the role name, otherwise, create the role, and the role of the initialization data into partitions role database 312. [0068] 分区角色数据库312,用于记录本分区内角色的详细数据,包括初始化数据等。 [0068] The character database partitions 312, detailed data of the sub-area for recording character, including the initialization data and the like. [0069] 角色数据服务器313,用于根据分区注册管理模块311的操作指令对所述分区角色数据库312中的角色数据进行存取。 [0069] The character data server 313 for accessing the roles database partition 312 partitions the character data registration management module in accordance with operation instruction 311.

[0070] 分区角色统计数据库314,分区注册管理模块311还可以将本分区内的角色的统计数据存入分区角色统计数据库314中,所述的角色统计数据中至少包括本分区内每个角 [0070] Subdivision character statistical database 314, partition management module 311 may also register the character sub-area statistics stored in the statistics database 314 partitions role, the role of statistics comprises at least each corner of the sub-region

8色的角色名,便于网络游戏系统进行本分区内的角色数据操作。 8-color character name, network gaming system to facilitate the role of data manipulation sub-region.

[0071] 分区数据存取模块315,为分区注册管理模块311的辅助模块,用于根据分区注册管理模块311的操作指令对所述分区角色统计数据库314中的角色统计数据进行存取。 [0071] Partition data access module 315, the partition registration management module 311 of the auxiliary module, for accessing data on the role of the partitioned character statistical statistics database 314 in accordance with the partition registration management module 311 of the operation instruction. [0072] 如图3所示,所述大区角色管理模块302具体包括: [0072] As shown in FIG 3, the region character management module 302 comprises:

[0073] 大区注册管理模块321,用于根据分区注册管理模块311的请求对大区内的角色 [0073] Large area registration management module 321, according to a request for registration management module 311 partitions role large area

数据进行管理操作,例如在角色创建、删除时对角色的统计数据进行相应操作。 Data management operations, such as in character creation, the role of statistical data delete operation accordingly.

[0074] 大区角色统计数据库323,用于记录当前大区中的角色统计数据,其中至少包括当 [0074] Region statistics database character 323, for the current record in the character region statistics, including at least when

前大区内每个角色的角色名。 The role of former large area of ​​each role.

[0075] 所述某一大区角色的角色统计数据表如表2所示: [0076] [0075] The role of a character region statistics table shown in Table 2: [0076]

角色统计数据名字 属性 说明 Statistics Property Description Role name

szRoleName 主键 角色名 szRoleName primary key role name

dwUin 无符号int变量 帐号 dwUin unsigned int variables account

dtCreateTime 日期时间 角色名创建时间 dtCreateTime role name Date Time Created

wWorldID 无符号short变量 角色所在分区ID wWorldID unsigned short variable character's partition ID

[0077] 表2 [0077] TABLE 2

[0078] 如表2所示,所述一个角色的统计数据中需要包括角色名、帐号、角色名创建时间、以及角色所在大区ID。 [0078] As shown in Table 2, the statistics need to include a character role name, account number, name of the role creation time, and the region where the role ID. 其中角色名在一个角色的统计数据中是必须的,在所述统计数据表2中以角色名为主键。 Wherein a role name role in the statistics is necessary to name the primary key role in the statistical data table 2.

[0079] 大区数据存取模块322,为所述大区注册管理模块321的辅助模块,用于根据大区注册管理模块321的操作指令对所述大区角色统计数据库323中的角色统计数据进行存取。 [0079] The region data access module 322, a registration management module is an auxiliary module 321 of the region, according to statistical data region for registration management module 321 of the operation instruction region character statistical database 323 characters access.

[0080] 所述大区注册管理模块321在接收到分区角色管理模块301发送的所要创建的角色名后,通知所述大区数据存取模块322查询所述大区角色统计数据库323中是否存在所述角色名,并返回查询结果。 [0080] The large area registration management module 321 after receiving the role name role of the partition management module 301 is sent to be created, notice the large area data access module 322 queries whether there is a large area of ​​the role of statistics in the database 323 the role name, and returns the query results.

[0081] 为了提高系统效率,所述大区数据存取模块322可以包括一个以上大区数据存取单元,对应的,所述大区角色统计数据库323中包括一个以上大区角色统计数据表,例如在一种优选方案中可以设置19个大区数据存取单元,分别对应19个大区角色统计数据表,所述每个大区数据存取单元对应负责维护一个大区角色统计数据表的数据存取。 [0081] In order to improve system efficiency, the large-area data access module 322 may include more than one access unit of data region corresponding to the region character statistical database 323 comprises more than one character region statistics table, For example, in one preferred embodiment the region 19 may be provided data access unit, corresponding to 19 characters statistics table region, said each region is responsible for maintaining data access unit corresponding to a region character table statistics data access. 所述大区注册管理模块321在接收到分区角色管理模块301发送的角色名后,通过哈希(Hash)算法选择一个大区数据存取单元查询对应的大区角色统计数据表,目的是通过哈希算法选择对应的一个大区角色统计数据表进行操作,判断该大区角色统计数据表中是否存在所要创建的角色名,如果存在,则判定当前大区内存在所述角色名,如果不存在,则判定当前大区内不存在所述角色名,并将该角色名记录到所述大区角色统计数据表中。 The region registration management module 321 after receiving the role name role partition management module 301 sent to select a region corresponding to the query data access unit by the hash (the Hash) character region algorithm statistics table object is achieved by a hash algorithm corresponding to the selected character region statistics table operation, it is determined whether there is a name of the role to be created in the region character statistics table, if present, the role is determined that there were large current region, if not is present, it is determined that a large area of ​​the current character does not exist, and records the name of the role to the role of region statistics table.

[0082] 由于哈希算法的关系,同一个角色名总是会选择到同一个大区数据存取单元,所以虽然是将大区角色统计数据库323拆分成19张大区角色统计数据表,只要保证在同一张 [0082] Since the relationship between the hash algorithm, the same role name will always choose to go with a large area data access unit, so although the role is to split the region into a statistical database 323 Da District 19 character statistics table, as long as with a guarantee

9大区角色统计数据表中所述角色名是唯一的,即可保证所述角色名在其它大区角色统计数据表中也是唯一的,从而保证在整个大区中角色名的唯一性。 Region 9 roles in the role of statistical data table name is unique, it can ensure that role names in the other region character statistics table only, thus ensuring the uniqueness of the whole region in the name of the role.

[0083] 本发明也可以在所述分区角色统计数据库314中设置一个以上分区角色统计数据表,且对应设置一个以上的分区数据存取单元,每一个分区数据存取单元对应操作一个分区角色统计数据表。 [0083] The present invention may be provided more than one partition in the character table statistics database character statistical partition 314, and the corresponding data is provided more than one partition access unit, each partition operating a data access unit corresponding to the character statistical partition data sheet. 并采用与上述大区角色管理模块中相同的哈希算法选择对应的分区数据存取单元对分区角色统计数据表进行读取操作,目的是通过哈希算法选择对应的一个分区角色统计数据表进行操作,从而提高查询效率。 And using the same hashing algorithm the large-area character management module selects a corresponding access unit to partition data partition character reading operation statistics table, hash algorithm object is achieved by selecting a corresponding partition table data statistical character operations to improve query performance.

[0084] 图4为本发明所述创建角色时对角色数据进行管理的方法流程图。 [0084] FIG 4 the character data creation method for managing a flow chart when the character of the present invention. 参见图4,该流程包括: Referring to Figure 4, the process comprising:

[0085] 步骤401、游戏运行服务器101发出创建角色请求给分区注册管理模块311,所述 [0085] Step 401, the game server 101 running issuing a request to create a character registration management module 311 partitions the

创建角色请求中包括所要创建的角色的初始化数据,其中包括角色名。 Creating roles including the role you want to create initialization data requests, including the role name.

[0086] 步骤402、分区注册管理模块311发送创建角色请求到大区注册管理模块321,其 [0086] Step 402, the partition registration management module 311 transmits a request to create a character registration management module 321 region, which

中包括所要创建的角色名。 Include the name of the role to be created.

[0087] 步骤403、大区注册管理模块321发送角色名唯一性查询请求到大区数据存取模块322,其中包括所要创建的角色名。 [0087] In step 403, a large area registration management module 321 sends a unique role name query request to large area data access module 322, including the role name to be created.

[0088] 步骤404、大区数据存取模块322查询大区角色统计数据库323,判断其中是否已 [0088] Step 404, region data access module 322 queries the statistics database character region 323, which determines whether

经存在所要创建的角色名,并将查询结果返回给大区注册管理模块321。 Existed role name you want to create, and return query results to a large area registration management module 321.

[0089] 步骤405、大区注册管理模块321根据所述查询结果进行处理,如果所要创建的角 [0089] Step 405, Region registration management module 321 performs processing according to the query result, if the angle to be created

色名在所述大区角色统计数据库323中已经存在,则拒绝创建所述角色名,发送所述查询 Color name already exists in the region roles statistics database 323, then refuse to create the role name, send the query

结果给分区注册管理模块311 ;否则,将所要创建的角色名以及该角色的其它信息通过大 The results registered to the partition management module 311; otherwise, the name of the role to be created as well as other information about the role on the big

区数据存取模块322存入所述大区角色统计数据库323 ;并将所述查询结果发送给分区注 Area data access module 322 stores the statistics database character region 323; and sending the query result to the partition Note

册管理模块311。 Registry module 311. 所述其它信息例如是用户帐号、角色名创建时间、以及角色所在分区的ID The other information such as user accounts, role name creation time, and the partition of your character's ID

等信息,其中用户帐号由游戏运行服务器101在发送创建请求中携带,所述角色名创建时 And other information, which the user account is created by the 101 sent the game to run the server request carries the role name created when

间可以是当前操作时间,所述角色所在分区ID可以是由分区注册管理模块311在发送创建 It may be the current operating time between the partition where the character ID 311 may be sent in a partition created by the registration management module

请求中携带。 Request carries.

[0090] 步骤406、分区注册管理模块311根据所述查询结果进行处理,如果所要创建的角色名在所述大区角色统计数据库323中已经存在,则拒绝创建所述角色名,执行步骤410 ; 否则,发送创建角色请求给分区数据存取模块315,执行步骤407。 [0090] Step 406, the partition management module 311 performs registration processing according to the query result, if the name of the role to be created already exists in the statistics database character region 323, creating the role name is rejected, step 410 is performed; otherwise, send a request to create a role partition data access module 315, step 407 is executed.

[0091] 步骤407、分区数据存取模块315收到创建角色请求后,将所要创建的角色名以及该角色在本分区内的其它信息存入所述分区角色统计数据库314,所述该角色在本分区内的其它信息包括角色ID、角色名创建时间、用户帐号。 After [0091] Step 407, the data access module 315 receives the partition created role request, the name of the role to be created, and the role of other information stored in the sub-area partition character statistical database 314, the character in the other information of this area, including the role of ID, role name creation time, user accounts. 其中角色ID是由分区数据存取模块315生成的,在本分区内唯一的一个角色ID,所述角色名创建时间可以是当前操作时间,所述用户帐号由游戏运行服务器101在发送创建请求中携带。 Wherein the role ID is generated by partitioning the data access module 315, a unique role in the sub-area ID, the name of the role creation time may be the current time of the operation, the user account creation request 101 sent by the server running the game carry. 之后,分区数据存取模块315 返回创建结果给分区注册管理模块311,其中包括角色ID。 After partition data access module 315 returns the result to create a partition registration management module 311, including the role ID.

[0092] 步骤408、分区注册管理模块311将所创建角色的详细信息发送给角色数据服务 [0092] Step 408, the partition registration management module 311 to send details of the role to create the role of data services

器313,其中包括角色初始化数据和分区数据存取模块315返回的角色ID。 313, including the character ID data and character partition initialization data access module 315 is returned.

[0093] 步骤409、角色数据服务器313将所述角色的详细数据存入分区角色数据库312, [0093] Step 409, the server 313 character data to the detailed data of the character 312 stored in the character database partitions,

返回创建结果给分区注册管理模块311,如果存入成功,则返回创建成功结果,否则返回创 Returns the results to create a partition registration management module 311, if the deposit is successful, it returns the results to create a successful, otherwise hit

建失败结果。 Built fail result.

10[0094] 步骤410、分区注册管理模块311返回创建角色响应给游戏运行服务器101,如果分区注册管理模块311拒绝创建所述角色名或者创建失败,则返回创建角色名失败响应给 10 [0094] Step 410, the partition registration management module 311 returns a response to the game play to create a role server 101, if the partition refused registration management module 311 creates the character name or creation fails, the failure response is returned to create a role name

游戏运行服务器ioi,游戏运行服务器可以直接拒绝创建当前请求创建的角色,也可以提示 Game server running ioi, the game server can run directly refuse to create a role created in the current request, you can also suggest

用户输入新的角色名,再次发起创建角色请求;否则,返回创建角色成功响应给游戏运行服务器101。 Users enter a new role name, create a role initiated the request again; otherwise, it returns a successful response to the game create a role running the server 101.

[0095] 为了进一步提高效率,作为一种优选方案,本发明可以在所述大区角色统计数据库323中设置一个以上大区角色统计数据表,且对应设置一个以上的大区数据存取单元, 每一大区数据存取单元分别对应操作一个大区角色统计数据表,所述大区数据存取单元可以是一种程序进程单元。 [0095] To further increase efficiency, as a preferred embodiment, the present invention can be provided more than one character region in the statistical data table statistics database character region 323, and the corresponding region provided one or more data access unit, each access unit of data region corresponding operating a statistics table character region, said data region access unit may be a program process unit. 并且,从O开始对所述大区数据存取单元进行编号,例如一种优选 And, from the start of the O region numbered data access unit, for example, a preferred

实施例中大区数据存取单元的个数为19,则其编号依次为0,1,2,......,18。 The number of access unit data region 19 as in the embodiment, it is sequentially numbered 1, 2, ......, 18.

[0096] 在这种情况下,步骤403中,大区注册管理模块321进一步通过哈希算法选择对应 [0096] In this case, in step 403, region 321 registration management module is further selected by the corresponding hash algorithm

的一个大区数据存取单元对相应的大区角色统计数据表进行查询,目的是通过哈希算法选 A large area data access unit to query the corresponding region roles statistics table aimed at hashing algorithm selected by

择对应的一个大区角色统计数据表进行操作,所述选择方法具体为: Select a corresponding character region statistics table operation, the selection method is specifically:

[0097] 步骤431、将所要创建的角色名中的所有字符的编码值累加得到一个整数X。 [0097] Step 431, the value of all the coded character role name to be created to get a cumulative integer X.

[0098] 步骤432、对步骤431得到的整数X除以所述大区数据存取单元的个数Y,得到余 [0098] step 432, step 431 is obtained by dividing an integer X number of data access region of the Y unit, to obtain I

数,即XX Y,其中X为取模;将得到的余数作为选择的大区数据存取单元的编号,假设该编 Number, i.e. XX Y, wherein X is modulo; the remainder was used as a selected data region access unit number, assuming that the coding

号为Z。 No. Z.

[0099] 步骤433、向由步骤432选择的编号为Z的大区数据存取单元发送创建角色请求, 由该大区数据存取单元查询其对应的大区角色统计数据表,对应的,该大区角色统计数据表的编号也为Z,判断该大区角色统计数据表中是否已经存在所要创建的角色名,并将查询结果返回给大区注册管理模块321。 [0099] Step 433, Z is a data region access unit transmits a request to create a character in step 432 the selected number, the data of the region corresponding to the access unit which query statistics table character region, corresponding to the No region is also the role of statistical data table is Z, to determine whether there is a role name you want to create a large area of ​​the character statistics table, and returns query results management module 321 to register a large area.

[0100] 之后,大区注册管理模块321根据查询结果进行相应的处理,如果编号Z的大区角色统计数据表中存在所请求创建的角色名,则拒绝创建所述角色名;否则,通知分区注册管理模块311和所述编号Z的大区数据存取单元创建所述角色,将包括所述角色名的角色统计数据存入编号Z的大区角色统计数据表中。 After the [0100], a large area registration management module 321 corresponding treatment according to the query result, if the roles were created by the requested there is a large area number Z of the role of statistical data in the table, then refuse to create the role name; otherwise, notice the partition registration management module 311, and the number Z of data region access unit creates the character, the character name of the character including statistical data stored character number Z of region statistics table.

[0101] 因为同一个角色名的所有字符的编码值累加后得到的整数结果总是相同的,所以针对同一个角色名,一定能够选择到相同的大区数据存取单元。 [0101] For integer values ​​of the characters encoded result of accumulating the same role name always get the same, for the same role name, will be able to choose the same access unit data region. 又因为每个大区数据存取单元总是读写同一张大区角色统计数据表,所以可以保证如果一个角色名在一张大区角色统计数据表中是唯一的,则在其它的大区角色统计数据表中也是唯一的,从而保证在整个大区角色统计数据库323中角色名的唯一性。 And because each region to read and write data access unit is always the same role Da district statistics table, so you can guarantee that if a character name in a large area of ​​the role of statistics in the table is unique, the statistical role in other region data in the table and only to ensure the uniqueness of the role of statistics in the entire region database 323 role names.

[0102] 为了进一步提高分区内的数据查询效率,作为一种优选方案,本发明可以在所述分区角色统计数据库314中设置一个以上分区角色统计数据表,且对应设置一个以上的分区数据存取单元,每一个分区数据存取单元对应操作一个分区角色统计数据表。 [0102] To further improve the efficiency of data query partition, as a preferred embodiment, the present invention may be provided more than one partition in the character table statistics database character statistical partition 314 and partition data set corresponding to one or more access unit, each partition operating a data access unit corresponding to the character statistics table partition. 并采用与上述大区角色管理模块中相同的哈希算法选择对应的分区数据存取单元对分区角色统计数据表进行读取操作,目的是通过哈希算法选择对应的一个分区角色统计数据表进行操作,从而提高查询效率。 And using the same hashing algorithm the large-area character management module selects a corresponding access unit to partition data partition character reading operation statistics table, hash algorithm object is achieved by selecting a corresponding partition table data statistical character operations to improve query performance.

[0103] 图5为本发明所述删除角色时对角色数据进行管理的方法流程图。 [0103] FIG. 5, the method of managing character data when the character delete a flowchart of the present invention. 参见图5,该流程包括: Referring to Figure 5, the process comprising:

[0104] 步骤501、游戏运行服务器101发出删除角色请求到分区注册管理模块311,删除角色请求中包括要删除角色的角色名。 [0104] Step 501, the game server 101 running issuing a request to remove roles district registration management module 311, including a request to delete role To delete a role title role.

[0105] 步骤502、分区注册管理模块311判断所要删除的角色当前是否在线,如果在线则返回删除失败响应到游戏运行服务器101 ;否则,发送删除角色请求到角色数据服务器313。 [0105] Step 502, registration management module 311 determines the partition to be deleted is currently online role, if online deletion failure response is returned to the game server 101 running; otherwise, sends a delete request to the character server 313 character data.

[0106] 步骤503、角色数据服务器313从分区角色数据库312中删除所要删除角色的详细信息,返回删除结果到分区注册管理模块311 ;如果删除成功则返回删除成功结果,否则返回删除失败结果。 [0106] In step 503, the detailed information that you want to remove the role of character data server 313 is removed from the partition roles database 312, to return to delete the results to the district registration management module 311; if deleted successfully returned delete successful result, otherwise delete failed results.

[0107] 步骤504、分区注册管理模块311返回相应的删除结果到游戏运行服务器101。 [0107] Step 504, the partition registration management module 311 returns a corresponding result to remove the game server 101 is running. [0108] 步骤505、分区注册管理模块311发送删除角色请求到分区数据存取模块315,分区数据存取模块315从所述分区角色统计数据库314中删除所要删除角色的统计数据,其中包括角色名。 [0108] Step 505, the partition registration management module 311 sends a delete request to the characters statistics data access module 315 partitions, partition data access module 315 deletes the character to be deleted from the partition character statistical database 314, including the role name .

[0109] 如果本发明在所述分区角色统计数据库314中设置了一个以上分区角色统计数据表,且对应设置一个以上的分区数据存取单元,每一个分区数据存取单元对应操作一个分区角色统计数据表,则采用与上述创建角色流程中相同的哈希算法选择对应的分区数据存取单元对分区角色统计数据表中的角色统计数据进行删除操作,目的是通过哈希算法选择对应的一个分区角色统计数据表进行操作,从而提高操作效率。 [0109] If the present invention is provided in the partition 314 in the statistics database character more than one partition role table statistics, and the set corresponding to one or more data access unit partition, each partition corresponding to the data access operation of one unit character statistical partition data table is used to select corresponding to the same hashing algorithm to create the above-described roles in the process of partitioning character data access unit statistics statistics partition role table delete operation, the corresponding object is selected by a partition hash algorithm the role of statistical data table operations to improve operational efficiency.

[0110] 步骤506、分区注册管理模块311发送删除角色请求到大区注册管理模块321,大区注册管理模块321发送删除角色请求到大区数据存取模块322,大区数据存取模块322从所述大区角色统计数据库323中删除所要删除角色的统计数据。 [0110] Step 506, the partition registration management module 311 sends a delete request to the character registration management module 321 region, Region registration management module 321 sends a delete request to the character region data access module 322, a region 322 from the data access module the region roles statistics database 323 deletes the statistics you want to delete the role.

[0111] 如果本发明在所述大区角色统计数据库323中设置一个以上大区角色统计数据 [0111] If the present invention is provided in more than one region of the character region in the character statistical statistics database 323

表,且对应设置一个以上的大区数据存取单元,每一个大区数据存取单元对应操作一个大 Table, and the corresponding region provided one or more data access units, each access unit of data region corresponding to a large operation

区角色统计数据表,则此处采用与上述创建角色流程中相同的哈希算法选择对应的大区数 District roles statistics table, then select the corresponding number is used here with the same hash algorithm to create a role above process Region

据存取单元对大区角色统计数据表中的角色统计数据进行删除操作,目的是通过哈希算法 According to statistical data on the role of the access unit region roles statistics table delete operation aimed through a hashing algorithm

选择对应的一个大区角色统计数据表进行操作,从而提高操作效率。 Select a corresponding character region statistics table operation, thereby improving operational efficiency.

[0112] 当然,上述步骤504、505、506之间没有必然的先后顺序,也可以并行处理。 [0112] Of course, not necessarily in the order between the steps 504,505,506, it may be processed in parallel.

[0113] 以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此, [0113] The above are only the preferred specific embodiments of the invention, but the scope of the present invention is not limited thereto,

任何熟悉该技术的人在本发明所揭露的技术范围内,可轻易想到的变化或替换,都应涵盖 Any variation or replacement person skilled in the art within the technical scope disclosed by the present invention, can be easily thought, should fall

在本发明的保护范围之内。 Within the scope of the present invention.

12 12

Claims (8)

  1. 一种网络游戏系统中的角色数据管理装置,所述网络游戏系统对角色进行分区运行,其特征在于,所述角色数据管理装置包括大区角色管理模块和至少一个分区角色管理模块,其中:分区角色管理模块,用于管理本分区内角色的数据;在创建角色时,发送包括所要创建的角色名的创建角色请求给所述大区角色管理模块,查询所述角色名在大区内是否存在,不存在时创建角色并记录所述角色数据,存在时拒绝创建所述角色名;所述分区角色管理模块进一步包括:分区注册管理模块,用于按照网络游戏系统中的游戏运行服务器的请求,执行角色数据的管理操作;分区角色统计数据库,用于记录本分区内角色的统计数据,其中至少包括本分区内每个角色的角色名,包括一个以上分区角色统计数据表;分区数据存取模块,用于根据分区注册管理模块的操作 A network game system the character data management apparatus, the network game system roles partition runs, characterized in that said character data management apparatus comprises a character region partition management module and at least one character management module, wherein: the partition role management module for data management sub-regional role; when you create a role, create the role the role name to be sent, including a request to create a large area of ​​the role management module, query the role name exists in large areas , create a role in the absence of said character data and records, refuse to create the character name, if present; the role of the zone management module further comprises: partitioning registration management module, a request for a network game system in accordance with the running game server, performing character data management operations; character statistical database partitions, sub-area for recording statistics role, including at least the name of the role of each character sub-region, comprising more than one character statistical data table partitions; partition data access module , according to the registration management module partitioning operation 令对所述分区角色统计数据库中的角色统计数据进行存取,包括一个以上分区数据存取单元;所述分区注册管理模块通过哈希算法选择一个分区数据存取单元维护对应的分区角色统计数据表;大区角色管理模块,用于管理大区内角色的统计数据,并在某分区角色管理模块创建角色时,查询大区内是否已存在所要创建的角色名,如果已存在,则指示所述分区角色管理模块拒绝创建所述角色名,如果不存在,则记录所要创建角色的统计数据,并指示所述分区角色管理模块创建所述角色;所述大区角色管理模块进一步包括:大区注册管理模块,用于与分区角色管理模块交互,并对大区内角色的统计数据进行管理操作;大区角色统计数据库,用于记录大区角色的统计数据,包括一个以上大区角色统计数据表;大区数据存取模块,用于根据大区注册管理模 Make statistical data on the role of the partitioned character statistical database access, data partition includes more than one access unit; the registration management module to select a partition partitioned data access unit data corresponding to the character statistical maintenance partitions by hashing table; Ile role management module for managing large-area statistics roles and role management module when a partition is created role, query whether the region has a large role name to be created exists, if present, indicates that the said partitions creating the role management module denies a role name, and if not, then the data record to be created statistical character, and indicating that the partition management module creates the character character; the region character management module further comprises: region registration management module, a module interacts with the partition management role, and the role of statistics large area of ​​management operations; region roles statistical database for statistical data recording region of roles, including a large area above the role of statistics table; region data access module for managing registration mode region 的操作指令对所述大区角色统计数据库中的角色统计数据进行存取,包括一个以上大区数据存取单元;所述大区注册管理模块通过哈希算法选择一个大区数据存取单元维护对应的大区角色统计数据表。 An operation instruction to said character region statistics database character statistical data access, including access more than one data unit region; the region selecting a registration management module access unit maintains a data region by hashing corresponding region roles statistics table.
  2. 2. 根据权利要求1所述的角色数据管理装置,其特征在于,所述大区注册管理模块,还用于在接收到分区角色管理模块的所要创建的角色名后,通知所述大区数据存取模块查询所述大区角色统计数据库中是否存在所述角色名,并返回查询结果。 2. The character data management apparatus according to claim 1, wherein said large area registration management module is further configured to, after receiving the role name role of the partition to create the management module, the notification data region access module queries whether there is a role name role of the region in the statistical database and returns the query results.
  3. 3. 根据权利要求2所述的角色数据管理装置,其特征在于,所述每个大区数据存取单元对应维护一个大区角色统计数据表。 3. The character data management apparatus according to claim 2, wherein each of said access unit of data region corresponding to a region character maintains statistics table.
  4. 4. 根据权利要求1所述的角色数据管理装置,其特征在于,所述分区注册管理模块,还用于在创建角色时,向大区角色管理模块发送所要创建的角色名,请求查询所要创建的角色名在大区内是否存在,并根据查询结果决定是否创建角色;所述分区角色管理模块还包括:分区角色数据库,用于记录本分区内角色的详细数据;角色数据服务器,用于根据分区注册管理模块的操作指令对所述分区角色数据库中的角色数据进行存取。 The character data management apparatus according to claim 1, characterized in that the partition management registration module is further configured to, when the role of creating, transmitting the name of the role to be created to the region character management module, a request to create a query the role name exists in a large area, and decide whether to create a role based on the query result; the role of the partition management module further comprises: the role of database partitions for data in detail the role of the sub-region recorded; data server role, according to partition operation instruction of the registration management module partition character data character database access.
  5. 5. 根据权利要求4所述的角色数据管理装置,其特征在于,所述每个分区数据存取单元对应维护一个分区角色统计数据表。 The character data management apparatus as claimed in claim 4, wherein said each partition corresponding to the data access unit maintains a partition table statistics character.
  6. 6. —种网络游戏系统中的角色数据管理方法,其特征在于, 预先设置大区角色统计数据库;在特定分区中创建角色时,特定分区发送包括所要创建的角色名的创建角色请求,查询大区角色统计数据库中是否存在请求创建的角色名,如果存在,则拒绝创建所述角色名; 否则,在所述特定分区中创建所述角色,并将包括所述角色名的角色统计数据存入所述大区角色统计数据库;在所述大区角色统计数据库中设置一个以上大区角色统计数据表;在所述分区中创建角色时,通过哈希算法选择对应的一个大区角色统计数据表,查询所选择的大区角色统计数据表中是否存在所请求创建的角色名,如果存在,则拒绝创建所述角色名;否则,在所述分区中创建所述角色,并将包括所述角色名的角色统计数据存入所选择的大区角色统计数据表;在所述分区中删除角 6. - the role of data management network game system types, characterized in that the preset region roles statistical database; when you create a role in a particular partition, the particular partition sends a create role role name encompasses the creation of the request, query large whether there is a role of district statistics database request to create the role name, if there is, then refuse to create the role name; otherwise, create a role in the specific partition, including the role and the role of statistical data into name the region statistics database character; character region disposed above a statistics table in the statistics database character region; when creating a role in the partition, the hash algorithm by selecting a character region corresponding to the statistical data table , there is a query whether the selected region the role of statistics in the table requested created role name, if present, refuse to create the role name; otherwise, the role created in the partition, and will include the role role name of the statistical data stored in the selected region roles statistics table; delete the partition in the corner 时,通过哈希算法选择对应的一个大区角色统计数据表,从所选择的大区角色统计数据表中删除所要删除角色对应的角色统计数据。 When selecting the corresponding hash algorithm by a large area of ​​character statistics table, from the region of the selected character statistics table delete To delete a role corresponding to the role of statistical data.
  7. 7. 根据权利要求6所述的角色数据管理方法,其特征在于,所述方法进一步包括:设置分区角色统计数据库;在所述分区中删除角色时,删除分区角色统计数据库中所要删除角色对应的角色统计数据。 The character data management method according to claim 6, wherein said method further comprises: setting the character statistical database partitions; character delete, delete partitions statistics database character corresponding to the role to be deleted in the partition the role of statistics.
  8. 8. 根据权利要求6所述的角色数据管理方法,其特征在于,在所述分区中创建所述角色时,进一步包括:生成所述角色在所述分区中的唯一角色ID,在本分区中通过所述角色ID区分管理对应的角色。 8. The character data management method according to claim 6, wherein, when creating the role in the partition, further comprising: generating a unique role ID of the role of the partition, this partition the character corresponding to the character ID managed separately through.
CN 200710175360 2007-09-28 2007-09-28 Role data management device and method in network game system CN101169806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710175360 CN101169806B (en) 2007-09-28 2007-09-28 Role data management device and method in network game system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710175360 CN101169806B (en) 2007-09-28 2007-09-28 Role data management device and method in network game system

Publications (2)

Publication Number Publication Date
CN101169806A CN101169806A (en) 2008-04-30
CN101169806B true CN101169806B (en) 2010-06-02

Family

ID=39390430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710175360 CN101169806B (en) 2007-09-28 2007-09-28 Role data management device and method in network game system

Country Status (1)

Country Link
CN (1) CN101169806B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366077B (en) * 2012-04-05 2016-06-29 腾讯科技(深圳)有限公司 Role's sweep-out method of a kind of simulator class game, device and system
CN103678892A (en) * 2013-12-03 2014-03-26 腾讯科技(成都)有限公司 Role object management method and role object management device
CN103816662A (en) * 2014-02-26 2014-05-28 深圳第七大道网络技术有限公司 Method and system for merging main game zone and auxiliary game zone

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1262217A2 (en) 2001-05-29 2002-12-04 Konami Computer Entertainment Osaka, Inc. Server device for net game, net game management method, net game management program, and recording medium which stores net game
CN1820271A (en) 2003-08-25 2006-08-16 河晶元 Character management system and service method thereof
CN1848124A (en) 2005-04-12 2006-10-18 国际商业机器公司 Slitless game world system based on server/customer's machine and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1262217A2 (en) 2001-05-29 2002-12-04 Konami Computer Entertainment Osaka, Inc. Server device for net game, net game management method, net game management program, and recording medium which stores net game
CN1820271A (en) 2003-08-25 2006-08-16 河晶元 Character management system and service method thereof
CN1848124A (en) 2005-04-12 2006-10-18 国际商业机器公司 Slitless game world system based on server/customer's machine and method thereof

Also Published As

Publication number Publication date
CN101169806A (en) 2008-04-30

Similar Documents

Publication Publication Date Title
US8315999B2 (en) Policy-based file management for a storage delivery network
US7590704B2 (en) Systems and methods for processing dynamic content
US8627177B2 (en) Retrieving data from a dispersed storage network in accordance with a retrieval threshold
US8131782B1 (en) Shadow directory structure in a distributed segmented file system
US8348767B2 (en) Dynamic asset and obstacle generation in online games
RU2463652C2 (en) Extensible and programmable multi-tenant service architecture
US8843454B2 (en) Elimination of duplicate objects in storage clusters
US7076553B2 (en) Method and apparatus for real-time parallel delivery of segments of a large payload file
ES2391157T3 (en) System and method to maintain the coherence of a "cache" content in a multi-level software system designed to be an interface between large databases
JP5411250B2 (en) Data placement according to instructions to redundant data storage system
US7571168B2 (en) Asynchronous file replication and migration in a storage network
US20080268947A1 (en) Cross platform gaming
US20100304860A1 (en) Game Execution Environments
US20080222223A1 (en) Storage allocation in a distributed segmented file system
JP4620111B2 (en) Network system, storage device access control method, management server, storage device, and login control method
Williams et al. Single round access privacy on outsourced storage
US20050223014A1 (en) CIFS for scalable NAS architecture
Goodrich et al. Oblivious RAM simulation with efficient worst-case access overhead
US5819084A (en) Co-presence data retrieval system
CN100527090C (en) Method for dynamically distributing computer resource
US7447839B2 (en) System for a distributed column chunk data store
JP2008511881A (en) Communication system and method for implementing online file storage based on instant messaging platform
US20030187866A1 (en) Hashing objects into multiple directories for better concurrency and manageability
CN101523372B (en) Decentralised multi-user online environment
CA2512312C (en) Metadata based file switch and switched file system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model