Interaction data processing method and apparatus, server, and storage medium

By constructing a relationship graph and assigning computational tasks for combat interactions, the problem of accuracy and efficiency of interaction results in turn-based virtual combat interactions was solved, achieving more efficient and accurate processing of interaction results.

CN116016527BActive Publication Date: 2026-05-12HANGZHOU BULLET FINGER UNIVERSE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU BULLET FINGER UNIVERSE TECH CO LTD
Filing Date
2022-12-12
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In turn-based virtual combat interactions, existing technologies struggle to balance the accuracy of interaction results with processing efficiency, especially when multiple combat interactions occur, where network latency and centralized computing lead to inaccurate results.

Method used

By constructing a relationship graph of combat interactions, related and unrelated combat interactions are identified, and the computational tasks of the interaction results are assigned to the target computing node or computing nodes that meet the load balancing strategy, ensuring the accuracy and processing efficiency of the interaction results.

Benefits of technology

It improves the logic and accuracy of the interaction results of related combat interactions, while reducing the computational load of a single computing node and improving the overall efficiency when processing multiple combat interactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016527B_ABST
    Figure CN116016527B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an interactive data processing method and device, electronic equipment, storage medium and computer program product. The method comprises: in response to a battle interaction request of a first interactive role to a second interactive role, obtaining an association relationship between a first battle interaction and other battle interactions between the first interactive role and the second interactive role; if the association relationship indicates that there is a second battle interaction associated with the interaction result of the first battle interaction, assigning an interaction result calculation task of the first battle interaction to a target calculation node, the target calculation node being a node assigned for the interaction result calculation task of the second battle interaction; if the association relationship indicates that the first battle interaction is an independent battle interaction, assigning the interaction result calculation task of the first battle interaction to a calculation node satisfying a load balancing strategy. The scheme of the present disclosure can balance the processing efficiency and the accuracy of the interaction result when processing multiple battle interactions existing at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to an interactive data processing method, apparatus, server, storage medium, and computer program product. Background Technology

[0002] With the development of computer technology, users can engage in virtual combat interactions through terminals.

[0003] In related technologies, multiple combat interactions can coexist in turn-based virtual combat interactions. When settling the interaction results, the results can be calculated on the client side, uploaded to the server side for verification, and then the server side performs centralized serial calculations based on the interaction results returned by each client. Alternatively, when the same interactive character participates in multiple combat interactions at the same time, the server side can use the same set of interaction data of the interactive character as input for different combat interactions, and calculate the interaction results separately according to the interaction situation of the interactive character in each combat interaction.

[0004] However, due to network latency and other factors, the method of obtaining local interaction results on the client side is difficult to handle multiple battle interactions that start asynchronously. While using the server to obtain interaction results can retrieve the results of multiple battle interactions simultaneously, the obtained results are inaccurate. It is evident that when retrieving the interaction results of multiple battle interactions in turn-based systems, related technologies struggle to balance accuracy and processing efficiency. Summary of the Invention

[0005] This disclosure provides an interactive data processing method, apparatus, electronic device, storage medium, and computer program product to at least solve the problem in related technologies where it is difficult to balance the accuracy and processing efficiency of interaction results when obtaining the interaction results of multiple combat interactions in turn-based systems. The technical solution of this disclosure is as follows:

[0006] According to a first aspect of the present disclosure, an interactive data processing method is provided, comprising:

[0007] In response to a combat interaction request from a first interactive character to a second interactive character, the association between the first combat interaction and other combat interactions between the first and second interactive characters is obtained; the other combat interactions are combat interactions other than the first combat interaction in the current round.

[0008] If the association indicates the existence of a second combat interaction associated with the interaction result of the first combat interaction, then the interaction result calculation task of the first combat interaction is assigned to the target computing node, where the target computing node is the node assigned to the interaction result calculation task of the second combat interaction.

[0009] If the association indicates that the first combat interaction is an independent combat interaction, then the task of calculating the interaction result of the first combat interaction is assigned to a computing node that satisfies the load balancing strategy.

[0010] In one embodiment, obtaining the association between the first combat interaction and other combat interactions between the first interactive character and the second interactive character includes:

[0011] Based on the relationship diagram corresponding to multiple combat interactions in the current round, determine the association relationship between the first combat interaction between the first interacting character and the second interacting character and other combat interactions;

[0012] Each combat interaction corresponds to at least two interacting characters, and the relationship diagram records the association information between the interacting characters in the multiple combat interactions.

[0013] In one embodiment, before determining the association between the first combat interaction and other combat interactions between the first interacting character and the second interacting character based on the relationship graph corresponding to multiple combat interactions in the current round, the method further includes:

[0014] Get multiple combat interactions in the current turn;

[0015] Determine the association information between the interactive characters in the multiple combat interactions, and determine the association relationship between the multiple combat interactions based on the association information between the interactive characters;

[0016] Based on the relationships between the multiple combat interactions and the corresponding interactive characters for each combat interaction, a relationship graph corresponding to the multiple combat interactions is constructed.

[0017] In one embodiment, determining the association between the first combat interaction and other combat interactions between the first interacting character and the second interacting character based on a relationship graph corresponding to multiple combat interactions in the current round includes:

[0018] If the relationship graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which the first or second interactive character participates, then it is determined that the interaction result of the first combat interaction is associated with the second combat interaction.

[0019] If neither the first interactive character nor the second interactive character participates in any of the combat interactions in the relationship graph, then the first combat interaction is determined to be an independent combat interaction.

[0020] In one embodiment, if the relationship graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which the first or second interactive character participates, then determining that the interaction result of the first combat interaction is associated with the second combat interaction includes:

[0021] If the relationship graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which the first or second interactive character participates, obtain the calculation order of the interaction results of the first and second combat interactions;

[0022] Based on the order of the interaction results calculation, the dependency relationship between the first combat interaction and the second combat interaction is determined; wherein, the combat interaction whose interaction results are calculated later depends on the associated combat interaction whose interaction results are calculated earlier.

[0023] In one embodiment, the method further includes:

[0024] If the association indicates that there is a second combat interaction associated with the interaction result of the first combat interaction, associate the first combat interaction with the second combat interaction in the relationship graph to obtain an updated relationship graph;

[0025] If the association indicates that the first combat interaction is an independent combat interaction, then the first combat interaction is added as an independent combat interaction to the relationship graph to obtain an updated relationship graph.

[0026] In one embodiment, the step of assigning the interaction result calculation task of the first combat interaction to the target computing node includes:

[0027] The task of calculating the interaction result of the first combat interaction is assigned to the target computing node where the task of calculating the interaction result of the second combat interaction is located. The target computing node then processes the task of calculating the interaction result of the first combat interaction based on the interaction result obtained from processing the interaction settlement task corresponding to the second combat interaction.

[0028] In one embodiment, the method further includes:

[0029] Obtain the target interaction result of the first interactive character returned by the target computing node or the computing node. The target interaction result is determined based on the interaction results of each interaction result calculation task associated with the first interactive character. Each interaction result calculation task includes the interaction result calculation tasks corresponding to each combat interaction in which the first interactive character participates.

[0030] The target interaction result is distributed to the device where the interaction character who is interacting with the first interaction character is located in each of the combat interactions.

[0031] According to a second aspect of the present disclosure, an interactive data processing apparatus is provided, comprising:

[0032] The interaction relationship acquisition unit is configured to respond to the combat interaction request from the first interactive character to the second interactive character, and acquire the association relationship between the first combat interaction and other combat interactions between the first interactive character and the second interactive character; the other combat interactions are combat interactions other than the first combat interaction in the current round.

[0033] The first node allocation unit is configured to perform the following: if the association indicates the existence of a second combat interaction associated with the interaction result of the first combat interaction, then allocate the interaction result calculation task of the first combat interaction to a target calculation node, wherein the target calculation node is a node allocated for the interaction result calculation task of the second combat interaction.

[0034] The second node allocation unit is configured to allocate the interaction result calculation task of the first combat interaction to a computing node that satisfies the load balancing strategy if the association indicates that the first combat interaction is an independent combat interaction.

[0035] According to a third aspect of the present disclosure, a server is provided, comprising:

[0036] processor;

[0037] Memory used to store the processor's executable instructions;

[0038] The processor is configured to execute the instructions to implement the interactive data processing method as described in any of the preceding claims.

[0039] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that, when instructions in the computer-readable storage medium are executed by a processor of a server, enables the server to perform the interactive data processing method as described in any of the preceding claims.

[0040] According to a fifth aspect of the present disclosure, a computer program product is provided, the computer program product including instructions that, when executed by a processor of a server, enable the server to perform the interactive data processing method as described in any of the preceding claims.

[0041] The technical solutions provided by the embodiments of this disclosure bring at least the following beneficial effects:

[0042] In this disclosure, on the one hand, the task of calculating the interaction result of the first combat interaction can be assigned to the target computing node where the task of calculating the interaction result of the associated second combat interaction is located, based on the correlation between combat relationships. This allows the target computing node to obtain the corresponding interaction result based on the information of the associated combat interaction, thereby improving the logic and accuracy of the interaction results of multiple associated combat interactions. On the other hand, by distributing the task of calculating the interaction result of non-associated combat interactions to computing nodes that meet the load balancing strategy, the computational load of a single computing node can be reduced. Thus, when processing multiple combat interactions that exist simultaneously, both processing efficiency and the accuracy of the interaction results can be taken into account.

[0043] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0044] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0045] Figure 1 This is an application environment diagram illustrating an interactive data processing method according to an exemplary embodiment.

[0046] Figure 2 This is a flowchart illustrating an interactive data processing method according to an exemplary embodiment.

[0047] Figure 3 This is a flowchart illustrating the steps of constructing a relationship graph of combat interactions according to an exemplary embodiment.

[0048] Figure 4a This is a diagram illustrating a combat interaction according to an exemplary embodiment.

[0049] Figure 4b This is a relational diagram illustrating an interactive result calculation task according to an exemplary embodiment.

[0050] Figure 5 This is a flowchart illustrating a step of synchronizing target interaction results according to an exemplary embodiment.

[0051] Figure 6 This is a block diagram illustrating an interactive data processing apparatus according to an exemplary embodiment.

[0052] Figure 7 This is a block diagram illustrating a server according to an exemplary embodiment. Detailed Implementation

[0053] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0054] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0055] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0056] The interactive data processing method provided in this disclosure can be applied to, for example... Figure 1 The application environment shown may include a terminal, a server, and multiple computing nodes. The terminal can communicate with the server via a network.

[0057] The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc.

[0058] The server-side, also known as the combat interaction server, can be implemented using a standalone server or a server cluster consisting of multiple servers. The server-side can have a corresponding data storage system that stores the data the server needs to process. In practical applications, the data storage system can be integrated into the server-side or hosted in the cloud or on other network servers. Multiple computing nodes can be implemented using distributed technologies, such as a cluster consisting of multiple servers and / or terminal devices.

[0059] In this disclosure, the terminal can display a first interactive character and, upon detecting an interaction trigger event, trigger a combat interaction request from the first interactive character to a second interactive character, thereby enabling combat interaction between the first and second interactive characters. In response to this combat interaction request, the server can obtain the association relationship between the first combat interaction and other combat interactions between the first and second interactive characters, where other combat interactions are those not present in the current round. After determining the association relationship, if the association relationship indicates the existence of a second combat interaction associated with the interaction result of the first combat interaction, then the computation task for the interaction result of the first combat interaction is assigned to a target computation node, which is the node assigned to the computation task for the interaction result of the second combat interaction. If the association relationship indicates that the first combat interaction is an independent combat interaction, then the computation task for the interaction result of the first combat interaction is assigned to a computation node that satisfies a load balancing strategy.

[0060] Figure 2 This is a flowchart illustrating an interactive data processing method according to an exemplary embodiment, such as... Figure 2 As shown, this method is used for Figure 2 Taking the server-side as an example, the explanation includes the following steps.

[0061] In step S210, in response to the combat interaction request from the first interactive character to the second interactive character, the association relationship between the first combat interaction and other combat interactions between the first and second interactive characters is obtained; other combat interactions are combat interactions other than the first combat interaction in the current round.

[0062] The first interactive role and / or the second interactive role can be interactive roles controlled by the user or a preset algorithm, and the first interactive role and the second interactive role can be controlled on different computer devices.

[0063] The first and / or second interactive character can consist of one or more combat units. Each combat unit can perform corresponding combat interaction operations, such as attacking or defending. A combat interaction can correspond to at least two interactive characters. In each combat interaction, at least one of the multiple characters can perform combat interaction operations on the other interactive characters. For example, the first interactive character may actively attack the second interactive character, or the first interactive character may actively request to engage in combat interaction with the second interactive character and act as the defender in that interaction.

[0064] The current round can be a round in a turn-based virtual interaction. The duration and interval of each round can be determined based on a preset time interval. For example, a round can start after the current time is a preset time point, and the current round ends after the duration of the round reaches the preset time interval. Then, the next round can start based on the preset time interval.

[0065] Each round can include multiple combat interactions, which can be triggered at different times within the same round or at the same time.

[0066] The relationships between combat interactions can refer to whether they are related or not. If a relationship exists between combat interactions, the result of one combat interaction can depend on or affect one or more other combat interactions that are related to it. For example, the combat interaction between interactive character A and interactive character B can affect the combat interaction between interactive character B and interactive character C. If interactive character A attacks interactive character B, interactive character B's combat interaction parameters will be affected, thereby affecting the combat interaction between interactive character B and interactive character C.

[0067] In practical applications, when a terminal detects an interaction trigger event, it can initiate a combat interaction request from the first interactive character to the second interactive character and send the request to the server to initiate combat interaction between the first and second interactive characters. In response to the received combat interaction request, the server can determine that a combat interaction is to be performed between the first and second interactive characters. For ease of distinction, the combat interaction between the first and second interactive characters can be referred to as the first combat interaction.

[0068] After determining the first combat interaction, the server can identify other combat interactions in the current round besides the first one and obtain the relationships between the first and other combat interactions. These other combat interactions can be ongoing, such as when character C requests a combat interaction with character B while character A and character B are engaged in combat. Alternatively, other combat interactions can be pending, including those that occur before or after the first combat interaction is triggered. For example, a character might request a combat interaction with another character and then wait for the trigger event to begin the interaction before commencing it.

[0069] In step S220, if the association relationship indicates that there is a second combat interaction associated with the interaction result of the first combat interaction, then the interaction result calculation task of the first combat interaction is assigned to the target calculation node, which is the node assigned for the interaction result calculation task of the second combat interaction.

[0070] As an example, the interaction results may include the corresponding character status parameters of the interactive characters participating in the combat interaction. In a single combat interaction, one or more interaction results can be obtained. If multiple interaction results are obtained in a single combat interaction, for example, an interaction result calculation task for the first combat interaction can be executed at preset time intervals, thereby periodically updating the character status of the interactive characters. The interaction result calculation task can be a computational task used to calculate the interaction results; each combat interaction can have a corresponding interaction result calculation task.

[0071] In a specific implementation, if the association indicates that there is a second combat interaction associated with the interaction result of the first combat interaction, and it is determined that a corresponding computing node has been allocated for the interaction result calculation task corresponding to the second combat interaction, then the node allocated to the interaction result calculation task of the second combat interaction can be used as the target computing node, and the interaction result calculation task of the first combat interaction can be allocated to the target computing node.

[0072] For example, if the result of a first combat interaction is affected by the result of a second combat interaction (i.e., the result of the first combat interaction depends on the result of the second combat interaction), and the task for calculating the result of the second combat interaction has already been assigned to a target computing node, then the task for calculating the result of the first combat interaction can be assigned to the same target computing node. Alternatively, in one possible embodiment, if the result of the first combat interaction affects the result of the second combat interaction (i.e., the result of the second combat interaction depends on the result of the first combat interaction), and the task for calculating the result of the second combat interaction has already been pre-assigned to a target computing node and is awaiting processing, then the task for calculating the result of the first combat interaction can be assigned to the same target computing node.

[0073] Compared to related technologies that use the same set of interaction data of interactive characters as input for different combat interactions and ignore the correlation between combat interactions and process them separately, this disclosure improves the logical rationality and accuracy of the final multiple interaction results by assigning the related interaction result calculation tasks to the same computing node and considering the correlation between the interaction result calculation tasks.

[0074] In step S230, if the association relationship indicates that the first combat interaction is an independent combat interaction, then the interaction result calculation task of the first combat interaction is assigned to the calculation node that satisfies the load balancing strategy.

[0075] If the association indicates that the first combat interaction is an independent combat interaction, then it can be determined that the interaction result of the first combat interaction does not depend on the interaction result of other combat interactions, nor does it affect the calculation of the interaction result of other combat interactions. The server can determine the computing node that meets the pre-set load balancing strategy from multiple computing nodes, and allocate the interaction result calculation task corresponding to the first combat interaction to the computing node that meets the load balancing strategy, so that the computing node can handle the interaction result calculation task corresponding to the first combat interaction.

[0076] In the above-mentioned interactive data processing method, when the server responds to the combat interaction request from the first interactive character to the second interactive character, it can obtain the association relationship between the first combat interaction and other combat interactions between the first and second interactive characters. Other combat interactions are combat interactions other than the first combat interaction in the current round. If the association relationship indicates that there is a second combat interaction associated with the interaction result of the first combat interaction, then the interaction result calculation task of the first combat interaction is assigned to the target computing node, which is the node assigned for the interaction result calculation task of the second combat interaction. If the association relationship indicates that the first combat interaction is an independent combat interaction, then the interaction result calculation task of the first combat interaction is assigned to the computing node that satisfies the load balancing strategy. In this disclosure, on the one hand, the task of calculating the interaction result of the first combat interaction can be assigned to the target computing node where the task of calculating the interaction result of the associated second combat interaction is located, based on the correlation between combat relationships. This allows the target computing node to obtain the corresponding interaction result based on the information of the associated combat interaction, thereby improving the logic and accuracy of the interaction results of multiple associated combat interactions. On the other hand, by distributing the task of calculating the interaction result of non-associated combat interactions to computing nodes that meet the load balancing strategy, the computational load of a single computing node can be reduced. Thus, when processing multiple combat interactions that exist simultaneously, both processing efficiency and the accuracy of the interaction results can be taken into account.

[0077] In one embodiment, step S210, responding to the combat interaction request from the first interactive character to the second interactive character, and obtaining the association relationship between the first combat interaction and other combat interactions between the first and second interactive characters, may include the following steps:

[0078] Based on the relationship diagram corresponding to multiple combat interactions in the current round, determine the association between the first combat interaction between the first interacting character and the second interacting character and other combat interactions.

[0079] Each combat interaction corresponds to at least two interacting characters, and the relationship diagram records the association information between the interacting characters in multiple combat interactions.

[0080] As an example, association information can indicate whether interactive characters in different interactive battles are associated or not. When interactive characters in different interactive battles are associated, it can be determined that the interaction result of one battle interaction will be associated with another battle interaction in which the interactive characters are associated.

[0081] For example, combat interaction 1 corresponds to interactive characters A and B participating in the combat interaction, and combat interaction 2 corresponds to interactive characters A and C participating in the combat interaction. The association information can record that interactive character A participated in both combat interaction 1 and combat interaction 2. Similarly, combat interaction 3 corresponds to interactive characters A and B, and combat interaction 4 corresponds to interactive characters C and D. The association information can record that interactive character A in combat interaction 3 is associated with interactive character C in combat interaction 4, and the interaction state of interactive character A is affected by the interaction state of interactive character C in combat interaction 4.

[0082] In practical applications, a relationship graph corresponding to multiple combat interactions in the current round can be pre-constructed. For example, the relationship graph can be a topological graph, and each combat interaction can correspond to at least two interacting characters. For multiple combat interactions, the relationship graph can record the association information between the interacting characters in multiple combat interactions.

[0083] Furthermore, after determining the first combat interaction to be performed between the first and second interaction objects, the association information between the interactive characters in the current round can be obtained through the relationship graph corresponding to multiple combat interactions. Based on the association information between the interactive characters and the first and second interactive characters involved in the first combat interaction, the association relationship between the first combat interaction and other combat interactions can be determined.

[0084] In this embodiment, the relationship between the first combat interaction and other combat interactions in the current round can be quickly identified based on a pre-built relationship graph of combat interactions.

[0085] Each combat interaction corresponds to at least two interacting characters, and the relationship diagram records the association information between the interacting characters in the multiple combat interactions.

[0086] In one embodiment, such as Figure 3 As shown, before determining the relationship between the first combat interaction and other combat interactions between the first and second interacting characters based on the relationship graph corresponding to multiple combat interactions in the current round, the following steps may also be included:

[0087] In step S310, multiple combat interactions in the current round are obtained.

[0088] For example, based on the received combat interaction request and the identifier of the interaction character carried in the combat interaction request, multiple combat interactions and the interaction characters involved in each combat interaction can be determined, wherein each combat interaction corresponds to at least two interaction characters performing the combat interaction.

[0089] In step S320, the association information between the interactive characters in multiple combat interactions is determined, and the association relationship between the multiple combat interactions is determined based on the association information between the interactive characters.

[0090] After obtaining multiple combat interactions and the multiple interactive characters corresponding to each combat interaction, the association information between the interactive characters in multiple combat interactions can be obtained by comparing the interactive characters corresponding to multiple combat interactions. For example, the interactive characters in multiple combat interactions can be compared pairwise to determine whether the interactive characters in two combat interactions are the same or related, thereby obtaining the association information between the interactive characters in multiple combat interactions.

[0091] Combat interactions are achieved through the interaction between multiple interactive characters. After determining the association information between multiple interactive characters, the relationship between multiple combat interactions can be determined based on this association information. For example, if the association information indicates that the interactive character of a combat interaction is the same as or related to the interactive characters in other combat interactions, then it can be determined that this combat interaction is related to other combat interactions (i.e., combat interactions with related interactive characters). Conversely, if the association information indicates that the interactive character of a combat interaction is not related to or is the same as the interactive characters of all other combat interactions, then it can be determined that this combat interaction is not related to other combat interactions and is an independent combat interaction.

[0092] In step S330, a relationship diagram corresponding to multiple combat interactions is constructed based on the association between multiple combat interactions and the interactive character corresponding to each combat interaction.

[0093] Once the relationships between combat interactions are obtained, a relationship graph corresponding to multiple combat interactions can be constructed based on these relationships and the corresponding interactive characters.

[0094] For example, the relationship diagram can display each combat interaction and the corresponding interactive character. For two combat interactions that are related to an interactive character, the two related combat interactions can be connected through the associated interactive character. However, for independent combat interactions, the interactive characters in that combat interaction are not connected to the interactive characters in other combat interactions.

[0095] Figure 4a A relational diagram is shown in one embodiment, such as Figures 4a-4bAs shown, combat interaction 1 corresponds to interactive characters A and B, combat interaction 2 corresponds to interactive characters A and D, combat interaction 3 corresponds to interactive characters B and C, and combat interaction 4 corresponds to interactive characters D and E. Therefore, these four combat interactions can be constructed... Figure 4a The diagram shown is a relational diagram.

[0096] In this embodiment, the relationships between combat interactions can be determined in advance based on the association information between interactive characters in multiple combat interactions. Then, a relationship graph can be constructed using the relationship and the corresponding interactive characters, providing a basis for quickly finding the relationship between the first combat interaction and other combat interactions.

[0097] In one embodiment, determining the association between the first combat interaction and other combat interactions between the first interacting character and the second interacting character based on the relationship graph corresponding to multiple combat interactions in the current round may include the following steps:

[0098] If the relationship graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which either the first or second interacting character participates, then the interaction result of the first combat interaction is determined to be associated with the second combat interaction; if neither the first nor the second interacting character participates in any of the combat interactions in the relationship graph, then the first combat interaction is determined to be an independent combat interaction.

[0099] In practical applications, after obtaining the relationship graph corresponding to multiple combat interactions, the relationship graph can be traversed to determine whether there is a combat interaction in the relationship graph involving the first or second interactive character.

[0100] If any of the multiple combat interactions in the relationship graph involves either a first interacting character or a second interacting character, then that combat interaction can be identified as the second combat interaction, and the result of the first combat interaction can be determined to be associated with that second combat interaction. If neither the first nor the second interacting character participates in any of the multiple combat interactions in the relationship graph, then the first combat interaction can be determined to be an independent combat interaction.

[0101] In some alternative embodiments, the association between the first combat interaction and other combat interactions can also be determined based on pre-set interaction rules, solely based on whether the first interactive character or the second interactive character participates in the combat interaction in the relationship graph.

[0102] For example, the pre-set interaction rules may include: each combat interaction includes an attacking interaction and a defending interaction; each interaction has at most one active attacking interaction and the interaction participating in the combat interaction does not actively attack other interactions; and the interaction participating in the combat interaction is added to the pre-set interaction list if there is no active attacking interaction.

[0103] When the first interactive character actively requests a combat interaction with the second interactive character, it can be determined that the first interactive character is not currently participating in other combat interactions. Therefore, based solely on the second interactive character, the interaction status of the first combat interaction with other combat interactions can be identified. Specifically, if the second interactive character has an active attacking interactive character or is added to a preset interactive character list, it can be determined that the second interactive character is currently participating in a combat interaction. The first combat interaction is associated with other combat interactions, and the combat interaction the second interactive character is currently participating in can be identified as the second combat interaction associated with the interaction result of the first combat interaction. If the second interactive character does not have an active attacking interactive character and is not added to the preset interactive character list, it can be determined that the second interactive character is also not currently participating in other combat interactions, and the first combat interaction can be identified as an independent combat interaction.

[0104] In this embodiment, by determining whether the first interactive character and the second interactive character participate in the combat interaction in the relationship graph, the association between the first combat interaction and other combat interactions can be quickly determined.

[0105] In one embodiment, if the relationship graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which a first interactive character or a second interactive character participates, then determining that the interaction result of the first combat interaction is associated with the second combat interaction includes:

[0106] If the relationship graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which the first or second interactive character participates, obtain the calculation order of the interaction results of the first and second combat interactions; based on the calculation order of the interaction results, determine the dependency relationship between the first and second combat interactions; wherein, the combat interaction with the later calculation order of the interaction results depends on the associated combat interaction with the earlier calculation order of the interaction results.

[0107] In a specific implementation, if the relationship graph corresponding to multiple combat interactions in the current round includes a second combat interaction involving a first or second interactive character, the calculation order of the interaction results of the first and second combat interactions can be obtained. In one example, the calculation order of the interaction results can be determined based on the time when the combat interaction requests are made. For example, the sending time of the combat interaction request of the first combat interaction and the sending time of the combat interaction request of the second combat interaction can be obtained, and the sending times of each combat interaction request can be sorted in ascending order to obtain the calculation order of the interaction results.

[0108] After obtaining the calculation order of the interaction results, the dependency relationship between the first and second combat interactions can be determined based on this order. Specifically, when the first and second combat interactions are related, the earlier combat interaction will affect the interaction result of the later combat interaction. Accordingly, combat interactions with later calculation orders depend on combat interactions with earlier calculation orders. This dependency relationship can then be used to determine the processing order of the interaction result calculation tasks for subsequent first and second combat interactions.

[0109] In this embodiment, the relationship between the first combat interaction and the second combat interaction can be further refined based on the calculation order of the interaction results, providing a basis for allocating appropriate computing nodes.

[0110] In one embodiment, in step S220, assigning the interaction result calculation task of the first combat interaction to the target computing node may include the following steps:

[0111] The task of calculating the interaction result of the first combat interaction is assigned to the target computing node where the task of calculating the interaction result of the second combat interaction is located. The target computing node then processes the task of calculating the interaction result of the first combat interaction based on the interaction result obtained from processing the interaction settlement task corresponding to the second combat interaction.

[0112] In a specific implementation, if a second combat interaction is obtained that is associated with the interaction result of the first combat interaction, and the interaction result of the first combat interaction depends on the interaction result of the second combat interaction, then the interaction result calculation task of the first combat interaction can be obtained, and the interaction result calculation task of the first combat interaction can be assigned to the target computing node where the interaction result calculation task of the second combat interaction is located.

[0113] Furthermore, the target computing node can process the interaction result calculation task of the second combat interaction first, according to the interaction result calculation order, to obtain the interaction result of the task, and then, based on the obtained interaction result, continue to process the interaction result calculation task of the first combat interaction to obtain the interaction result of the first combat interaction.

[0114] In this embodiment, the interaction result calculation tasks of the associated first combat interaction and the second combat interaction can be assigned to the same target computing node. Then, the target computing node can process the interaction result calculation task of the subsequent combat interaction based on the interaction result of the earlier combat interaction, avoiding logical errors and ensuring the accuracy and rationality of the interaction result of the subsequent combat interaction.

[0115] In one embodiment, if there is a third combat interaction in the current round whose interaction result is related to the second combat interaction, and the third combat interaction is not related to the first combat interaction, then while assigning the interaction result calculation task of the first combat interaction to the target computing node, the interaction result calculation task of the third combat interaction can also be assigned to the target computing node accordingly. The target computing node processes the interaction settlement task corresponding to the second combat interaction to obtain the interaction result of the second combat interaction. Then, based on the interaction result of the second combat interaction, the interaction settlement task of the first combat interaction and the interaction settlement task of the third combat interaction can be processed concurrently to obtain the interaction result of the first combat interaction and the interaction result of the third combat interaction.

[0116] For example, according to Figure 4a The relationship diagram shown identifies the dependencies between the interaction result calculation tasks corresponding to the four combat interactions. These dependencies can be represented as follows: Figure 4b As shown, interaction result calculation tasks 1, 2, 3, and 4 correspond to combat interactions 1, 2, 3, and 4, respectively. The sending time of the combat interaction requests of combat interactions 1, 2, 3, and 4 is postponed in sequence. Therefore, interaction result calculation tasks 2 and 3 are not related, but they depend on interaction result calculation task 1. Interaction result calculation task 4 depends on interaction result calculation task 2.

[0117] In this embodiment, the target computing node can process the interaction result calculation tasks of the first and second combat interactions, which depend on the second combat interaction but are independent of each other, in a multi-threaded manner. By splitting and processing the non-related interaction result calculation tasks within the node concurrently, waiting can be avoided, thereby improving the speed at which the target computing node processes multiple interaction result calculation tasks within the node and improving processing efficiency.

[0118] In one embodiment, the method may further include the following steps:

[0119] If the association indicates that there is a second combat interaction that is associated with the interaction result of the first combat interaction, the first combat interaction is associated with the second combat interaction in the relationship graph to obtain an updated relationship graph; if the association indicates that the first combat interaction is an independent combat interaction, the first combat interaction is added to the relationship graph as an independent combat interaction to obtain an updated relationship graph.

[0120] In a specific implementation, if the relationship obtained from the relationship graph indicates that there is a second combat interaction that is associated with the interaction result of the first combat interaction, the first combat interaction can be associated with the second combat interaction in the relationship graph. Specifically, the first combat interaction and the second combat interaction can be connected by the interaction characters (such as the same interaction characters) that are associated in the first combat interaction and the second combat interaction respectively, so as to obtain the updated relationship graph.

[0121] If the association indicates that the first combat interaction is an independent combat interaction, then the first combat interaction is added to the relationship graph as an independent combat interaction. Based on the fact that each interactive character in the first combat interaction is not associated with any existing combat interactions in the relationship graph, an updated relationship graph is obtained.

[0122] In this embodiment, after obtaining the relationship between the first combat interaction and other combat interactions, the relationship diagram of combat interactions can be updated in a timely manner, which facilitates the subsequent search for the relationship between combat interactions.

[0123] In one embodiment, such as Figure 5 As shown, the method further includes the following steps:

[0124] In step S510, the target interaction result of the first interactive character returned by the target computing node is obtained. The target interaction result is determined based on the interaction results of each interaction result calculation task associated with the first interactive character. Each interaction result calculation task includes the interaction result calculation task corresponding to each combat interaction participated in by the first interactive character.

[0125] In practical applications, since the interaction result calculation tasks of related combat interactions can be assigned to the same computing node, the interaction result calculation tasks corresponding to each combat interaction participated in by the first interactive character can be obtained on the same computing node. The calculation tasks of each interaction result calculation task participated in by the first interactive character can be processed to obtain the corresponding interaction results. Then, the computing node can combine the calculation tasks of each interaction result calculation task participated in by the first interactive character to obtain the target interaction result for the first interactive character, such as the character state of the first interactive character after participating in each combat interaction, and can send the target interaction result to the server.

[0126] In step S520, the target interaction result is distributed to the device where the interaction character who is interacting with the first interaction character in each combat interaction is located.

[0127] After obtaining the target interaction result, the server can distribute the target interaction result to the devices of the interaction characters who interacted with the first interaction character in each combat interaction. For example, if the first interaction character participates in multiple combat interactions, the computing node that calculates the results of each interaction of the first interaction character can save a copy of the target interaction result for the first interaction character. At the end of the current round, the server can send the target interaction result of the first interaction character to the devices of all the interaction characters who have interacted with the first interaction character, thus completing the result synchronization.

[0128] In this embodiment, by obtaining the target interaction results obtained by the same interactive character after participating in different combat interactions from the same computing node, and synchronizing them to the devices of other interactive characters who have interacted, data sharing among other related interactive characters within the same computing node can be achieved. This significantly reduces space complexity while ensuring the correctness of the interaction results.

[0129] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0130] It is understood that the same / similar parts between the various embodiments of the methods described above in this specification can be referred to each other. Each embodiment focuses on the differences from other embodiments, and relevant parts can be referred to the description of other method embodiments.

[0131] Based on the same inventive concept, this disclosure also provides an interactive data processing apparatus for implementing the interactive data processing method described above.

[0132] Figure 6 This is a block diagram illustrating an interactive data processing apparatus according to an exemplary embodiment. (Refer to...) Figure 6 The device includes an interaction relationship acquisition unit 601, a first node allocation unit 602, and a second node allocation unit 603.

[0133] The interaction relationship acquisition unit 601 is configured to respond to the combat interaction request from the first interactive character to the second interactive character, and acquire the association relationship between the first combat interaction and other combat interactions between the first interactive character and the second interactive character; the other combat interactions are combat interactions other than the first combat interaction in the current round.

[0134] The first node allocation unit 602 is configured to perform the following: if the association relationship indicates the existence of a second combat interaction associated with the interaction result of the first combat interaction, then allocate the interaction result calculation task of the first combat interaction to a target calculation node, wherein the target calculation node is a node allocated for the interaction result calculation task of the second combat interaction.

[0135] The second node allocation unit 603 is configured to allocate the interaction result calculation task of the first combat interaction to a computing node that satisfies the load balancing strategy if the association indicates that the first combat interaction is an independent combat interaction.

[0136] In an exemplary embodiment, the interaction relationship acquisition unit 601 includes:

[0137] The relationship graph identification module is configured to execute a relationship graph based on multiple combat interactions in the current round, and determine the association between the first combat interaction and other combat interactions between the first interacting character and the second interacting character;

[0138] Each combat interaction corresponds to at least two interacting characters, and the relationship diagram records the association information between the interacting characters in the multiple combat interactions.

[0139] In one exemplary embodiment, the apparatus further includes:

[0140] The interactive combat record unit is configured to execute and retrieve multiple combat interactions from the current round.

[0141] The association determination unit is configured to determine the association information between the interactive characters in the plurality of combat interactions, and to determine the association relationship between the plurality of combat interactions based on the association information between the interactive characters;

[0142] The relationship graph construction unit is configured to construct a relationship graph corresponding to the multiple combat interactions based on the association between the multiple combat interactions and the interactive characters corresponding to each combat interaction.

[0143] In one exemplary embodiment, the relationship graph identification module is configured to perform:

[0144] If the relationship graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which the first or second interactive character participates, then it is determined that the interaction result of the first combat interaction is associated with the second combat interaction.

[0145] If neither the first interactive character nor the second interactive character participates in any of the combat interactions in the relationship graph, then the first combat interaction is determined to be an independent combat interaction.

[0146] In one exemplary embodiment, the relationship graph identification module is configured to perform:

[0147] If the relationship graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which the first or second interactive character participates, obtain the calculation order of the interaction results of the first and second combat interactions;

[0148] Based on the order of the interaction results calculation, the dependency relationship between the first combat interaction and the second combat interaction is determined; wherein, the combat interaction whose interaction results are calculated later depends on the associated combat interaction whose interaction results are calculated earlier.

[0149] In one exemplary embodiment, the apparatus further includes:

[0150] The first update unit of the relationship graph is configured to perform an action if the relationship indicates the existence of a second combat interaction associated with the interaction result of the first combat interaction, and associate the first combat interaction with the second combat interaction in the relationship graph to obtain an updated relationship graph;

[0151] The second update unit of the relationship graph is configured to add the first combat interaction as an independent combat interaction to the relationship graph if the association indicates that the first combat interaction is an independent combat interaction, thereby obtaining an updated relationship graph.

[0152] In an exemplary embodiment, the first node allocation unit 602 is configured to perform:

[0153] The task of calculating the interaction result of the first combat interaction is assigned to the target computing node where the task of calculating the interaction result of the second combat interaction is located. The target computing node then processes the task of calculating the interaction result of the first combat interaction based on the interaction result obtained from processing the interaction settlement task corresponding to the second combat interaction.

[0154] In one exemplary embodiment, the apparatus further includes:

[0155] The target interaction result acquisition unit is configured to acquire the target interaction result of the first interactive character returned by the target computing node or the computing node. The target interaction result is determined based on the interaction results of each interaction result calculation task associated with the first interactive character. Each interaction result calculation task includes the interaction result calculation tasks corresponding to each combat interaction in which the first interactive character participates.

[0156] The target interaction result synchronization unit is configured to distribute the target interaction result to the device where the interaction character who is interacting with the first interaction character in each combat interaction is located.

[0157] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0158] Each module in the aforementioned interactive data processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0159] Figure 7 This is a block diagram illustrating an electronic device 700 for implementing an interactive data processing method according to an exemplary embodiment. For example, the electronic device 700 may be a server. (Refer to...) Figure 7 The electronic device 700 includes a processing component 720, which further includes one or more processors, and memory resources represented by memory 722 for storing instructions, such as application programs, that can be executed by the processing component 720. The application programs stored in memory 722 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 720 is configured to execute instructions to perform the methods described above.

[0160] Electronic device 700 may further include: a power supply component 724 configured to perform power management of electronic device 700, a wired or wireless network interface 726 configured to connect electronic device 700 to a network, and an input / output (I / O) interface 728. Electronic device 700 may operate on an operating system stored in memory 722, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or similar.

[0161] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 722 including instructions, which can be executed by a processor of an electronic device 700 to perform the above-described method. The storage medium may be a computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.

[0162] In an exemplary embodiment, a computer program product is also provided, the computer program product including instructions that can be executed by a processor of an electronic device 700 to perform the above-described method.

[0163] It should be noted that the above-mentioned apparatus, electronic equipment, computer-readable storage medium, computer program product, etc., may also include other implementation methods according to the description of the method embodiments. For specific implementation methods, please refer to the description of the relevant method embodiments, which will not be elaborated here.

[0164] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0165] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. An interactive data processing method, characterized in that, include: In response to the combat interaction request from the first interactive character to the second interactive character, the association relationship between the first combat interaction and other combat interactions between the first interactive character and the second interactive character is obtained based on the topology graph; When the first interactive character issues a combat interaction request, the first interactive character is not currently participating in other combat interactions; each combat interaction corresponds to at least two interactive characters, and when the topology map indicates that the interactive characters in the first combat interaction are associated with other interactive characters in other combat interactions that are different from the first combat interactive character, the first combat interaction is associated with the other combat interactions. When the topology map indicates that the interactive character in the first combat interaction is not associated with any of the different interactive characters in other combat interactions, the first combat interaction is an independent combat interaction. If the association indicates the existence of a second combat interaction associated with the interaction result of the first combat interaction, then the interaction result calculation task of the first combat interaction is assigned to the target computing node, and the first combat interaction and the second combat interaction are associated in the topology graph; The target computing node is the node assigned to the task of calculating the interaction result of the second combat interaction among multiple nodes; If the association indicates that the first combat interaction is an independent combat interaction, then the task of calculating the interaction result of the first combat interaction is assigned to the computing node that satisfies the load balancing strategy among the multiple nodes, and the first combat interaction is added to the topology graph as an independent combat interaction.

2. The method according to claim 1, characterized in that, The step of obtaining the association relationship between the first combat interaction and other combat interactions between the first interactive character and the second interactive character based on the topology graph includes: Based on the topology graph corresponding to multiple combat interactions in the current round, the association relationship between the first combat interaction between the first interacting character and the second interacting character and other combat interactions is determined; the topology graph records the association information between the interacting characters in the multiple combat interactions.

3. The method according to claim 2, characterized in that, Before obtaining the association between the first combat interaction and other combat interactions between the first interactive character and the second interactive character based on the topology map, the method further includes: Get multiple combat interactions in the current turn; Determine the association information between the interactive characters in the multiple combat interactions, and determine the association relationship between the multiple combat interactions based on the association information between the interactive characters; Based on the relationships between the multiple combat interactions and the corresponding interactive characters for each combat interaction, a topology graph corresponding to the multiple combat interactions is constructed.

4. The method according to claim 2, characterized in that, The process of determining the association between the first combat interaction and other combat interactions between the first interacting character and the second interacting character based on the topology graph corresponding to multiple combat interactions in the current round includes: If the topology graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which the first or second interactive character participates, then it is determined that the interaction result of the first combat interaction is associated with the second combat interaction. If neither the first interactive character nor the second interactive character participates in any of the combat interactions in the topology graph, then the first combat interaction is determined to be an independent combat interaction.

5. The method according to claim 4, characterized in that, If the topology graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which either the first or second interacting character participates, then determining that the interaction result of the first combat interaction is associated with the second combat interaction includes: If the topology graph corresponding to multiple combat interactions in the current round includes a second combat interaction in which the first or second interactive character participates, obtain the calculation order of the interaction results of the first and second combat interactions; Based on the order of the interaction results calculation, the dependency relationship between the first combat interaction and the second combat interaction is determined; wherein, the combat interaction whose interaction results are calculated later depends on the associated combat interaction whose interaction results are calculated earlier.

6. The method according to claim 1, characterized in that, The step of assigning the interaction result calculation task of the first combat interaction to the target computing node includes: The task of calculating the interaction result of the first combat interaction is assigned to the target computing node where the task of calculating the interaction result of the second combat interaction is located. The target computing node then processes the task of calculating the interaction result of the first combat interaction based on the interaction result obtained from processing the interaction settlement task corresponding to the second combat interaction.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: Obtain the target interaction result of the first interactive character returned by the target computing node or the computing node. The target interaction result is determined based on the interaction results of each interaction result calculation task associated with the first interactive character. Each interaction result calculation task includes the interaction result calculation tasks corresponding to each combat interaction in which the first interactive character participates. The target interaction result is distributed to the device where the interaction character who is interacting with the first interaction character is located in each of the combat interactions.

8. An interactive data processing device, characterized in that, include: The interaction relationship acquisition unit is configured to respond to the combat interaction request from the first interaction character to the second interaction character, and acquire the association relationship between the first combat interaction and other combat interactions between the first interaction character and the second interaction character based on the topology graph; When the first interactive character issues a combat interaction request, the first interactive character is not currently participating in other combat interactions; each combat interaction corresponds to at least two interactive characters, and when the topology map indicates that the interactive characters in the first combat interaction are associated with other interactive characters in other combat interactions that are different from the first combat interactive character, the first combat interaction is associated with the other combat interactions. When the topology map indicates that the interactive character in the first combat interaction is not associated with any of the different interactive characters in other combat interactions, the first combat interaction is an independent combat interaction. The first node allocation unit is configured to perform the following: if the association relationship indicates the existence of a second combat interaction associated with the interaction result of the first combat interaction, then allocate the interaction result calculation task of the first combat interaction to the target computing node, and associate the first combat interaction and the second combat interaction in the topology graph. The target computing node is the node assigned to the task of calculating the interaction result of the second combat interaction among multiple nodes; The second node allocation unit is configured to perform the following: if the association indicates that the first combat interaction is an independent combat interaction, then allocate the interaction result calculation task of the first combat interaction to the computing node among the plurality of nodes that satisfies the load balancing strategy, and add the first combat interaction as an independent combat interaction to the topology graph.

9. A server, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the interactive data processing method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the server, the server is enabled to perform the interactive data processing method as described in any one of claims 1 to 7.