CN-116016527-B - Interactive data processing method, device, server and storage medium
Abstract
The present disclosure relates to an interactive data processing method, apparatus, electronic device, storage medium and computer program product. The method comprises the steps of responding to a fight interaction request of a first interaction role for a second interaction role, obtaining association relations between first fight interactions and other fight interactions between the first interaction role and the second interaction role, if the association relations indicate that second fight interactions associated with interaction results of the first fight interactions exist, distributing interaction result calculation tasks of the first fight interactions to target calculation nodes, wherein the target calculation nodes are nodes distributed for the interaction result calculation tasks of the second fight interactions, and if the association relations indicate that the first fight interactions are independent fight interactions, distributing the interaction result calculation tasks of the first fight interactions to calculation nodes meeting a load balancing strategy. According to the scheme, the processing efficiency and the accuracy of the interaction result can be considered when a plurality of simultaneous combat interactions are processed.
Inventors
- NIU MENG
Assignees
- 杭州弹指宇宙科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20221212
Claims (10)
- 1. An interactive data processing method, comprising: Responding to a combat interaction request of a first interaction role to a second interaction role, acquiring an association relation between a first combat interaction and other combat interactions between the first interaction role and the second interaction role based on a topological graph, wherein the first interaction role does not currently participate in the other combat interactions when the first interaction role sends out the combat interaction request, each combat interaction corresponds to at least two interaction roles, when the topological graph indicates that the interaction role in the first combat interaction is associated with an interaction role different from the first combat interaction in the other combat interactions, the first combat interaction is associated with the other combat interactions, and when the topological graph indicates that the interaction role in the first combat interaction is not associated with the different interaction roles in other combat interactions, the first combat interaction is independent combat interaction; If the association relation indicates that a second fight interaction associated with an interaction result of a first fight interaction exists, distributing an interaction result calculation task of the first fight interaction to a target calculation node, and associating the first fight interaction with the second fight interaction in the topological graph, wherein the target calculation node is a node distributed by the interaction result calculation task of the second fight interaction in a plurality of nodes; And if the association relationship indicates that the first fight interaction is independent fight interaction, distributing an interaction result calculation task of the first fight interaction to a calculation node meeting a load balancing strategy in the plurality of nodes, and adding the first fight interaction to the topological graph as the independent fight interaction.
- 2. The method of claim 1, wherein the obtaining, based on the topology map, an association relationship between a first combat interaction and other combat interactions between the first interaction character and the second interaction character comprises: and determining the association relation between the first combat interaction and other combat interactions between the first interaction role and the second interaction role based on the topological graph corresponding to the plurality of combat interactions in the current round, wherein the topological graph records the association information between the interaction roles in the plurality of combat interactions.
- 3. The method of claim 2, further comprising, prior to the obtaining, based on the topology map, an association of a first combat interaction with other combat interactions between the first interaction character and the second interaction character: Acquiring a plurality of combat interactions in the current round; Determining association information among interaction roles in the plurality of combat interactions, and determining association relations among the plurality of combat interactions based on the association information among the interaction roles; And constructing a topological graph corresponding to the plurality of combat interactions based on the association relations among the plurality of combat interactions and the interaction roles corresponding to each combat interaction.
- 4. The method of claim 2, wherein the determining the association of the first combat interaction with the other combat interactions between the first interaction character and the second interaction character based on the topology map corresponding to the plurality of combat interactions in the current round comprises: if the topology diagram corresponding to the plurality of fight interactions in the current round comprises second fight interactions participated in by the first interaction role or the second interaction role, determining that the interaction result of the first fight interactions is associated with the second fight interactions; And if the first interaction role and the second interaction role are not involved in each fight interaction in the topological graph, determining that the first fight interaction is independent fight interaction.
- 5. The method of claim 4, wherein determining that the interaction result of the first combat interaction is associated with the second combat interaction if the topology corresponding to the plurality of combat interactions in the current round includes the second combat interaction in which the first interaction character or the second interaction character participates comprises: if the topology diagram corresponding to the plurality of combat interactions in the current round comprises a second combat interaction participated in by the first interaction role or the second interaction role, acquiring an interaction result calculation sequence of the first combat interaction and the second combat interaction; And determining the dependency relationship between the first fight interaction and the second fight interaction based on the interaction result calculation sequence, wherein the fight interactions with the subsequent interaction result calculation sequence depend on the associated fight interactions with the preceding interaction result calculation sequence.
- 6. The method of claim 1, wherein the assigning the interaction result calculation task of the first combat interaction to the target computing node comprises: and distributing the interaction result calculation task of the first fight interaction to a target calculation node where the interaction result calculation task of the second fight interaction is located, and processing the interaction result calculation task of the first fight interaction by the target calculation node based on the interaction result obtained by processing the interaction settlement task corresponding to the second fight interaction.
- 7. The method according to any one of claims 1 to 6, further comprising: Acquiring a target interaction result of the first interaction role returned by the target computing node or the computing node, wherein the target interaction result is determined based on interaction results of interaction result calculation tasks associated with the first interaction role, and each interaction result calculation task comprises an interaction result calculation task corresponding to each combat interaction participated by the first interaction role; And distributing the target interaction result to equipment where the interaction role which performs the fight interaction with the first interaction role is located in each fight interaction.
- 8. An interactive data processing apparatus, comprising: An interaction relation acquisition unit configured to execute a combat interaction request responding to a first interaction role to a second interaction role, acquire an association relation between a first combat interaction and other combat interactions between the first interaction role and the second interaction role based on a topological graph, wherein the first interaction role does not currently participate in other combat interactions when the first interaction role issues the combat interaction request, each combat interaction corresponds to at least two interaction roles, when the topological graph indicates that an interaction role in the first combat interaction is associated with an interaction role different from the first combat interaction in other combat interactions, the first combat interaction is associated with the other combat interactions, and when the topological graph indicates that the interaction role in the first combat interaction is not associated with the different interaction roles in other respective combat interactions, the first combat interaction is independent combat interaction; A first node allocation unit configured to allocate an interaction result calculation task of a first fight interaction to a target calculation node if the association relationship indicates that there is a second fight interaction associated with an interaction result of the first fight interaction, and associate the first fight interaction and the second fight interaction in the topology map; And a second node allocation unit configured to allocate an interaction result calculation task of the first fight interaction to a calculation node satisfying a load balancing policy among the plurality of nodes if the association relationship indicates that the first fight interaction is an independent fight interaction, and add the first fight interaction to the topology as an independent fight interaction.
- 9. A server for a server, which comprises a server and a server, characterized by comprising the following steps: A processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the interactive data processing method of any one of claims 1 to 7.
- 10. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of a server, enable the server to perform the interactive data processing method of any one of claims 1 to 7.
Description
Interactive data processing method, device, server and storage medium Technical Field The present 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 With the development of computer technology, users can perform virtual combat interactions through terminals. In the related technology, a plurality of combat interactions can exist in the virtual combat interactions of round system at the same time, when the interaction results are settled, the client can settle accounts, the obtained interaction results are uploaded to the server for verification, and the server performs centralized serial calculation based on the interaction results returned by each client, or when the same interaction role participates in the plurality of combat interactions at the same time, the server can also take the same interaction data of the interaction role as the input of different combat interactions, and the interaction results are respectively settled according to the interaction conditions of the interaction roles in each combat interaction. However, it is difficult to deal with a plurality of combat interactions started out of synchronization in a manner in which a local interaction result is acquired by a client in advance due to network delay or the like, and an interaction result of a plurality of combat interactions can be acquired simultaneously by a manner in which an interaction result is acquired by a server, but the acquired interaction result is inaccurate. Therefore, when the interactive results of a plurality of combat interactions in the round system are obtained, the related technology has difficulty in considering the accuracy and the processing efficiency of the interactive results. Disclosure of Invention The disclosure provides an interaction data processing method, an interaction data processing device, an electronic device, a storage medium and a computer program product, which at least solve the problem that in the related art, when an interaction result of a plurality of combat interactions in a round system is obtained, the accuracy and the processing efficiency of the interaction result are difficult to be compatible. The technical scheme of the present disclosure is as follows: according to a first aspect of an embodiment of the present disclosure, there is provided an interactive data processing method, including: Responding to a combat interaction request of a first interaction role for a second interaction role, and acquiring association relations between first combat interactions and other combat interactions between the first interaction role and the second interaction role, wherein the other combat interactions are combat interactions except the first combat interactions in the current round; If the association relation indicates that a second fight interaction associated with the interaction result of the first fight interaction exists, distributing an interaction result calculation task of the first fight interaction to a target calculation node, wherein the target calculation node is a node distributed by the interaction result calculation task of the second fight interaction; and if the association relationship indicates that the first fight interaction is independent fight interaction, distributing an interaction result calculation task of the first fight interaction to a calculation node meeting a load balancing strategy. In one embodiment, the acquiring the association relationship between the first combat interaction and the other combat interactions between the first interaction role and the second interaction role includes: Determining association relations between first combat interactions and other combat interactions between the first interaction roles and the second interaction roles based on a relation diagram corresponding to a plurality of combat interactions in the current round; Each combat interaction corresponds to at least two interaction roles, and the relationship diagram records association information among the interaction roles in the plurality of combat interactions. In one embodiment, before the determining, based on the relationship diagram corresponding to the plurality of combat interactions in the current round, the association relationship between the first combat interaction and the other combat interactions between the first interaction role and the second interaction role, the method further includes: Acquiring a plurality of combat interactions in the current round; Determining association information among interaction roles in the plurality of combat interactions, and determining association relations among the plurality of combat interactions based on the association information among the interaction roles; and constructing a relationship diagram corresponding to the plurality of combat interactions based on the asso