Information interaction processing method and system in game
By using multiple communication links to process operation instructions and data of multiple gameplay content on the game server side, the client displays multiple game screens at the same time, solving the problem that players can only operate in one game screen in the prior art, and improving the game experience and efficiency.
Patent Information
- Application Number
- CN202510500277.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-06-24
AI Technical Summary
Existing game clients communicate with the server through a single communication link, resulting in players being able to operate in one game screen and being unable to process multiple gameplay content at the same time, affecting game experience and efficiency.
By using multiple communication links on the server side, the operation instructions and data of different gameplay contents are processed separately, and the client displays multiple game screens at the same time to realize multi-tasking and parallel operations.
It improves players' gaming efficiency and fun in the game, avoids waiting windows, enhances the efficiency and reliability of game data transmission, and reduces network congestion on the server side.
Smart Images

Figure CN120189692A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of information interaction in games, and particularly to a method and system for processing information interaction in games. Background Art
[0002] In the prior art, the client of a game often communicates with the server process on the server side only through one communication link, so as to support the gameplay content for players to play the game.
[0003] Thus, players can usually only play the gameplay content of the current game screen, operate a game interface or a character in the game screen, etc. When it comes to certain gameplay content in the game (such as placement gameplay and hanging up to level up, etc.), players must open the game screen of this gameplay content in order to advance the progress of this gameplay content. At this time, players can only passively wait in the game screen of this gameplay content, thus unable to perform other operations or play other gameplay content in the game, and can only switch to other gameplay content after this gameplay content is completed.
[0004] Therefore, this not only affects the player's gaming experience, occupies the player's gaming time, reduces the player's gaming efficiency in the game, but also may cause the player to lose interest in the game. Summary of the Invention
[0005] Based on this, the purpose of this application is to provide a method and system for processing information interaction in games, which can improve the player's gaming efficiency and gaming interest in the game.
[0006] The purpose of this application can be achieved through the following technical solutions:
[0007] According to the first aspect of the embodiments of the present application, there is provided a method for processing information interaction in a game, which is applied to a server side and includes the following steps: obtaining a first game operation instruction through a first communication link with a client; processing the first game operation instruction through a first server process and obtaining corresponding first game data; sending the first game data to the client through the first communication link, so that the client updates and displays a first game screen according to the first game data; obtaining a second game operation instruction through a second communication link with the client; processing the second game operation instruction through a second server process and obtaining corresponding second game data; sending the second game data to the client through the second communication link, so that the client updates and displays a second game screen according to the second game data; wherein, the client simultaneously displays the first game screen and the second game screen, the first game screen corresponds to the first game play content of a target game, and the second game screen corresponds to the second game play content of the target game.
[0008] According to the second aspect of the embodiments of the present application, there is provided a system for processing information interaction in a game, which is applied to a server side. Wherein, the system for processing information interaction in the game includes: a first data transfer unit, configured to obtain a first game operation instruction through a first communication link with a client; process the first game operation instruction through a first server process and obtain corresponding first game data; send the first game data to the client through the first communication link, so that the client updates and displays a first game screen according to the first game data; a second data transfer unit, configured to obtain a second game operation instruction through a second communication link with the client; process the second game operation instruction through a second server process and obtain corresponding second game data; send the second game data to the client through the second communication link, so that the client updates and displays a second game screen according to the second game data; wherein, the client simultaneously displays the first game screen and the second game screen, the first game screen corresponds to the first game play content of the game, and the second game screen corresponds to the second game play content of the same game.
[0009] According to a third aspect of an embodiment of the present application, there is provided a method for information interaction processing in a game, which is applied to a client and includes the following steps: obtaining a first game operation instruction; sending the obtained first game operation instruction to a first server process of the server end through a first communication link with the server end; in response to first game data generated according to the first game operation instruction returned by the first server process, updating and displaying the first game screen; obtaining a second game operation instruction; sending the obtained second game operation instruction to a second server process of the server end through a second communication link with the server end; in response to second game data generated according to the second game operation instruction returned by the second server process, updating and displaying the second game screen; wherein, the client simultaneously displays the first game screen and the second game screen, the first game screen corresponds to first game play content of a target game, and the second game screen corresponds to second game play content of the target game.
[0010] According to a fourth aspect of an embodiment of the present application, there is provided a method for information interaction processing in a game, including the following steps: the client obtains a first game operation instruction and sends the obtained first game operation instruction to a first server process of the server end through a first communication link with the server end; the server end controls the first server process to process the first game operation instruction and obtains corresponding first game data; the server end sends the first game data to the client through the first communication link; the client updates and displays the first game screen according to the first game data; the client obtains a second game operation instruction and sends the obtained second game operation instruction to a second server process of the server end through a second communication link with the server end; the server end controls the second server process to process the second game operation instruction and obtains corresponding second game data; the server end sends the second game data to the client through the second communication link; the client updates and displays the second game screen according to the second game data; wherein, the client simultaneously displays the first game screen and the second game screen, the first game screen corresponds to first game play content of a target game, and the second game screen corresponds to second game play content of the target game.
[0011] Compared with the prior art, the method described in the present application obtains a first game operation instruction through a first communication link with a client; processes the first game operation instruction through a first server process and obtains corresponding first game data; sends the first game data to the client through the first communication link, so that the client updates and displays a first game screen according to the first game data; obtains a second game operation instruction through a second communication link with the client; processes the second game operation instruction through a second server process and obtains corresponding second game data; sends the second game data to the client through the second communication link, so that the client updates and displays a second game screen according to the second game data; wherein, the client simultaneously displays the first game screen and the second game screen, the first game screen corresponds to first game play content of a target game, and the second game screen corresponds to second game play content of the target game. Thus, by applying the multi-link technology, the method described in the present application enables a player to simultaneously operate multiple game screens of a target game when playing the target game, and can simultaneously play the second game play content of the target game during the waiting period of the first game play content of the target game, avoiding long and intermittent waiting windows, improving the player's own game experience, helping the player better control the game process, and improving the player's play efficiency and game interest in the game.
[0012] For better understanding and implementation, the present application will be described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a flowchart of steps of an information interaction processing method in a game applied to a server side provided by the present application;
[0014] Figure 2 It is a flowchart of steps for establishing a first communication link of an information interaction processing method in a game applied to a server side provided by the present application;
[0015] Figure 3 It is a split-screen effect schematic diagram of an information interaction processing method in a game applied to a server side provided by the present application;
[0016] Figure 4 It is a structural schematic diagram of an information interaction processing system in a game applied to a server side provided by the present application;
[0017] Figure 5 It is a schematic diagram of an information interaction processing device in a game applied to a server side provided by the present application;
[0018] Figure 6The flowchart of steps of a method for information interaction processing in a game provided for this application and applied to a client;
[0019] Figure 7 The flowchart of steps of a method for information interaction processing in a game provided for this application. Detailed implementation manners
[0020] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with this application. On the contrary, they are merely examples of devices and methods consistent with some aspects of this application as detailed in the appended claims.
[0021] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms "a", "the", and "said" used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0022] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".
[0023] Those skilled in the art can understand that the "client", "terminal", and "terminal device" used in this application include both devices with wireless signal receivers that only have the ability to receive and no transmitting ability, and devices with receiving and transmitting hardware that have the receiving and transmitting hardware capable of two-way communication on a two-way communication link. Such devices can include: cellular or other communication devices such as personal computers, tablets, etc., which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which can combine voice, data processing, fax, and / or data communication capabilities; PDA (Personal Digital Assistant), which can include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar, and / or GPS (Global Positioning System) receiver; conventional laptop and / or palm computers or other devices, which are conventional laptop and / or palm computers or other devices with and / or including a radio frequency receiver. The "client", "terminal", and "terminal device" used here can be portable, transportable, installed in a vehicle (air, sea, and / or land), or suitable for and / or configured to run locally, and / or run in a distributed form at any other location on the earth and / or in space. The "client", "terminal", and "terminal device" used here can also be communication terminals, Internet access terminals, music / video playback terminals, such as PDAs, MIDs (Mobile Internet Devices), and / or mobile phones with music / video playback functions, or can also be devices such as smart TVs, set-top boxes, etc.
[0024] The hardware referred to by names such as "server", "client", and "service node" in this application is essentially a computer device with the equivalent capabilities of a personal computer, which is a hardware device with the necessary components revealed by the von Neumann principle, including a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit loads the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input / output devices to complete specific functions.
[0025] It should be noted that the concept of "server side" in this application can similarly be extended to the case applicable to a server cluster. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. Physically, these servers can either be independent of each other but can be invoked through an interface, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility and should not be restricted by this when implementing the network deployment method of this application.
[0026] Embodiment 1
[0027] Please refer to Figure 1 , Figure 1 , which is a flowchart of the steps of an information interaction processing method in a game applied to the server side provided by this application. Among them, the server side includes several server processes. In one embodiment, the server side is the server side of the target game, and technicians can manage any server process in the server side through the server side. The information interaction processing method in the game includes the following steps:
[0028] S101. Obtain a first game operation instruction through a first communication link with the client; process the first game operation instruction through a first server process and obtain corresponding first game data; send the first game data to the client through the first communication link, so that the client updates and displays a first game screen according to the first game data;
[0029] S102. Obtain a second game operation instruction through a second communication link with the client; process the second game operation instruction through a second server process and obtain corresponding second game data; send the second game data to the client through the second communication link, so that the client updates and displays a second game screen according to the second game data.
[0030] Among them, the client simultaneously displays the first game screen and the second game screen. The first game screen corresponds to the first game play content of the target game, and the second game screen corresponds to the second game play content of the target game.
[0031] Regarding step S101. Obtain a first game operation instruction through a first communication link with the client; process the first game operation instruction through a first server process and obtain corresponding first game data; send the first game data to the client through the first communication link, so that the client updates and displays a first game screen according to the first game data;
[0032] Among them, the client refers to the terminal device logged in with the player account, which can be the same terminal device or different terminal devices logged in with the same player account. The terminal device includes hardware devices and software devices. Common terminal devices include personal computers, smartphones, tablets, virtual machines, etc. At the same time, the client can also refer to the computer program logged in with the player account, and this computer program can be stored on several of the terminal devices. In one embodiment, generally speaking, the same player can hold and log in to one or more player accounts on one or more terminal devices. The same terminal device can also be used as several clients to log in to several player accounts. Multiple players can also log in to the same player account, and multiple terminal devices can also log in to the same player account; in one embodiment, the client is the client of the target game.
[0033] The communication link is a channel that connects each communication node to achieve data transmission. In one embodiment, the first communication link is the data channel generated after the client is connected to the first server process of the server side.
[0034] According to the inventive concept of the present application and combined with the common general knowledge in the art, those skilled in the art can obtain the first game operation instruction through a variety of common technical means.
[0035] The first game operation instruction is the operation instruction of the player on the game content in the first game play content of the target game. In one embodiment, the first game operation instruction can be a movement instruction (for example, using the arrow keys or WASD keys to control the character to move, etc.), a combat instruction (for example, using the left mouse button or shortcut keys to attack, using skill shortcut keys to release skills, etc.), an interaction instruction (for example, talking to non-player characters, etc.) or an item management instruction (for example, opening the backpack or item bar, using drag and drop or shortcut keys to manage items, etc.) issued by the player to the game character in the game screen. It can also be a resource management instruction of the player on a specific object in the game screen (for example, controlling the sunny and rainy changes of the weather in the game or opening the resource panel of the business store in the game, viewing and managing resources, and consuming resources for building construction, etc.). It can also be a general operation instruction of the player on the game (for example, saving the game: using shortcut keys or menu options to save the current game progress; loading the game: using shortcut keys or menu options to load the previously saved game progress; setting options: adjusting game volume, picture quality, control methods, etc.).
[0036] The first server process is a server process in the server side. In one embodiment, the first server process is responsible for the data operation and / or response of the game content in the first game play content of the target game.
[0037] The first game data is the corresponding game data generated by the first server process after processing the first game operation instruction. In one embodiment, the first game data may be the coordinate position change data of the game character in the game screen (for example, moving the game character's texture map from coordinates (x, y) to coordinates (u, t)), or the weather change data in the game screen (for example, calling and playing a raindrop animation) or the building change data in the game screen (for example, replacing the small inn texture map in the game with a large inn texture map), or the image quality change data in the game (for example, calling a texture map with an excellent image quality classification to replace the current texture map with a normal image quality classification).
[0038] When the player inputs the first game operation instruction in the client, the server side obtains the first game operation instruction from the client through the first communication link and correspondingly hands it over to the first server process for processing; after receiving the first game operation instruction, the first server process performs data operation and / or response on the first game operation instruction according to the preset data operation rules and / or preset response rules of the game content in the game play content it is responsible for, obtains the first game data, and then sends the first game data to the client through the first communication link, so that the client updates and displays the first game screen according to the first game data, where the first game screen corresponds to the first game play content of the target game.
[0039] In one embodiment, when the player issues a movement instruction to the game character in the first game play content of the target game in the client, the server side obtains the movement instruction from the client through the first communication link and correspondingly hands it over to the first server process for processing; after receiving the movement instruction, the first server process performs data operation on the movement instruction according to the preset data operation rules of the movement instruction in the first game play content of the target game, obtains the first game data, and sends the first game data to the client through the first communication link, where the first game data includes moving the texture map of the game character in the first game play content of the target game from the first coordinate to the second coordinate; the client moves the texture map of the game character in the first game screen from the first coordinate to the second coordinate according to the first game data to update the first game screen.
[0040] For step S102, obtain a second game operation instruction through a second communication link with the client; process the second game operation instruction through a second server process and obtain corresponding second game data; send the second game data to the client through the second communication link, so that the client updates and displays a second game screen according to the second game data.
[0041] Wherein, the second communication link is a data channel generated after the client is connected to the second server process of the server side.
[0042] According to the inventive concept of the present application and in combination with the common general knowledge in the art, those skilled in the art can obtain the second game operation instruction through a variety of common technical means.
[0043] The second game operation instruction is an operation instruction for the game content in the second game play content of the target game. In one embodiment, the second game operation instruction may be a movement instruction (for example, using arrow keys or WASD keys to control character movement, etc.), a combat instruction (for example, using the left mouse button or a shortcut key to attack, using a skill shortcut key to release a skill, etc.), an interaction instruction (for example, talking to a non-player character, etc.), or an item management instruction (for example, opening a backpack or an item bar, using dragging or shortcut keys to manage items, etc.) issued by the player to the game character in the game screen. It may also be a resource management instruction for a specific object in the game screen by the player (for example, controlling the sunny or rainy change of the weather in the game or opening the resource panel of an operating store in the game, viewing and managing resources, and consuming resources for building construction, etc.). It may also be a general operation instruction for the game by the player (for example, saving the game: using a shortcut key or a menu option to save the current game progress; loading the game: using a shortcut key or a menu option to load the previously saved game progress; setting options: adjusting game volume, picture quality, control method, etc.).
[0044] The second server process is a server process in the server side. In one embodiment, the second server process is responsible for data operation and / or response of the game content in the second game play content of the target game. Among them, the second server process and the first server process can run simultaneously or independently, and simultaneously or independently transmit game operation instructions and game data with the client.
[0045] The second game data is the corresponding game data generated by the second server process after processing the second game operation instruction. In one embodiment, the second game data may be the coordinate position change data of the game character in the game screen (for example, moving the game character's texture from coordinates (x1, y1) to coordinates (u1, t1)), or the weather change data in the game screen (for example, calling and playing a raindrop animation) or the building change data in the game screen (for example, replacing the small inn texture in the game with a large inn texture), or the picture quality change data in the game (for example, calling a texture with an excellent picture quality classification to replace the current texture with a normal picture quality classification).
[0046] When the player inputs the second game operation instruction in the client, the server end obtains the second game operation instruction from the client through the second communication link and correspondingly hands it over to the second server process for processing; after receiving the second game operation instruction, the second server process performs data operation and / or response on the second game operation instruction according to the preset data operation rules and / or preset response rules of the game content in the game play content it is responsible for, to obtain the second game data, and then sends the second game data to the client through the second communication link, so that the client updates and displays the second game screen according to the second game data, where the second game screen corresponds to the second game play content of the target game.
[0047] In one embodiment, when the player issues a movement instruction to the game character in the second game play content of the target game in the client, the server end obtains the movement instruction from the client through the second communication link and correspondingly hands it over to the second server process for processing; after receiving the movement instruction, the second server process performs data operation on the movement instruction according to the preset data operation rules of the movement instruction in the second game play content of the target game, to obtain the second game data, and sends the second game data to the client through the second communication link, where the second game data includes moving the texture of the game character in the second game play content of the target game from the first coordinate to the second coordinate; the client moves the texture of the game character in the second game screen from the first coordinate to the second coordinate according to the second game data to update the second game screen.
[0048] The client displays the first game screen and the second game screen at the same time. Thus, by applying the information interaction processing method in the game described in this application, the player can play the second game play content of the target game while waiting for the first game play content of the target game (for example, waiting for teammates to cast spells or the weather to change from sunny to rainy), which effectively improves the fun of the game and the efficiency of the player's play; and, by adopting multi-link technology, each link can independently interact with different server processes and obtain data, so that multiple links can transmit data at the same time, avoiding the occurrence of synchronous blocking, so that players can play different game play contents, and effectively increase parallelism, improve the efficiency and reliability of game data transmission, and multiple links can disperse the traffic load, alleviate the network congestion problem on the server side, and also improve the efficiency of information interaction processing in the game.
[0049] In addition, the information interaction processing method in the game described in the present application also provides some information interaction processing steps for creating a first communication link before executing step S101 (obtaining a first game operation instruction through a first communication link with a client), and the steps include:
[0050] S10. In response to a connection instruction initiated by the client at the communication port of the first server process, control the first server process to establish a first communication link with the client.
[0051] Among them, the communication port of the first server process is a logical address used to communicate with the external network or communicate between internal processes of the server. Its specific value depends on the server application, service and configuration used by the server. For example, when the HTTP protocol is used for communication, the corresponding communication port number is 80; when the HTTPS protocol is used for communication, the corresponding communication port number is 443.
[0052] Please also refer to Figure 2 , Figure 2 A flowchart of the steps of establishing a first communication link in a method for processing information interaction in a game applied to a server side provided in the present application.
[0053] In one embodiment, step S10 includes the following steps:
[0054] S11. Control the first server process to call a socket function to create a first socket descriptor.
[0055] Among them, the socket function is a commonly used function in network programming, which is used to create, manage and operate sockets; according to the inventive concept of the present application, the technician can create the first socket descriptor by applying the socket function socket().
[0056] S12. Bind the first socket descriptor to the IP address of the first server process and the communication port of the first server process.
[0057] According to the inventive concept of the present application, a person skilled in the art can bind the first socket descriptor to the IP address of the first server process and the communication port of the first server process by applying the socket function bind().
[0058] S13. Set a port listening function at the first socket descriptor to enable the first socket descriptor to listen for and receive connection requests sent by the client.
[0059] According to the inventive concept of the present application, a person skilled in the art can set the first socket descriptor to the listening mode by applying the socket function listen(), so that the first socket descriptor listens for and receives connection requests sent by the client.
[0060] S14. In response to the connection request sent by the client, control the first server process to create and store a corresponding communication socket descriptor through a connection response function, where the client corresponds to the communication socket descriptor one by one.
[0061] According to the inventive concept of the present application, when the client initiates a connection request, the first server process accepts the connection request by calling the accept() function and returns a new socket descriptor (i.e., the communication socket descriptor) for communicating with the client.
[0062] S15. Control the first server process to perform data communication with the corresponding client through the corresponding communication socket descriptor, where the data communication includes sending game data and / or receiving game data.
[0063] In one embodiment, the server side first creates a socket descriptor and binds it to a specified IP address and port; then, the server side makes the socket descriptor enter the listening state and waits for a connection request from the client; when the client initiates a connection request, the server side responds to the connection request initiated by the client through the socket descriptor and establishes a connection with the client; after that, the client and the server can send and receive data to each other through the established connection; finally, when the communication ends, both sides can close the corresponding socket descriptor to cut off the connection and release resources.
[0064] In addition, the information interaction processing method in the game described in this application also provides some information interaction processing steps for creating a second communication link before executing step S102 (obtaining a second game operation instruction through the second communication link with the client), and the steps include:
[0065] S20. Receive a new link creation instruction sent by the client, and control the second server process to establish a second communication link with the client.
[0066] In one embodiment, step S20 includes the following steps:
[0067] S21. Obtain the new link creation instruction sent by the client to the first server process through the first communication link.
[0068] According to the inventive concept of this application, those skilled in the art can obtain the new link creation instruction through multiplexing the first communication link to establish the second communication link, reduce the complexity and difficulty of establishing a new communication link, ensure the credibility, legality of both parties in the connection and the data security during transmission, thereby improving the parallelism and the efficiency and reliability of game data transmission.
[0069] In one embodiment, when a player is playing the first game play content of the target game, the player can click on the entry of the second game play content in the target game, and the client responds to this click operation and sends the new link creation instruction to the first server process through the first communication link.
[0070] S22. Analyze the new link creation instruction to obtain the identity information of the second server process that the client needs to connect to.
[0071] Among them, the identity information is used to represent the server process in the server side. In one embodiment, the identity information may be the characteristic value code of each server process.
[0072] S23. According to the identity information, control the second server process to establish a second communication link with the client.
[0073] In this embodiment, step S23 can be implemented through the following steps:
[0074] S231. According to the identity information, control the second server process that the client needs to connect to to generate a communication key.
[0075] In one embodiment, the communication key is a token (a token for verifying identity).
[0076] S232. Control the first server process to return the IP address, communication port, and communication key of the second server process to the client through the first communication link.
[0077] S233. In response to the HTTP request created by the client based on the IP address and communication port of the second server process and sent to the second server process, control the second server process to obtain the header information of the HTTP request.
[0078] Wherein, the header information of the HTTP request at least includes the communication key and the identity information of the client.
[0079] S234. Control the second server process to perform communication key verification. If the communication key passes the verification, control the second server process to accept the HTTP request and establish a corresponding HTTP connection.
[0080] According to the inventive concept of the present application, a person skilled in the art can control the second server process to disassemble the header information of the HTTP request from the HTTP request, obtain the communication key therein, and perform communication key verification with the communication key generated previously by itself, so as to ensure the consistency, reliability, and legality of the connected client.
[0081] In addition, the information interaction processing method in the game described in the present application further provides some information interaction processing steps for, after returning the second game data to the client, enabling the client to update and display a second game screen according to the second game data. The steps include:
[0082] S103a. Return the second game data to the client through the second communication link, so that the client updates and displays the second game screen according to the second game data and embeds it in the first game screen, wherein the second game screen is smaller than the first game screen.
[0083] And / or
[0084] S103b. Return the second game data to the client through the second communication link, so that the client creates a first display window and a second display window, updates and displays the first game screen in the first display window according to the first game data, and updates and displays the second game screen in the second display window according to the second game data.
[0085] In one embodiment, a technician can, by applying step S103a and combining the above multi-link technology, display the second game screen in the form of a picture-in-picture within the first game screen. A player can independently operate the second game screen in the picture-in-picture form without affecting the first game screen which serves as the main screen, thereby providing greater flexibility and convenience for the user.
[0086] Meanwhile, please refer to Figure 3 , Figure 3 which is a schematic diagram of the picture-in-picture effect of an information interaction processing method in a game applied to the server side provided by this application. The implementation of the picture-in-picture reduces the dependence of the game play content on the communication between server processes, which means that the impact of server performance and network fluctuations on independent game plays is minimized. This change not only reduces the burden on server processes, improves their performance and stability, but also provides a more smooth and stable game environment for players. The player's operations themselves no longer directly affect server performance, which makes the game run more efficiently and reduces delays or lags caused by player behavior. In addition, this design naturally has the characteristic of load balancing, reducing the burden on server processes and enabling them to better handle high-concurrency requests and the situation of a large number of players being online simultaneously.
[0087] In another embodiment, a technician can also, by applying step S103b, display the first game screen and the second game screen in the first display window and the second display window respectively. A player can operate different game screens in two different windows and experience different game play contents of the target game.
[0088] In addition, the information interaction processing method in the game described in this application also provides some information interaction processing steps for performing information interaction processing according to the game screen in the active state on the client side. The steps include:
[0089] S40. Obtain the game screen in the active state on the client side.
[0090] Among them, the game screen in the active state includes the first game screen and / or the second game screen.
[0091] S41. According to the game screen in the active state, in response to a third game operation instruction sent by the client through the corresponding communication link, process the third game operation instruction through the first server process and / or the second server process, and obtain the corresponding third game data.
[0092] Among them, the communication link includes the first communication link and / or the second communication link.
[0093] S42. Send the third game data to the client through the communication link, so that the client updates and displays the active game screen according to the third game data.
[0094] Embodiment 2
[0095] Please refer to Figure 4 , this application also provides an information interaction processing system in a game to implement the steps of the information interaction processing method in the game applied to the server side in the above embodiments. The information interaction processing system in the game, which is applied to the server side, includes: a first data transfer unit 1001 and a second data transfer unit 1002.
[0096] The first data transfer unit 1001 is used to obtain a first game operation instruction through a first communication link with the client; process the first game operation instruction through a first server process and obtain corresponding first game data; send the first game data to the client through the first communication link, so that the client updates and displays a first game screen according to the first game data;
[0097] The second data transfer unit 1002 is used to obtain a second game operation instruction through a second communication link with the client; process the second game operation instruction through a second server process and obtain corresponding second game data; send the second game data to the client through the second communication link, so that the client updates and displays a second game screen according to the second game data;
[0098] Wherein, the client simultaneously displays the first game screen and the second game screen. The first game screen corresponds to the first game play content of the game, and the second game screen corresponds to the second game play content of the same game.
[0099] It should be noted that when the above-mentioned information interaction processing system in a game implements an information interaction processing method in a game, only the above-mentioned division of each functional unit is used for illustration. In actual application, the above functions can be allocated to different functional units according to needs, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above.
[0100] In addition, the information interaction processing system in a game provided in the above embodiment and the information interaction processing method in Embodiment 1 belong to the same concept. The implementation process is shown in detail in the method embodiment, that is, Embodiment 1, which will not be elaborated here.
[0101] Embodiment 3
[0102] The present application also provides an electronic device, such as Figure 5 As shown, the computer device 21 may include: a processor 210, a memory 211, and a computer program 212 stored in the memory 211 and executable on the processor 210, for example: an information interaction processing program in a game; when the processor 210 executes the computer program 212, the steps in the above embodiments are implemented.
[0103] Among them, the processor 210 may include one or more processing cores. The processor 210 connects various parts within the computer device 21 through various interfaces and lines, and by running or executing instructions, programs, code sets, or instruction sets stored in the memory 211, and by calling the data in the memory 211, it executes various functions of the computer device 21 and processes data. Optionally, the processor 210 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 210 may integrate a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for the rendering and drawing of the content to be displayed on the touch display screen; the modem is used to process wireless communication. It can be understood that the above modem may not be integrated into the processor 210 and may be implemented separately by a single chip.
[0104] Among them, the memory 211 may include random access memory (RAM), and may also include read-only memory. Optionally, the memory 211 includes a non-transitory computer-readable storage medium. The memory 211 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 211 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above method embodiments, etc.; the data storage area may store the data involved in the above method embodiments. Optionally, the memory 211 may also be at least one storage device located far from the aforementioned processor 210.
[0105] The embodiments of the present application also provide a computer storage medium, which can store multiple instructions. These instructions are suitable for being loaded and executed by a processor to perform the method steps of the above embodiments. For the specific execution process, reference can be made to the specific descriptions in the above embodiments and will not be elaborated here.
[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiments can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working processes of the units and modules in the above system can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.
[0107] In the embodiments of the present application, the descriptions of each embodiment have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0108] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in the form of hardware or software depends on the specific application and design constraints of the technical solution. Professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0109] In the embodiments provided in the present application, it should be understood that the disclosed device / terminal device and method can be implemented in other ways. For example, the device / terminal device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.
[0110] The unit described as a separate component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0111] In addition, each functional unit in various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0112] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-mentioned embodiment methods of the present application, it can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc.
[0113] Embodiment 4
[0114] Please refer to Figure 6 , Figure 6 which is a flowchart of the steps of a method for information interaction processing in a game applied to a client provided by the present application. The method includes the following steps:
[0115] S601. Obtain a first game operation instruction;
[0116] S602. Send the obtained first game operation instruction to the first server process of the server end through a first communication link with the server end;
[0117] S603. In response to the first game data generated according to the first game operation instruction returned by the first server process, update and display the first game screen;
[0118] S604. Obtain a second game operation instruction;
[0119] S605. Send the obtained second game operation instruction to the second server process of the server end through a second communication link with the server end;
[0120] S606. Update and display the second game screen in response to the second game data generated according to the second game operation instruction returned by the second server process.
[0121] Among them, the client simultaneously displays the first game screen and the second game screen. The first game screen corresponds to the first game play content of the target game, and the second game screen corresponds to the second game play content of the target game.
[0122] In addition, the information interaction processing method in a game applied to the client provided in the above embodiment and the information interaction processing method in a game applied to the server side provided in Embodiment 1 belong to the same concept. The implementation process is shown in detail in Embodiment 1 and will not be elaborated here.
[0123] Embodiment 5
[0124] Please refer to Figure 7 , Figure 7 , which is the step flowchart of an information interaction processing method in a game provided by this application. The method includes the following steps:
[0125] S701. The client obtains a first game operation instruction and sends the obtained first game operation instruction to the first server process of the server side through the first communication link with the server side;
[0126] S702. The server side controls the first server process to process the first game operation instruction and obtains the corresponding first game data;
[0127] S703. The server side sends the first game data to the client through the first communication link;
[0128] S704. The client updates and displays the first game screen according to the first game data;
[0129] S705. The client obtains a second game operation instruction and sends the obtained second game operation instruction to the second server process of the server side through the second communication link with the server side;
[0130] S706. The server side controls the second server process to process the second game operation instruction and obtains the corresponding second game data;
[0131] S707. The server side sends the second game data to the client through the second communication link;
[0132] S708. The client updates and displays the second game screen according to the second game data.
[0133] Wherein, the client simultaneously displays the first game screen and the second game screen, the first game screen corresponding to the first game play content of the target game, and the second game screen corresponding to the second game play content of the target game.
[0134] In addition, the information interaction processing method in a game provided in the above embodiment and the information interaction processing method in a game applied to the server side provided in Embodiment 1 belong to the same concept. The implementation process is shown in detail in Embodiment 1 and will not be elaborated here.
[0135] The above embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can be made, and the present application also intends to include these modifications and improvements.
Claims
1. A method for processing information interaction in a game, applied to a server, comprising the following steps: Acquire a first game operation instruction through a first communication link with the client; Processing the first game operation instruction through a first server process and obtaining corresponding first game data; sending the first game data to the client through the first communication link, so that the client updates and displays a first game screen according to the first game data; Acquiring a second game operation instruction through a second communication link with the client; Processing the second game operation instruction through the second server process and obtaining corresponding second game data; sending the second game data to the client through the second communication link, so that the client updates and displays the second game screen according to the second game data; The client displays the first game screen and the second game screen simultaneously, the first game screen corresponds to the first game play content of the target game, and the second game screen corresponds to the second game play content of the target game.
2. The information interaction processing method in the game according to claim 1, Before the step of acquiring the first game operation instruction through the first communication link with the client, the method further includes: In response to a connection instruction initiated by the client at the communication port of the first server process, controlling the first server process to establish a first communication link with the client; Before the step of acquiring the second game operation instruction through the second communication link with the client, the method further includes: A new link creation instruction is received from the client, and a second server process is controlled to establish a second communication link with the client.
3. According to the information interaction processing method in the game of claim 2, in response to a connection instruction initiated by the client at the communication port of the first server process, the step of controlling the first server process to establish a first communication link with the client comprises: Controlling the first server process to call a socket function to create a first socket descriptor; Binding the first socket descriptor to the IP address of the first server process and the communication port of the first server process; Setting a port monitoring function at the first socket descriptor so that the first socket descriptor monitors and receives a connection request sent by a client; In response to the connection request received from the client, control the first server process to create and store a corresponding communication socket descriptor through a connection response function, wherein the client corresponds to the communication socket descriptor one by one; Control the first server process to perform data communication with the corresponding client through the corresponding communication socket descriptor, wherein the data communication includes sending game data and / or receiving game data.
4. According to the method for processing information interaction in a game as claimed in claim 2, the step of receiving a new link creation instruction issued by the client and controlling the second server process to establish a second communication link with the client comprises: Obtaining a new link creation instruction sent by the client to the first server process through the first communication link; Parsing the new link creation instruction to obtain identity information of a second server process to be connected corresponding to the client; According to the identity information, the second server process is controlled to establish a second communication link with the client.
5. According to the method for processing information interaction in a game as claimed in claim 4, the step of controlling the second server process to establish a second communication link with the client according to the identity information comprises: According to the identity information, controlling the second server process corresponding to the client and needing to connect to generate a communication key; Controlling the first server process to return the IP address, communication port and communication key of the second server process to the client through the first communication link; In response to a hypertext transfer protocol request created by the client based on the IP address and communication port of the second server process and sent to the second server process, controlling the second server process to obtain header information of the hypertext transfer protocol request, wherein the header information of the hypertext transfer protocol request includes at least the communication key and the identity information of the client; The second server process is controlled to perform communication key verification. If the communication key passes the verification, the second server process is controlled to accept the hypertext transfer protocol request and establish a corresponding hypertext transfer protocol connection.
6. The method for processing information interaction in a game according to claim 1, wherein the method for processing information interaction in a game further comprises: returning the second game data to the client through the second communication link, so that the client updates and displays the second game screen according to the second game data and embeds the second game screen in the first game screen, wherein the second game screen is smaller than the first game screen; and / or, The second game data is returned to the client through the second communication link, so that the client creates a first display window and a second display window, and updates the first game screen to be displayed in the first display window according to the first game data, and updates the second game screen to be displayed in the second display window according to the second game data.
7. The method for processing information interaction in a game according to claim 1, wherein the method for processing information interaction in a game further comprises: Acquire an activated game screen on the client, wherein the activated game screen includes the first game screen and / or the second game screen; According to the activated game screen, in response to a third game operation instruction sent by the client through a corresponding communication link, the first server process and / or the second server process processes the third game operation instruction and obtains corresponding third game data, wherein the communication link includes the first communication link and / or the second communication link; The third game data is sent to the client through the communication link, so that the client updates and displays the activated game screen according to the third game data.
8. An information interaction processing system in a game, applied to a server, characterized in that: The information interaction processing system in the game includes: A first data transfer unit is used to obtain a first game operation instruction through a first communication link with a client; process the first game operation instruction through a first server process and obtain corresponding first game data; send the first game data to the client through the first communication link, so that the client updates and displays a first game screen according to the first game data; A second data transfer unit is used to obtain a second game operation instruction through a second communication link with the client; process the second game operation instruction through a second server process and obtain corresponding second game data; send the second game data to the client through the second communication link, so that the client updates and displays a second game screen according to the second game data; The client displays the first game screen and the second game screen simultaneously, the first game screen corresponds to a first game play content of a game, and the second game screen corresponds to a second game play content of the same game.
9. A method for processing information interaction in a game, applied to a client, comprising the following steps: Obtaining a first game operation instruction; Sending the acquired first game operation instruction to a first server process of the server through a first communication link with the server; In response to the first game data generated according to the first game operation instruction returned by the first server process, updating and displaying the first game screen; Obtaining a second game operation instruction; Sending the acquired second game operation instruction to the second server process of the server through a second communication link with the server; In response to the second game data generated according to the second game operation instruction returned by the second server process, updating and displaying the second game screen; The client displays the first game screen and the second game screen simultaneously, the first game screen corresponds to the first game play content of the target game, and the second game screen corresponds to the second game play content of the target game.
10. A method for processing information interaction in a game, comprising the following steps: The client obtains a first game operation instruction, and sends the obtained first game operation instruction to a first server process of the server through a first communication link with the server; The server side controls the first server process to process the first game operation instruction and obtains corresponding first game data; The server sends the first game data to the client through the first communication link; The client updates and displays the first game screen according to the first game data; The client obtains a second game operation instruction, and sends the obtained second game operation instruction to a second server process of the server through a second communication link with the server; The server side controls the second server process to process the second game operation instruction and obtains corresponding second game data; The server sends the second game data to the client through the second communication link; The client updates and displays the second game screen according to the second game data; The client displays the first game screen and the second game screen simultaneously, the first game screen corresponds to the first game play content of the target game, and the second game screen corresponds to the second game play content of the target game.