CN101788909A - Solving method and device of network game server end walking system - Google Patents
Solving method and device of network game server end walking system Download PDFInfo
- Publication number
- CN101788909A CN101788909A CN201010102654A CN201010102654A CN101788909A CN 101788909 A CN101788909 A CN 101788909A CN 201010102654 A CN201010102654 A CN 201010102654A CN 201010102654 A CN201010102654 A CN 201010102654A CN 101788909 A CN101788909 A CN 101788909A
- Authority
- CN
- China
- Prior art keywords
- instruction
- walking
- command reception
- function
- 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.)
- Granted
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a solving method and a device of a network game server end walking system. The solving method of the network game server end walking system comprises the following steps: determining the instruction validity through an instruction identification link; invoking relevant functions according to the instruction content and the transmitted data for completing the instruction processing; and reaching the goal of reducing data packs used for feedback through a result responding algorithm. Thereby, the processing pressure of the server is small, the network occupation is little, and the experience effect of a player is good.
Description
Technical field
The embodiment of the invention relates to the algorithm design field of network game on line, particularly a kind of solution of network game server end walking system and device.
Background technology
In the online online games of the many people of role playing class (MMORPG), walking is one of basic functions.Because player's walking need possess continuity, client need constantly send the real-time parameter that the player walks and moves to server end, can be implemented at server end normally so that guarantee player's action.Simultaneously, for client can be timely passes to the player with the realization result of server, the result of server end after must the realization of notice client after the walking instruction is implemented.
Because a large amount of player's simultaneous gaming of the required carrying of server, and exercises instruction and server send its frequent data item that response brought of making in the recreation, can in a large amount of players, bring extremely huge network traffics under the effect, even exceed the load-bearing capacity of server hardware.With regard to present studies show that, be used for the server that network game server end is supported, its network interface card load-bearing capacity is the bottleneck of limiting server load-bearing capacity often.When network interface card reached running at full capacity, the CPU of server and the occupancy of internal memory only can reach the upper limit 10% ~ 20%.Therefore, any optimization of carrying out for network service and algorithm all can be significantly for operator brings saving on the cost, and as in the recreation the walking instruction of frequent appearance be undoubtedly best optimization point.
Summary of the invention
The embodiment of the invention provides a kind of solution and device of network game server end walking system, to improve the actual processing effect of server, alleviates the network pressure of server.
In order to achieve the above object, the embodiment of the invention provides a kind of solution of network game server end walking system, comprising:
Command reception is by instructing the evaluation link to determine the legitimacy of instruction;
Instruction process according to the content of instruction and the data call action prediction algorithmic function and the time-delay detection algorithm function of transmission, is finished the processing of instruction;
Command reception confirms, realizes the confirmation of receipt of instructing by response algorithm function as a result.
Wherein action prediction algorithmic function and time-delay detection algorithm function make a walking treatment scheme can handle the once continual command of walking;
Wherein as a result the response algorithm function with command reception to the effect data of answer data and instruction after carrying out integrate.
The embodiment of the invention also provides a kind of solving device of network game server end walking system on the other hand, comprising:
The command reception module is used for by instructing the evaluation module to determine the legitimacy of instruction;
Command process module is used for finishing the processing of instruction according to the content of instruction and the data call action prediction algorithmic function and the time-delay detection algorithm function of transmission;
Command reception is confirmed module, is used for realizing the confirmation of receipt of instructing by response algorithm function as a result.
Wherein, described command process module specifically is used for making a walking treatment scheme can handle the once continual command of walking according to action prediction algorithm and time-delay detection algorithm;
Wherein, described command reception module, specifically be used for by response algorithm function as a result with command reception to the effect data of answer data and instruction after carrying out integrate the back and send.
Compared with prior art, the embodiment of the invention has the following advantages: the embodiment of the invention, reach the effect that original continuation instruction is become the discontinuity instruction by the action prediction algorithm, reach the network-adaptive of running gear under the discontinuity order set by the time-delay detection algorithm, reach by response algorithm as a result and to reduce the purpose of feedback with packet, make server process pressure little, network takies few, and player's experience effect is good.
Description of drawings
Fig. 1 is the process flow diagram of the whole process of the embodiment of the invention;
Fig. 2 is the process flow diagram in embodiment of the invention command reception stage;
Fig. 3 is the process flow diagram in embodiment of the invention instruction process stage;
Fig. 4 is the process flow diagram of embodiment of the invention instruction verification;
The process flow diagram that Fig. 5 recognized for the true stage of embodiment of the invention command reception;
Fig. 6 is the process flow diagram of embodiment of the invention device.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is carried out clear, complete description, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to scope of the present invention not making the every other embodiment that is obtained under the creative work prerequisite.
The invention provides a kind of solution and device of network game server end walking system.For network game server end walking system, in the prior art, the processing of each bar walking instruction all will be opened a new walking flow process and be handled, in the present embodiment, the walking flow process is opened according to " once walking ", and by algorithm to the instruction and mobile verification be optimized, specifically may further comprise the steps:
As shown in Figure 1, the process flow diagram for the whole process of the embodiment of the invention specifically comprises:
As described in Figure 2, the process flow diagram for the embodiment of the invention command reception stage specifically comprises:
Flow process is identified in above-mentioned instruction, the user end to server end sends walking director data bag, receiver module is resolved and sent to server-side system to the packet that obtains, receiver module resolves and analyzes the legitimacy of data to data, be sent to the user instruction interface then, the user instruction interface being sent to parameter walking instruction intrinsic function interface at last to the legitimacy of packet parsing and analysis data structure and parameter.
As shown in Figure 3, the process flow diagram for the embodiment of the invention instruction process stage specifically comprises:
(1) when the player is in halted state, function can start player's walking circulation process, realizes player's walking action;
(2) when the player is in walking states, function can be checked the compatibility of present instruction and predict command to the walking circulation process, if conform to, then continues this circulation; If be not inconsistent, then stop this circulation, and use new order parameter to restart the walking circulation.
What wherein, predict command referred to is exactly the action prediction algorithm.As player during at walking states, allow server end before not receiving the continuation movement instruction that client sends, continue to allow the player advance, and it is operated as processing instruction in that instruction is actual when obtaining along existing direction and speed.
Wherein, time-delay detects according to the time-delay detection algorithm and realizes.After an action prediction was performed, whether the prediction that we can detect this instruction was correct, if in time-delay detection time, find instruction or find instruction and require differently, then stop at once moving, thus the error result that corrective action is predicted.Walk action at once and send, and the action that stops to walk is self-executing by instruction.
Concrete, the method for instruction verification is divided into single step verification and historical verification two parts:
As shown in Figure 4, be the process flow diagram of embodiment of the invention instruction verification.
Step 401, the single step verification: the verification module will be compared with last data available data, and judges following condition:
(1) under the situation of continuous trigger, direction of travel is identical;
(2) position is adjacent;
(3) receive the interval in the moment with last the moment of instruction, and the deviation in the theoretical time interval between the instruction of continuous walking, with interior (such as [± 100ms]), think that then verification passes through at zone of reasonableness.Otherwise think and do not pass through.
If above-mentioned (1) condition is set up, and the time interval deviation in (3) surpassed a certain comparatively ideal limit (such as ± [50ms, 100ms]), then think to have occurred bad data one time, and occurrence number added up, be used for historical verification.Simultaneously, converting obtains this instantaneous velocity constantly, and record is in order to historical checking procedure examination.
Step 402, historical verification:
Speed is checked: detect the speed of travel this moment, if speed greater than ideal value to a certain degree (as X=10%), then can not be by historical verification.The method of detection speed is:
Method 1: will work as secondary data and the n time data comparison before, and liken to when running to this position deviation and the time interval and the average velocity of this section distance of walking.
Method 2: the each point instantaneous velocity that the single step verification in nearly n step is preserved is averaged, as the average velocity of this section of walking distance.
How much and dynamically above-mentioned X value can be adjusted according to nearly n produces bad data in the step number of times.
Pass through inspection: only do not satisfy in single step verification condition (2), when promptly instruction message is lost, and if only if with raise instruction differ 3 lattice with interior situation under, just pass through inspection.Otherwise can not pass through, and directly be withdrawn into position up-to-date in the historical data.
In the middle of secondary data two positions corresponding,, then check and pass through if there is not the block obstacle with latest position data in the historical data.Otherwise can not pass through.
Pass through the speed inspection and passed through the data of inspection, can be by historical verification.
Action prediction algorithmic function and time-delay detection algorithm function make a walking treatment scheme can handle the once continual command of walking jointly on the whole.
As shown in Figure 5, the process flow diagram for the true stage of command reception of the present invention recognizes specifically comprises:
Wherein, integrate command reception to answer data and the effect data of instruction after carrying out realize by response algorithm as a result.
Step 502 sends to server with the data after integrating.
Above-mentioned command reception is confirmed flow process, with command reception to answer data and the effect data of instruction after carrying out integrate the back and send, by integration to two data, the data packet number that makes server send reduces, thereby alleviated the network traffics burden of server, reduced the influence that network delay is experienced for the player to a great extent.
As shown in Figure 6, the process flow diagram for embodiment of the invention device specifically comprises:
Command reception module 601 is used for identifying definite legitimacy of instructing by instruction;
Command process module 602 is used for finishing the processing of instruction according to the content of instruction and the data call action prediction algorithmic function and the time-delay detection algorithm function of transmission;
Command reception is confirmed module 603, is used for realizing the confirmation of receipt of instructing by response algorithm function as a result.
Wherein, command process module 602 specifically is used for making a walking treatment scheme can handle the once continual command of walking according to action prediction algorithmic function and time-delay detection algorithm function.
Wherein, command reception is confirmed module 603, specifically be used for by response algorithm function as a result with command reception to the effect data of answer data and instruction after carrying out integrate the back and send.
In the foregoing description, the user end to server end sends packet, and data receive and identify its legitimacy by server end command reception module 601; If legal then instruction is sent to command process module 602, finish processing to instruction by action prediction algorithmic function and time-delay detection algorithm function; Instruction after will handling at last sends to command reception and confirms module 603, by response algorithm function as a result with command reception to the effect data of answer data and instruction after carrying out integrate the back and send, finish the treatment scheme of once walking.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.
Claims (6)
1. the solution of a network game server end walking system is characterized in that, comprising:
Command reception is by instructing the evaluation link to determine the legitimacy of instruction;
Instruction process according to the content of instruction and the data call action prediction algorithmic function and the time-delay detection algorithm function of transmission, is finished the processing of instruction;
Command reception confirms, realizes the confirmation of receipt of instructing by response algorithm function as a result.
2. the solution of running gear according to claim 1 is characterized in that, action prediction algorithmic function and time-delay detection algorithm function make a walking treatment scheme can handle the once continual command of walking.
3. the solution of running gear according to claim 1 is characterized in that, as a result the response algorithm function with command reception to the effect data of answer data and instruction after carrying out integrate.
4. the solving device of an online game game server end running gear is characterized in that, comprising:
The command reception module is used for identifying definite legitimacy of instructing by instruction;
Command process module is used for finishing the processing of instruction according to the content of instruction and the data call action prediction algorithmic function and the time-delay detection algorithm function of transmission;
Command reception is confirmed module, is used for realizing the confirmation of receipt of instructing by response algorithm function as a result.
5. as the solving device of running gear as described in the claim 4, it is characterized in that described command process module specifically is used for making a walking treatment scheme can handle the once continual command of walking according to action prediction algorithm and time-delay detection algorithm.
6. as the solving device of running gear as described in the claim 4, it is characterized in that, described command reception module, specifically be used for by response algorithm function as a result with command reception to the effect data of answer data and instruction after carrying out integrate the back and send.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010102654 CN101788909B (en) | 2010-01-28 | 2010-01-28 | Solving method and device of network game server end walking system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010102654 CN101788909B (en) | 2010-01-28 | 2010-01-28 | Solving method and device of network game server end walking system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101788909A true CN101788909A (en) | 2010-07-28 |
CN101788909B CN101788909B (en) | 2012-12-05 |
Family
ID=42532132
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010102654 Expired - Fee Related CN101788909B (en) | 2010-01-28 | 2010-01-28 | Solving method and device of network game server end walking system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101788909B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102843334A (en) * | 2011-06-20 | 2012-12-26 | 华为技术有限公司 | Interactive method of online application, server, client device and system |
CN104932872A (en) * | 2014-03-18 | 2015-09-23 | 腾讯科技(深圳)有限公司 | Message processing method and server |
CN109939442A (en) * | 2019-03-15 | 2019-06-28 | 深圳市腾讯信息技术有限公司 | Using character location abnormality recognition method, device, electronic equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09173638A (en) * | 1995-12-25 | 1997-07-08 | Hudson Soft Co Ltd | Method for activating derivative scenario by relative time |
US7636917B2 (en) * | 2003-06-30 | 2009-12-22 | Microsoft Corporation | Network load balancing with host status information |
-
2010
- 2010-01-28 CN CN 201010102654 patent/CN101788909B/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102843334A (en) * | 2011-06-20 | 2012-12-26 | 华为技术有限公司 | Interactive method of online application, server, client device and system |
CN104932872A (en) * | 2014-03-18 | 2015-09-23 | 腾讯科技(深圳)有限公司 | Message processing method and server |
WO2015139671A1 (en) * | 2014-03-18 | 2015-09-24 | Tencent Technology (Shenzhen) Company Limited | Message processing method and terminal device |
US10376796B2 (en) | 2014-03-18 | 2019-08-13 | Tencent Technology (Shenzhen) Company Limited | Message processing method and terminal device |
CN109939442A (en) * | 2019-03-15 | 2019-06-28 | 深圳市腾讯信息技术有限公司 | Using character location abnormality recognition method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101788909B (en) | 2012-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10216183B2 (en) | 3D intelligent scheduling method based on logistics simulation software | |
CN101788909B (en) | Solving method and device of network game server end walking system | |
JP7234440B2 (en) | Online game synchronization method, online game synchronization system, server, and online game synchronization program | |
CN103281360B (en) | The instant communication method of concrete vibrating quality monitoring data | |
CN100589499C (en) | Method for shifting roles in netowrk games | |
CN107104897B (en) | Data transmission method and system based on path | |
WO2013074635A3 (en) | Remote control of dialysis machines | |
CN106527339A (en) | Highly-reliable beneficiation equipment fault diagnosis system and method based on industrial cloud | |
WO2008092777B1 (en) | Method and system for establishing a logical path between servers in a coordinated timing network | |
CN106296394B (en) | Financial product over-the-counter trading method and system | |
WO2012145231A1 (en) | Method and apparatus for use in preserving a game state | |
CN105610919B (en) | Data transmission method, apparatus and system | |
US9350803B2 (en) | Information management method and device | |
CN108600315A (en) | Block chain route processing method, device and storage medium | |
CA2583927A1 (en) | Arranging data transfer for mobile mine device | |
CN109095297A (en) | Boarding method, smart machine and cloud server | |
WO2023005632A1 (en) | Game offline processing method and apparatus, and storage medium and electronic device | |
CN108261762B (en) | Method of data synchronization and device, storage medium and electronic device | |
CN111064552A (en) | Intelligent device control method and device, electronic device and storage medium | |
CN205874759U (en) | Self -service laundry machine control system based on wireless communication network | |
CN105471911A (en) | Method and system for enhancing stability of network hand-tour game | |
CN102882890B (en) | The method of adjustment and equipment of quality of service policy | |
US8694643B2 (en) | Contents delivery system, a contents delivery method, and a program for contents delivery | |
WO2014040535A1 (en) | Information management method and device | |
CN106570975B (en) | The acquisition methods and device of service evaluation |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20121205 Termination date: 20150128 |
|
EXPY | Termination of patent right or utility model |