CN105207990B - A kind of method, server and network game system accessing game server - Google Patents
A kind of method, server and network game system accessing game server Download PDFInfo
- Publication number
- CN105207990B CN105207990B CN201510497603.1A CN201510497603A CN105207990B CN 105207990 B CN105207990 B CN 105207990B CN 201510497603 A CN201510497603 A CN 201510497603A CN 105207990 B CN105207990 B CN 105207990B
- Authority
- CN
- China
- Prior art keywords
- module
- world object
- common data
- client
- data
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention provides a kind of method, server and network game system for accessing game server.The server includes: global data management module, for saving common data;At least one world object module, for providing the processing function to common data;Control module, is configured to the access request of client and the corresponding relationship of world object module, and the access request of client is forwarded to world object module;Wherein, world object module reads common data in global data management module according to the access request of client, handles common data, and common data is stored into global data management module by treated.The application reduces the degree of coupling of logic processing module and data storage section, while also reducing the degree of coupling between different logic processing modules.
Description
Technical field
The present invention relates to development of games technical fields, specifically, being related to a kind of method of access game server, service
Device and network game system.
Background technique
Existing online game usually provides an online virtual world by game services person, and game user is in virtual generation
It the game operations such as plays a role in boundary, and then is chatted, moved in virtual game, traded.Existing game garment
Business device mostly uses greatly the mode of database, service routine and client to carry out framework, and wherein service routine is often by unified language
It writes.The highly integrated of service routine causes between different functional modules there are the excessively high degree of coupling, this makes for some
The maintenance process of functional module becomes complex, and maintenance cost is excessively high.
In addition, data and logical process part are often integrated in a functional module in existing game server, with
The gradually growth of data volume, lead to the scale further expansion of program code, more increase the Maintenance Difficulty to functional module
Degree.
Therefore, a kind of network game server for reducing the degree of coupling between functional module is needed.
Summary of the invention
The functional module degree of coupling is excessively high it is an object of the invention to solving in existing network game server, causes to safeguard
The technological deficiency of process complexity.
The application provides a kind of network game server first, comprising:
Global data management module, for saving common data;
At least one world object module, for providing the processing function to common data;
Control module is configured to the access request of client and the corresponding relationship of world object module, by client
The access request at end is forwarded to world object module;
Wherein, world object module reads common data in global data management module according to the access request of client,
Common data is handled, and common data is stored into global data management module by treated.
In one embodiment, the global data management module be used for save world object module mark and public number
According to corresponding relationship.
In one embodiment, also by treated, common data feeds back to control module to the world object module, control
Molding block is based on client's request, and by treated, common data feeds back to client.
In one embodiment, the control module is also used to be based on world object module in the server initiation stage
Mark select loading section world object module.
In one embodiment, the world object module is also used to:
Determination will interaction data other world object modules mark, and the mark based on other world object modules
Common data is read in global data management module, common data is handled.
The application also provides a kind of network game system, comprising:
Network game server as described above;
At least one client generates access request, and receives the common data of control module return.
The application also provides a kind of method for accessing game server characterized by comprising
The access request of control module reception client;
The corresponding relationship of control module client-based access request and world object module, the access of client is asked
It asks and is forwarded to world object module;
World object module reads common data in global data management module according to the access request of client;
World object module handles common data, and by treated, common data is stored to global data management mould
In block.
In one embodiment, further includes:
Also by treated, common data feeds back to control module to world object module;
Control module is based on customer instruction, and by treated, common data feeds back to client.
In one embodiment, further includes:
In the server initiation stage, control module selects loading section world object based on the mark of world object module
Module.
In one embodiment, further includes:
The determination of our times object module will interaction data other world object modules mark;
Mark based on other world object modules reads common data in global data management module;
Our times object module handles common data.
Each world object module independently completes partial game function in the embodiment of the present application, and pilot process is generated
Data be stored in global data management module and shared as common data, to reduce logic processing module sum number
According to the degree of coupling of storage section, while also reducing the degree of coupling between different logic processing modules.Since in this way, make
It obtains data to be strictly separated with logical process, when some world object module needs to carry out logical extension, does not interfere with it
His world object module.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention
It applies example and is used together to explain the present invention, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the structural schematic diagram of the network game system of embodiment one;
Fig. 2 is the step flow chart of the method for the access game server of embodiment two.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, the embodiment of the present invention is made below in conjunction with attached drawing
Further it is described in detail.
The terms such as " module " used in this application, " system " be intended to include with computer-related entity, such as it is but unlimited
In hardware, firmware, combination thereof, software or software in execution.For example, module can be, and it is not limited to: processing
Process, processor, object, executable program, the thread of execution, program and/or the computer run on device.For example, it counts
It calculates the application program run on machine equipment and this computer equipment can be module.One or more modules, system can be located at
In a process in execution and/or thread, a module or system can also be located on a computer and/or be distributed in
Between two or more computers.
First in the embodiment of the present application term " world object module " and " global data management module " be illustrated.
World object module is the separate unit in network game server for realizing certain game function, is only carried out at logic
Reason, without saving related data.Global data management module is used to save user data and world object data, wherein save
Data are only read and are modified by world object module.Other function mould in global data management module and network game server
There is no incidence relations in logic for block.
Embodiment one
The present embodiment mainly provides a kind of network game system and network game server.As shown in Figure 1, the system includes
Network game server 130 and at least one client 150.Client 150 generates access request, and is sent to server 130.
The access request is, for example, logging request, registration request, the request for selecting scene of game, the request for setting role of user etc..
Server 130 handles access request, returns to user data to client 150.
Server 130 mainly includes global data management module 131, at least one world object module 133 and control mould
Block 135.
Global data management module 131 is for saving common data.Wherein, common data is to log on to owning for server
The summation of player's data.Common data includes the character data in game, such as grade, experience, vital values, the magic of player
Value, equipment, technical ability, good friend and labour union etc.;Further include realize certain function of game intermediate data, for example, to virtual role into
Position data, path, zone of action caused by row is mobile etc..
World object module 133 is used to provide the processing function to common data, realizes certain function in game process.
For example, the log-in module in Fig. 1 is responsible for verifying the log-on message of user, and management logs in the entire Life Cycle of successful user
Phase;The game logics such as NPC, object manipulation, personage's movement in object mobile module charge map;Path module is responsible for processing
The mobile path of NPC, object manipulation, personage.It is without being limited thereto, player PK, pet system in online game, system of setting up a stall, row
The realization of world object module can also be used in meeting system, copy system, jewel system etc..
The intermediate data of the processing of world object module 133 is stored in global data management module 131 as common data.
It is patrolled for example, object mobile module is responsible for handling NPC in interface, object manipulation, personage's movement, fighting capacity calculating etc. game
Volume, when player exits game from current interface, global data management module 131 saves map nomenclature when player exits game
Map and position of the last time when exiting can be entered in this way when player logs in again with position coordinate.
Fig. 1 is turned again to, the function of control module 135 mainly includes two aspects.On the one hand, it is stored with client
The corresponding relationship of access request and world object module, and it is configured to the access request and world object module of client
The access request of client is forwarded to world object module by corresponding relationship.On the other hand, it is responsible for load and manages each world pair
As module, in the server initiation stage, the mark based on world object module selects loading section world object module.Specifically
For, control module 135 can select which world object module loaded according to configuration file, flexibly be carried out according to system requirements
Configuration.
World object module 133 reads common data in global data management module 131 according to client request, to public affairs
Data are handled altogether, and common data is stored in global data management module 131 by treated.And it will be after processing
User data feed back to control module so that the client-based request of control module 135 will treated that user data is anti-
It is fed to client.
For example, the request message that control module 135 recognizes client is " entering map ", then " will enter map " asks
It asks and is forwarded to object mobile module, read the position of virtual portrait from global data management module 131 by object mobile module
Data.Object mobile module modifies to the position data of virtual portrait, so that virtual portrait enters the map that user specifies,
And the position data after modification is stored in again in global data management module 131, it further, will be virtual after modification
The position data of personage feeds back to client.
Further, pass through the mark interaction data of world object module between each world object module.Specifically, when
Preceding world object module determination will interaction data other world object modules mark, and be based on other world object moulds
The mark of block reads common data in global data management module, and then current world object module carries out common data
Processing.For example, in the above example, the position data of virtual portrait is common data, " object mobile module " and " path mould
Block " can be handled position data.
Below by way of the data exchange process of " object mobile module " and " path module " the two world object modules into
Row explanation." path module " is responsible for the mobile path of virtual portrait, it is contemplated that some regions do not allow visual human in display scene
Object passes through, and path module is that a series of position data formation movement rail is arranged in virtual portrait according to player designated destination location
Mark, come avoid not allowing by region, this series of position data is stored in " path module ".
After receiving the instruction of " object is mobile " of client transmission, object mobile module, which determines, to be needed according to path mould
The intermediate data of block moves virtual portrait, then the position that read path module is set in global data management module
Data, and operate virtual portrait and moved along motion profile.
It is not difficult to find out from content above, each world object module independently completes partial game function in the present embodiment,
And the common data that pilot process generates is stored in global data management module and is shared, to reduce logical process
The degree of coupling of module and data storage section, while also reducing the degree of coupling between different logic processing modules.This
Since sample, so that data are strictly separated with logical process, it, can't when some world object module needs to carry out logical extension
Influence other world object modules.
Embodiment two
The present embodiment provides a kind of methods for accessing game server.As shown in Fig. 2, firstly, control module receives client
The access request (step S201) at end.Then, the client-based access request of control module is corresponding with world object module
The access request of client is forwarded to world object module (step S202) by relationship.World object module is according to client
Access request reads common data (step S203) in global data management module, handles common data, will handle
User data afterwards is stored into global data management module (step S204).Then, world object module is also by treated
Common data is fed back to control module (step S205), and control module is based on client request, and by treated, common data is fed back
To client (step S206).So far, the feedback procedure of user request information is completed.
In addition, the method for the present embodiment further includes the process of interaction data between world object module.In Fig. 2, currently
The determination of world object module will interaction data other world object modules mark (step S207), be based on other worlds pair
As the mark of module reads common data (step S208) in global data management module, our times object module is to public
Data are handled (step S209).
Preferably, in the server initiation stage, mark of the control module also based on world object module selects loading unit
Divide world object module (being not shown in Fig. 2), to flexibly be configured according to system requirements.
Method in the present embodiment reduces the degree of coupling of logic processing module and data storage section, while also reducing
Degree of coupling between different logic processing modules, so that data are strictly separated with logical process.
While it is disclosed that embodiment content as above but described only to facilitate understanding the present invention and adopting
Embodiment is not intended to limit the invention.Any those skilled in the art to which this invention pertains are not departing from this
Under the premise of the disclosed spirit and scope of invention, any modification and change can be made in the implementing form and in details,
But scope of patent protection of the invention, still should be subject to the scope of the claims as defined in the appended claims.
Claims (7)
1. a kind of network game server characterized by comprising
Global data management module, for saving common data;The global data management module is for saving world object mould
The mark of block and the corresponding relationship of common data;
At least one world object module, for providing the processing function to common data;
Control module is configured to the access request of client and the corresponding relationship of world object module, by client
Access request is forwarded to world object module;
Wherein, world object module reads common data in global data management module according to the access request of client, to public affairs
Data are handled altogether, and common data is stored into global data management module by treated;
The control module is also used to, and in the server initiation stage, the mark based on world object module selects loading section
World object module.
2. server as described in claim 1, which is characterized in that the world object module will also treated common data
Control module is fed back to, control module is based on client's request, and common data feeds back to client by treated.
3. server as described in claim 1, which is characterized in that the world object module is also used to:
Determination will interaction data other world object modules mark, and the mark based on other world object modules is complete
Common data is read in office data management module, common data is handled.
4. a kind of network game system characterized by comprising
Network game server as claimed in any one of claims 1-3;
At least one client generates access request, and receives the common data of control module return.
5. a kind of method for accessing game server characterized by comprising
The access request of control module reception client;
The corresponding relationship of control module client-based access request and world object module turns the access request of client
It is sent to world object module;
For control module in the server initiation stage, the mark based on world object module selects loading section world object mould
Block;
World object module reads common data in global data management module according to the access request of client;The overall situation
Data management module is used to save the mark of world object module and the corresponding relationship of common data;
World object module handles common data, and by treated, common data is stored to global data management module
In.
6. method as claimed in claim 5, which is characterized in that further include:
Also by treated, common data feeds back to control module to world object module;
Control module is based on customer instruction, and by treated, common data feeds back to client.
7. method as claimed in claim 5, which is characterized in that further include:
The determination of our times object module will interaction data other world object modules mark;
Mark based on other world object modules reads common data in global data management module;
Our times object module handles common data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510497603.1A CN105207990B (en) | 2015-08-13 | 2015-08-13 | A kind of method, server and network game system accessing game server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510497603.1A CN105207990B (en) | 2015-08-13 | 2015-08-13 | A kind of method, server and network game system accessing game server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105207990A CN105207990A (en) | 2015-12-30 |
CN105207990B true CN105207990B (en) | 2019-03-15 |
Family
ID=54955426
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510497603.1A Active CN105207990B (en) | 2015-08-13 | 2015-08-13 | A kind of method, server and network game system accessing game server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105207990B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109718552B (en) * | 2017-10-30 | 2022-11-04 | 腾讯科技(成都)有限公司 | Life value control method based on simulation object and client |
CN110580257A (en) * | 2019-09-11 | 2019-12-17 | 网易(杭州)网络有限公司 | Data sharing method, server and medium |
CN111973989A (en) * | 2020-08-21 | 2020-11-24 | 北京像素软件科技股份有限公司 | Game engine framework, entity creating method, server and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102164112A (en) * | 2010-02-23 | 2011-08-24 | 腾讯科技(北京)有限公司 | Method and device for automatically and continuously playing networking games |
CN103297459A (en) * | 2012-02-28 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Synchronizing system of application configuration information, access server, clients and synchronizing method of application configuration information |
CN103944993A (en) * | 2014-04-25 | 2014-07-23 | 北京乐动卓越信息技术有限公司 | Million-level user simultaneous online mobile platform server architecture |
CN103995755A (en) * | 2014-06-03 | 2014-08-20 | 北京乐动卓越信息技术有限公司 | Server optimizing method based on mobile terminal and server system |
CN104601562A (en) * | 2015-01-04 | 2015-05-06 | 福建天晴数码有限公司 | Interactive method and system of game server and database |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100344101C (en) * | 2005-08-17 | 2007-10-17 | 华为技术有限公司 | Method and system for realizing game data sharing |
-
2015
- 2015-08-13 CN CN201510497603.1A patent/CN105207990B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102164112A (en) * | 2010-02-23 | 2011-08-24 | 腾讯科技(北京)有限公司 | Method and device for automatically and continuously playing networking games |
CN103297459A (en) * | 2012-02-28 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Synchronizing system of application configuration information, access server, clients and synchronizing method of application configuration information |
CN103944993A (en) * | 2014-04-25 | 2014-07-23 | 北京乐动卓越信息技术有限公司 | Million-level user simultaneous online mobile platform server architecture |
CN103995755A (en) * | 2014-06-03 | 2014-08-20 | 北京乐动卓越信息技术有限公司 | Server optimizing method based on mobile terminal and server system |
CN104601562A (en) * | 2015-01-04 | 2015-05-06 | 福建天晴数码有限公司 | Interactive method and system of game server and database |
Also Published As
Publication number | Publication date |
---|---|
CN105207990A (en) | 2015-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110898428B (en) | Multi-virtual object interaction method, device, server and storage medium | |
US9724610B2 (en) | Creation and prioritization of multiple virtual universe teleports in response to an event | |
US8358302B2 (en) | Dynamic creation of virtual regions | |
CN104623898B (en) | A kind of method and game server into game transcript scene | |
CN107137927B (en) | Method and device for acquiring position coordinates of virtual game object | |
KR101640904B1 (en) | Computer-based methods, machine-readable non-transitory medium and server system to provide online gaming experience | |
CN110362586B (en) | Multi-center biomedical data cooperative processing system and method without patient data sharing | |
CN105207990B (en) | A kind of method, server and network game system accessing game server | |
US20090204563A1 (en) | Generic ai architecture for a multi-agent system | |
CN111672111A (en) | Interface display method, device, equipment and storage medium | |
CN110478898B (en) | Configuration method and device of virtual scene in game, storage medium and electronic equipment | |
CN111773735A (en) | Game team forming method and device, computer readable storage medium and electronic equipment | |
CN106170010A (en) | The data processing method of a kind of cross-server cluster and device | |
KR20230085187A (en) | Chessboard picture display method and apparatus, device, storage medium, and program product | |
CN110716766A (en) | Game scene loading method and device, computer readable medium and electronic equipment | |
CN111757771B (en) | Team gaming operations with users nearby using gaming platforms | |
US11531685B2 (en) | Addressing data skew using map-reduce | |
CN113368506A (en) | Game team control method and device, electronic equipment and medium | |
CN117252968A (en) | Object display method and device, storage medium and intelligent glasses | |
Vigueras et al. | A scalable architecture for crowd simulation: Implementing a parallel action server | |
CN114470746A (en) | Server system, data transmission method, device, equipment and storage medium | |
US10220313B1 (en) | System and method for updating a game state in an online game | |
WO2024037156A1 (en) | Virtual consumable requesting and discarding method and apparatus, terminal, and storage medium | |
US20240149165A1 (en) | Optimized player positioning system in virtual experiences | |
US9445949B1 (en) | System and method for processing commands in an online game |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |