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 CN2007101753605A CN200710175360A CN101169806B CN 101169806 B CN101169806 B CN 101169806B CN 2007101753605 A CN2007101753605 A CN 2007101753605A CN 200710175360 A CN200710175360 A CN 200710175360A CN 101169806 B CN101169806 B CN 101169806B
Authority
CN
China
Prior art keywords
role
subregion
management module
data
name
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN2007101753605A
Other languages
Chinese (zh)
Other versions
CN101169806A (en
Inventor
成珀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2007101753605A 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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

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 in the 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 the statistical 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 game system parent-zone, so as to facilitate the migration and the merge of the role data in different sub-zones.

Description

Role data management device in the network game system and method
Technical field
The present invention relates to the communication network application technology, relate in particular to role data management device and method in a kind of network game system.
Background technology
Along with the very fast development of network communications technology, online game is accepted by increasing people as a kind of amusement and recreation mode.Online game is meant mainly and is played by the robot calculator of many people fellowship by internet or LAN (Local Area Network).In present technical scheme, online game mainly realizes by network game system.Present network game system is based upon on the communication network, comprise the network game server of network side and the network game client of end side, the user can set up one or more role by network game client, and be that the role who is set up gives a name, land described network game system by network game client, in virtual world, operate institute's role according to the game running logic.
Present network game system can carry out partition running to recreation and role.That is to say, the one or more game logic of operation in a subregion, each subregion industry generally is referred to as gaming world (World), and the player can create the role and play in subregion.More than one subregion can be formed a Da Qu, the industry Da Qu (Cluster) that generally is referred to as to play.
Role name is the character recognition and label of player in subregion.Unique role in the corresponding subregion recreation of each role name, game logic is distinguished each role by role name, and game role also is to set up relations such as good friend, teammate, master and apprentice, lovers with other game role by role's index by name.So when a new role is created, though role name can freely be defined in the scope that network game system allows by the player, it is unique in current subregion that but network game system must guarantee role name, if this role name is used, judge that then this role name is illegal, create role's failure.
Fig. 1 is the synoptic diagram of the role data management device of a certain subregion in the existing network games system.Referring to Fig. 1, described role data management device comprises:
Game running server (Zone Server) 101 is used to handle concrete game logic.
Subregion registration management module (World Login) 102 is used for comprising operation logics such as the role creates, the role logins, the role publishes, the role deletes according to the role in the whole subregion of the request management of game running server 101.
Role's staqtistical data base (All Role DB) 105 is used for the statistics of role in the minute book subregion, and role's statistics table of described a certain role is as shown in table 1:
Role's statistics title Attribute Explanation
dwID Signless auto-increment int variable Current subregion role ID
szRoleName Major key Role name
dwUin No symbol int variable Account number
dtCreateTime Time on date The role name creation-time
Table 1
As table 1, need to comprise role ID, role name, account number, role name creation-time in a described role's the statistics.Wherein, role name is necessary in a role's statistics, is called major key with the role in described statistics table 1.
Partition data access module (World Misc) 103 is supplementary modules of described subregion registration management module, is used for according to the operational order of subregion registration management module role's statistics of described subregion role staqtistical data base being carried out access.
Subregion role data storehouse (Role DB) 106 is used for the detailed data of role in the minute book subregion.
Role data server (Role Server) 104 is used for according to the operational order of subregion registration management module the role data in described subregion role data storehouse being carried out access.
Fig. 2 creates a kind of process flow diagram of role for prior art.Referring to Fig. 2, this flow process comprises:
Step 201, game running server send the establishment role and ask to subregion registration management module, comprise the role's that will create initialization data in the described establishment role request, wherein comprise role name at least.
Step 202, subregion registration management module send the query requests of role name uniqueness to the partition data access module.
Step 203, partition data access module inquiry subregion role staqtistical data base are judged wherein whether there has been the described role name that will create, and are returned Query Result to subregion registration management module.
Step 204, subregion registration management module are operated according to described Query Result: if the described role name that will create exists, then refusal is created the role, and, ask the player to reset role's name by the described role name repetition of game running server notification player; If the role name of creating does not exist, then send the role's that creates initialization data to the role data server.
Step 205, role data server deposit described initialization data in subregion role data storehouse, return to create to respond subregion registration management module.
Step 206, subregion registration management module are returned corresponding establishment and are responded the game running server.
But the role name that above-mentioned prior art is created is not unique in whole Da Qu, therefore causes following technological deficiency:
1, role data can not be moved between different subregions easily.
Because role's name may repeat in different subregions.When a role data need be moved subregion B from subregion A,, after role name must being revised,, just can move role data from subregion A such as increasing suffix if the role name that the role is identical is therewith arranged among the subregion B then the role can not be moved among the subregion B.
The same angular color name that exists in two subregions can must be revised when 2, merging subregion.
When needs merge the role of subregion, must do inspection to the role name in the different subregions, if identical role name is arranged, after then needing identical role name made an amendment, could merge the role of two subregions.
Summary of the invention
In view of this, technical matters to be solved by this invention is to provide the role data management device in a kind of network game system, when the assurance role data is moved between different subregions and is merged, raising is to the search efficiency of Da Qu role's staqtistical data base and subregion role staqtistical data base, and then improves the operational efficiency of whole network game system.
Another technical matters to be solved by this invention is to provide the method for the role data management in a kind of network game system, when the assurance role data is moved between different subregions and is merged, raising is to the search efficiency of Da Qu role's staqtistical data base and subregion role staqtistical data base, and then improves the operational efficiency of whole network game system.
In order to realize the foregoing invention purpose, main technical schemes of the present invention is:
Role data management device in a kind of network game system, described network game system carries out partition running to the role, and described role data management device comprises Da Qu Role Management module and at least one subregion Role Management module, wherein:
Subregion Role Management module, the data that are used to manage this subregion interior angle look; When creating the role, transmission comprises that the establishment role of the role name that will create asks to described Da Qu Role Management module, whether inquire about described role name and exist in Da Qu, create the role when not existing and write down described role data, refusal is created described role name when existing;
Described subregion Role Management module further comprises: subregion registration management module is used for the request according to the game running server of network game system, the bookkeeping of executive role data; Subregion role staqtistical data base is used for the statistics of role in the minute book subregion, wherein comprises the role name of each role in this subregion at least, comprises an above subregion role statistics table; The partition data access module is used for according to the operational order of subregion registration management module role's statistics of described subregion role staqtistical data base being carried out access, comprises an above partition data access unit;
Described subregion registration management module selects a partition data access unit to safeguard corresponding subregion role statistics table by hash algorithm;
Da Qu Role Management module, be used to manage the statistics of role in the Da Qu, and when certain subregion Role Management module creation role, whether there has been the role name that to create in the inquiry Da Qu, if exist, then indicate described subregion Role Management module refusal to create described role name, if there is no, then role's statistics will be created in record, and indicate the described role of described subregion Role Management module creation;
Described Da Qu Role Management module further comprises: Da Qu registration management module, be used for subregion Role Management module alternately, and and the statistics of role in the Da Qu managed operation; Da Qu role's staqtistical data base is used to write down Da Qu role's statistics, comprises above Da Qu role's statistics table; The Da Qu data access module is used for according to the operational order of Da Qu registration management module role's statistics of described Da Qu role's staqtistical data base being carried out access, comprises an above Da Qu data access unit;
Described Da Qu registration management module selects a Da Qu data access unit to safeguard corresponding Da Qu role's statistics table by hash algorithm.
Preferably, described Da Qu registration management module, after also being used to receive the role name that to create of subregion Role Management module, notifying described Da Qu data access module to inquire about in described Da Qu role's staqtistical data base whether have described role name, and return Query Result.
Preferably, Da Qu role's statistics table of the corresponding maintenance of each Da Qu data access unit.
Preferably, described subregion registration management module also is used for when creating the role, and first Xiang Da district Role Management module sends the role name that will create, whether the role name that the request inquiry will be created exists in Da Qu, and whether decision creates the role according to Query Result;
Described subregion Role Management module also comprises:
Subregion role data storehouse is used for the detailed data of role in the minute book subregion;
The role data server is used for according to the operational order of subregion registration management module the role data in described subregion role data storehouse being carried out access.
Preferably, subregion role statistics table of the corresponding maintenance of described each partition data access unit.
Role data management method in a kind of network game system,
Set in advance Da Qu role's staqtistical data base;
When creating the role in particular zones, particular zones sends the establishment role request that comprises the role name that will create, the role name that whether exists request to create in the inquiry Da Qu role staqtistical data base, if exist, then refusal is created described role name; Otherwise, in described particular zones, create described role, and will comprise that role's statistics of described role name deposits described Da Qu role's staqtistical data base in;
Above Da Qu role's statistics table is set in described Da Qu role's staqtistical data base; When creating the role in described subregion, select corresponding Da Qu role's statistics table by hash algorithm, inquire about the role name that whether has the establishment of asking in selected Da Qu role's statistics table, if exist, then refusal is created described role name; Otherwise, in described subregion, create described role, and will comprise that role's statistics of described role name deposits selected Da Qu role's statistics table in;
When deleting the role in described subregion, select corresponding Da Qu role's statistics table by hash algorithm, deletion will be deleted role's statistics of role's correspondence from selected Da Qu role's statistics table.
Preferably, described method further comprises: subregion role staqtistical data base is set; When in described subregion, deleting the role, to delete role's statistics of role's correspondence in the deletion subregion role staqtistical data base.
Preferably, when in described subregion, creating described role, further comprise: generate the unique role ID of described role in described subregion, in this subregion, distinguish the corresponding role of management by described role ID.
Because the present invention unifies record management to the role name in the whole Da Qu, the role name of all partition runnings is stored in Da Qu role's staqtistical data base in the Jiang Da district, when in subregion, creating the role, by judge whether the role name of being created exists in Da Qu role's staqtistical data base, if exist, then refusal is created this role name, otherwise, allow to create described role, and role name is added in described Da Qu role's staqtistical data base.Therefore, no matter the present invention can guarantee to create the role in which subregion, described role name all is unique in whole network game system Da Qu.Only need delete the relation that this role sets up with other roles in old subregion in the time need moving role data in different subregions, for example the good friend concerns, lovers' relation etc., and just role data is moved in the new subregion very easily; When needs merge the recreation subregion, needn't change the name of role in two subregions, only the role data in two subregions need be merged in the same role data storehouse and get final product.
The present invention can also be provided with above Da Qu role's statistics table in Da Qu role's staqtistical data base, when the described Da Qu role's staqtistical data base of inquiry, utilize hash algorithm to select one of them Da Qu role's statistics table to carry out query manipulation, therefore can improve search efficiency, be highly suitable for the big network game system of role data amount, improve the operational efficiency of whole network game system.
Similarly, the present invention can also be provided with an above subregion role statistics table in subregion role staqtistical data base, when the described subregion role staqtistical data base of inquiry, utilize hash algorithm to select one of them subregion role statistics table to carry out query manipulation, therefore can further improve search efficiency, be highly suitable for the big network game system of certain subregion role data amount, improve the operational efficiency of whole network game system.
Description of drawings
Fig. 1 is the synoptic diagram of the role data management device of a certain subregion in the existing network games system;
Fig. 2 creates a kind of process flow diagram of role for prior art;
Fig. 3 is the synoptic diagram of the role data management device of network game system of the present invention;
The method flow diagram that Fig. 4 manages role data during for establishment of the present invention role;
The method flow diagram that Fig. 5 manages role data during for deletion of the present invention role.
Embodiment
Below by specific embodiments and the drawings the present invention is described in further details.
Core concept of the present invention is: the role is being carried out in the network game system of partition running, Da Qu role's staqtistical data base is set, the role name of all partition runnings is stored in Da Qu role's staqtistical data base in the Jiang Da district, role name in the whole Da Qu is unified record management, when in subregion, creating the role, judge whether the role name of being created exists in Da Qu role's staqtistical data base, if exist, then refusal is created this role name, otherwise, allow to create this role, and role name is added in described Da Qu role's staqtistical data base.
The network game system that the present invention was suitable for carries out partition running to the role.The one or more game logic of operation in a subregion, each subregion industry generally is referred to as gaming world, and the player can create the role and play in subregion.More than one subregion can be formed a Da Qu, and industry generally is referred to as the Da Qu that plays.
Fig. 3 is the synoptic diagram of the role data management device of network game system of the present invention.Referring to Fig. 3, role data management device of the present invention comprises at least one subregion Role Management module 301 and a Da Qu Role Management module 302.Wherein:
The data that subregion Role Management module 301 is used to manage this subregion interior angle look.When creating the role, elder generation's Xiang Da district Role Management module 302 sends creates role's request, and comprising the role name that will create, whether the described role name of request inquiry exists in Da Qu, when not existing, create the role and write down described role data, otherwise refusal is created described role name.When the deletion role, need in this subregion, delete the role data that to delete the role, and Xiang Da district Role Management module 302 sends deletion role request, comprising the role name that will delete, after Da Qu Role Management module 302 is received deletion role request, the role data that deletion is corresponding.
Described bookkeeping is except creating and the deletion role, also comprise: login, publish role data etc., it is described that to login, publish role data be after creating the role, modifications such as interpolation that other detailed data of removing identification informations such as role name, role ID among this role is carried out or deletion, because it is uncorrelated with purpose of the present invention to login, publish operation, so only the process of creating role and deletion role is described in the embodiments of the invention.
Da Qu Role Management module 302 is used to manage the statistics of role in the Da Qu, and when certain subregion Role Management module 301 is created the role, whether there has been the role name that to create in the inquiry Da Qu, if existed then indicate described subregion Role Management module 301 refusals to create described role name, if there is no, then role's statistics will be created in record, and indicate described subregion Role Management module 301 to create described role.
As shown in Figure 3, described subregion Role Management module 301 specifically comprises:
Subregion registration management module 311 is used for the request according to the game running server 101 of network game system, and the bookkeeping of executive role for example comprises operations such as the role creates, deletes, logins, publishes; When creating the role, elder generation's Xiang Da district Role Management module 302 sends the role name that will create, whether request inquiry role name exists in Da Qu, and whether create the role according to Query Result decision, if the role name of being created has existed in Da Qu, then refusal is created described role name, otherwise, create described role, and role's initialization data is deposited in the subregion role data storehouse 312.
Subregion role data storehouse 312 is used for the detailed data of role in the minute book subregion, comprises initialization data etc.
Role data server 313 is used for according to the operational order of subregion registration management module 311 role data in described subregion role data storehouse 312 being carried out access.
Subregion role staqtistical data base 314, subregion registration management module 311 can also deposit the statistics of the role in this subregion in the subregion role staqtistical data base 314, at least the role name that comprises each role in this subregion in described role's statistics is convenient to network game system and is carried out the interior role data operation of this subregion.
Partition data access module 315 is the supplementary module of subregion registration management module 311, is used for according to the operational order of subregion registration management module 311 role's statistics of described subregion role staqtistical data base 314 being carried out access.
As shown in Figure 3, described Da Qu Role Management module 302 specifically comprises:
Da Qu registration management module 321 is used for according to the request of subregion registration management module 311 role data in the Da Qu being managed operation, for example creates the role, when deleting role's statistics is carried out corresponding operating.
Da Qu role's staqtistical data base 323 is used for writing down role's statistics of current Da Qu, wherein comprises the role name of each role in the current Da Qu at least.
Role's statistics table of described a certain Da Qu role is as shown in table 2:
Role's statistics name Attribute Explanation
szRoleName Major key Role name
dwUin No symbol int variable Account number
dtCreateTime Time on date The role name creation-time
wWorldID No symbol short variable Role place partition id
Table 2
As shown in table 2, need to comprise role name, account number, role name creation-time and role place Da Qu ID in a described role's the statistics.Wherein role name is necessary in a role's statistics, is called major key with the role in described statistics table 2.
Da Qu data access module 322 is the supplementary module of described Da Qu registration management module 321, is used for according to the operational order of Da Qu registration management module 321 role's statistics of described Da Qu role's staqtistical data base 323 being carried out access.
Described Da Qu registration management module 321 is behind the role name that will create that receives 301 transmissions of subregion Role Management module, notify in the described Da Qu role's staqtistical data base 323 of described Da Qu data access module 322 inquiries whether have described role name, and return Query Result.
In order to improve system effectiveness, described Da Qu data access module 322 can comprise an above Da Qu data access unit, corresponding, comprise above Da Qu role's statistics table in described Da Qu role's staqtistical data base 323,19 Da Qu data access units for example can be set in a kind of preferred version, respectively corresponding 19 Da Qu role's statistics tables, the corresponding data access of being responsible for safeguarding Da Qu role's statistics table of described each Da Qu data access unit.Described Da Qu registration management module 321 is behind the role name that receives 301 transmissions of subregion Role Management module, select a corresponding Da Qu role's statistics table of Da Qu data access unit inquiry by Hash (Hash) algorithm, purpose is to select corresponding Da Qu role's statistics table to operate by hash algorithm, judge in this Da Qu role's statistics table and whether have the role name that to create, if exist, then judge and have described role name in the current Da Qu, if there is no, then judge not have described role name in the current Da Qu, and this role name is recorded in described Da Qu role's statistics table.
Because the relation of hash algorithm, same role name always can be chosen same Da Qu data access unit, though so be that Jiang Da district role staqtistical data base 323 splits into 19 Zhang Da district role statistics tables, magnify same that role name is unique described in district's role statistics table as long as guarantee, can guarantee that described role name also is unique in other Da Qu role's statistics table, thereby guarantee the uniqueness of role name in whole Da Qu.
The present invention also can be provided with an above subregion role statistics table in described subregion role staqtistical data base 314, and correspondence is provided with more than one partition data access unit, a subregion role of each partition data access unit respective operations statistics table.And identical hash algorithm selects corresponding partition data access unit that subregion role statistics table is carried out read operation in employing and the above-mentioned Da Qu Role Management module, purpose is to select a corresponding subregion role statistics table to operate by hash algorithm, thereby improves search efficiency.
The method flow diagram that Fig. 4 manages role data during for establishment of the present invention role.Referring to Fig. 4, this flow process comprises:
Step 401, game running server 101 send the establishment role and ask to subregion registration management module 311, comprise the role's that will create initialization data in the described establishment role request, comprising role name.
Step 402, subregion registration management module 311 send the establishment role asks Da Qu registration management module 321, comprising the role name that will create.
Step 403, Da Qu registration management module 321 send role name uniqueness query requests to Da Qu data access module 322, comprising the role name that will create.
Step 404, Da Qu data access module 322 inquiry Da Qu role staqtistical data bases 323 are judged wherein whether there has been the role name that will create, and Query Result are returned to Da Qu registration management module 321.
Step 405, Da Qu registration management module 321 are handled according to described Query Result, if the role name of creating exists in described Da Qu role's staqtistical data base 323, then refusal is created described role name, sends described Query Result to subregion registration management module 311; Otherwise, deposit the role name that will create and this role's out of Memory in described Da Qu role's staqtistical data base 323 by Da Qu data access module 322; And described Query Result sent to subregion registration management module 311.Described out of Memory for example is the information such as ID of user account number, role name creation-time and role place subregion, wherein user account number is carried in sending request to create by game running server 101, described role name creation-time can be the current running time, and described role place partition id can be to be carried in sending request to create by subregion registration management module 311.
Step 406, subregion registration management module 311 are handled according to described Query Result, if the role name that will create exists in described Da Qu role's staqtistical data base 323, then refusal is created described role name, execution in step 410; Otherwise, send the establishment role and ask execution in step 407 to partition data access module 315.
After step 407, partition data access module 315 are received and are created role's request, deposit role name and the out of Memory of this role in this subregion that will create in described subregion role staqtistical data base 314, the out of Memory of described this role in this subregion comprises role ID, role name creation-time, user account number.Wherein role ID is generated by partition data access module 315, a unique role ID in this subregion, and described role name creation-time can be the current running time, described user account number is carried in sending request to create by game running server 101.Afterwards, partition data access module 315 returns and creates the result to subregion registration management module 311, comprising role ID.
Step 408, subregion registration management module 311 details with the establishment role send to role data server 313, the role ID of returning comprising role's initialization data and partition data access module 315.
Step 409, role data server 313 deposit described role's detailed data in subregion role data storehouse 312, return and create the result to subregion registration management module 311, if deposit success in, then return the establishment successful result, otherwise return the establishment failure result.
Step 410, subregion registration management module 311 are returned the establishment role and are responded to game running server 101, if subregion registration management module 311 refusals are created described role name or are created failure, then return and create the role name failure response to game running server 101, the game running server can directly refuse to create the role that current request is created, also can point out the user to import new role name, initiate to create role's request once more; Otherwise, return and create role's success response to game running server 101.
In order further to raise the efficiency, as a kind of preferred version, the present invention can be provided with above Da Qu role's statistics table in described Da Qu role's staqtistical data base 323, and correspondence is provided with more than one Da Qu data access unit, each Da Qu data access unit is Da Qu role's statistics table of respective operations respectively, and described Da Qu data access unit can be a kind of program process unit.And, being numbered since 0 to described Da Qu data access unit, the number of for example a kind of preferred embodiment Zhong Da district data access unit is 19, then its numbering is followed successively by 0,1,2 ..., 18.
In this case, in the step 403, Da Qu registration management module 321 further selects a corresponding Da Qu data access unit that corresponding Da Qu role's statistics table is inquired about by hash algorithm, purpose is to select corresponding Da Qu role's statistics table to operate by hash algorithm, and described system of selection is specially:
Step 431, the encoded radio of all characters in the role name that will create added up obtains an integer X.
Step 432, integer X that step 431 is obtained obtain remainder divided by the number Y of described Da Qu data access unit, i.e. X%Y, and wherein % is a delivery; With the remainder that obtains numbering, suppose that this is numbered Z as the Da Qu data access unit of selecting.
Step 433, send the role's request of creating to the Da Qu data access unit of selecting by step 432 that is numbered Z, inquire about its corresponding Da Qu role's statistics table by this Da Qu data access unit, corresponding, the numbering of this Da Qu role's statistics table also is Z, judge whether there has been the role name that to create in this Da Qu role's statistics table, and Query Result is returned to Da Qu registration management module 321.
Afterwards, Da Qu registration management module 321 is handled accordingly according to Query Result, if exist institute ask the role name of creating in Da Qu role's statistics table of numbering Z, then refuses the described role name of establishment; Otherwise the Da Qu data access unit of notice subregion registration management module 311 and described numbering Z is created described role, will comprise that role's statistics of described role name deposits in Da Qu role's statistics table of numbering Z.
Because the whole-number result that obtains after the encoded radio of all characters of same role name adds up is always identical, so at same role name, one chooses identical Da Qu data access unit surely.Again because each Da Qu data access unit is is always read and write the same district role statistics table that magnifies, so can guarantee if a role name is unique in Yi Zhangda district role statistics table, in other Da Qu role's statistics table, also be unique then, thereby guarantee the uniqueness of role name in whole Da Qu role's staqtistical data base 323.
In order further to improve the efficiency data query in the subregion, as a kind of preferred version, the present invention can be provided with an above subregion role statistics table in described subregion role staqtistical data base 314, and correspondence is provided with more than one partition data access unit, a subregion role of each partition data access unit respective operations statistics table.And identical hash algorithm selects corresponding partition data access unit that subregion role statistics table is carried out read operation in employing and the above-mentioned Da Qu Role Management module, purpose is to select a corresponding subregion role statistics table to operate by hash algorithm, thereby improves search efficiency.
The method flow diagram that Fig. 5 manages role data during for deletion of the present invention role.Referring to Fig. 5, this flow process comprises:
Step 501, game running server 101 send the deletion role and ask subregion registration management module 311, comprise the role name that will delete the role in the deletion role request.
Step 502, subregion registration management module 311 judges whether the role that will delete is current online, if online then return and delete failure response to game running server 101; Otherwise, send the deletion role and ask role data server 313.
Step 503, role data server 313 are deleted the details that will delete the role from subregion role data storehouse 312, return the deletion result to subregion registration management module 311; If delete successfully then return the deletion successful result, otherwise return the deletion failure result.
Step 504, subregion registration management module 311 are returned corresponding deletion result to game running server 101.
Step 505, subregion registration management module 311 send the deletion role asks partition data access module 315, and partition data access module 315 is deleted the statistics that will delete the role from described subregion role staqtistical data base 314, comprising role name.
If the present invention is provided with an above subregion role statistics table in described subregion role staqtistical data base 314, and correspondence is provided with more than one partition data access unit, a subregion role of each partition data access unit respective operations statistics table, then adopt with above-mentioned establishment role flow process in the corresponding partition data access unit of identical hash algorithm selection the role's statistics in the subregion role statistics table is carried out deletion action, purpose is to select a corresponding subregion role statistics table to operate by hash algorithm, thereby improves operating efficiency.
Step 506, subregion registration management module 311 send the deletion role asks Da Qu registration management module 321, Da Qu registration management module 321 sends the deletion role and asks Da Qu data access module 322, and Da Qu data access module 322 is deleted the statistics that will delete the role from described Da Qu role's staqtistical data base 323.
If the present invention is provided with above Da Qu role's statistics table in described Da Qu role's staqtistical data base 323, and correspondence is provided with more than one Da Qu data access unit, Da Qu role's statistics table of each Da Qu data access unit respective operations, then adopt herein with above-mentioned establishment role flow process in the corresponding Da Qu data access unit of identical hash algorithm selection the role's statistics in Da Qu role's statistics table is carried out deletion action, purpose is to select corresponding Da Qu role's statistics table to operate by hash algorithm, thereby improves operating efficiency.
Certainly, there is not inevitable sequencing between the above-mentioned steps 504,505,506, also can parallel processing.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.

Claims (8)

1. the role data management device in the network game system, described network game system carries out partition running to the role, it is characterized in that, and described role data management device comprises Da Qu Role Management module and at least one subregion Role Management module, wherein:
Subregion Role Management module, the data that are used to manage this subregion interior angle look; When creating the role, transmission comprises that the establishment role of the role name that will create asks to described Da Qu Role Management module, whether inquire about described role name and exist in Da Qu, create the role when not existing and write down described role data, refusal is created described role name when existing;
Described subregion Role Management module further comprises: subregion registration management module is used for the request according to the game running server of network game system, the bookkeeping of executive role data; Subregion role staqtistical data base is used for the statistics of role in the minute book subregion, wherein comprises the role name of each role in this subregion at least, comprises an above subregion role statistics table; The partition data access module is used for according to the operational order of subregion registration management module role's statistics of described subregion role staqtistical data base being carried out access, comprises an above partition data access unit;
Described subregion registration management module selects a partition data access unit to safeguard corresponding subregion role statistics table by hash algorithm;
Da Qu Role Management module, be used to manage the statistics of role in the Da Qu, and when certain subregion Role Management module creation role, whether there has been the role name that to create in the inquiry Da Qu, if exist, then indicate described subregion Role Management module refusal to create described role name, if there is no, then role's statistics will be created in record, and indicate the described role of described subregion Role Management module creation;
Described Da Qu Role Management module further comprises: Da Qu registration management module, be used for subregion Role Management module alternately, and and the statistics of role in the Da Qu managed operation; Da Qu role's staqtistical data base is used to write down Da Qu role's statistics, comprises above Da Qu role's statistics table; The Da Qu data access module is used for according to the operational order of Da Qu registration management module role's statistics of described Da Qu role's staqtistical data base being carried out access, comprises an above Da Qu data access unit;
Described Da Qu registration management module selects a Da Qu data access unit to safeguard corresponding Da Qu role's statistics table by hash algorithm.
2. role data management device according to claim 1, it is characterized in that, described Da Qu registration management module, also be used for behind the role name that will create that receives subregion Role Management module, notify described Da Qu data access module to inquire about in described Da Qu role's staqtistical data base whether have described role name, and return Query Result.
3. role data management device according to claim 2 is characterized in that, Da Qu role's statistics table of the corresponding maintenance of described each Da Qu data access unit.
4. role data management device according to claim 1 is characterized in that,
Described subregion registration management module also is used for when creating the role, and Xiang Da district Role Management module sends the role name that will create, and whether the role name that the request inquiry will be created exists in Da Qu, and whether decision creates the role according to Query Result;
Described subregion Role Management module also comprises:
Subregion role data storehouse is used for the detailed data of role in the minute book subregion;
The role data server is used for according to the operational order of subregion registration management module the role data in described subregion role data storehouse being carried out access.
5. role data management device according to claim 4 is characterized in that, subregion role statistics table of the corresponding maintenance of described each partition data access unit.
6. the role data management method in the network game system is characterized in that,
Set in advance Da Qu role's staqtistical data base;
When creating the role in particular zones, particular zones sends the establishment role request that comprises the role name that will create, the role name that whether exists request to create in the inquiry Da Qu role staqtistical data base, if exist, then refusal is created described role name; Otherwise, in described particular zones, create described role, and will comprise that role's statistics of described role name deposits described Da Qu role's staqtistical data base in;
Above Da Qu role's statistics table is set in described Da Qu role's staqtistical data base; When creating the role in described subregion, select corresponding Da Qu role's statistics table by hash algorithm, inquire about the role name that whether has the establishment of asking in selected Da Qu role's statistics table, if exist, then refusal is created described role name; Otherwise, in described subregion, create described role, and will comprise that role's statistics of described role name deposits selected Da Qu role's statistics table in;
When deleting the role in described subregion, select corresponding Da Qu role's statistics table by hash algorithm, deletion will be deleted role's statistics of role's correspondence from selected Da Qu role's statistics table.
7. role data management method according to claim 6 is characterized in that, described method further comprises: subregion role staqtistical data base is set;
When in described subregion, deleting the role, to delete role's statistics of role's correspondence in the deletion subregion role staqtistical data base.
8. role data management method according to claim 6, it is characterized in that, when in described subregion, creating described role, further comprise: generate the unique role ID of described role in described subregion, in this subregion, distinguish the corresponding role of management by described role ID.
CN2007101753605A 2007-09-28 2007-09-28 Role data management device and method in network game system Active CN101169806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101753605A 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
CN2007101753605A 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
CN2007101753605A Active 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 (4)

* 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
CN111054083B (en) * 2019-11-18 2023-08-04 武汉华中时讯科技有限责任公司 Method and system for creating original roles in social network, server and medium

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
AU2020200149B2 (en) Methods and apparatus for a distributed database within a network
CN1265858C (en) Information processing system for seamless connecting real and virtual world
CN103858122B (en) The method and system of the high consistency of the distributed reproducting content in holding client/server system
RU2388056C1 (en) Method, system, client terminal and server for preventing cheating in network games
US8140625B2 (en) Method for operating a fixed prefix peer to peer network
CN101169806B (en) Role data management device and method in network game system
CN104133825B (en) A kind of method and device that mates client user
CN109327512A (en) Game data subregion storage method based on block chain hash addressing and re-encryption
US7793335B2 (en) Computer-implemented method, system, and program product for managing log-in strikes
CN100534056C (en) User log-on method and system in network game
CN103150394A (en) Distributed file system metadata management method facing to high-performance calculation
CN107247758B (en) Data processing method based on bank core system
CA2754086A1 (en) Method and system for transmitting information based on social network
JP2001087558A (en) Game system and card printing method of game system
CN110597922A (en) Data processing method, device, terminal and storage medium
JP2023037451A (en) Information processing program, information processing method and information processing system
JPWO2002065222A1 (en) Unique number recording system
CN100570621C (en) Role data management device in the network game system and method
US10586182B2 (en) System and method for virtual environment preservation based on automated item reduction
CN109603162A (en) A kind of information processing method, device and storage medium
CN114968095A (en) Distributed hard disk management method, system, electronic device and readable storage medium
CN106471601B (en) Scheme ID management server, scheme ID management system and terminal installation
CN107485857A (en) On the processing method of online game equipment identification code, central server and storage medium
CN106775460A (en) A kind of processing method, the apparatus and system of achievement data of playing
CN1894927B (en) A peer-to-peer relay network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant