A game control method, device, computer equipment, and storage medium
By dynamically adjusting the user's matching pool based on IDC's matching level and status information, the problem of long team formation time caused by fewer users in the user matching pool in multiplayer games is solved, improving game matching efficiency and increasing user experience.
Patent Information
- Application Number
- CN202010507977.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-05
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-06-05
AI Technical Summary
In multiplayer games, when there are fewer users in the user matching pool, the team formation time will be long and the team formation efficiency will be low.
By dynamically adjusting the user's matching pool based on the matching level and status information of the Internet Data Center (IDC), if the matching level is the first level and the status does not meet the conditions, the user will be transferred to the matching pool of an IDC with a higher matching level. Match, and when the waiting time reaches the threshold, artificial intelligence AI players will be added to quickly match.
It effectively avoids users waiting for a long time in the matching pool, improves game matching efficiency, and enables global server games to increase user experience.
Smart Images

Figure CN111632385B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, in particular to the field of cloud technology, and in particular to a game control method, device, computer equipment and storage medium. Background Art
[0002] In multiplayer games, the system generally needs to match multiple users for the user. When a sufficient number of players are matched, the official game can begin. Currently, multiple users are divided into multiple matching pools according to distance, and users are fixedly added to a matching pool. However, in some cases, such as when a matching pool contains fewer users, it will take a long time for the user to form a team in the matching pool, and the team formation efficiency is low. Summary of the invention
[0003] Embodiments of the present application provide a game control method, apparatus, computer device, and storage medium for improving the efficiency of game matching.
[0004] In one aspect, a game control method is provided, comprising:
[0005] Determine a first Internet data center IDC associated with the target game client according to a data request sent by a target client associated with the target account; wherein the data request is used to request a matching game queue;
[0006] If the matching level of the first IDC is the first level, and the status information in the first matching pool corresponding to the first IDC does not meet the set conditions, the target account is added to the second matching pool of the second IDC with a matching level of the second level for matching; wherein the matching level is divided according to the matching efficiency of the IDC, the higher the matching level, the higher the matching efficiency of the IDC, and the matching efficiency is determined according to the status information of the matching pool.
[0007] In another aspect, a game control device is provided, comprising:
[0008] A determination module, configured to determine a first Internet data center IDC associated with the target game client according to a data request sent by a target client associated with a target account; wherein the data request is used to request a match to a game queue;
[0009] A joining module is used to add the target account to the second matching pool of the second IDC with a matching level of the second level for matching if the matching level of the first IDC is the first level and the status information in the first matching pool corresponding to the first IDC does not meet the set conditions; wherein the matching level is divided according to the matching efficiency of the IDC, the higher the matching level, the higher the matching efficiency of the IDC, and the matching efficiency is determined according to the status information of the matching pool.
[0010] In a possible embodiment, the joining module is further used for:
[0011] If the matching level of the first IDC is the first level, and the status information in the first matching pool corresponding to the first IDC meets the set conditions, the target account is added to the first matching pool for matching; or
[0012] If the matching level of the first IDC is the second level, the target account is added to the first matching pool for matching.
[0013] In a possible embodiment, the joining module is further used for:
[0014] If the matching level of the first IDC is the first level, after adding the target account to the first matching pool for matching, monitoring the first waiting time of the target account;
[0015] When the first waiting time reaches a first set time and the target account is not successfully matched, the target account is transferred to the second matching pool for matching.
[0016] In a possible embodiment, the joining module is further used for:
[0017] If the matching level of the first IDC is the second level, after adding the target account to the first matching pool for matching, monitoring the second waiting time of the target account;
[0018] When the second waiting time reaches the second set time and the target account is not matched successfully, an artificial intelligence AI player is added to the target queue where the target account is waiting.
[0019] In a possible embodiment, the state information in the first matching pool does not meet a set condition, including at least one of the following:
[0020] Within a preset time period, the number of accounts in the waiting matching queue in the first matching pool is less than a first number threshold; or,
[0021] Within a preset time period, the number of successfully matched single game rounds in the first matching pool is less than a first round number threshold; or,
[0022] Within a preset time period, the average matching duration of a single game successfully matched in the first matching pool is greater than a first duration threshold; or
[0023] Within a preset time period, the number of online accounts in the first matching pool is less than a second number threshold; or,
[0024] Within a preset time period, the average matching duration of a single game of an account of the same level as the target account in the first matching pool is greater than a second duration threshold; or
[0025] Within a preset time period, the number of single game rounds successfully matched with accounts of the same level as the target account in the first matching pool is less than a second game number threshold; or,
[0026] Within a preset time period, the number of accounts of the same level as the target account in the waiting matching queue in the first matching pool is less than a third number threshold; or,
[0027] Within a preset time period, the number of online accounts of the same level as the target account in the first matching pool is less than a fourth number threshold.
[0028] In a possible embodiment, the device further includes a notification module, wherein:
[0029] The notification module is used to notify the IDC-associated player-to-player PVP server corresponding to the target queue to create a single game for the target queue corresponding to the target account when the target account is matched to the target queue.
[0030] On the other hand, an embodiment of the present application provides a computer device, including:
[0031] at least one processor, and
[0032] a memory communicatively coupled to the at least one processor;
[0033] The memory stores instructions executable by the at least one processor, and the at least one processor implements the game control method as described in any one of the aspects by executing the instructions stored in the memory.
[0034] On the other hand, an embodiment of the present application provides a storage medium, wherein the storage medium stores computer instructions. When the computer instructions are executed on a computer, the computer executes the game control method as described in any one of the aspects.
[0035] Since the embodiment of the present application adopts the above technical solution, it has at least the following technical effects:
[0036] In the embodiment of the present application, when the matching level of the first IDC associated with the user's target account is the first level, and the status information in the first matching pool corresponding to the first IDC does not meet the set conditions, the target account is switched to an IDC with higher matching efficiency, thereby avoiding the user from waiting for a long time in the matching pool and improving the game matching efficiency. In addition, since the matching pool can be flexibly selected for the user, that is, the user may be matched with other users of different IDCs at different times, the global same-server game of each user is realized, the unpredictability of the game is increased, and the user's gaming experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of the architecture of a game control system provided for related technologies;
[0038] Figure 2 A schematic diagram of an application scenario of the game control method provided in an embodiment of the present application;
[0039] Figure 3 Provided in the embodiments of this application Figure 2 Schematic diagram of the interaction between the devices in the diagram;
[0040] Figure 4 A curve comparison chart for monitoring the number of online accounts of each IDC provided in an embodiment of the present application;
[0041] Figure 5 A curve comparison chart for monitoring the average network delay of each IDC provided in an embodiment of the present application;
[0042] Figure 6 A comparison chart of the optimal number of account curves for monitoring the RTT of each IDC provided in the embodiment of the present application;
[0043] Figure 7 A comparison chart of the number of game matches successfully matched by each IDC in the last two days provided in an embodiment of the present application;
[0044] Figure 8 A flowchart of a game control method provided in an embodiment of the present application;
[0045] Fig. 9 A schematic diagram of the structure of a game control device provided in an embodiment of the present application;
[0046] Fig.10 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to better understand the technical solution provided by the embodiments of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0048] Cloud computing: is a computing model that distributes computing tasks on a resource pool consisting of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, expanded at any time, and paid for by use.
[0049] As a provider of basic cloud computing capabilities, a cloud computing resource pool (referred to as a cloud platform, generally referred to as an Infrastructure as a Service (IaaS) platform) will be established, and various types of virtual resources will be deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
[0050] According to the logical function division, the Platform as a Service (PaaS) layer can be deployed on the Infrastructure as a Service (IaaS) layer, and the Software as a Service (SaaS) layer can be deployed on the PaaS layer, or SaaS can be directly deployed on IaaS. PaaS is a platform for software operation, such as databases, web containers, etc. SaaS is a variety of business software, such as web portals, SMS mass senders, etc. Generally speaking, SaaS and PaaS are upper layers relative to IaaS. The servers or Internet data centers involved in the embodiments of the present application can all be implemented through cloud computing technology.
[0051] Cloud gaming: also known as gaming on demand, is an online gaming technology based on cloud computing technology. Cloud gaming technology enables thin clients with relatively limited graphics processing and data computing capabilities to run high-quality games. In a cloud gaming scenario, the game is not played on the player's game terminal, but on a cloud server, which renders the game scene as a video and audio stream and transmits it to the player's game terminal over the network. The player's game terminal does not need to have powerful graphics computing and data processing capabilities, but only needs to have basic streaming media playback capabilities and the ability to obtain player input commands and send them to the cloud server. The games involved in the embodiments of the present application can be implemented through cloud gaming.
[0052] Server: It can be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0053] Terminal: Also known as terminal equipment, it can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, game console, etc., but not limited to these. The terminal and the server can be directly or indirectly connected through wired or wireless communication, and this application does not limit this.
[0054] Target account: refers to the game account used by the user who needs to match the queue. The target account can be an account previously registered by the user, or it can be a temporary account created by the system for the user. The target account is related to the user. Therefore, in this article, the account matching queue can be understood as the user matching queue, and the number of accounts can also be understood as the number of users. The user who uses the target account for game matching is called the target user.
[0055] Game client: refers to a client installed in a terminal to provide game services to users. The game client can be a game client pre-installed in the terminal, or it can be a lightweight client embedded in a third-party application. In order to facilitate the distinction between the game clients of each user, the user who currently needs to be matched with a game can be called the target user, or the target game player, and the game client of the target user is called the target game client.
[0056] Internet Data Center: (Internet Data Center, IDC) refers to a service platform for providing game servers, which generally has complete equipment and facilities, professional management, and complete applications. Equipment and facilities include high-speed Internet access bandwidth, high-performance local area network, safe and reliable computer room environment, etc. Each IDC can be equipped with multiple player VS Player (PVP) servers. Different IDCs can be created in different regions, and multiple IDCs can also be created in the same region. In an embodiment of the present application, multiple IDCs can be divided into different matching levels, such as the first level, the second level, and the third level, and so on. The higher the matching level of the IDC, the greater the probability of matching to the queue within the time length set in the IDC. Each IDC will be associated with a corresponding matching pool.
[0057] Player vs. Player (PVP) server: refers to a server used to support a single game between players. The server can be implemented using the cloud computing technology mentioned above.
[0058] Matching pool: refers to the queue used to match users. Each matching pool includes users waiting in the matching queue. Since the time when a user logs into the game is uncertain, the number of users waiting in the matching queue in each matching pool is uncertain. Information such as the number of accounts waiting to be matched in the matching pool, the number of queues, the length of time the accounts wait for matching, etc. can all reflect the state of the matching pool and serve as the status information of the IDC to reflect the activity of the matching pool. The more active the matching pool is, the more efficient it is in successfully matching accounts. For example, a matching pool with low activity can be understood as being in a low state, and a matching pool with high activity can be understood as being in a peak state.
[0059] Round-Trip Time (RTT): refers to the time required for a network packet from a game client to an IDC. RTT is related to the distance between the game client and the IDC, as well as the network status of the IDC. For example, the closer the distance between a game client and the IDC, the smaller the RTT.
[0060] Elo rating system: It refers to the evaluation method for measuring the game level of users in the game, which is widely used in multiplayer games. For example, in games, the level of users is often used to evaluate. In multiplayer games, the higher the level of the user, the stronger the user's combat ability. The level of the user is related to the user's performance in each game and the number of games the user participates in.
[0061] The following is an introduction to the design concepts involved in the embodiments of the present application.
[0062] Please refer to Figure 1 , represents an architecture diagram of a game control system in a related technology. The architecture diagram includes multiple IDCs 110 and terminal devices 120. A game client 121 is installed in the terminal device 120. One or more of the multiple IDCs can serve as a public service cluster, which is used to manage other IDCs. The public service cluster includes multiple regional servers 130, matching servers 140, and databases 150. Other IDCs are deployed with multiple PVP servers 160. In addition, Figure 1 A domain name server 170 is also included. Figure 1 The database 150 includes data stored in the server as an example.
[0063] The regional server 130 is used to provide users with services other than starting the game, such as receiving experience rewards, etc. The database 150 is used to store some user data, etc. The domain name server 170 is used to resolve the domain name address of the game client or other PVP server 160.
[0064] When a user initiates a game data request through the game client 121, the system assigns the user the IDC closest to the user by default and matches the user to a queue in the matching pool of the IDC. However, when there are fewer online users in a matching pool, the system takes a long time to match the user to a queue, resulting in low efficiency in matching queues.
[0065] In view of this, the inventor of the present application designs a game control method, in which, according to the matching efficiency of each IDC in the multiple IDCs, the multiple IDCs are divided into at least two matching levels. If the IDC associated with the game client is of a high level, it can be matched directly in the matching pool of the IDC associated with the game client. Considering that the matching pool of the low-level IDC may also be very active in the state, the matching degree will also be very high at this time. Therefore, if the IDC associated with the game client is of a lower level, but according to the state information of the IDC associated with the game client, the matching can also be matched in the matching pool of the IDC associated with the game client when the set conditions are met. On the contrary, if the state information of the IDC associated with the game client does not meet the set conditions, the user is added to the IDC with a higher matching level for matching, that is, in this method, some state information that can reflect the matching efficiency of the IDC is selected as a basis for judgment, so as to flexibly adjust the IDC to the user matching queue according to the state information of the IDC, and on the basis of trying to select the matching pool of the IDC associated with the game client for matching, it can avoid the situation where the user spends a long time in the matching queue in the matching pool of an IDC, thereby improving the efficiency of game matching and enhancing the user experience. Moreover, since the system matches different IDCs for users at different times, users may play games with users in different matching pools at different times, enabling users to play games with users from more regions. Moreover, since each user can be flexibly assigned to each IDC, it is beneficial to achieve load balancing for each IDC.
[0066] Furthermore, the inventors of the present application have considered that in some cases, the status information of the IDC where the user is located meets the set conditions, so the user can be directly added to the current corresponding IDC for matching. However, the matching queue time may be too long due to other reasons during the matching process. Other reasons may include that the user's level is too high and there are fewer players of the same level in the IDC. In this case, the user can be added to an IDC with a higher matching level to facilitate matching the user to the queue more quickly.
[0067] Furthermore, the inventors of the present application took into account that the matching level of the IDC associated with the user's game client is already relatively high. Even if the status information of the IDC does not meet the set conditions, other IDCs with low matching levels will also find it difficult to meet the set conditions. In this case, continuing to judge the status information of the matching pool corresponding to the IDC will increase the system burden. Therefore, the inventors of the present application considered that when the matching level of the IDC associated with the user's game client is already relatively high, the user can be added to the matching pool corresponding to the IDC. If the user has not been matched to a queue within the set time, an artificial intelligence (AI) player will be created for the user to quickly create a queue for the user.
[0068] Based on the above design ideas, the application scenarios involved in the embodiments of this application are introduced below. Figure 2 , which is a scene diagram of a game control method, or can also be understood as an architecture diagram of a game control system.
[0069] The scenario includes a terminal device 210, a domain name server 220, and multiple IDCs 230. A game client is installed in the terminal device 210. The game client corresponding to the target user can be called a target game client 211. Multiple IDCs can be deployed in different regions, or some IDCs can be deployed in the same region. One or more of the multiple IDCs 230 serve as public service clusters, and each public service cluster includes multiple regional servers 231, a database 232, a monitoring server 233, and a matching server 234. In addition, each public server cluster can also include a guild server, Figure 2 The guild server is not shown, and is used to provide services to individual members. Figure 2 In the figure, the database 232 is taken as an example with the server as the carrier.
[0070] For the sake of distinction, the IDC230 that serves as a public service set will be referred to as the master IDC230, and other IDC230 will be referred to as IDC230. In the absence of a specific reference to the master IDC230, the IDC230 in the following text can be understood as the IDC230 other than the master IDC230. In addition to the IDC230 that serves as a public service cluster, other IDC230 will be divided into at least two matching levels according to the matching efficiency. The higher the matching level, the higher the efficiency of matching to the queue in the IDC230. Multiple PVP servers 235 will be deployed under other IDCs, and each PVP server 235 is used to create a single game for the target user. A single game can also be called a game single game. That is to say, the user associated with the single game conducts subsequent game processes through the PVP server 235.
[0071] Among them, the regional server 231 is used to provide other services besides game matching and game fighting. The database 232 is used to store user data and log data of other IDCs 230, such as user levels. The matching server 234 is used to match queues for users, and the monitoring server 233 is used to monitor each IDC 230. The monitoring server 233 can be monitored and analyzed through the Grafana component and the Prometheus component. The Grafana component is used to sample and store data, and the Prometheus component is used to generate vivid display data.
[0072] It should be noted that Figure 2 The example above takes multiple IDCs including Singapore IDC, European IDC, North American IDC, South American IDC and Indian IDC as examples. In fact, there is no limit on the region and number of IDCs.
[0073] Below Figure 2 This chapter introduces the interaction process between the various devices involved. Figure 3 , which is a schematic diagram of the interaction process between various devices. Figure 3 In the example, one target game client, two IDCs 230, and one matching server 234 are used. In practice, there is no limit to the number of game clients, IDCs 230, and matching servers 234. The process specifically includes:
[0074] S301 , the target game client 211 sends a network packet to each IDC 230 .
[0075] The network packet is used to detect the round-trip delay between the target game client and each IDC 230. When sending, the target game client 211 can record the sending time.
[0076] S302 , each IDC 230 receives a response packet fed back to the target game client 211 .
[0077] After receiving the response packet, the target game client 211 can determine the RTT between itself and each IDC 230 according to the time of the response packet fed back by each IDC and the previously recorded sending time.
[0078] S303 , the target game client 211 reports the RTT between itself and each IDC to the matching server 234 .
[0079] The target game client 211 may report the RTT between the target game client 211 and each IDC to the matching server 234 through the regional server 231 , or the target game client 211 may directly report the RTT between the target game client 211 and each IDC to the matching server 234 .
[0080] As an embodiment, the processes of S301 to S303 may be performed only once, or may be performed periodically. Alternatively, the processes of S301 to S303 may be performed when a specific condition is met, such as when the region where the terminal device 210 is located changes. When the region where the terminal device 210 is located changes, the RTT between the target game client 211 and each IDC may change significantly. Therefore, performing the above processes of S301 to S303 at this time is conducive to obtaining a more accurate RTT.
[0081] S304, the monitoring server 233 obtains log data from each IDC.
[0082] The monitoring server 233 can periodically or irregularly obtain the log data of each IDC, and the log data includes one or several combinations of the waiting time for a single match in the matching pool of each IDC, the number of successfully matched games, the number of online users, the number of users waiting for matching, the waiting time for a single match for users of each level, the number of successfully matched games for users of each level, the number of users of each level in the waiting matching queue, and the number of users of each level online. After the monitoring server 233 obtains the log data, it can also obtain the relevant data of each IDC. In addition, in addition to obtaining log data from each IDC, the monitoring server 233 can also obtain relevant data of some IDCs from the matching server 234. For example, if the matching server 234 adds a user to the corresponding IDC, the monitoring server 233 can obtain the number of users waiting for matching in the IDC, etc.
[0083] After obtaining the relevant data of each IDC, the monitoring server 233 can analyze the data, for example, generating a visual curve chart corresponding to each type of data, so as to facilitate subsequent analysis and processing based on the curve chart.
[0084] For example, see Figure 4 , indicating that the monitoring server 233 monitors Figure 2 The curve comparison chart of the number of online users generated by Singapore IDC, European IDC, North American IDC, South American IDC and Indian IDC, Figure 4 a, b, c, d, and e represent the number of online users in the matching pools corresponding to Singapore IDC, Europe IDC, North America IDC, South America IDC, and India IDC at each time. Figure 4 It can be seen that the overall number of online users of Singapore IDC is greater than that of other IDCs.
[0085] For example, see Figure 5 , indicating that the monitoring server 233 monitors Figure 2 Comparison of the curves generated by the average network latency of Singapore IDC, Europe IDC, North America IDC, South America IDC and India IDC. Figure 5 a, b, c, d, and e are the curves corresponding to the average network delay of the matching pools corresponding to Singapore IDC, Europe IDC, North America IDC, South America IDC, and India IDC at different times. Figure 5 It can be seen that the overall network latency of European IDC is higher, while the overall network latency of Singapore IDC is lower.
[0086] For example, see Figure 6 , indicating that the monitoring server 233 monitors Figure 2 Comparison of the number of users with the best RTT in Singapore IDC, Europe IDC, North America IDC, South America IDC and India IDC. Figure 6 a, b, c, d, and e respectively represent the curves corresponding to the optimal number of users of RTT at each time in the matching pool corresponding to Singapore IDC, Europe IDC, North America IDC, South America IDC, and India IDC. Figure 6 As can be seen from the figure, the number of users with the best RTT corresponding to the Singapore IDC is the highest overall. The best RTT refers to the minimum RTT between the game client corresponding to the user and the IDC.
[0087] For example, see Figure 7 , Figure 7 (1) to (5) respectively represent monitoring server 233 monitoring Figure 2 Comparison chart of the number of successful game matches in Singapore IDC, Europe IDC, North America IDC, South America IDC and India IDC in the past two days. Figure 7 Curves a and b in (1) represent the number of games that Singapore IDC successfully matched yesterday and today, respectively. Figure 7 Curves a and b in (2) represent the number of games that European IDC successfully matched yesterday and today, respectively. Figure 7 Curves a and b in (3) represent the number of games successfully matched by North American IDC yesterday and today, respectively. Figure 7 Curves a and b in (4) represent the number of games that the South American IDC successfully matched yesterday and today, respectively. Figure 7 Curves a and b in (5) represent the number of games that the Indian IDC successfully matched yesterday and today, respectively.
[0088] As an embodiment, in addition to obtaining data corresponding to each IDC, the monitoring server 233 can also issue an alarm when the data of the IDC is abnormal. Data abnormality can be understood as data abnormality of the IDC in one or more monitoring dimensions. For example, the number of users with the optimal RTT of the IDC is less than the set threshold. The alarm prompt can specifically be a text message prompt sent to the terminal associated with the staff.
[0089] S305, the target game client 211 responds to the matching operation of the target user and generates a game data request.
[0090] When the target user needs to match a queue, a matching operation can be performed. For example, the target user clicks a matching button in the game interface, which is equivalent to performing a matching operation. The target game client 211 generates a data request based on the operation. The data request is used to request to create a game queue for the target user. The data request may include the target user's account ID, etc.
[0091] S306 , the target game client 211 sends a data request to the regional server 231 .
[0092] S307, the regional server 231 verifies the data request.
[0093] The regional server 231 can verify whether the target user's account ID is legal, or verify whether the target user has logged in repeatedly, etc. If the target user's account ID is legal, or the target user has not logged in repeatedly, the data request is determined to be legal.
[0094] S308, the regional server 231 sends the data request for verification of legality to the matching server 234.
[0095] S309 , the matching server 234 determines the first IDC associated with the target game client 211 .
[0096] After the matching server 234 obtains the data request, it may determine the IDC associated with the target game client 211 associated with the data request.
[0097] The matching server 234 determines the first IDC associated with the target game client 211 according to the RTT between the target game client 211 and each IDC. The matching server 234 may determine the IDC with the smallest RTT to the target game client 211 as the first IDC associated with the target game client 211 .
[0098] Alternatively, the matching server 234 may determine the IDC that is physically closest to the target game client 211 as the first IDC associated with the target game client 211 , so that the terminal device 210 does not need to execute the processes S301 to S303 discussed above, thereby reducing the burden on the terminal device 210 .
[0099] S310, the matching server 234 matches a queue for the target user.
[0100] The matching server 234 determines that a matching queue is required for the target user, and can determine a corresponding matching pool for the target user. Figure 8 , which represents a process diagram of a method for the matching server 234 to determine a matching pool. Figure 8 , introduce S310:
[0101] S801: The matching server 234 obtains a matching level of a first IDC.
[0102] The matching level of each IDC may be preset, and the correspondence between the matching level of the IDC and the IDC may be stored in the database 232, and the matching server 234 may obtain the matching level of the first IDC from the database 232. Alternatively, the level of each IDC may change over time, and the matching server 234 may determine the matching level of the first IDC in real time.
[0103] Among them, it involves how to determine the matching level of the first IDC. The matching level of each IDC is divided according to the matching efficiency of the IDC, and the matching efficiency can be determined by the historical status information of the IDC. The historical status information is used to represent the data information of the IDC in various monitoring dimensions. According to this historical status information, the corresponding indicator value of the IDC in each monitoring dimension can be obtained.
[0104] For example, the matching efficiency is characterized by the index value within a preset period, such as the previous period adjacent to the current period, for example, the current period is 9:00-10:00 on January 3, 2020, and the previous period adjacent to the current period is 8:00-9:00 on January 3, 2020. Or the preset period is the previous period corresponding to the time period of the current period, for example, the current period is 9:00-10:00 on January 3, 2020, and the previous period corresponding to the time period of the current period is 9:00-10:00 on January 2, 2020.
[0105] It should be noted that when there are multiple monitoring indicators, the indicator value of IDC in the preset period can be the average indicator value of the indicator values of each monitoring indicator. When there is only one monitoring indicator, the indicator value of IDC in the preset period is the indicator value of the monitoring indicator.
[0106] Or for example, the matching efficiency is represented by the average value of the indicator value in each period, the historical matching efficiency of each IDC in each period is determined, and the indicator values in each period of the IDC are weighted and summed separately to obtain the average value of the indicator value corresponding to the IDC. The weights of the indicator values in each period can be different or the same. For example, the weight of the indicator value corresponding to the period closer to the current time is larger. The closer to the current time is, the more it can reflect the current situation of the IDC. The larger the weight of the indicator value in the period, the more it can represent the matching efficiency of the IDC in the current period. There are many ways to represent the indicator value, and the following examples are given to illustrate:
[0107] 1: The indicator value is determined by the average waiting time of a single match in IDC.
[0108] The matching server 234 can calculate the average waiting time in the cycle by the waiting time required for each single game match to succeed in the IDC. The longer the average waiting time, the lower the IDC matching efficiency. The average waiting time for a single game match refers to the average waiting time of each user in a single game of the game that has been successfully matched within a preset time period.
[0109] 2: The indicator value is represented by the number of users with the best RTT in the IDC.
[0110] The more users with the optimal RTT, the smaller the delay between the game clients and the IDC, and therefore the higher the matching efficiency at the IDC.
[0111] 3. The index value is represented by the number of successfully matched game sessions in IDC.
[0112] The higher the number of successfully matched games in an IDC, the higher the matching efficiency of the IDC.
[0113] 4. The index value is represented by the weighted result of two or three of the above three factors.
[0114] S802: If the matching level of the first IDC is the first level, the matching server 234 determines whether the state information in the first matching pool of the first IDC meets a set condition.
[0115] If the matching level of the first IDC is the first level, it means that the possibility of quickly matching to the queue in the first IDC is relatively small. The matching server 234 continues to determine whether the status information of the first matching pool of the first IDC meets the set conditions. The set conditions are used to indicate that the first matching pool is in peak period. The peak period can be understood as the possibility of matching to the team in the IDC is relatively high. If it is determined that the status information of the first matching pool meets the set conditions, S803 is executed, that is, the target user is added to the first matching pool for matching. If it is determined that the status information of the first matching pool does not meet the set conditions, S804 is executed, that is, the target user is added to the second matching pool of the second IDC for matching. The second IDC is an IDC with a matching level of the second level. Among them, there can be multiple setting conditions, and the following examples are given:
[0116] (1): Within a preset time period, the number of users in the waiting matching queue in the first matching pool is greater than or equal to a first number threshold.
[0117] The number of users waiting for matching in the first matching pool refers to the number of all users waiting for matching in the first matching pool. The greater the number of users waiting for matching, the greater the possibility of matching in the first matching pool. The duration of the preset time period may be a default value of the matching server 234.
[0118] (2): Within a preset time period, the number of successfully matched single game rounds in the first matching pool is greater than or equal to a first round number threshold.
[0119] The number of game rounds here refers to the total number of all game rounds that are successfully matched in the first matching pool.
[0120] (3): The average matching time of a single game that is successfully matched in the first matching pool is greater than the first time threshold.
[0121] The matching server 234 may count the matching durations of all single game rounds successfully matched in the first matching pool, and determine the average of these matching durations to obtain the average matching duration of the single game rounds.
[0122] (4): The number of online users in the first matching pool is greater than or equal to the second number threshold.
[0123] It should be noted that conditions (1) to (4) consider the overall situation of the first matching pool, which makes it easier for the matching server 234 to analyze and monitor.
[0124] (5): Within a preset time period, the average matching duration of a single game of users of the same level as the target user in the first matching pool that are successfully matched is greater than the second duration threshold.
[0125] It should be noted that the first duration threshold and the second duration threshold may be the same in size, or the first duration threshold may be smaller than the second duration threshold.
[0126] (6): Within a preset time period, the number of game single games successfully matched with users of the same level as the target user in the first matching pool is greater than or equal to the second game number threshold.
[0127] Among them, the second game number threshold is less than the first game number threshold.
[0128] (7): Within a preset time period, the number of users of the same level as the target user in the waiting matching queue in the first matching pool is greater than or equal to a third number threshold.
[0129] The third quantity threshold is smaller than the first quantity threshold.
[0130] (8): Within a preset time period, the number of users of the same level as the target user in the first matching pool is greater than or equal to a fourth quantity threshold.
[0131] The fourth quantity threshold is smaller than the second quantity threshold.
[0132] As an embodiment, the thresholds corresponding to the matching pools of different IDCs may be the same or different.
[0133] It should be noted that (5) to (8) consider the situation of users of the same level as the target user, rather than the overall situation of the matching pool. This can more specifically determine whether a queue can be matched for the target user in the first matching pool.
[0134] The matching server 234 determines that the first matching pool does not satisfy the preset condition, which may specifically be that it does not satisfy any one or more of the conditions (1) to (8) mentioned above.
[0135] As an embodiment, the thresholds mentioned in (1) to (8) above may be thresholds preset by the matching server 234, or may be thresholds within a preset time period flexibly set by the matching server 234 based on changes in the matching pool in the previous cycle. In other words, the thresholds involved in (1) to (8) above are all variable.
[0136] S805: The matching server 234 monitors a second waiting time of the target user in the second matching pool.
[0137] After adding the target user to the second matching pool, the matching server 234 may create a timer, and the timer is used to monitor the waiting time of the target user in the second matching pool.
[0138] S806, when the matching server 234 determines that the second waiting time reaches the second set time and the target user is not successfully matched, an artificial intelligence AI player is added to the target queue where the target user is waiting.
[0139] In this embodiment, if the matching server 234 determines that the waiting time of the target user in the second matching pool reaches the set time threshold, that is, the second waiting time, and the target user has not been matched with a queue, or the target user may have been matched with some users, but the preset number of game players required for the start of the game has not been reached, then the matching server 234 can create an AI player in the second matching pool, add the AI player to the target queue, and complete the process of matching the queue for the target player.
[0140] As an embodiment, the second set duration may be the same as the first duration threshold in the foregoing text, or the same as the second duration threshold in the foregoing text. The second set duration may be pre-set by the matching server 234, or flexibly set according to the status information of the matching pool of the IDC in the previous time period.
[0141] It should be noted that if the matching server 234 determines that the target user is successfully matched within the second waiting time, there is no need to add the AI player.
[0142] S807: The matching server 234 monitors the first waiting time of the target user.
[0143] After S803, that is, after the target user is added to the first matching pool for queue matching, the matching server 234 may add the target user to the first matching pool. Similarly, the matching server 234 may also create a timer to determine the first waiting time of the target user.
[0144] S808: When the first waiting time reaches the first set time and the target user is not successfully matched, the target user is transferred to the second matching pool for matching.
[0145] When the matching server 234 determines that the first waiting time reaches the first set time and the target user is not successfully matched, this indicates that the first matching pool may not be able to successfully match a team, so the target user can be added to the second matching pool for team matching. Similarly, if the target user is not successfully matched to a queue within the second waiting time in the second matching pool, an AI player can be added to the target queue of the target user to complete the queue matching process.
[0146] As an embodiment, the first set duration may be the same as the first duration threshold in the foregoing text, or the same as the second duration threshold in the foregoing text. The first set duration may be the same as the second set duration. Alternatively, the set durations associated with different IDCs are different. The first set duration may be pre-set by the matching server 234, or flexibly set according to the status information of the matching pool of the IDC in the previous time period.
[0147] S809: If the matching level of the first IDC is the second level, the target user is added to the first matching pool for matching.
[0148] If the matching level of the first IDC is the second level, it means that the matching level of the first IDC is already relatively high, so the target user can be directly added to the first matching pool for matching.
[0149] As an embodiment, S804 to S806 and S809 are optional steps.
[0150] S803, S807 and S808 are a case where the target user determines a matching pool, S804 to S806 are a case where the target user determines a matching pool, and S809 is a case where the target user determines a matching pool. In the actual process of processing a target user's data request, only one of the above three cases will occur.
[0151] It should be noted that Figure 8 In the example, multiple IDCs include a first-level IDC and a second-level IDC. In fact, multiple IDCs may include three or more levels. When there are three or more levels, the execution logic may refer to Figure 8 The process of the discussion will not be repeated here.
[0152] S311, when the matching server 234 matches the target user to the target queue, it notifies the PVP server 235 of the corresponding IDC to create a single game.
[0153] When the matching server 234 matches the target user to the target queue according to the execution logic of the previous S803 to S809, it can notify the PVP server 235 corresponding to the IDC to create a single game.
[0154] If it is the case described in S803, S807 and S808 discussed above, the matching server 234 notifies the PVP server 235 under the second IDC to create a single game.
[0155] If it is the case described in S804 to S806 discussed above, the matching server 234 notifies the PVP server 235 under the second IDC to create a single game.
[0156] If it is the situation described in S809 discussed above, the matching server 234 notifies the PVP server 235 under the first IDC to create a single game.
[0157] This involves which PVP server 235 under the IDC is notified by the matching server 234. For example, the matching server 234 may notify the PVP server 235 with the smallest load under the IDC to create a single game, or randomly select a PVP server, and the selected PVP server 235 may be called the target PVP server 235.
[0158] As an embodiment, the PVP server 235 with the smallest load may be, for example, a PVP server 235 with the smallest CPU and memory occupancy rates. Since the PVP server 235 may be a server implemented by docker, that is, a PVP server 235 created by using a docker image, the configuration parameters of each PVP server 235 are the same, such as the CPU size and the memory size. Therefore, the PVP server 235 with the smallest load may be a PVP server 235 with the fewest games created in the current time period.
[0159] As an embodiment, when notifying the PVP server 235 to create a single game, the account ID of each user in the target team may be carried to facilitate subsequent communication between the PVP server 235 and each game client.
[0160] It should be noted that Figure 3 The description is made by taking the example of notifying the second PVP server 235 under the second IDC to create a single game.
[0161] S312, the target PVP server 235 feeds back its own domain name and port to the matching server 234.
[0162] S313, the matching server 234 feeds back the domain name and port of the target PVP server 235 to the target game client 211 through the regional server 231.
[0163] Specifically, after obtaining the domain name and port of the target PVP server 235, the matching server 234 feeds back the domain name and port of the target PVP server 235 to the regional server 231, and the regional server 231 feeds back the domain name and port of the target PVP server 235 to the game client. Alternatively, since the target PVP server 235 and the target game client 211 are not in the same area, the regional server 231 feeds back the domain name and port of the target PVP server 235 to the domain name server 220, and the domain name server 220 feeds back the domain name and port to the target game client 211 after parsing, so that each game client can communicate with the target PVP server 235 to play a single game.
[0164] As an embodiment, S301-S303, S304, and S311-S313 are three optional parts.
[0165] In the above embodiment, a matching pool is flexibly selected for the target user, which avoids the target user from waiting for a long time in the matching pool, thereby improving the game matching efficiency. Moreover, when switching the matching pool, the switching can be performed based on the indicator data of the matching pool in various dimensions, making the switching process more accurate. Moreover, since the matching pool can be flexibly selected for the user, the user's global game is realized, and the user's game experience is improved.
[0166] Based on the same inventive concept, the embodiment of the present application provides a game control device, which is equivalent to being set in the matching server 234 discussed above, please refer to Fig. 9 , the device 900 specifically includes:
[0167] The determination module 901 is used to determine the first Internet data center IDC associated with the target game client according to the data request sent by the target client associated with the target account; wherein the data request is used to request a match to the game queue;
[0168] The adding module 902 is used to add the target account to the second matching pool of the second IDC with a matching level of the second level for matching if the matching level of the first IDC is the first level and the status information in the first matching pool corresponding to the first IDC does not meet the set conditions; wherein the matching level is divided according to the matching efficiency of the IDC, the higher the matching level, the higher the matching efficiency of the IDC, and the matching efficiency is determined according to the status information of the matching pool.
[0169] In a possible embodiment, the adding module 902 is further used for:
[0170] If the matching level of the first IDC is the first level, and the status information in the first matching pool corresponding to the first IDC meets the set conditions, the target account is added to the first matching pool for matching; or
[0171] If the matching level of the first IDC is the second level, the target account is added to the first matching pool for matching.
[0172] In a possible embodiment, the adding module 902 is further used for:
[0173] If the matching level of the first IDC is the first level, the target account is added to the first matching pool for matching, and the first waiting time of the target account is monitored;
[0174] When the first waiting time reaches the first set time and the target account is not successfully matched, the target account is transferred to the second matching pool for matching.
[0175] In a possible embodiment, the adding module 902 is further used for:
[0176] If the matching level of the first IDC is the second level, the target account is added to the first matching pool for matching, and the second waiting time of the target account is monitored;
[0177] When the second waiting time reaches the second set time and the target account is not matched successfully, an artificial intelligence AI player is added to the target queue where the target account is waiting.
[0178] In a possible embodiment, the state information in the first matching pool does not meet the set condition, including at least one of the following:
[0179] Within a preset time period, the number of accounts in the waiting matching queue in the first matching pool is less than a first number threshold; or,
[0180] Within a preset time period, the number of successfully matched single games in the first matching pool is less than a first game number threshold; or,
[0181] Within a preset time period, the average matching duration of a single game successfully matched in the first matching pool is greater than a first duration threshold; or,
[0182] Within a preset time period, the number of online accounts in the first matching pool is less than a second number threshold; or,
[0183] Within the preset time period, the average match duration of a single game of an account of the same level as the target account in the first match pool is greater than the second duration threshold; or,
[0184] Within a preset time period, the number of single game rounds successfully matched with accounts of the same level as the target account in the first matching pool is less than the second game number threshold; or,
[0185] Within a preset time period, the number of accounts of the same level as the target account in the waiting matching queue in the first matching pool is less than a third number threshold; or,
[0186] Within a preset time period, the number of online accounts of the same level as the target account in the first matching pool is less than a fourth quantity threshold.
[0187] In a possible embodiment, the device further includes a notification module 903, wherein:
[0188] The notification module is used to notify the IDC associated player corresponding to the target queue to create a single game for the target queue corresponding to the target account on the player PVP server when the target account is matched to the target queue.
[0189] Based on the same inventive concept, an embodiment of the present application further provides a computer device 1000 .
[0190] Please refer to Fig.10 The computer device 1000 is in the form of a general computer device. The components of the computer device 1000 may include, but are not limited to: at least one processor 1010, at least one memory 1020, and a bus 1030 connecting different system components (including the processor 1010 and the memory 1020).
[0191] Bus 1030 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0192] The memory 1020 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1021 and / or a cache memory 1022 , and may further include a read-only memory (ROM) 1023 .
[0193] The memory 1020 may also include a program / utility 1026 having a set (at least one) of program modules 1025, such program modules 1025 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment. The processor 1010 is used to execute program instructions stored in the memory 1020 to implement any of the game control methods discussed above. The processor 1010 may also be used to implement the functions of the game control device 900 discussed above. The processor 1010 may also be used to implement the functions of the matching server 234 discussed above.
[0194] The computer device 1000 may also communicate with one or more external devices 1040 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a terminal device to interact with the computer device 1000, and / or communicate with any device that enables the computer device 1000 to communicate with one or more other devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1050. Furthermore, the computer device 1000 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1060. As shown, the network adapter 1060 communicates with other modules for the computer device 1000 via a bus 1030. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 1000, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0195] Based on the same inventive concept, an embodiment of the present application provides a storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes the game matching method discussed above. Storage medium generally refers to computer-readable storage medium.
[0196] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0197] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A game control method, It is characterized in that Applied to a matching server, the method comprises: Determine, according to a data request sent by a target game client associated with a target account, a first Internet data center IDC associated with the target game client; wherein the data request is used to create a game queue for the target account; If the matching level of the first Internet data center IDC is the first level, and the status information in the first matching pool corresponding to the first Internet data center IDC does not meet the set conditions, the target account is added to the second matching pool of the second Internet data center IDC with a matching level of the second level for matching; wherein the matching level is divided according to the matching efficiency of the Internet data center IDC, the higher the matching level, the higher the matching efficiency of the Internet data center IDC, the matching efficiency is determined based on the status information of the matching pool, the matching efficiency of the Internet data center IDC is characterized by an indicator value within a preset period, and the indicator value includes at least one of the average waiting time of the Internet data center IDC in a single game match, the number of users with the optimal round-trip delay, or the number of successfully matched game sessions in the Internet data center IDC.
2. The method according to claim 1, It is characterized in that The method further comprises: If the matching level of the first Internet data center IDC is the first level, and the status information in the first matching pool corresponding to the first Internet data center IDC meets the set conditions, the target account is added to the first matching pool for matching; or If the matching level of the first Internet data center IDC is the second level, the target account is added to the first matching pool for matching.
3. The method according to claim 2, It is characterized in that The method further comprises: If the matching level of the first Internet data center IDC is the first level, after adding the target account to the first matching pool for matching, monitoring the first waiting time of the target account; When the first waiting time reaches a first set time and the target account is not successfully matched, the target account is transferred to the second matching pool for matching.
4. The method according to claim 2, It is characterized in that The method further comprises: If the matching level of the first Internet data center IDC is the second level, after adding the target account to the first matching pool for matching, monitoring the second waiting time of the target account; When the second waiting time reaches the second set time and the target account is not matched successfully, an artificial intelligence AI player is added to the target queue where the target account is waiting.
5. The method according to any one of claims 1 to 4, It is characterized in that The state information in the first matching pool does not meet the set condition, including at least one of the following: Within a preset time period, the number of accounts in the waiting matching queue in the first matching pool is less than a first number threshold; or, Within a preset time period, the number of successfully matched single game rounds in the first matching pool is less than a first round number threshold; or, Within a preset time period, the average matching duration of a single game successfully matched in the first matching pool is greater than a first duration threshold; or Within a preset time period, the number of online accounts in the first matching pool is less than a second number threshold; or, Within a preset time period, the average matching duration of a single game of an account of the same level as the target account in the first matching pool that is successfully matched is greater than a second duration threshold; or, Within a preset time period, the number of single game rounds successfully matched with accounts of the same level as the target account in the first matching pool is less than a second game number threshold; or, Within a preset time period, the number of accounts of the same level as the target account in the waiting matching queue in the first matching pool is less than a third number threshold; or, Within a preset time period, the number of online accounts of the same level as the target account in the first matching pool is less than a fourth number threshold.
6. A game control device, It is characterized in that Applied to a matching server, the device comprises: A determination module, configured to determine a first Internet data center IDC associated with a target game client according to a data request sent by a target game client associated with a target account; wherein the data request is used to request a match to a game queue; A joining module is used to add the target account to a second matching pool of a second Internet data center IDC with a matching level of a second level for matching if the matching level of the first Internet data center IDC is the first level and the status information in the first matching pool corresponding to the first Internet data center IDC does not meet the set conditions; wherein the matching level is divided according to the matching efficiency of the Internet data center IDC, and the higher the matching level, the higher the matching efficiency of the Internet data center IDC, and the matching efficiency is determined according to the status information of the matching pool. The matching efficiency of the Internet data center IDC is characterized by an indicator value within a preset period, and the indicator value includes at least one of the average waiting time of the Internet data center IDC in a single game match, the number of users with the optimal round-trip delay, or the number of successfully matched game sessions in the Internet data center IDC.
7. The device according to claim 6, It is characterized in that The joining module is also used to: If the matching level of the first Internet data center IDC is the first level, and the status information in the first matching pool corresponding to the first Internet data center IDC meets the set conditions, the target account is added to the first matching pool for matching; or If the matching level of the first Internet data center IDC is the second level, the target account is added to the first matching pool for matching.
8. The device according to claim 7, It is characterized in that The joining module is also used to: If the matching level of the first Internet data center IDC is the first level, after adding the target account to the first matching pool for matching, monitoring the first waiting time of the target account; When the first waiting time reaches a first set time and the target account is not successfully matched, the target account is transferred to the second matching pool for matching.
9. A computer device, It is characterized in that include: at least one processor, and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the method according to any one of claims 1 to 5 by executing the instructions stored in the memory.
10. A storage medium, It is characterized in that The storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for realizing user matching
CN106823376A
Method and system for managing multiplayer game sessions
CN108472546A
