Matching method, device, server and storage medium in game
By matching unmatched virtual characters in the public character pool and updating the scores using the match results, the problem of player matching failure in PVP gameplay is solved, improving the player experience.
Patent Information
- Application Number
- CN202111350017.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2041-11-15
AI Technical Summary
Under PVP gameplay, players in the same game mode fail to match, resulting in a reduced player experience.
By detecting unmatched virtual characters, use the attribute parameters of other virtual characters in the public role pool to determine the virtual characters that meet the preset matching conditions, and conduct game competitions, and update the game scores of the virtual characters according to the match results.
It improves the success rate of virtual character matching and improves player experience.
Smart Images

Figure CN113926204B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a matching method, device, server and storage medium in a game. Background Art
[0002] With the development of Internet technology and the application of smart devices, a variety of games are becoming more and more common. Some games often involve PVP (player vs. player) gameplay. In this PVP gameplay, the proper matching of players has become a hot topic of research.
[0003] In the related art, there are different game modes under the PVP gameplay, and players with the same game mode are matched, and then the players who are successfully matched can play in the game mode.
[0004] However, in the related art, when matching players of the same game mode, it is easy to encounter the problem of being unable to match players, which reduces the player experience. Summary of the Invention
[0005] The purpose of the present invention is to address the deficiencies in the above-mentioned prior art and provide a matching method, device, server and storage medium in a game, so as to solve the problem in the related art that when matching players of the same game mode, it is easy for some players to be unable to be matched, thereby reducing the player experience.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows:
[0007] In a first aspect, an embodiment of the present invention provides a matching method in a game, comprising:
[0008] If it is detected that the first virtual character is not matched with a virtual character in the first game mode, then, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, determining a virtual character whose attribute parameters meet a preset matching condition from the multiple other virtual characters in the public character pool as the second virtual character;
[0009] controlling the first virtual character and the second virtual character to play a game, and obtaining a result of the game;
[0010] According to the game competition result, the competition score of the first virtual character in the first game mode is updated, and the competition score of the second virtual character in the second game mode is updated.
[0011] Optionally, the step of determining, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, a virtual character whose attribute parameters meet a preset matching condition from among the other virtual characters in the public character pool as the second virtual character includes:
[0012] If it is detected that the first virtual character is not matched with a virtual character in the first game mode, the first virtual character is added to the public character pool to obtain a matching score for the first virtual character, wherein other virtual characters in the public character pool have corresponding matching scores;
[0013] According to the matching score of the first virtual character and the matching scores of the other virtual characters, a virtual character whose matching score meets the preset matching condition is determined from the other virtual characters as the second virtual character.
[0014] Optionally, the matching score of the first virtual character is a preset basic matching score, and the matching scores of the other virtual characters are scores determined based on the preset basic matching scores and the historical game results of the other virtual characters.
[0015] Optionally, the method further includes:
[0016] According to the game competition result, the matching score of the first virtual character and the matching score of the second virtual character are updated respectively.
[0017] Optionally, updating the matching score of the first virtual character and the matching score of the second virtual character respectively according to the game match result includes:
[0018] updating a matching score of the first virtual character according to the game match result and the expected match result of the first virtual character;
[0019] The matching score of the second virtual character is updated according to the game match result and the expected match result of the second virtual character.
[0020] Optionally, updating the matching score of the first virtual character according to the game match result and the expected match result of the first virtual character includes:
[0021] updating the matching score of the first virtual character according to the game result, the expected match result of the first virtual character, and the growth coefficient corresponding to the matching score of the first virtual character;
[0022] The updating of the matching score of the second virtual character according to the game match result and the expected match result of the second virtual character includes:
[0023] The matching score of the second virtual character is updated according to the game match result, the expected match result of the second virtual character, and the growth coefficient corresponding to the matching score of the second virtual character.
[0024] Optionally, updating the matching score of the first virtual character according to the game result, the expected match result of the first virtual character, and the growth coefficient corresponding to the matching score of the first virtual character includes:
[0025] updating the matching score of the first virtual character according to the game match result, the expected match result of the first virtual character, the growth coefficient corresponding to the matching score of the first virtual character, and the preset parameters corresponding to the first game mode;
[0026] The updating of the matching score of the second virtual character according to the game result, the expected match result of the second virtual character, and the growth coefficient corresponding to the matching score of the second virtual character includes:
[0027] The matching score of the second virtual character is updated according to the game match result, the expected match result of the second virtual character, the growth coefficient corresponding to the matching score of the second virtual character, and the preset parameters corresponding to the second game mode.
[0028] Optionally, the step of determining, based on the matching score of the first virtual character and the matching scores of the other virtual characters, a virtual character whose matching score satisfies the preset matching condition from among the other virtual characters as the second virtual character includes:
[0029] According to the matching score of the first virtual character and the matching scores of the other virtual characters, a virtual character corresponding to a matching score having the smallest difference with the matching score of the first virtual character is determined from the other virtual characters as the second virtual character.
[0030] Optionally, if it is detected that the first virtual character has not been matched with a virtual character in the first game mode, the method further includes: determining, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, a virtual character whose attribute parameters meet a preset matching condition from multiple other virtual characters in the public character pool as the second virtual character.
[0031] matching a virtual character for the first virtual character from among the virtual characters requesting the first game mode;
[0032] If no virtual character is matched for the first virtual character from the virtual characters requesting the first game mode within a first preset time period, it is determined that the first virtual character is not matched with a virtual character in the first game mode.
[0033] Optionally, matching a virtual character for the first virtual character from the virtual characters requesting the first game mode includes:
[0034] Determining the first preset duration according to the first game mode, wherein different game modes correspond to different first preset durations;
[0035] Within the first preset time period, according to the matching rule corresponding to the first game mode, a virtual character is matched for the first virtual character from the virtual characters requesting the first game mode.
[0036] Optionally, the method further includes:
[0037] The matching scores of the virtual characters are updated according to the activity of the virtual characters in the public character pool, the basic matching scores of the virtual characters and the preset activity adjustment coefficient.
[0038] Optionally, the method further includes:
[0039] Determining the second preset duration according to the first game mode, wherein different game modes correspond to different second preset durations;
[0040] If the second virtual character is not matched with the first virtual character in the public character pool within the second preset time period, a non-player virtual character is matched with the first virtual character.
[0041] In a second aspect, an embodiment of the present invention further provides a matching device in a game, comprising:
[0042] a determination module configured to, if it is detected that the first virtual character has not been matched with a virtual character in the first game mode, determine, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, a virtual character whose attribute parameters meet a preset matching condition from among the multiple other virtual characters in the public character pool as the second virtual character;
[0043] A control module, configured to control the first virtual character and the second virtual character to play a game and obtain a game result;
[0044] An updating module is used to update the game score of the first virtual character in the first game mode and the game score of the second virtual character in the second game mode according to the game result.
[0045] Optionally, the determination module is further configured to add the first virtual character to the public character pool to obtain a matching score for the first virtual character if it is detected that the first virtual character is not matched with a virtual character in the first game mode, wherein other virtual characters in the public character pool have corresponding matching scores; and based on the matching score of the first virtual character and the matching scores of the other virtual characters, determine, from the multiple other virtual characters, a virtual character whose matching score meets the preset matching conditions as the second virtual character.
[0046] Optionally, the matching score of the first virtual character is a preset basic matching score, and the matching scores of the other virtual characters are scores determined based on the preset basic matching score and the historical game results of the other virtual characters.
[0047] Optionally, the device further includes:
[0048] The first updating module is used to update the matching score of the first virtual character and the matching score of the second virtual character according to the game result.
[0049] Optionally, the first update module is further used to update the matching score of the first virtual character based on the game match results and the expected match results of the first virtual character; and to update the matching score of the second virtual character based on the game match results and the expected match results of the second virtual character.
[0050] Optionally, the first updating module is further configured to update the matching score of the first virtual character according to the game result, the expected match result of the first virtual character, and the growth coefficient corresponding to the matching score of the first virtual character;
[0051] The first updating module is further configured to update the matching score of the second virtual character according to the game result, the expected match result of the second virtual character, and the growth coefficient corresponding to the matching score of the second virtual character.
[0052] Optionally, the first updating module is further configured to update the matching score of the first virtual character according to the game match result, the expected match result of the first virtual character, the growth coefficient corresponding to the matching score of the first virtual character, and the preset parameters corresponding to the first game mode;
[0053] The first update module is further used to update the matching score of the second virtual character based on the game results, the expected game results of the second virtual character, the growth coefficient corresponding to the matching score of the second virtual character, and the preset parameters corresponding to the second game mode.
[0054] Optionally, the first updating module is further used to determine, from the multiple other virtual characters, a virtual character corresponding to a matching score with the smallest difference from the matching score of the first virtual character based on the matching score of the first virtual character and the matching scores of the other virtual characters, as the second virtual character.
[0055] Optionally, the device further includes:
[0056] a first matching module, configured to match a virtual character for the first virtual character from virtual characters requesting the first game mode;
[0057] The first determining module is configured to determine that the first virtual character is not matched with a virtual character in the first game mode if no virtual character is matched for the first virtual character from the virtual characters requesting the first game mode within a first preset time period.
[0058] Optionally, the first matching module is further used to determine the first preset time length based on the first game mode, wherein different game modes correspond to different first preset time lengths; within the first preset time length, according to the matching rules corresponding to the first game mode, match a virtual character for the first virtual character from the virtual characters requesting the first game mode.
[0059] Optionally, the device further includes:
[0060] The second updating module is used to update the matching score of each virtual character in the public character pool according to the activity of each virtual character, the basic matching score of each virtual character and the preset activity adjustment coefficient.
[0061] Optionally, the device further includes:
[0062] A second determining module is configured to determine the second preset duration according to the first game mode, wherein different game modes correspond to different second preset durations;
[0063] The second matching module is configured to match the first virtual character with a non-player virtual character if the second virtual character is not matched with the first virtual character in the public character pool within the second preset time period.
[0064] In a third aspect, an embodiment of the present invention further provides a server comprising: a memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the matching method in the game described in any one of the first aspects above is implemented.
[0065] In a fourth aspect, an embodiment of the present invention further provides a storage medium having a computer program stored thereon. When the computer program is read and executed, the matching method in the game described in any one of the first aspects above is implemented.
[0066] The beneficial effects of the present invention are as follows: an embodiment of the present application provides a matching method in a game, comprising: if it is detected that a first virtual character has not been matched with a virtual character in a first game mode, then, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in a public character pool, determining a virtual character whose attribute parameters meet preset matching conditions from multiple other virtual characters in the public character pool as a second virtual character; controlling the first virtual character and the second virtual character to play a game match to obtain a game match result; and based on the game match result, updating the match score of the first virtual character in the first game mode and updating the match score of the second virtual character in the second game mode. When the first virtual character has not been matched with a virtual character in the first game mode, a second virtual character can be selected from the public character pool, thereby increasing the probability of matching the first virtual character with a virtual character and improving the player experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0068] Figure 1 A flowchart of a matching method in a game provided by an embodiment of the present invention;
[0069] Figure 2 A flowchart of a matching method in a game provided by an embodiment of the present invention;
[0070] Figure 3 A flowchart of a matching method in a game provided by an embodiment of the present invention;
[0071] Figure 4 A flowchart of a matching method in a game provided by an embodiment of the present invention;
[0072] Figure 5A flowchart of a matching method in a game provided by an embodiment of the present invention;
[0073] Figure 6 A flowchart of a matching method in a game provided by an embodiment of the present invention;
[0074] Figure 7 A flowchart of a matching method in a game provided by an embodiment of the present invention;
[0075] Figure 8 A flowchart of a matching method in a game provided by an embodiment of the present invention;
[0076] Figure 9 A schematic diagram of the structure of a matching device in a game provided by an embodiment of the present invention;
[0077] Figure 10 A schematic diagram of the structure of a matching device in a game provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0078] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.
[0079] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present application without creative work are within the scope of protection of the present application.
[0080] In the description of this application, it should be noted that if the terms "upper", "lower", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the accompanying drawings, or is the orientation or position relationship in which the product of the application is usually placed when in use. It is only for the convenience of describing this application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on this application.
[0081] In addition, the terms "first," "second," and the like in the description and claims of the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.
[0082] It should be noted that, in the absence of conflict, the features in the embodiments of this application can be combined with each other.
[0083] The present application provides a matching method for a game, wherein the execution entity may be a server, which may be a game server and may have a game server installed thereon. The server may communicate with multiple terminals, each of which may have a game client installed thereon. The game server and the game client may communicate with each other to implement the game processing logic; players may participate in the game through the game client on the terminal.
[0084] The following explains the matching method in the game provided in the embodiment of the present application with the game server as the execution entity.
[0085] Figure 1 A flowchart of a matching method in a game provided by an embodiment of the present invention is shown as follows: Figure 1 As shown, the method may include:
[0086] S101. If it is detected that the first virtual character is not matched with a virtual character in the first game mode, a virtual character whose attribute parameters meet preset matching conditions is determined from multiple other virtual characters in the public character pool based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool as the second virtual character.
[0087] The first game mode may be a game mode requested by the first virtual character. The first virtual character preferentially matches virtual characters in the first game mode, that is, preferentially matches virtual characters that also request the first game mode.
[0088] It should be noted that if a virtual character is not matched with a virtual character in the game mode it requested, it can be added to the public character pool. In other words, the virtual characters in the public character pool are all virtual characters that have not been preferentially matched with the game mode it requested. The public character pool can include virtual characters that are matched in multiple different game modes. Game characters in the public character pool request different game modes, such as matching mode, ranking mode, ladder mode, and entertainment mode.
[0089] In an embodiment of the present application, when the first virtual character is not matched with a virtual character in the first game mode, a second virtual character is matched for the first virtual character from a public character pool. The public character pool includes virtual characters matched in multiple different game modes. The public character pool includes more virtual characters, which can achieve cross-game mode matching of virtual characters. Compared with the related art, which only matches game characters in the same game mode, the first virtual character can be quickly matched with the second virtual character.
[0090] In addition, the first virtual character can be added to the public character pool. After being added, the first virtual character can have corresponding attribute parameters; each other virtual character originally in the public character pool also has corresponding attribute parameters. The attribute parameters can be used to represent the degree of matching between virtual characters.
[0091] S102: Control the first virtual character and the second virtual character to play a game and obtain a result of the game.
[0092] The first game mode requested by the first virtual character and the second game mode requested by the second virtual character may be the same game mode or different game modes.
[0093] In some embodiments, the server may control a game between the first virtual character and the second virtual character to obtain a game result. The game result may be used to indicate that the first virtual character defeated the second virtual character, or that the second virtual character defeated the first virtual character, or that the second virtual character and the first virtual character tied.
[0094] Optionally, the game can be a football game, and the game between the first virtual character and the second virtual character can be a football game. Of course, it can also be other types of games, such as a game of competition or fighting between two virtual characters, which is not specifically limited in this embodiment of the present application.
[0095] S103: Based on the game results, update the game score of the first virtual character in the first game mode, and update the game score of the second virtual character in the second game mode.
[0096] In an embodiment of the present application, the server may update the game score of the first virtual character in the first game mode according to the game results, wherein the game score in the first game mode may be a ranking or level in the first game mode.
[0097] Similarly, the server may update the game score of the second virtual character in the second game mode, and the game score in the second game mode may be a ranking or level in the second game mode.
[0098] In summary, the embodiment of the present application provides a matching method in a game, including: if it is detected that the first virtual character has not been matched with a virtual character in the first game mode, then based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, a virtual character whose attribute parameters meet the preset matching conditions is determined from multiple other virtual characters in the public character pool as the second virtual character; controlling the first virtual character and the second virtual character to play a game match to obtain the game match result; based on the game match result, updating the match score of the first virtual character in the first game mode and updating the match score of the second virtual character in the second game mode. When the first virtual character has not been matched with a virtual character in the first game mode, a second virtual character can be selected from the public character pool, thereby increasing the probability of matching the first virtual character with a virtual character and improving the player experience.
[0099] Optional, Figure 2 A flowchart of a matching method in a game provided by an embodiment of the present invention is shown as follows: Figure 2 As shown, the process of determining, from among multiple other virtual characters in the public character pool, a virtual character whose attribute parameters meet a preset matching condition as the second virtual character in S101 according to the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, may include:
[0100] S201: If it is detected that the first virtual character is not matched with a virtual character in the first game mode, the first virtual character is added to a public character pool to obtain a matching score of the first virtual character.
[0101] Among them, other virtual characters in the public character pool have corresponding matching scores.
[0102] It should be noted that all virtual characters newly added to the public character pool can have corresponding matching scores, which can be preset identical matching scores or matching scores determined based on the historical game data of the virtual characters. The embodiments of the present application do not impose specific restrictions on this.
[0103] Similarly, the first virtual character newly added to the public character pool can also obtain a corresponding matching score.
[0104] S202: According to the matching score of the first virtual character and the matching scores of each other virtual character, determine, from among the multiple other virtual characters, a virtual character whose matching score meets a preset matching condition as a second virtual character.
[0105] In an embodiment of the present application, the server can determine in sequence whether the matching score of the first virtual character and the matching scores of each other virtual character meet the preset matching conditions. Of course, it can also determine at the same time whether the matching score of the first virtual character and the matching scores of each other virtual character meet the preset matching conditions; the embodiment of the present application does not impose specific restrictions on this.
[0106] In summary, based on the matching scores of virtual characters in the public character pool, a first virtual character is matched with a second virtual character whose matching score meets the preset matching condition, making the matching process more efficient and convenient.
[0107] Optionally, the matching score of the first virtual character is a preset basic matching score, and the matching scores of other virtual characters are scores determined based on the preset basic matching scores and the historical game results of other virtual characters.
[0108] The matching scores of newly added virtual characters to the public character pool can all be preset basic matching scores. After a virtual character in the public character pool participates in a match, the server can update the preset basic matching scores of the virtual character based on the historical match results and re-determine the scores.
[0109] For example, the basic matching score may be 1200. Of course, the basic matching score needs to support the matching table and can be set according to actual needs, and the embodiment of the present application does not impose any specific restrictions on this.
[0110] Optionally, the method may further include: updating the matching score of the first virtual character and the matching score of the second virtual character respectively according to the game result.
[0111] In some embodiments, the server may update the matching score of the first virtual character and the matching score of the second virtual character respectively according to the win-loss result of the first virtual character and the second virtual character in the game match.
[0112] Optional, Figure 3 A flowchart of a matching method in a game provided by an embodiment of the present invention is shown as follows: Figure 3 As shown, the process of updating the matching score of the first virtual character and the matching score of the second virtual character according to the game results may include:
[0113] S301: Update the matching score of the first virtual character according to the game result and the expected match result of the first virtual character.
[0114] The expected game result of the first virtual character may be the win or loss result of the first virtual character when the first virtual character plays a game with the second virtual character, as predicted by the server.
[0115] S302: Update the matching score of the second virtual character according to the game result and the expected match result of the second virtual character.
[0116] The expected game result of the first virtual character may be the win or loss result of the second virtual character when the first virtual character and the second virtual character play a game together, as predicted by the server.
[0117] In some embodiments, the server may use a preset formula to determine the expected match result of the first virtual character and the expected match result of the second virtual character, respectively, based on the current matching score of the first virtual character and the current matching score of the second virtual character.
[0118] For example, Ra can be used to represent the current matching score of the first virtual character, and Rb can be used to represent the current matching score of the second virtual character. Then the expected game result of the first virtual character (the win-loss value of the first virtual character) Ea = 1 / (1+10^[(Rb-Ra) / 400]); the expected game result of the second virtual character (the win-loss value of the second virtual character) Eb = 1 / (1+10^[(Ra-Rb) / 400]).
[0119] In addition, the game results can be called actual win-loss values, for example, win = 1, draw = 0.5, loss = 0.
[0120] Optional, Figure 4 A flowchart of a matching method in a game provided by an embodiment of the present invention is shown as follows: Figure 4 As shown, the process of updating the matching score of the first virtual character according to the game result and the expected match result of the first virtual character in S301 may include:
[0121] S401: Update the matching score of the first virtual character according to the game result, the expected game result of the first virtual character, and the growth coefficient corresponding to the matching score of the first virtual character.
[0122] In some embodiments, the server may determine a growth coefficient corresponding to the matching score of the first virtual character based on a preset first matching correction coefficient, a preset second matching correction coefficient, and the matching score of the first virtual character.
[0123] Among them, the preset first matching correction coefficient and the preset second matching correction coefficient need to support the matching table and can be set according to actual needs.
[0124] In an embodiment of the present application, the preset first matching correction coefficient can be represented by K1, the preset second matching correction coefficient can be represented by K2, the matching score of the first virtual character can be represented by Ra, and the growth coefficient K corresponding to the matching score of the first virtual character is K = (K1-Ra) / K2, K has a minimum value, and the minimum value can be set according to actual needs or experience values. For example, the minimum value of K can be 20.
[0125] The process of updating the matching score of the second virtual character according to the game result and the expected match result of the second virtual character in S302 may include:
[0126] S402: Update the matching score of the second virtual character according to the game result, the expected game result of the second virtual character, and the growth coefficient corresponding to the matching score of the second virtual character.
[0127] Similarly, the server may determine the growth coefficient corresponding to the matching score of the second virtual character based on the preset first matching correction coefficient, the preset second matching correction coefficient, and the matching score of the second virtual character.
[0128] In an embodiment of the present application, the preset first matching correction coefficient can be represented by K1, the preset second matching correction coefficient can be represented by K2, the matching score of the second virtual character can be represented by Rb, and the growth coefficient K corresponding to the matching score of the second virtual character is (K1-Rb) / K2.
[0129] For example, K1 can be 3200 and K2 can be 50.
[0130] Optional, Figure 5 A flowchart of a matching method in a game provided by an embodiment of the present invention is shown as follows: Figure 5 As shown, the process of updating the matching score of the first virtual character according to the game result, the expected match result of the first virtual character, and the growth coefficient corresponding to the matching score of the first virtual character in S401 may include:
[0131] S501. Update the matching score of the first virtual character according to the game result, the expected game result of the first virtual character, the growth coefficient corresponding to the matching score of the first virtual character, and the preset parameters corresponding to the first game mode.
[0132] Among them, different game modes correspond to different preset parameters. The preset parameters need to support matching tables and can be set according to actual needs.
[0133] For example, if the first game mode is a qualifying match mode, the preset parameter may be 0.55; if the first game mode is a master league mode, the preset parameter may be 0.35; if the first game mode is a friendly match mode, the preset parameter may be 0.1.
[0134] In some embodiments, the updated matching score of the first virtual character R'a=Ra+K(Sa-Ea)*Y, wherein Ra represents the matching score of the first virtual character, K represents the growth coefficient corresponding to the matching score of the first virtual character, Sa represents the game result (the actual win-loss value of the first virtual character), Ea represents the expected game result of the first virtual character (the expected win-loss value of the first virtual character), and Y represents the preset parameters corresponding to the first game mode.
[0135] The process of updating the matching score of the second virtual character according to the game result, the expected match result of the second virtual character, and the growth coefficient corresponding to the matching score of the second virtual character in S402 may include:
[0136] S502: Update the matching score of the second virtual character according to the game result, the expected game result of the second virtual character, the growth coefficient corresponding to the matching score of the second virtual character, and the preset parameters corresponding to the second game mode.
[0137] In some embodiments, the updated matching score of the second virtual character R'b=Rb+K(Sb-Eb)*Y, wherein Rb represents the matching score of the second virtual character, K represents the growth coefficient corresponding to the matching score of the second virtual character, Sb represents the game result (the actual win-loss value of the second virtual character), Eb represents the expected game result of the second virtual character (the expected win-loss value of the second virtual character), and Y represents the preset parameters corresponding to the first game mode.
[0138] Optionally, the process of determining, in S202, based on the matching score of the first virtual character and the matching scores of each of the other virtual characters, a virtual character whose matching score satisfies a preset matching condition from among the multiple other virtual characters as the second virtual character may include:
[0139] According to the matching score of the first virtual character and the matching scores of the other virtual characters, a virtual character corresponding to the matching score with the smallest difference from the matching score of the first virtual character is determined from the other virtual characters as the second virtual character.
[0140] In some implementations, the server may calculate the difference between the matching score of the first virtual character and the matching scores of each other virtual character, and use the virtual character corresponding to the matching score with the smallest difference as the second virtual character.
[0141] Optional, Figure 6 A flowchart of a matching method in a game provided by an embodiment of the present invention is shown as follows: Figure 6 As shown, if it is detected in the above S101 that the first virtual character has not been matched with a virtual character in the first game mode, then before the process of determining, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, a virtual character whose attribute parameters meet the preset matching conditions from the multiple other virtual characters in the public character pool as the second virtual character, the method may further include:
[0142] S601: Match a virtual character for a first virtual character from virtual characters requesting a first game mode.
[0143] In some implementations, the server may determine a plurality of avatars requesting the first game mode and match an avatar for the first avatar from the plurality of avatars.
[0144] S602: If no virtual character is matched for the first virtual character from the virtual characters requesting the first game mode within the first preset time period, it is determined that the first virtual character is not matched with a virtual character in the first game mode.
[0145] The first virtual character is not matched with a virtual character in the first game mode, and it is necessary to further match the first virtual character with a second virtual character from multiple other virtual characters in the public character pool.
[0146] Optional, Figure 7 A flowchart of a matching method in a game provided by an embodiment of the present invention is shown as follows: Figure 7 As shown, the process of matching a virtual character for the first virtual character from the virtual characters requesting the first game mode in S601 may include:
[0147] S701: Determine a first preset duration according to a first game mode.
[0148] Among them, different game modes correspond to different first preset time lengths.
[0149] S702: Match a virtual character for the first virtual character from virtual characters requesting the first game mode according to a matching rule corresponding to the first game mode within a first preset time period.
[0150] In this embodiment of the present application, the first preset durations for Game Mode 1, Game Mode 2, Game Mode 3, and so on are T1, T2, T3, and Tn, respectively. Game Mode 1, Game Mode 2, Game Mode 3, and so on are first matched according to the matching rules for each specific mode for the durations T1, T2, T3, and Tn, respectively. If the matching process for each game mode takes too long or fails to match a real player due to a player shortage, the matching logic will fall back to the public character pool.
[0151] In summary, within the first preset time period, virtual characters are matched with the first virtual character from the virtual characters requesting the first game mode, thereby avoiding the problem of excessive matching time in this stage. The first preset time period can be set within a tolerable time range. The matching rules corresponding to the first game mode can maintain the original matching logic unchanged.
[0152] If the first game mode is ranked match mode:
[0153] In addition to the basic matching rules for ranked matches, a similar rank principle has been added: based on the ranked match rank of the virtual character, priority will be given to matching with virtual characters of similar ranks (the small rank difference is between plus or minus 2, for example: Class A Elite IV will only match with virtual characters between Class B Dark Horse II and Class A Elite II. This value can be flexibly adjusted through the configuration table).
[0154] Principle of similar combat power: Virtual characters will be matched with virtual characters with a combat power of plus or minus X1%, rounded up (X1 is the ranking combat power parameter, initially set to 10, and this value can be flexibly adjusted through the configuration table).
[0155] Principle of similar recent performance: If the virtual character plays 10 games, the recent performance score needs to be calculated. If the virtual character does not play 10 games, the recent performance score will be uniformly S (basic performance score).
[0156] S1=S (virtual character has not played 10 games)
[0157] S1=S+30*A+10*B+CD (the avatar has played 10 games)
[0158] S1: The virtual character's recent battle score, the minimum value is 0
[0159] S: Basic battle score, tentatively set at 300, needs to support table matching
[0160] A: Number of games won by the avatar in the last 10 games
[0161] B: Number of draws in the last 10 matches of the avatar
[0162] C: Win and lose streak parameter. You need to count the number of consecutive wins or losses of the virtual character, Ni. This parameter is plus or minus ΣNi(Ni-1)*2.5. Win streak is positive, and losing streak is negative. Note that there may be multiple win and lose streaks in 10 games.
[0163] D: Active parameter, D = 30*(number of days the virtual character is offline - 7), the maximum value is 300 and the minimum value is 0.
[0164] Virtual characters will be matched with virtual characters with a recent performance score of plus or minus E. E is the performance score parameter, the initial value can be 150, and the matching table must be supported.
[0165] If the first game mode is Master League mode:
[0166] League level consistency principle: Virtual characters will be matched with virtual characters in the same level league (Note: divided into Super, A, B, and there are many large groups).
[0167] Principle of similar combat power: Players will be matched with players with a combat power of plus or minus X2%, rounded up (X2 is the ranking combat power parameter, initially 10).
[0168] If the first game mode is Friendly Match:
[0169] Principle of similar combat power: Players will be matched with players with a combat power of plus or minus X3%, rounded up (X3 is the ranking combat power parameter, initially 10).
[0170] Optionally, the method may further include:
[0171] The matching score of each virtual character is updated based on the activity of each virtual character in the public character pool, the basic matching score of each virtual character and the preset activity adjustment coefficient.
[0172] The activity level of a virtual character can be the length of time the character has been offline, for example, the number of days the character has been offline. The preset activity adjustment coefficient and basic matching score both need to support table configuration and can be set according to actual needs.
[0173] In some embodiments, the updated avatar's matching score Rx = Ra - (D * (Ra - R) / 7 / X), where Ra represents the player's previous matching score, D represents the number of days the player has been offline (rounded to an integer), R represents the base matching score, and X represents the preset activity adjustment factor. For example, R can be 1200 and X can be 50.
[0174] Optional, Figure 8 A flowchart of a matching method in a game provided by an embodiment of the present invention is shown as follows: Figure 8 As shown, the method may further include:
[0175] S801. Determine a second preset duration according to the first game mode.
[0176] Among them, different game modes correspond to different second preset time lengths.
[0177] It should be noted that the second preset duration is a time limit for matching in the public character pool to avoid the situation where no second virtual character is matched in the public character pool for a long time. The second preset durations corresponding to different game modes can be the same or different.
[0178] S802: If the first virtual character is not matched with a second virtual character in the public character pool within a second preset time period, the first virtual character is matched with a non-player virtual character.
[0179] The non-player virtual character may be an AI (Artificial Intelligence) character, and the game mode of the matched non-player virtual character may be the same as the game mode of the first virtual character.
[0180] In an embodiment of the present application, for different game modes, such as the qualifying mode, the master league mode, and the friendly match mode, after the first virtual character is matched with a non-player virtual character, the result of the game between the first virtual character and the non-player virtual character will not affect the matching score of the first virtual character.
[0181] In summary, the embodiment of the present application provides a matching method in a game, including: if it is detected that the first virtual character has not been matched with a virtual character in the first game mode, then based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, a virtual character whose attribute parameters meet the preset matching conditions is determined from multiple other virtual characters in the public character pool as the second virtual character; controlling the first virtual character and the second virtual character to play a game match to obtain the game match result; based on the game match result, updating the match score of the first virtual character in the first game mode and updating the match score of the second virtual character in the second game mode. When the first virtual character has not been matched with a virtual character in the first game mode, a second virtual character can be selected from the public character pool, thereby increasing the probability of matching the first virtual character with a virtual character and improving the player experience.
[0182] The following describes the matching device, server, and storage medium in the game used to execute the matching method in the game provided by this application. Its specific implementation process and technical effects can be found in the relevant content of the matching method in the above-mentioned game, which will not be repeated below.
[0183] Figure 9A schematic diagram of the structure of a matching device in a game provided by an embodiment of the present invention is shown in FIG. Figure 9 As shown, the device may include:
[0184] The determining module 901 is configured to, if it is detected that the first virtual character has not been matched with a virtual character in the first game mode, determine, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, a virtual character whose attribute parameters meet a preset matching condition from among the multiple other virtual characters in the public character pool as a second virtual character;
[0185] A control module 902 is configured to control the first virtual character and the second virtual character to play a game and obtain a game result;
[0186] The updating module 903 is configured to update the game score of the first virtual character in the first game mode and the game score of the second virtual character in the second game mode according to the game result.
[0187] Optionally, the determination module 901 is further configured to add the first virtual character to the public character pool to obtain a matching score for the first virtual character if it is detected that the first virtual character is not matched with a virtual character in the first game mode, wherein other virtual characters in the public character pool have corresponding matching scores; and based on the matching score of the first virtual character and the matching scores of the other virtual characters, determine, from the multiple other virtual characters, a virtual character whose matching score meets the preset matching conditions as the second virtual character.
[0188] Optionally, the matching score of the first virtual character is a preset basic matching score, and the matching scores of the other virtual characters are scores determined based on the preset basic matching scores and the historical game results of the other virtual characters.
[0189] Optionally, the device further includes:
[0190] The first updating module is used to update the matching score of the first virtual character and the matching score of the second virtual character according to the game result.
[0191] Optionally, the first update module is further used to update the matching score of the first virtual character based on the game match results and the expected match results of the first virtual character; and to update the matching score of the second virtual character based on the game match results and the expected match results of the second virtual character.
[0192] Optionally, the first updating module is further configured to update the matching score of the first virtual character according to the game result, the expected match result of the first virtual character, and the growth coefficient corresponding to the matching score of the first virtual character;
[0193] The first updating module is further configured to update the matching score of the second virtual character according to the game result, the expected match result of the second virtual character, and the growth coefficient corresponding to the matching score of the second virtual character.
[0194] Optionally, the first updating module is further configured to update the matching score of the first virtual character according to the game match result, the expected match result of the first virtual character, the growth coefficient corresponding to the matching score of the first virtual character, and the preset parameters corresponding to the first game mode;
[0195] The first update module is further used to update the matching score of the second virtual character based on the game results, the expected game results of the second virtual character, the growth coefficient corresponding to the matching score of the second virtual character, and the preset parameters corresponding to the second game mode.
[0196] Optionally, the first updating module is further used to determine, from the multiple other virtual characters, a virtual character corresponding to a matching score with the smallest difference from the matching score of the first virtual character based on the matching score of the first virtual character and the matching scores of the other virtual characters, as the second virtual character.
[0197] Optionally, the device further includes:
[0198] a first matching module, configured to match a virtual character for the first virtual character from virtual characters requesting the first game mode;
[0199] The first determining module is configured to determine that the first virtual character is not matched with a virtual character in the first game mode if no virtual character is matched for the first virtual character from the virtual characters requesting the first game mode within a first preset time period.
[0200] Optionally, the first matching module is further used to determine the first preset time length based on the first game mode, wherein different game modes correspond to different first preset time lengths; within the first preset time length, according to the matching rules corresponding to the first game mode, match a virtual character for the first virtual character from the virtual characters requesting the first game mode.
[0201] Optionally, the device further includes:
[0202] The second updating module is used to update the matching score of each virtual character in the public character pool according to the activity of each virtual character, the basic matching score of each virtual character and the preset activity adjustment coefficient.
[0203] Optionally, the device further includes:
[0204] A second determining module is configured to determine the second preset duration according to the first game mode, wherein different game modes correspond to different second preset durations;
[0205] The second matching module is configured to match the first virtual character with a non-player virtual character if the second virtual character is not matched with the first virtual character in the public character pool within the second preset time period.
[0206] The above-mentioned device is used to execute the method provided in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0207] The above modules can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital singnal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented by scheduling program code through a processing element, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0208] Figure 10 A schematic diagram of the structure of a matching device in a game provided by an embodiment of the present invention is shown in FIG. Figure 10 As shown, the device includes: a processor 1001 and a memory 1002. The memory 1002 is used to store programs, and the processor 1001 calls the program stored in the memory 1002 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0209] Optionally, the present invention further provides a program product, such as a computer-readable storage medium, comprising a program, which is used to perform the above method embodiment when executed by a processor.
[0210] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0211] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0212] In addition, the functional units in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional units.
[0213] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (English: Read-Only Memory, abbreviated: ROM), a random access memory (English: Random Access Memory, abbreviated: RAM), a magnetic disk or an optical disk, and other media that can store program code.
[0214] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A matching method in a game, characterized in that: include: If it is detected that the first virtual character has not been matched with a virtual character in the first game mode, then, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, a virtual character whose attribute parameters meet the preset matching conditions is determined from the multiple other virtual characters in the public character pool as the second virtual character, wherein the first game mode is the game mode requested by the first virtual character, and the virtual characters in the public character pool are all virtual characters that have not been preferentially matched with the game mode requested by the first virtual character; controlling the first virtual character and the second virtual character to play a game, and obtaining a result of the game; According to the game competition result, the competition score of the first virtual character in the first game mode is updated, and the competition score of the second virtual character in the second game mode is updated.
2. The method according to claim 1, characterized in that The step of determining, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, a virtual character whose attribute parameters meet a preset matching condition from among the other virtual characters in the public character pool as the second virtual character comprises: If it is detected that the first virtual character is not matched with a virtual character in the first game mode, the first virtual character is added to the public character pool to obtain a matching score for the first virtual character, wherein other virtual characters in the public character pool have corresponding matching scores; According to the matching score of the first virtual character and the matching scores of the other virtual characters, a virtual character whose matching score meets the preset matching condition is determined from the other virtual characters as the second virtual character.
3. The method according to claim 2, characterized in that The matching score of the first virtual character is a preset basic matching score, and the matching scores of the other virtual characters are scores determined based on the preset basic matching score and the historical game results of the other virtual characters.
4. The method according to claim 3, characterized in that The method further comprises: According to the game competition result, the matching score of the first virtual character and the matching score of the second virtual character are updated respectively.
5. The method according to claim 4, characterized in that The updating of the matching score of the first virtual character and the matching score of the second virtual character according to the game result includes: updating a matching score of the first virtual character according to the game match result and the expected match result of the first virtual character; The matching score of the second virtual character is updated according to the game match result and the expected match result of the second virtual character.
6. The method according to claim 5, characterized in that The updating of the matching score of the first virtual character according to the game match result and the expected match result of the first virtual character includes: updating the matching score of the first virtual character according to the game result, the expected match result of the first virtual character, and the growth coefficient corresponding to the matching score of the first virtual character; The updating of the matching score of the second virtual character according to the game match result and the expected match result of the second virtual character includes: The matching score of the second virtual character is updated according to the game match result, the expected match result of the second virtual character, and the growth coefficient corresponding to the matching score of the second virtual character.
7. The method according to claim 6, characterized in that The updating of the matching score of the first virtual character according to the game result, the expected match result of the first virtual character, and the growth coefficient corresponding to the matching score of the first virtual character includes: updating the matching score of the first virtual character according to the game match result, the expected match result of the first virtual character, the growth coefficient corresponding to the matching score of the first virtual character, and the preset parameters corresponding to the first game mode; The updating of the matching score of the second virtual character according to the game result, the expected match result of the second virtual character, and the growth coefficient corresponding to the matching score of the second virtual character includes: The matching score of the second virtual character is updated according to the game match result, the expected match result of the second virtual character, the growth coefficient corresponding to the matching score of the second virtual character, and the preset parameters corresponding to the second game mode.
8. The method according to claim 2, characterized in that The step of determining, based on the matching score of the first virtual character and the matching scores of the other virtual characters, a virtual character whose matching score satisfies the preset matching condition from among the other virtual characters as the second virtual character includes: According to the matching score of the first virtual character and the matching scores of the other virtual characters, a virtual character corresponding to a matching score having the smallest difference with the matching score of the first virtual character is determined from the other virtual characters as the second virtual character.
9. The method according to claim 1, characterized in that If it is detected that the first virtual character is not matched with a virtual character in the first game mode, the method further includes: determining, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in the public character pool, a virtual character whose attribute parameters meet a preset matching condition from the multiple other virtual characters in the public character pool as the second virtual character. matching a virtual character for the first virtual character from among the virtual characters requesting the first game mode; If no virtual character is matched for the first virtual character from the virtual characters requesting the first game mode within a first preset time period, it is determined that the first virtual character is not matched with a virtual character in the first game mode.
10. The method according to claim 9, characterized in that The matching of a virtual character for the first virtual character from the virtual characters requesting the first game mode includes: Determining the first preset duration according to the first game mode, wherein different game modes correspond to different first preset durations; Within the first preset time period, according to the matching rule corresponding to the first game mode, a virtual character is matched for the first virtual character from the virtual characters requesting the first game mode.
11. The method according to claim 1, wherein The method further comprises: The matching scores of the virtual characters are updated according to the activity of the virtual characters in the public character pool, the basic matching scores of the virtual characters and the preset activity adjustment coefficient.
12. The method according to claim 1, characterized in that The method further comprises: Determining a second preset duration according to the first game mode, wherein different game modes correspond to different second preset durations; If the second virtual character is not matched with the first virtual character in the public character pool within the second preset time period, a non-player virtual character is matched with the first virtual character.
13. A matching device in a game, characterized in that: include: a determination module configured to, if it is detected that the first virtual character has not been matched with a virtual character in a first game mode, determine, based on the attribute parameters of the first virtual character and the attribute parameters of each other virtual character in a public character pool, a virtual character whose attribute parameters meet a preset matching condition from a plurality of other virtual characters in the public character pool as a second virtual character, wherein the first game mode is a game mode requested by the first virtual character, and the virtual characters in the public character pool are all virtual characters that have not been preferentially matched with the game mode requested by the first virtual character; A control module, configured to control the first virtual character and the second virtual character to play a game and obtain a game result; An updating module is configured to update the game score of the first virtual character in the first game mode and the game score of the second virtual character in the second game mode according to the game result.
14. A server, characterized in that: include: A memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the matching method in the game according to any one of claims 1 to 12 is implemented.
15. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is read and executed, the matching method in the game described in any one of claims 1 to 12 is implemented.