Game data processing method and device

文档序号:177560 发布日期:2021-11-02 浏览:41次 中文

阅读说明:本技术 一种游戏数据处理的方法和装置 (Game data processing method and device ) 是由 方嘉铭 于 2021-08-16 设计创作,主要内容包括:本发明实施例提供了一种游戏数据处理的方法和装置,方法包括:当检测到预设事件时,获取用户信息;用户信息包括上一次确定目标事件时,针对已完成的目标事件中排序最后的第一目标事件生成的历史事件签名;获取第一目标事件的当前事件签名;当历史事件签名与当前事件签名不一致时,从排序在第一目标事件之前的目标事件中,确定所增减的目标事件。通过本发明实施例,实现了在增减为游戏设定的目标事件后,高效的确定出了排序在前的目标事件中所增减的目标事件,避免了后续在确定用户所完成的目标事件时遗漏或多算的情况发生。(The embodiment of the invention provides a method and a device for processing game data, wherein the method comprises the following steps: when a preset event is detected, acquiring user information; the user information comprises a historical event signature generated by aiming at the first target event sequenced last in the finished target events when the target events are determined last time; acquiring a current event signature of a first target event; when the historical event signature is inconsistent with the current event signature, the increased or decreased target events are determined from the target events which are sequenced before the first target event. By the embodiment of the invention, the increased and decreased target events in the top-ranked target events can be efficiently determined after the target events set for the game are increased and decreased, and the condition that the target events finished by the user are omitted or calculated more in the follow-up process is avoided.)

1. A method for processing game data is characterized in that a game is provided with a plurality of target events, each target event is provided with an event completion value and an event signature, the target events are sorted according to the event completion value corresponding to each target event, the event signature is generated based on the target event corresponding to the event signature and other target events which are sorted in the front, and the method comprises the following steps:

when a preset event is detected, acquiring user information; the user information comprises a historical event signature generated aiming at the first target event sequenced last in the finished target events when the target events are determined last time;

acquiring a current event signature of the first target event;

determining an increased or decreased target event from the target events ordered before the first target event when the historical event signature is inconsistent with the current event signature.

2. The method of claim 1, wherein the user information further includes a second target event that has been previously completed, and wherein determining the increased or decreased target event from the target events that are ordered before the first target event comprises:

and determining the increased or decreased target event from the target events sequenced before the first target event according to the second target event.

3. The method of claim 1, wherein the user information further comprises a user completion value that the user has currently completed, the method further comprising:

when the user completion value is inconsistent with the event completion value of the first target event, determining a target interval according to the user completion value and the event completion value of the first target event;

and determining a newly finished target event according to the target interval.

4. The method of claim 3, wherein after determining a newly completed target event, the method further comprises:

determining a third target event ranked last in target events currently completed by a user, and determining a fourth target event ranked before the third target event;

and generating a historical event signature of the third target event according to the third target event and the fourth target event.

5. The method of claim 1, wherein the event signature is generated by:

setting a sequence number for each target event according to the sequence;

determining a sequence number of a fifth target event corresponding to the event signature and a sequence number of a sixth target event sequenced before the fifth target event;

and generating an event signature of the fifth target event according to the sequence number of the fifth target event and the sequence number of the sixth target event.

6. The method of claim 1, wherein the event signature is generated by:

determining an event completion value of a fifth target event corresponding to the event signature and an event completion value of a sixth target event sequenced before the fifth target event;

and generating an achievement signature of the fifth target event according to the event completion value of the fifth target event and the event completion value of the sixth target event.

7. The method of claim 1, wherein the preset event comprises any one or more of:

upgrading events, logging events, target event increase and decrease events.

8. An apparatus for processing game data, wherein a game is provided with a plurality of target events, each target event is provided with an event completion value and an event signature, the plurality of target events are sorted according to the size of the event completion value corresponding to each target event, and the event signature is generated based on the target event corresponding to the event signature and other target events sorted before, the apparatus comprising:

the user information acquisition module is used for acquiring user information when a user detects a preset event; the user information comprises a historical event signature generated aiming at the first target event sequenced last in the finished target events when the target events are determined last time;

a current event signature acquisition module, which is used for acquiring a current event signature of a first target event by a user;

and an increase/decrease event determination module configured to determine an increased/decreased target event from target events sorted before the first target event when the historical event signature is inconsistent with the current event signature.

9. An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing a method of game data processing according to any one of claims 1 to 7.

10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a method of game data processing according to any one of claims 1 to 7.

Technical Field

The present invention relates to the technical field of game data processing, and in particular, to a game data processing method and a game data processing device.

Background

In order to encourage users to actively explore various playing methods in the game and enrich the game experience of the users, different game achievements can be set in the game, and when the users finish a certain target value, the game achievements corresponding to the target value can be obtained; the game achievement can be displayed in the user information of the user, and corresponding rewards can be set for different game achievements, so that when the user obtains a certain game achievement, the rewards corresponding to the game achievement can be obtained.

In order to realize efficient search, the game achievements can be sorted according to the target values corresponding to the game achievements in advance, then when determining whether the user obtains the game achievements, the current completion value of the user and the sequence number of the game achievements which are obtained when the game achievements are determined last time can be determined, and then according to the current completion value of the user, the search is carried out from the sequence number backwards so as to determine the game achievements which are obtained by the user currently.

As games are continually developed and updated, game achievements may be added or subtracted, such as: four game achievements corresponding to the four target values of 1000, 1500, 2000 and 2500 are set for the game in advance, and along with the updating of the game, the game achievement with the target value of 1800 is newly added; if the user has obtained three game achievements corresponding to the three target values of 1000, 1500 and 2000 before the game is updated; if the game achievement currently obtained by the user is searched after the game is updated and the method for determining the game achievement is continuously adopted, only the game achievements ranked after the target value of 2000 are searched, which results in that the game achievement with the target value of 1800 is missed when the game achievement currently obtained by the user is determined.

Traversing all game achievements to avoid the above problems consumes a significant amount of resources and time.

Disclosure of Invention

In view of the above, it is proposed to provide a method and apparatus for game data processing that overcomes or at least partially solves the above problems, comprising:

a method for processing game data, wherein a game is provided with a plurality of target events, each target event is provided with an event completion value and an event signature, the target events are sorted according to the event completion value corresponding to each target event, and the event signature is generated based on the target event corresponding to the event signature and other previously-sorted target events, and the method comprises the following steps:

when a preset event is detected, acquiring user information; the user information comprises historical event signatures generated by aiming at the first target event sequenced last in the finished target events when the target events are determined last time;

acquiring a current event signature of a first target event;

when the historical event signature is inconsistent with the current event signature, the increased or decreased target events are determined from the target events which are sequenced before the first target event.

Optionally, the user information further includes a second target event that has been completed previously, and determining the increased or decreased target event from the target events ranked before the first target event includes:

and determining the increased or decreased target events from the target events which are sequenced before the first target event according to the second target event.

Optionally, the user information further includes a user completion value that the user has currently completed, and the method further includes:

when the user completion value is inconsistent with the event completion value of the first target event, determining a target interval according to the user completion value and the event completion value of the first target event;

and determining a newly completed target event according to the target interval.

Optionally, after determining the newly added target event, the method further includes:

determining a third target event ranked last in the target events currently completed by the user, and determining a fourth target event ranked before the third target event;

and generating a historical event signature of the third target event according to the third target event and the fourth target event.

Optionally, the event signature is generated by:

setting a sequence number for each target event according to the sequence;

determining a sequence number of a fifth target event corresponding to the event signature and a sequence number of a sixth target event sequenced before the fifth target event;

and generating an event signature of the fifth target event according to the sequence number of the fifth target event and the sequence number of the sixth target event.

Optionally, the event signature is generated by:

determining an event completion value of a fifth target event corresponding to the event signature and an event completion value of a sixth target event sequenced before the fifth target event;

and generating an achievement signature of the fifth target event according to the event completion value of the fifth target event and the event completion value of the sixth target event.

Optionally, the preset event comprises any one or more of:

upgrading events, logging events, target event increase and decrease events.

The embodiment of the invention also discloses a game data processing device, wherein the game is provided with a plurality of target events, each target event is provided with an event completion value and an event signature, the plurality of target events are sorted according to the event completion value corresponding to each target event, and the event signature is generated based on the target event corresponding to the event signature and other target events sorted in the front, and the device comprises:

the user information acquisition module is used for acquiring user information when a user detects a preset event; the user information comprises historical event signatures generated by aiming at the first target event sequenced last in the finished target events when the target events are determined last time;

a current event signature acquisition module, which is used for acquiring a current event signature of a first target event by a user;

and the increase and decrease event determining module is used for determining the increased and decreased target events from the target events which are sequenced before the first target event when the historical event signature is inconsistent with the current event signature.

Optionally, the user information further includes a second target event that has been previously completed,

and the increase and decrease event determining module is used for determining the increased and decreased target events from the target events which are sequenced before the first target event according to the second target event.

Optionally, the user information further includes a user completion value currently completed by the user, and the apparatus further includes:

a new completion event determining module, configured to determine a target interval according to the user completion value and the event completion value of the first target event when the user completion value is inconsistent with the event completion value of the first target event; and determining a newly completed target event according to the target interval.

Optionally, the apparatus further comprises:

the historical signature determining module is used for determining a third target event sequenced last in the target events currently completed by the user and determining a fourth target event sequenced before the third target event after determining the newly completed target event; and generating a historical event signature of the third target event according to the third target event and the fourth target event.

Optionally, the apparatus further comprises:

the first signature generation module is used for setting a sequence number for each target event according to the sequence; determining a sequence number of a fifth target event corresponding to the event signature and a sequence number of a sixth target event sequenced before the fifth target event; and generating an event signature of the fifth target event according to the sequence number of the fifth target event and the sequence number of the sixth target event.

Optionally, the apparatus further comprises:

the second signature generation module is used for determining an event completion value of a fifth target event corresponding to the event signature and an event completion value of a sixth target event sequenced before the fifth target event;

and generating an achievement signature of the fifth target event according to the event completion value of the fifth target event and the event completion value of the sixth target event.

Optionally, the preset event comprises any one or more of:

upgrading events, logging events, target event increase and decrease events.

The embodiment of the invention also discloses electronic equipment which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the computer program realizes the game data processing method when being executed by the processor.

The embodiment of the invention also discloses a computer readable storage medium, a computer program is stored on the computer readable storage medium, and the method for processing the game data is realized when the computer program is executed by the processor.

The embodiment of the invention has the following advantages:

in the embodiment of the invention, a game is provided with a plurality of target events, each target event is provided with an event completion value and an event signature, the target events are sorted according to the event completion value corresponding to each target event, and the event signature is generated based on the target event corresponding to the event signature and other target events sorted in the front; when a preset event is detected, acquiring user information; the user information comprises a historical event signature generated by aiming at the first target event sequenced last in the finished target events when the target events are determined last time; acquiring a current event signature of a first target event; when the historical event signature is inconsistent with the current event signature, the increased or decreased target events are determined from the target events which are sequenced before the first target event. By the embodiment of the invention, the increased and decreased target events in the top-ranked target events can be efficiently determined after the target events set for the game are increased and decreased, and the condition that the target events finished by the user are omitted or calculated more in the follow-up process is avoided.

Drawings

In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.

FIG. 1 is a flow chart of steps of a method of game data processing according to an embodiment of the present invention;

FIG. 2 is a flow chart of steps of another method of game data processing according to an embodiment of the present invention;

FIG. 3 is a flow chart of steps of a method of further game data processing according to an embodiment of the present invention;

fig. 4 is a block diagram of a game data processing device according to an embodiment of the present invention.

Detailed Description

In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, a flowchart illustrating steps of a method for processing game data according to an embodiment of the present invention is shown, where a game is provided with a plurality of target events, each target event is provided with an event completion value and an event signature, the plurality of target events are sorted according to the event completion value corresponding to each target event, and the event signature is generated based on the target event corresponding to the event signature and other target events sorted in the top;

specifically, the method may include the steps of:

step 101, acquiring user information when a preset event is detected; the user information comprises historical event signatures generated by aiming at the first target event sequenced last in the finished target events when the target events are determined last time;

as an example, the preset event may include any one or more of: upgrading events, logging events, target event increase and decrease events.

Wherein, an upgrade event may refer to an account level of a user being upgraded, for example: from stage 49 to stage 50; a login event may refer to a user logging in to a game; the target event increase or decrease event may refer to an increase or decrease of a target event set for the game, and the target event may refer to a game achievement set for the game in advance.

In game design, an event completion value may be set in advance for each target event, for example: if the target event is 'cumulative login for 5 days', the correspondingly set event completion value is '5'; if the target event is '1000 coins have been obtained', the corresponding set event completion value is '1000'; if the target event is "clearance time is 15 seconds", the correspondingly set event completion value is "15". When the user completes the event completion value, it may indicate that the user completes the target event corresponding to the event completion value.

The plurality of target events set for the game can be sorted from large to small or from small to large according to the size of the event completion value corresponding to each target event; the specific setting may be according to the type of the target event, for example: when the type of the target event is the accumulated login days, the target event can be sorted from small to large according to the event completion value, and when the type of the target event is the clearance time, the target event can be sorted from large to small according to the event completion value.

In the sorting, a sequence number may also be set for each target event, which is not limited in this embodiment of the present invention.

In an example, a table of correspondence relationships may be set for the relationship between the sequence number, the target event, the type of target event, and the event completion value, as in table 1:

serial number Target event Type of target event Event completion value
1001 Cumulative login for 1 day Cumulative number of days logged in 1
1002 Cumulative login for 2 days Cumulative number of days logged in 2
2001 Accumulated gold coin 1000 Accumulated gold coin number 1000
2002 Accumulated acquisition of gold coin 2000 Accumulated gold coin number 2000

The target events may be continually increased or decreased as the game is updated, for example: the target events previously set for the game are: A. b, C, D, E, adding F and G between B and C at game update, the target events set for the game after update will become: A. b, F, G, C, D, E are provided. Another example is: if the target event set for the game was A, B, C, D, E before and B was deleted at the time of game update, then the target event set for the game after update would become: A. c, D, E are provided.

In one example, as the target events increase or decrease, changes in the ordering and sequence number of the target events may result.

In addition, an event signature may be set for each target event, and the event signature may be generated according to the target event corresponding to the event signature and other target events ordered before the target event, for example: the game is provided with target events: A. b, C, D, E, the event signature for target event D is generated based on target event D and A, B, C, which is ordered before target event D.

In an embodiment of the present invention, the event signature may be generated by the following sub-steps:

substep 11, setting a sequence number for each target event according to the sequence;

when sorting is performed according to the size of the event completion value corresponding to each target event, a sequence number may be set for each target event according to the sorting order, for example: with the ordering of A, B, C, a sequence number 1001 may be set for target event A, a sequence number 1002 may be set for target event B, and a sequence number 1003 may be set for target event C.

Substep 12, determining a sequence number of a fifth target event corresponding to the event signature and a sequence number of a sixth target event sequenced before the fifth target event;

as an example, the fifth target event may refer to a target event for which an event signature is to be generated, and the sixth target event may refer to a plurality of target events that are ordered before the fifth target event when the event signature is generated.

When generating the event signature of the fifth target event, the sequence number of the fifth target event and the sequence number of the sixth target event may be determined first.

In an example, the sequence number of the fifth target event and the sequence number of the sixth target event may change as the target events are increased or decreased, for example: the sequence number of the fifth target event is 1004, and the sequence numbers of the sixth target event are 1001, 1002, and 1003, and when one target event is added before the sequence number 1004, the sequence number of the fifth target event becomes 1005, and the sequence number of the sixth target event becomes 1001, 1002, 1003, and 1004.

And a substep 13 of generating an event signature of the fifth target event according to the sequence number of the fifth target event and the sequence number of the sixth target event.

Then, an event signature of the fifth target event may be generated according to the sequence number of the fifth target event and the sequence number of the sixth target event, for example: if the sequence number of the fifth target event is 1004 and the sequence number of the sixth target event is 1001, 1002 and 1003, the sequence number of the fifth target event and the sequence number of the sixth target event may be concatenated into a string 1001|1002|1003|1004 by a separator of a vertical line, and then the signature operation of MD5(MD5 Message-Digest Algorithm, MD5 information Digest Algorithm) is performed on the string, so as to obtain an event signature of the fifth target event.

In an example, a table may be set for the correspondence between the sequence numbers of the fifth and sixth target events, the event completion value, and the event signature, as in table 2:

event completion value Serial number Event signatures
1000 1001 b8c37e33defde51cf91e1e03e51657da
2000 1001,1002 d9fa55e21917462ddf434bcf38957f1e
3000 1001,1002,1003 4039390a32bf5e2039dae0e9c4700a03
4000 1001,1002,1003,1004 1265e29daf68a9ac5e8038e93ab81b1c
5000 1001,1002,1003,1004,1005 845a88457579f37bc2e758483e72e2d9

In another embodiment of the present invention, the event signature may also be generated by the following sub-steps:

a substep 21, determining an event completion value of a fifth target event corresponding to the event signature, and determining an event completion value of a sixth target event sequenced before the fifth target event;

when generating the event signature, the event signature may also be generated according to the event completion value of the target event, specifically, the event completion value corresponding to the fifth target event and the event completion value corresponding to the sixth target event may be determined first.

And a substep 22 of generating an achievement signature of the fifth target event based on the event completion value of the fifth target event and the event completion value of the sixth target event.

Then, an event signature of the fifth target event may be generated according to the event completion value of the fifth target event and the event completion value of the sixth target event.

Since the event signature is generated based on the target event corresponding to the event signature and other target events ranked in the top, when the target event set for the game increases or decreases, the event signature may also change along with the increase or decrease of the target event; therefore, when the target event completed by the user needs to be determined, whether other target events sequenced before the target event corresponding to the event signature are increased or decreased can be judged according to whether the event signature is changed.

When the occurrence of a preset event is detected, the method can indicate that which target events are currently completed by a user need to be determined; at this time, a plurality of target events completed by the user when the target event is determined last time may be obtained first, then the first target event ranked last is determined from the target events according to the ranking of the target events, and a historical event signature generated for the first target event when the target event is determined last time is obtained; the historical event signature was generated based on the first target event and other target events then sequenced prior to the first target when the target event was last determined.

102, acquiring a current event signature of a first target event;

as an example, the current event signature may refer to an event signature generated based on other events that are ordered before the first target event and the first target event among a plurality of target events currently set for the game.

With the continuous updating of the game, the target event set for the game at present may be increased or decreased compared with the target event set for the game when the target event was determined last time; to determine whether a target event currently set for the game and ranked before the first target event is increased or decreased, a current event signature of the first target event may be obtained.

By comparing the historical event signature and the current event signature of the first target event, it can be known whether the target event currently ranked before the first target event is increased or decreased compared to the target event ranked before the first target when the target event was last determined.

And 103, when the historical event signature is inconsistent with the current event signature, determining the increased or decreased target events from the target events which are sequenced before the first target event.

As an example, the increased or decreased target events may refer to target events currently ranked before the first target event, added or removed target events compared to target events ranked before the first target event when the target events were last determined.

When the historical event signature of the first target event is inconsistent with the current event signature of the first target event, the historical event signature of the first target event may represent that the target event currently ranked before the first target event is increased or decreased compared to the target event ranked before the first target event when the target event was last determined; at this point, all target events currently ordered before the first target event may be traversed to determine the increased or decreased target events.

In order to improve the efficiency of determining the increased or decreased target events, an ordered structure may be generated according to the event completion values of all target events, and specifically, a balanced tree (e.g., a red-black tree) may be used for implementation; when the increased and decreased target events are determined, binary search can be adopted to query the part corresponding to the ordered structure, so that the increased and decreased target events can be quickly searched. Of course, it is also possible to set a sequence number for each target event according to the sequence, and then generate the ordered structure according to the sequence numbers of all target events.

In an example, after determining the increased or decreased target events, the determined increased target events may be added to the target events that have been currently completed by the user and the determined decreased target events may be deleted from the target events that have been currently completed by the user.

In the embodiment of the invention, a game is provided with a plurality of target events, each target event is provided with an event completion value and an event signature, the target events are sorted according to the event completion value corresponding to each target event, and the event signature is generated based on the target event corresponding to the event signature and other target events sorted in the front; when a preset event is detected, acquiring user information; the user information comprises a historical event signature generated by aiming at the first target event sequenced last in the finished target events when the target events are determined last time; acquiring a current event signature of a first target event; when the historical event signature is inconsistent with the current event signature, the increased or decreased target events are determined from the target events which are sequenced before the first target event. By the embodiment of the invention, the increased and decreased target events in the top-ranked target events can be efficiently determined after the target events set for the game are increased and decreased, and the condition that the target events finished by the user are omitted or calculated more in the follow-up process is avoided.

Referring to fig. 2, a flowchart illustrating steps of another game data processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:

step 201, when a preset event is detected, obtaining user information, wherein the user information further comprises a second target event which is completed in advance;

as an example, the second target event may refer to all target events that were completed by the determined user at the time when the target event was last determined.

When the occurrence of a preset event is detected, the method can indicate that which target events are currently completed by a user need to be determined; at this time, the historical event signature of the first target event and the second target event may be acquired first.

Step 202, acquiring a current event signature of a first target event;

after the historical event signature of the target event of the first event and the second target event are acquired, the current event signature of the first target event can be acquired again so as to judge whether the target event which is set for the game at present and is ranked before the first target event is increased or decreased compared with the target event which is ranked before the first target event when the target event is determined last time.

And step 203, when the historical event signature is not consistent with the current event signature, determining the increased or decreased target events from the target events sequenced before the first target event according to the second target event.

When the historical event signature of the first target event is inconsistent with the current event signature of the first target event, the historical event signature of the first target event may represent that the target event currently ranked before the first target event is increased or decreased compared to the target event ranked before the first target event when the target event was last determined; at this time, other target events currently ranked before the first target event may be determined.

Then, other target events which are currently sequenced before the first target event are compared with the second target event, and the increased or decreased target event is determined.

For example: the other target events currently ordered before the first target event are: A. b, D, E, respectively; the second target event is A, B, C, D, E, and the comparison shows that the target event C is reduced from other target events which are currently sequenced before the first target event; in this case, the target event C may be an increased or decreased target event.

In an example, after the increased or decreased target events are determined, the target events completed by the user may be updated according to the increased or decreased target events to obtain an accurate list of target events completed by the user.

In the embodiment of the invention, when the preset event is detected, user information is acquired, and the user information also comprises a second target event which is completed in advance; acquiring a current event signature of a first target event; and when the historical event signature is inconsistent with the current event signature, determining the increased or decreased target events from the target events which are sequenced before the first target event according to the second target event. By the embodiment of the invention, when the target events set for the game are increased or decreased, the increased or decreased target events in the target events ranked in the front can be determined efficiently, so that the target events completed by the user can be updated according to the increased or decreased target events in the following, and the condition of missing or excessive target events is avoided.

Referring to fig. 3, a flowchart illustrating steps of another method for processing game data according to an embodiment of the present invention is shown, which may specifically include the following steps:

step 301, when a preset event is detected, obtaining user information, wherein the user information further comprises a user completion value which is completed by a user currently;

as an example, the user completion value may pointer a value to which the user has currently completed, such as: and if the user has logged in for 100 days continuously at present, the corresponding user completion value is 100.

When the occurrence of a preset event is detected, the method can indicate that which target events are currently completed by a user need to be determined; at this time, the historical event signature and the user completion value of the first target event may be obtained first.

Step 302, acquiring a current event signature of a first target event;

after the historical event signature and the user completion value of the target event of the first event are acquired, the current event signature of the first target event can be acquired again so as to judge whether the target event which is set for the game at present and is ranked before the first target event is increased or decreased compared with the target event which is ranked before the first target event when the target event is determined last time.

Step 303, when the historical event signature is inconsistent with the current event signature, determining increased or decreased target events from the target events sequenced before the first target event;

when the historical event signature of the first target event is inconsistent with the current event signature of the first target event, the historical event signature of the first target event may represent that the target event currently ranked before the first target event is increased or decreased compared to the target event ranked before the first target event when the target event was last determined; at this time, all target events currently sorted before the first target event may be traversed to determine the target event currently sorted before the first target event, increased or decreased compared to the target event sorted before the first target event when the target event was last determined.

Step 304, when the user completion value is inconsistent with the event completion value of the first target event, determining a target interval according to the user completion value and the event completion value of the first target event;

on the other hand, whether the user completes the target event ordered after the first target event can be judged by judging whether the user completion value is consistent with the event completion value of the first target event; when inconsistent, it may indicate that the user may have completed the target event ordered after the first target event.

When the user completion value is consistent with the event completion value of the first target event, it may indicate that the user has not completed sorting in other target events after the first target event; in this case, the target event that the user has completed may be updated only based on the determined increased or decreased target event.

In an example, when the ordering for the target event is performed from small to large according to the event completion value, whether the user completion value is greater than the event completion value of the first target event may be determined; whether the user may complete other target events after the first target event is judged, and when the user completion value is greater than the event completion value of the first target event, it may indicate that the user may complete the target events after the first target event.

As another example, when the ordering for the target event is performed from large to small according to the event completion value, it may be determined whether the user completion value is smaller than the event completion value of the first target event; whether the user may complete other target events after the first target event is judged, and when the user completion value is smaller than the event completion value of the first target event, it may indicate that the user may complete other target events after the first target event.

Step 305, determining a newly completed target event according to the target interval.

As an example, a newly completed target event may refer to a target event completed by a user that is ordered after a first target event.

After the target section is determined, a newly completed target event may be determined from a plurality of target events currently set for the game according to the range of the target section, for example: the target interval is (1200, 1500), the event completion values corresponding to the plurality of target events currently set for the game are respectively 1000, 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, and the target events corresponding to 1300, 1400, 1500 among them can be determined as newly completed target events.

In an embodiment of the present invention, after determining a newly completed target event, the method may further include the following steps:

determining a third target event ranked last in the target events currently completed by the user, and determining a fourth target event ranked before the third target event; and generating a historical event signature of the third target event according to the third target event and the fourth target event.

After determining a newly completed target event, a third target event sequenced last may be determined from a plurality of target events currently completed by the user; a fourth target event, currently set for the game, ordered before the third target event is then determined.

Then, a historical event signature of the third target event can be generated according to the third target event and the fourth target event, so that when the target event is determined next time, the historical event signature can be used as the historical event signature of the first target event to judge whether the top-ranked target events are increased or decreased.

In the embodiment of the invention, when a preset event is detected, user information is obtained, and the user information also comprises a user completion value which is completed by a user currently; acquiring a current event signature of a first target event; when the historical event signature is inconsistent with the current event signature, determining increased or decreased target events from the target events sequenced before the first target event; when the user completion value is inconsistent with the event completion value of the first target event, determining a target interval according to the user completion value and the event completion value of the first target event; and determining a newly completed target event according to the target interval. By the embodiment of the invention, the increased and decreased target events in the target events ranked in the front can be efficiently determined when the target events set for the game are increased or decreased, the target events newly completed by the user in the target events ranked in the back can be accurately determined, and the accuracy of determining the target events completed by the user is improved.

It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.

Referring to fig. 4, a schematic structural diagram of an apparatus for processing game data according to an embodiment of the present invention is shown, where a game is provided with a plurality of target events, each target event is provided with an event completion value and an event signature, the plurality of target events are sorted according to the size of the event completion value corresponding to each target event, and the event signature is generated based on the target event corresponding to the event signature and other target events sorted in the top;

specifically, the following modules may be included:

a user information obtaining module 401, configured to obtain user information when a user detects a preset event; the user information comprises historical event signatures generated by aiming at the first target event sequenced last in the finished target events when the target events are determined last time;

a current event signature obtaining module 402, where a user obtains a current event signature of a first target event;

an increase/decrease event determination module 403, configured to determine an increased/decreased target event from target events ranked before the first target event when the historical event signature is inconsistent with the current event signature.

In a preferred embodiment of the present invention, the user information further comprises a second target event that has been previously completed,

an increase/decrease event determination module 403, configured to determine, according to the second target event, an increased/decreased target event from the target events that are sorted before the first target event.

In a preferred embodiment of the present invention, the user information further includes a user completion value that the user has currently completed, and the apparatus further includes:

a new completion event determining module, configured to determine a target interval according to the user completion value and the event completion value of the first target event when the user completion value is inconsistent with the event completion value of the first target event; and determining a newly completed target event according to the target interval.

In a preferred embodiment of the embodiments of the present invention, the apparatus further comprises:

the historical signature determining module is used for determining a third target event sequenced last in the target events currently completed by the user and determining a fourth target event sequenced before the third target event after determining the newly completed target event; and generating a historical event signature of the third target event according to the third target event and the fourth target event.

In a preferred embodiment of the embodiments of the present invention, the apparatus further comprises:

the first signature generation module is used for setting a sequence number for each target event according to the sequence; determining a sequence number of a fifth target event corresponding to the event signature and a sequence number of a sixth target event sequenced before the fifth target event; and generating an event signature of the fifth target event according to the sequence number of the fifth target event and the sequence number of the sixth target event.

In a preferred embodiment of the embodiments of the present invention, the apparatus further comprises:

the second signature generation module is used for determining an event completion value of a fifth target event corresponding to the event signature and an event completion value of a sixth target event sequenced before the fifth target event;

and generating an achievement signature of the fifth target event according to the event completion value of the fifth target event and the event completion value of the sixth target event.

In a preferred embodiment of the present invention, the preset event comprises any one or more of:

upgrading events, logging events, target event increase and decrease events.

In the embodiment of the invention, a game is provided with a plurality of target events, each target event is provided with an event completion value and an event signature, the target events are sorted according to the event completion value corresponding to each target event, and the event signature is generated based on the target event corresponding to the event signature and other target events sorted in the front; when a preset event is detected, acquiring user information; the user information comprises a historical event signature generated by aiming at the first target event sequenced last in the finished target events when the target events are determined last time; acquiring a current event signature of a first target event; when the historical event signature is inconsistent with the current event signature, the increased or decreased target events are determined from the target events which are sequenced before the first target event. By the embodiment of the invention, the increased and decreased target events in the top-ranked target events can be efficiently determined after the target events set for the game are increased and decreased, and the condition that the target events finished by the user are omitted or calculated more in the follow-up process is avoided.

The embodiment of the invention also provides electronic equipment which can comprise a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the method for processing the game data is realized.

The embodiment of the invention also provides a computer readable storage medium, a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to realize the game data processing method.

For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.

The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.

The method for processing game data and the device for processing game data are introduced in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the above examples is only used for helping understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:游戏中账号的等级确定方法、装置及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类