Virtual character test evaluation method and device, server and storage medium
By combining offline self-gaming and online alignment evaluation methods, the subjectivity and inaccuracy of virtual character skills evaluation are solved, and the skill level evaluation of non-players and players' virtual characters is achieved, and the accuracy of game experience and difficulty matching is improved. .
Patent Information
- Application Number
- CN202410989423.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-15
AI Technical Summary
In the prior art, there is subjectivity and inaccuracy in the evaluation of virtual characters' skill level, making it difficult to accurately match the player's skill level, resulting in poor robot delivery effect.
Using a method combining offline self-game evaluation and online alignment evaluation, non-player virtual characters are evaluated for skill level, and initial and preset evaluation results are obtained through multiple battles, and the evaluation results are updated to achieve more accurate skill evaluation.
It realizes an accurate and objective assessment of the skill levels of non-player virtual characters and player virtual characters, reduces human resources waste, and improves the accuracy of game experience and robot difficulty matching.
Smart Images

Figure CN118949435A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method, device, server and storage medium for testing and evaluating a virtual character. Background Art
[0002] The skill levels of players in online games are diverse. It is not a suitable strategy to deploy robots (non-player virtual characters) of the same difficulty to all players. If you want to get a better robot deployment effect, you need to match the difficulty according to the player's level, which requires a clear understanding of the robot's skill level. The evaluation of the robot's skill level has also become a research hotspot.
[0003] In the related art, a large number of manual tests are used to evaluate the robot's ability level through the tester's physical sense. However, there is a problem that the evaluation results are relatively subjective and inaccurate. Summary of the invention
[0004] The purpose of this application is to provide a virtual character testing and evaluation method, device, server and storage medium to address the above-mentioned deficiencies in the prior art, so as to solve the above-mentioned technical problems existing in the related art.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for testing and evaluating a virtual character, the method comprising:
[0007] Conducting combat capability tests on a plurality of non-player virtual characters to obtain initial evaluation results of the non-player virtual characters;
[0008] According to the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character, the combat capability test is performed on the non-player virtual character and the player virtual character to obtain a first combat result;
[0009] According to the first battle result, the initial evaluation result and the preset evaluation result are updated to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
[0010] In a second aspect, an embodiment of the present application further provides a virtual character testing and evaluation device, the device comprising:
[0011] The testing module is used to test the combat capability of multiple non-player virtual characters to obtain initial evaluation results of the non-player virtual characters; and to test the combat capability of the non-player virtual characters and the player virtual characters according to the initial evaluation results of the non-player virtual characters and the preset evaluation results of the player virtual characters to obtain a first combat result;
[0012] An updating module is used to update the initial evaluation result and the preset evaluation result according to the first battle result, so as to obtain a target evaluation result of the non-player virtual character and a target evaluation result of the player virtual character.
[0013] In a third aspect, an embodiment of the present application 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 virtual character testing and evaluation method described in any one of the first aspects above is implemented.
[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is read and executed, the virtual character testing and evaluation method described in any one of the first aspects above is implemented.
[0015] The beneficial effect of the present application is that the embodiment of the present application provides a test and evaluation method for a virtual character, the method comprising: conducting a battle ability test on a plurality of non-player virtual characters to obtain an initial evaluation result of the non-player virtual characters; conducting a battle ability test on the non-player virtual characters and the player virtual characters according to the initial evaluation result of the non-player virtual characters and the preset evaluation result of the player virtual characters to obtain a first battle result; updating the initial evaluation result and the preset evaluation result according to the first battle result to obtain a target evaluation result of the non-player virtual characters and a target evaluation result of the player virtual characters. Firstly, the battle ability test is conducted on a plurality of non-player virtual characters to realize an automatic offline evaluation of the skill level of the non-player virtual characters; then, based on the initial evaluation result and the preset evaluation result obtained by the offline evaluation, the battle ability test is conducted on the non-player virtual characters and the player virtual characters to realize an online skill level evaluation, and the battle ability test is automatically conducted by combining offline evaluation and online evaluation, which can realize an accurate and objective evaluation of the skill level of the non-player virtual characters and the player virtual characters, and also reduce unnecessary waste of human resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 1 ;
[0018] Figure 2 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 2 ;
[0019] Figure 3 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 3 ;
[0020] Figure 4 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 4 ;
[0021] Figure 5 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 5 ;
[0022] Figure 6 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 6 ;
[0023] Figure 7 A schematic diagram of the structure of a virtual character testing and evaluation device provided in an embodiment of the present application;
[0024] Figure 8 A schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0026] 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 which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0027] In the description of the present 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 drawings, or is the orientation or position relationship in which the product of the application is usually placed when used. It is only for the convenience of describing the present 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, and therefore cannot be understood as a limitation on the present application.
[0028] In addition, the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0030] The following is an explanation of the terms involved in the embodiments of the present application.
[0031] Deep reinforcement learning: A branch of artificial intelligence that combines deep learning and reinforcement learning techniques. Deep learning uses multi-layer neural networks to process and capture patterns in data; reinforcement learning is a method of learning optimal strategies through the interaction between AI (Artificial Intelligence) and the environment. Deep reinforcement learning uses deep neural networks to estimate the value or strategy of AI's interaction with the environment, thereby effectively training AI that can cope with complex environments.
[0032] MySQL: An open source relational database management system in the field of software development.
[0033] Hive: A data warehouse infrastructure built on Apache Hadoop (an open source distributed storage and processing framework). It provides a SQL-like (Structured Query Language) query language for querying and managing large data sets stored in Hadoop (distributed system infrastructure) clusters.
[0034] Redis database: an open source memory-based data structure storage system.
[0035] Statistical learning methods: A set of algorithms and techniques based on statistical theory that can be used to extract patterns or knowledge from data.
[0036] QuickSkill: A statistical learning method to quickly learn the ability scores of novices.
[0037] Elo: A method for evaluating the relative skill levels of individuals participating in a game (such as chess players, athletes, or other competitors). Originally designed for chess, it is now widely used in various sports and games.
[0038] Kafka: An open source distributed stream processing platform that provides a high-throughput, low-latency message transmission system that can be used to build real-time data pipelines and streaming data processing applications.
[0039] Sample: A single instance or data point in a data set, which is the smallest data unit required for artificial intelligence model training.
[0040] Data-driven: An approach to decision-making and problem-solving that emphasizes the use of relatively objective data analysis to guide the decision-making process, rather than relying solely on human intuition and subjective experience.
[0041] Ability points: A numerical system that can express the player's skill level in online competitive games.
[0042] Competitive robot: A contestant in online competitive games whose behavior is automatically controlled by artificial intelligence technology.
[0043] An embodiment of the present application provides a virtual character testing and evaluation method, which is applied to a server. The following is an explanation of a virtual character testing and evaluation method provided in an embodiment of the present application.
[0044] Figure 1 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 1 ,like Figure 1 As shown, the method may include:
[0045] S101, performing a combat capability test on a plurality of non-player virtual characters to obtain initial evaluation results of the non-player virtual characters.
[0046] Among them, non-player virtual characters can also be called NPCs (non-player characters), robots or competitive robots. Non-player virtual characters are competitive robots trained using deep reinforcement learning technology, and different non-player virtual characters among multiple non-player virtual characters have different skill levels. Multiple non-player virtual characters can belong to a non-player virtual character pool, which includes: multiple candidate non-player virtual characters, and multiple non-player virtual characters are some of the multiple candidate non-player virtual characters.
[0047] In some embodiments, a plurality of non-player virtual characters are controlled to fight against each other to test the fighting ability of the plurality of non-player virtual characters, obtain the fighting results between the non-player virtual characters, and determine the initial evaluation results of each non-player virtual character based on the fighting results between the non-player virtual characters.
[0048] In addition, the process of testing the combat capability of multiple non-player virtual characters can be performed offline, and this process can also be called an offline self-game evaluation process.
[0049] S102: According to the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character, a combat capability test is performed on the non-player virtual character and the player virtual character to obtain a first combat result.
[0050] Among them, the player virtual character is controlled by the player, and the non-player virtual character is not controlled by the player. In addition to not being controlled by the player, the appearance and basic skill attributes of the non-player virtual character and the player virtual character are relatively similar.
[0051] In actual applications, the preset evaluation result of the player's virtual character is a pre-set evaluation result. When the player's virtual character participates in a competition for the first time, the preset evaluation result of each player's virtual character is the same, which is a default preset evaluation result. As the player's virtual character is tested for combat ability multiple times, the preset evaluation results of the player's virtual character will be different.
[0052] It should be noted that the process of testing the combat capability of the non-player virtual character and the player virtual character can be called an online evaluation process. Controlling the non-player virtual character to fight with the player virtual character can implement the combat capability testing of the non-player virtual character and the player virtual character.
[0053] S103. According to the first battle result, the initial evaluation result and the preset evaluation result are updated to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
[0054] In the embodiment of the present application, after each battle between the non-player virtual character and the player virtual character, the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character can be updated at the same time based on the result of the first battle, or the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character can be updated in sequence, and the embodiment of the present application does not impose specific restrictions on this.
[0055] It is worth noting that the target evaluation results of non-player virtual characters are based on the evaluation results of offline self-play evaluation and online alignment evaluation. The target evaluation results of non-player virtual characters are more accurate. Among them, the offline self-play evaluation is a battle between non-player virtual characters, and the online alignment evaluation is a mixed battle between non-player virtual characters and player virtual characters. The online alignment evaluation allows the existing system deviations in the ability scores of real people and robots to be corrected.
[0056] In addition, based on the initial evaluation results of the non-player virtual characters and the preset evaluation results of the player virtual characters, the combat capabilities of the non-player virtual characters and the player virtual characters are tested, and the allocation of the non-player virtual characters and the player virtual characters participating in the combat is more reasonable, which makes the first combat result obtained more accurate, and thus the updated target evaluation result is also more accurate.
[0057] In summary, the embodiment of the present application provides a test and evaluation method for a virtual character, the method comprising: performing a battle ability test on a plurality of non-player virtual characters to obtain an initial evaluation result of the non-player virtual characters; performing a battle ability test on the non-player virtual characters and the player virtual characters according to the initial evaluation result of the non-player virtual characters and the preset evaluation result of the player virtual characters to obtain a first battle result; updating the initial evaluation result and the preset evaluation result according to the first battle result to obtain a target evaluation result of the non-player virtual characters and a target evaluation result of the player virtual characters. First, the battle ability test is performed on a plurality of non-player virtual characters to realize an automatic offline evaluation of the skill level of the non-player virtual characters; then, based on the initial evaluation result and the preset evaluation result obtained by the offline evaluation, the battle ability test is performed on the non-player virtual characters and the player virtual characters to realize an online skill level evaluation, and the battle ability test is automatically performed by combining offline evaluation and online evaluation, which can realize an accurate and objective evaluation of the skill level of the non-player virtual characters and the player virtual characters, and also reduce unnecessary waste of human resources.
[0058] Optionally, Figure 2 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 2 ,like Figure 2 As shown, the process of performing combat capability tests on a plurality of non-player virtual characters in S101 to obtain initial evaluation results of the non-player virtual characters may include:
[0059] S201. Screen multiple candidate non-player virtual characters according to preset character attribute parameters to obtain a first matching queue.
[0060] Among them, a robot template table is pre-set, and the robot template table includes: preset role attribute parameters of the non-player virtual role.
[0061] In some embodiments, the preset character attribute parameters include: the ID (identification, identity identification number), occupation type, skill type, gender, appearance, open time period and other information of the non-player virtual character, wherein the ID of the non-player virtual character is to facilitate the retrieval of the non-player virtual character. In addition, when the data volume of the preset character attribute parameters is small, the preset character attribute parameters can be stored in an Excel (table) configuration table, and when the data volume of the preset character attribute parameters is large, the preset character attribute parameters can be stored in a MySQL database.
[0062] In addition, non-player virtual characters that match the preset character attribute parameters are screened from the plurality of candidate non-player virtual characters, and the first matching queue includes: a plurality of non-player virtual characters that match the preset character attribute parameters. For example, the number of the plurality of candidate non-player virtual characters is 1000, and the number of the plurality of non-player virtual characters that match the preset character attribute parameters is 100.
[0063] S202: Determine a first battle lineup from a first matching queue according to a preset battle rule.
[0064] The first battle lineup is composed of non-player virtual characters of the two opposing sides, and the preset battle rules include: constraints on competitive attribute parameters of the non-player virtual characters of the two opposing sides.
[0065] In the embodiment of the present application, the two non-player virtual characters in the first battle lineup include: one non-player virtual character and another non-player virtual character, and the two non-player virtual characters may include: at least one non-player virtual character. According to the requirements of the preset battle rules, a first battle lineup that meets the preset battle rules can be searched from the first matching queue.
[0066] It should be noted that the preset battle rules refer to the rule description for the battle lineup. In some embodiments, the constraints on the competitive attribute parameters of the non-player virtual characters of the two opposing parties may include: at least one of the following: occupation constraints on the non-player virtual characters of the two opposing parties, gender constraints on the non-player virtual characters of the two opposing parties, and friend constraints on the non-player virtual characters of the two opposing parties.
[0067] Among them, the occupation constraints of the non-player virtual characters of the two parties are used to constrain the number of non-player virtual characters of the same occupation among the non-player virtual characters of both parties, and the combination method of non-player virtual characters of different occupations; the gender constraints of the non-player virtual characters of the two parties are used to constrain the number of non-player virtual characters of the same gender among the non-player virtual characters of both parties, and the combination method of non-player virtual characters of different genders; the friend constraints of the non-player virtual characters of the two parties are used to constrain the number of friend non-player virtual characters among the non-player virtual characters of both parties, and the combination method of friend non-player virtual characters and non-friend non-player virtual characters.
[0068] For example, the occupational constraints of the non-player virtual characters of the two opposing parties are used to constrain that there can be at most one non-player virtual character of a certain occupation among the non-player virtual characters of each party, the number of non-player virtual characters of a certain occupation is equal, and a combination of non-player virtual characters of a certain occupation cannot appear, etc.
[0069] For example, the gender constraint on the non-player virtual characters of the two opposing parties is used to constrain the non-player virtual characters of both parties to include a preset number of male non-player virtual characters, or to include a preset number of female non-player virtual characters, or to include non-player virtual characters of a combination of male and female genders. For non-player virtual characters of a combination of male and female genders, it is necessary to further constrain the number of non-player virtual characters of the same gender among the non-player virtual characters of both parties, for example, the non-player virtual characters of both parties include two male non-player virtual characters and one female non-player virtual character.
[0070] For example, the friend constraints of the non-player virtual characters of the two opposing parties are used to constrain the non-player virtual characters of both parties to include a preset number of friend player virtual characters, or to include a preset number of non-friend non-player virtual characters, or to include a combination of friends and non-friend non-player virtual characters. For the combination of friends and non-friend non-player virtual characters, it is necessary to further constrain the number of friend and non-friend non-player virtual characters among the non-player virtual characters of both parties. For example, the non-player virtual characters of both parties include two friend non-player virtual characters and two non-friend non-player virtual characters.
[0071] In the embodiment of the present application, if two non-player virtual characters add friends, the two non-player virtual characters are friend non-player virtual characters to each other.
[0072] It is worth noting that battles between non-player virtual characters are initiated cyclically on the server, and before each battle, the battle lineup is determined based on preset battle rules.
[0073] S203: Perform a battle capability test based on the first battle lineup to obtain an initial evaluation result of the non-player virtual character.
[0074] In some embodiments, conducting a battle ability test based on the first battle lineup means controlling one non-player virtual character in the first battle lineup to fight against another non-player virtual character, so as to obtain a battle result between the non-player virtual characters, and using a preset algorithm to determine an initial evaluation result of the non-player virtual character based on the battle result between the non-player virtual characters. The preset algorithm may be a preset ability score algorithm, and the initial evaluation result may be an ability score value result of the non-player virtual character. For example, the ability score algorithm may use a modern statistical learning method such as the QuickSkill algorithm or a classic scoring algorithm such as the Elo algorithm (an algorithm for evaluating the relative skill level of a player or a contestant), or may use a scoring update formula designed by a game planner.
[0075] In practical applications, the battle results between non-player virtual characters can be the first settlement log. The settlement log is collected to the Hive offline data platform, and the first settlement log is processed into a format that is convenient for preset algorithm processing on the Hive offline data platform. Then, the initial evaluation results of the non-player virtual characters are determined on the Hive offline data platform based on the first settlement log.
[0076] The first settlement log may include: the camps of the IDs of the non-player virtual characters of both parties, the wins and losses, and various performance scores. The performance scores depend on the game type. For combat competitive games, they are usually the number of kills, damage points, injury points, treatment points, etc. For sports competitive games, they are the scores of offense, defense, and assists.
[0077] In addition, after the initial evaluation result of the non-player virtual character is obtained, the initial evaluation result of the non-player virtual character may be stored in a Redis database for use in the process of S102 .
[0078] In the embodiment of the present application, the process from S201 to S203 can initialize the skill level of all non-player virtual characters offline. Non-player virtual characters of different levels can be selected to play a large number of games, and the performance data of each non-player virtual character in each game can be collected. Then, based on these performance data, the ability score of each non-player virtual character is continuously updated using a statistical learning method until the ability scores of all non-player virtual characters converge, and the initial evaluation results of the non-player virtual characters are obtained.
[0079] Optionally, Figure 3 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 3 ,like Figure 3 As shown, the process of performing a battle ability test on the non-player virtual character and the player virtual character according to the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character in S102 to obtain the first battle result may include:
[0080] S301: Determine a set of non-player virtual characters from a plurality of candidate non-player virtual characters.
[0081] Wherein, a plurality of non-player virtual characters are selected from a plurality of candidate non-player virtual characters in a non-player virtual character pool as a non-player virtual character set.
[0082] S302: Determine a player virtual character lineup from a plurality of candidate player virtual characters.
[0083] It should be noted that when the game is running, there are a large number of players participating in the game, so there will be multiple candidate player virtual characters, which are multiple player virtual characters to be matched, and the player virtual characters to be matched refer to player virtual characters that have not yet formed a camp. Multiple candidate player virtual characters can exist in the player virtual character pool.
[0084] Among them, multiple player virtual characters are selected from multiple candidate player virtual characters as the player virtual character lineup.
[0085] S303, determining a lineup of non-player virtual characters from the non-player virtual character set according to an allocation rule corresponding to the game state, a preset evaluation result of each player virtual character in the player virtual character lineup, and an initial evaluation result of each non-player virtual character in the non-player virtual character set.
[0086] Among them, the number of non-player virtual characters in the non-player virtual character set is greater than the number of player virtual characters in the player virtual character lineup, the non-player virtual characters in the non-player virtual character lineup are part of the characters in the non-player virtual character set, and the number of non-player virtual characters in the non-player virtual character lineup is equivalent to the number of player virtual characters in the player virtual character lineup.
[0087] Optionally, if the game status indicates that the player virtual characters in the player virtual character lineup are player virtual characters corresponding to novice players, that is, the game status is still a novice game, or the player virtual characters in the player virtual character lineup are in a battle failure state, then the allocation rule corresponding to the game status is the first allocation rule, and the first allocation rule indicates: allocate a non-player virtual character lineup whose combat ability is lower than that of the player virtual character lineup to the player virtual character lineup.
[0088] In addition, the first allocation rule can also be called a warm-hearted allocation rule. At this time, the initial evaluation results of the non-player virtual characters in the determined non-player virtual character lineup are significantly lower than the preset evaluation results of each player virtual character in the player virtual character lineup, that is, the combat capability of the non-player virtual character lineup is lower than the combat capability of the player virtual character lineup, which makes it easier for the player virtual character lineup to win and improves the game experience of the corresponding user of the player virtual character. Among them, for the warm-hearted allocation rule, the non-player virtual character lineup can also be randomly determined from the non-player virtual character set.
[0089] Optionally, if the game status indicates that the time the player's virtual character lineup waits for a battle is greater than or equal to a preset time, that is, the game status is an overtime game, then the allocation rule corresponding to the game status is a second allocation rule, and the second allocation rule indicates: allocate a non-player virtual character lineup with a combat capability equivalent to that of the player's virtual character lineup to the player's virtual character lineup.
[0090] In the embodiment of the present application, the second allocation rule is an evenly matched allocation rule. At this time, the initial evaluation results of the non-player virtual characters in the non-player virtual character lineup are close to the preset evaluation results of each player virtual character in the player virtual character lineup, that is, the difference between the initial evaluation result and the preset evaluation result is within the preset range. That is, the combat capability of the non-player virtual character lineup is equivalent to the combat capability of the player virtual character lineup, so that the capability levels of the participating camps of the non-player virtual character lineup and the player virtual character lineup are more balanced.
[0091] For example, the initial evaluation results of the non-player virtual characters in the non-player virtual character lineup are close to the preset evaluation results of each player virtual character in the player virtual character lineup, which means that the average initial evaluation result of at least one non-player virtual character in the non-player virtual character lineup is the same as or close to the average preset evaluation result of at least one player virtual character in the player virtual character lineup.
[0092] In addition, if the game status indicates that some of the non-player virtual characters among the matched player virtual characters of the two opposing teams are offline, a non-player virtual character with the same preset evaluation result as the offline virtual character is determined from multiple candidate non-player virtual characters, and the determined non-player virtual character is used to replace the offline virtual characters.
[0093] S304: Determine a second battle lineup according to the non-player virtual character lineup and the player virtual character lineup.
[0094] The second battle lineup includes: a non-player virtual character lineup and a player virtual character lineup; the non-player virtual character lineup includes at least one non-player virtual character, and the player virtual character lineup includes at least one player virtual character.
[0095] In addition, the number of non-player virtual characters in the non-player virtual character lineup is equal to the number of player virtual characters in the player virtual character lineup. For example, if the number of non-player virtual characters in the non-player virtual character lineup is 2, the number of player virtual characters in the player virtual character lineup is also 2; or if the number of non-player virtual characters in the non-player virtual character lineup is 5, the number of player virtual characters in the player virtual character lineup is also 5.
[0096] S305: Perform a battle capability test based on the second battle lineup to obtain a first battle result.
[0097] Among them, the combat capability test of the second combat lineup can be regarded as a combat capability test between humans and machines.
[0098] In some implementations, the non-player virtual characters in the non-player virtual character lineup in the second battle lineup are controlled to perform a battle ability test with the player virtual characters in the player virtual character lineup to obtain a first battle result.
[0099] In actual applications, the first battle result is the second settlement log between the non-player virtual character and the player virtual character. The second settlement log includes: the camp of the non-player virtual character and the player virtual character's ID, the win or loss, and various performance scores. The performance score depends on the type of game. For combat competitive games, it is usually the number of kills, damage points, injury points, treatment points, etc. For sports competitive games, it is the score of attack, defense, and assists.
[0100] In addition, the initial evaluation results and preset evaluation results are updated based on the first battle results, so that the ability scores of real players (player virtual characters) and robots (non-player virtual characters) are updated simultaneously in the online battle environment, gradually achieving the alignment of the ability scores of real players and robots. This process is the online alignment process. The offline evaluation stage only involves battles between robots, while the online stage involves battles between real players and robots. The online alignment evaluation allows the existing system deviations in the ability scores of real people and robots to be corrected.
[0101] Optionally, Figure 4 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 4 ,like Figure 4 As shown, the process of determining the set of non-player virtual characters from a plurality of candidate non-player virtual characters in S301 may include:
[0102] S401. Screen multiple candidate non-player virtual characters according to preset character attribute parameters to obtain a second matching queue.
[0103] The preset role attribute parameters here are similar to the preset role attribute parameters in the above S201, and will not be described again here.
[0104] In some embodiments, a non-player virtual character matching the preset character attribute parameters is screened from a plurality of candidate non-player virtual characters, and the second matching queue includes: a plurality of non-player virtual characters matching the preset character attribute parameters. For example, the number of the plurality of candidate non-player virtual characters is 1000, and the number of the plurality of non-player virtual characters matching the preset character attribute parameters is 120.
[0105] S402: Determine a set of non-player virtual characters from a second matching queue according to a preset battle rule.
[0106] The preset battle rules include: constraints on competitive attribute parameters of the non-player virtual character lineup and the player virtual character lineup.
[0107] Optionally, the process of determining a player virtual character lineup from a plurality of candidate player virtual characters in S302 may include:
[0108] According to the preset battle rules, a player virtual character lineup is determined from a plurality of candidate player virtual characters, wherein the preset battle rules include: constraints on competitive attribute parameters of the non-player virtual character lineup and the player virtual character lineup.
[0109] The preset battle rules refer to the rule description for the battle lineup. In some implementations, the preset battle rules may include: occupational constraints on non-player virtual characters in the non-player virtual character lineup and player virtual characters in the player virtual character lineup.
[0110] For example, there is at most one virtual character of a certain profession in the non-player virtual character lineup and the player virtual character lineup, the number of virtual characters of a certain profession in the non-player virtual character lineup and the player virtual character lineup is equal, a combination of virtual characters of a certain profession cannot appear, etc.
[0111] It can be seen that based on the preset battle rules, a set of non-player virtual characters and a lineup of player virtual characters that meet the preset battle rules can be selected from the second matching queue and multiple candidate player virtual characters respectively.
[0112] Optionally, Figure 5 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 5 ,like Figure 5As shown, the process of updating the initial evaluation result and the preset evaluation result according to the first battle result in S103 to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character may include:
[0113] S501. Obtain, from the first battle result, a target first battle result when the allocation rule is the second allocation rule.
[0114] The second allocation rule is an allocation rule in which the abilities of the non-player virtual character lineup and the player virtual character lineup are equal, that is, the second allocation rule is the above-mentioned equal-power allocation rule.
[0115] In the embodiment of the present application, the first battle result includes: the first battle result corresponding to the evenly matched allocation rule, and the first battle result of the warmth-giving allocation rule. Since the non-player virtual character lineup and the player virtual character lineup participating in the battle under the warmth-giving allocation rule are not equivalent in ability, the first battle result based on the warmth-giving allocation rule does not have participation significance. Since the non-player virtual character lineup and the player virtual character lineup participating in the battle under the evenly matched allocation rule are equivalent in ability, it is more reliable to update the initial evaluation result and the preset evaluation result based on the target first battle result corresponding to the evenly matched allocation rule.
[0116] In actual applications, the target first battle result corresponding to the second allocation rule is selected from the first battle result, and a sample is generated for the second settlement log of the target first battle result. The second settlement log of the target first battle result is an online settlement log, and the online settlement log is collected from the server in real time to the data middleware Kafka.
[0117] S502: Update the initial evaluation result and the preset evaluation result according to the target first battle result, and obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
[0118] Among them, for real players participating in the competition for the first time, the preset evaluation result of the player's virtual character can be used to initialize a default value; the initial evaluation result of the non-player virtual character is the result obtained based on the offline self-game evaluation in the above S101, and the initial evaluation result and the preset evaluation result can be stored in the Redis database and retrieved by the player's virtual character id or the non-player virtual character id.
[0119] It should be noted that a preset ability score algorithm can be used to update the initial evaluation result and the preset evaluation result according to the target first battle result to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character. Among them, the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character can be stored in the Redis database, and the original initial evaluation result and the preset evaluation result can be overwritten. The target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character can be called the ability score of the non-player virtual character and the ability score of the player virtual character.
[0120] Optionally, Figure 6 A flow chart of a method for testing and evaluating a virtual character provided in an embodiment of the present application Figure 6 ,like Figure 6 As shown, the method may also include:
[0121] S601. Determine a third battle lineup from a plurality of candidate player virtual characters according to a preset evaluation result of the player virtual character.
[0122] When the game is running, a large number of players participate in the game, so there will be multiple candidate player virtual characters, which are multiple player virtual characters to be matched, and the player virtual characters to be matched refer to player virtual characters that have not yet formed a camp. Multiple candidate player virtual characters can exist in the player virtual character pool.
[0123] It should be noted that the third battle lineup includes virtual characters of both players, and both virtual characters of both players include at least one virtual character of the player.
[0124] S602: Perform a battle capability test based on the third battle lineup to obtain a second battle result.
[0125] In the embodiment of the present application, the virtual characters of both players in the third battle lineup are controlled to perform a battle ability test to obtain a second battle result.
[0126] S603: According to the second battle result, the preset evaluation results of the virtual characters of both players in the third battle lineup are updated to obtain target evaluation results of the virtual characters of both players.
[0127] In some implementations, a third settlement log corresponding to the second battle result is obtained, and the settlement log is collected to the Hive offline data platform. The third settlement log is processed on the Hive offline data platform into a format that is convenient for processing by a preset algorithm. Then, based on the third settlement log, the preset evaluation results of the virtual characters of both players are updated on the Hive offline data platform using a preset ability score algorithm to obtain target evaluation results of the virtual characters of both players.
[0128] In addition, the target evaluation results of the virtual characters of both players can be stored in the Redis database, overwriting the preset evaluation results of the virtual characters of both players.
[0129] Optionally, the process of determining the third battle lineup from a plurality of candidate player virtual characters according to the preset evaluation results of the player virtual characters in S601 may include:
[0130] According to the preset evaluation results of the player virtual characters and the second allocation rule, a third battle lineup is determined from a plurality of candidate player virtual characters.
[0131] The second allocation rule is the allocation rule when the virtual characters of both players have equal abilities, that is, the above-mentioned allocation rule of evenly matched abilities.
[0132] In an embodiment of the present application, a second allocation rule and a preset battle rule are adopted to determine the virtual characters of both players from multiple player virtual characters, and the preset evaluation results of the virtual characters of both players are comparable. For example, the average preset evaluation result of the virtual characters of one player may be the same as or similar to the average preset evaluation result of the virtual characters of the other player.
[0133] It should be noted that the preset evaluation results of the virtual characters of both players in the third battle lineup are updated to obtain the target evaluation results of the virtual characters of both players, so as to facilitate the allocation of non-player virtual characters with equivalent abilities to the player virtual characters in the target allocation of the human-machine bureau. In this way, based on the results of the first battle, it is also possible to accurately and reliably obtain the target evaluation results of the non-player virtual characters and the target evaluation results of the player virtual characters, thereby improving the accuracy of the ability evaluation of the non-player virtual characters and the player virtual characters.
[0134] In addition, the updating of the evaluation results in the embodiment of the present application may be real-time updating.
[0135] In summary, the embodiments of the present application provide a method for testing and evaluating a virtual character, which quantifies the comprehensive ability level of a non-player virtual character through a data-driven method. The main goal of the data-driven method is to design an ability evaluation process that is independent of the non-player virtual character training process, and to quantify the ability level of the non-player virtual character. The quantified value is called the "ability score of the non-player virtual character", that is, the target evaluation result of the non-player virtual character.
[0136] Moreover, offline self-play evaluation and online alignment can be run in a highly automated manner, which greatly reduces the investment in labor costs. The test evaluation of non-player virtual characters does not rely on manual testing, and can cover the difficulty levels of all non-player virtual characters, thus saving the energy of game planners and testers. The evaluation results of the ability level of non-player virtual characters are accurate and have good comparability with the skill level of player virtual characters, so as to accurately meet the actual delivery needs in game design.
[0137] This application can obtain the relative ability levels of all competitive robots in the game through offline self-play evaluation. The results of this link can be used to assist game planners in evaluating the rationality of the robot difficulty gradient on the one hand, and provide a good initialization value for the robot's ability score before the game is launched or the version is updated on the other hand, thereby ensuring the human-machine experience in the initial stage of the game launch; the online alignment link goes a step further to realize the deviation correction between the robot's ability score and the real player's ability score, and align the strength level of the robot with that of the real player, so as to achieve more accurate human-machine difficulty control and optimize the player's competitive experience.
[0138] The following describes a virtual character testing and evaluation device, a server, and a storage medium used to execute the virtual character testing and evaluation method provided in this application. The specific implementation process and technical effects can be found in the relevant content of the above-mentioned virtual character testing and evaluation method, which will not be repeated below.
[0139] Figure 7 A schematic diagram of a virtual character testing and evaluation device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the device comprises:
[0140] The testing module 101 is used to test the combat capability of multiple non-player virtual characters to obtain initial evaluation results of the non-player virtual characters; based on the initial evaluation results of the non-player virtual characters and the preset evaluation results of the player virtual characters, the combat capability of the non-player virtual characters and the player virtual characters is tested to obtain a first combat result;
[0141] The updating module 102 is used to update the initial evaluation result and the preset evaluation result according to the first battle result, and obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
[0142] Optionally, the test module 101 is specifically used to screen multiple candidate non-player virtual characters according to preset character attribute parameters to obtain a first matching queue; determine a first battle lineup from the first matching queue according to preset battle rules, wherein the first battle lineup is composed of non-player virtual characters of both sides of the battle, wherein the preset battle rules include: constraints on competitive attribute parameters of the non-player virtual characters of both sides of the battle; perform a battle ability test based on the first battle lineup to obtain an initial evaluation result of the non-player virtual character.
[0143] Optionally, the test module 101 is specifically used to determine a set of non-player virtual characters from multiple candidate non-player virtual characters; determine a lineup of player virtual characters from multiple candidate player virtual characters; determine a lineup of non-player virtual characters from the set of non-player virtual characters according to an allocation rule corresponding to a game state, the preset evaluation result of each of the player virtual characters in the lineup of the player virtual characters, and the initial evaluation result of each of the non-player virtual characters in the set of non-player virtual characters; determine a second battle lineup according to the lineup of non-player virtual characters and the lineup of player virtual characters; and perform a battle ability test based on the second battle lineup to obtain the first battle result.
[0144] Optionally, if the game state indicates that: the player virtual characters in the player virtual character lineup are player virtual characters corresponding to novice players, or the player virtual characters in the player virtual character lineup are in a battle failure state, then the allocation rule corresponding to the game state is a first allocation rule, and the first allocation rule indicates: the non-player virtual character lineup whose battle ability is lower than that of the player virtual character lineup is allocated to the player virtual character lineup;
[0145] If the game status indicates that the time the player virtual character lineup waits for battle is greater than or equal to the preset time, then the allocation rule corresponding to the game status is the second allocation rule, and the second allocation rule indicates: allocate the non-player virtual character lineup with the combat capability equivalent to that of the player virtual character lineup to the player virtual character lineup.
[0146] Optionally, the test module 101 is specifically used to screen the multiple candidate non-player virtual characters according to preset character attribute parameters to obtain a second matching queue; determine the set of non-player virtual characters from the second matching queue according to preset battle rules, wherein the preset battle rules include: constraints on the competitive attribute parameters of the non-player virtual character lineup and the player virtual character lineup.
[0147] Optionally, the testing module 101 is specifically used to determine the player virtual character lineup from the multiple candidate player virtual characters according to preset battle rules, wherein the preset battle rules include: constraints on competitive attribute parameters of the non-player virtual character lineup and the player virtual character lineup.
[0148] Optionally, the update module 102 is specifically used to obtain, from the first battle result, a target first battle result when the allocation rule is a second allocation rule, wherein the second allocation rule is an allocation rule in which the capabilities of the non-player virtual character lineup and the player virtual character lineup are equivalent; based on the target first battle result, the initial evaluation result and the preset evaluation result are updated to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
[0149] Optionally, the device further comprises:
[0150] A determination module, configured to determine a third battle lineup from a plurality of candidate player virtual characters according to the preset evaluation result of the player virtual character;
[0151] A first testing module, used for performing a battle capability test based on the third battle lineup to obtain a second battle result;
[0152] The first updating module is used to update the preset evaluation results of the virtual characters of both players in the third battle lineup according to the second battle result, so as to obtain target evaluation results of the virtual characters of both players.
[0153] Optionally, the determination module is specifically used to determine the third battle lineup from the multiple candidate player virtual characters according to the preset evaluation results of the player virtual characters and a second allocation rule, wherein the second allocation rule is an allocation rule that the abilities of the player virtual characters of both parties are equivalent.
[0154] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0155] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may 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 may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0156] Figure 8 A schematic diagram of the structure of a server provided in an embodiment of the present application, such as Figure 8 As shown, the server includes: a processor 201 and a memory 202 .
[0157] The memory 202 is used to store programs, and the processor 201 calls the programs stored in the memory 202 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0158] For example, the method may include:
[0159] Conducting combat capability tests on a plurality of non-player virtual characters to obtain initial evaluation results of the non-player virtual characters;
[0160] According to the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character, the combat capability test is performed on the non-player virtual character and the player virtual character to obtain a first combat result;
[0161] According to the first battle result, the initial evaluation result and the preset evaluation result are updated to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
[0162] Optionally, the performing combat capability tests on a plurality of non-player virtual characters to obtain initial evaluation results of the non-player virtual characters includes:
[0163] Screening multiple candidate non-player virtual characters according to preset character attribute parameters to obtain a first matching queue;
[0164] Determine a first battle lineup from the first matching queue according to a preset battle rule, wherein the first battle lineup is composed of non-player virtual characters of both sides of the battle, wherein the preset battle rule includes: constraints on competitive attribute parameters of the non-player virtual characters of both sides of the battle;
[0165] A battle capability test is performed based on the first battle lineup to obtain an initial evaluation result of the non-player virtual character.
[0166] Optionally, the performing a battle ability test on the non-player virtual character and the player virtual character according to the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character to obtain a first battle result includes:
[0167] Determining a set of non-player virtual characters from a plurality of candidate non-player virtual characters;
[0168] Determine a lineup of player virtual characters from a plurality of candidate player virtual characters;
[0169] Determining a lineup of non-player virtual characters from the set of non-player virtual characters according to an allocation rule corresponding to a game state, the preset evaluation results of each of the player virtual characters in the lineup of player virtual characters, and the initial evaluation results of each of the non-player virtual characters in the set of non-player virtual characters;
[0170] Determining a second battle lineup according to the non-player virtual character lineup and the player virtual character lineup;
[0171] A battle capability test is performed based on the second battle lineup to obtain the first battle result.
[0172] Optionally, if the game state indicates that: the player virtual characters in the player virtual character lineup are player virtual characters corresponding to novice players, or the player virtual characters in the player virtual character lineup are in a battle failure state, then the allocation rule corresponding to the game state is a first allocation rule, and the first allocation rule indicates: the non-player virtual character lineup whose battle ability is lower than that of the player virtual character lineup is allocated to the player virtual character lineup;
[0173] If the game status indicates that the time the player virtual character lineup waits for battle is greater than or equal to the preset time, then the allocation rule corresponding to the game status is the second allocation rule, and the second allocation rule indicates: allocate the non-player virtual character lineup with the combat capability equivalent to that of the player virtual character lineup to the player virtual character lineup.
[0174] Optionally, determining a set of non-player virtual characters from a plurality of candidate non-player virtual characters comprises:
[0175] Screening the plurality of candidate non-player virtual characters according to preset character attribute parameters to obtain a second matching queue;
[0176] The set of non-player virtual characters is determined from the second matching queue according to preset battle rules, wherein the preset battle rules include: constraints on competitive attribute parameters of the non-player virtual character lineup and the player virtual character lineup.
[0177] Optionally, determining a player virtual character lineup from a plurality of candidate player virtual characters includes:
[0178] The player virtual character lineup is determined from the multiple candidate player virtual characters according to preset battle rules, wherein the preset battle rules include: constraints on competitive attribute parameters of the non-player virtual character lineup and the player virtual character lineup.
[0179] Optionally, the updating of the initial evaluation result and the preset evaluation result according to the first battle result to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character includes:
[0180] From the first battle result, obtaining a target first battle result when the allocation rule is a second allocation rule, wherein the second allocation rule is an allocation rule in which the abilities of the non-player virtual character lineup and the player virtual character lineup are equivalent;
[0181] According to the target first battle result, the initial evaluation result and the preset evaluation result are updated to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
[0182] Optionally, the method further comprises:
[0183] Determining a third battle lineup from a plurality of candidate player virtual characters according to the preset evaluation result of the player virtual character;
[0184] Performing a battle capability test based on the third battle lineup to obtain a second battle result;
[0185] According to the second battle result, the preset evaluation results of the virtual characters of both players in the third battle lineup are updated to obtain target evaluation results of the virtual characters of both players.
[0186] Optionally, determining a third battle lineup from a plurality of candidate player virtual characters according to the preset evaluation result of the player virtual character comprises:
[0187] The third battle lineup is determined from the plurality of candidate player virtual characters according to the preset evaluation results of the player virtual characters and a second allocation rule, wherein the second allocation rule is an allocation rule that the abilities of the two player virtual characters are equivalent.
[0188] In summary, the embodiment of the present application provides a method for testing and evaluating virtual characters, which first tests the combat capabilities of multiple non-player virtual characters, thereby realizing automatic offline evaluation of the skill levels of the non-player virtual characters; then, based on the initial evaluation results and preset evaluation results obtained from the offline evaluation, the combat capabilities of the non-player virtual characters and the player virtual characters are tested, thereby realizing online skill level evaluation, and automatically adopting a combination of offline evaluation and online evaluation to perform combat capability testing, which can realize accurate and objective evaluation of the skill levels of non-player virtual characters and player virtual characters, and also reduce unnecessary waste of human resources.
[0189] Optionally, the present application also provides a program product, such as a computer-readable storage medium, including a program, which is used to execute the above method embodiment when executed by a processor.
[0190] For example, the method may include:
[0191] Conducting combat capability tests on a plurality of non-player virtual characters to obtain initial evaluation results of the non-player virtual characters;
[0192] According to the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character, the combat capability test is performed on the non-player virtual character and the player virtual character to obtain a first combat result;
[0193] According to the first battle result, the initial evaluation result and the preset evaluation result are updated to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
[0194] Optionally, the performing combat capability tests on a plurality of non-player virtual characters to obtain initial evaluation results of the non-player virtual characters includes:
[0195] Screening multiple candidate non-player virtual characters according to preset character attribute parameters to obtain a first matching queue;
[0196] Determine a first battle lineup from the first matching queue according to a preset battle rule, wherein the first battle lineup is composed of non-player virtual characters of both sides of the battle, wherein the preset battle rule includes: constraints on competitive attribute parameters of the non-player virtual characters of both sides of the battle;
[0197] A battle capability test is performed based on the first battle lineup to obtain an initial evaluation result of the non-player virtual character.
[0198] Optionally, the performing a battle ability test on the non-player virtual character and the player virtual character according to the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character to obtain a first battle result includes:
[0199] Determining a set of non-player virtual characters from a plurality of candidate non-player virtual characters;
[0200] Determine a lineup of player virtual characters from a plurality of candidate player virtual characters;
[0201] Determining a lineup of non-player virtual characters from the set of non-player virtual characters according to an allocation rule corresponding to a game state, the preset evaluation results of each of the player virtual characters in the lineup of player virtual characters, and the initial evaluation results of each of the non-player virtual characters in the set of non-player virtual characters;
[0202] Determining a second battle lineup according to the non-player virtual character lineup and the player virtual character lineup;
[0203] A battle capability test is performed based on the second battle lineup to obtain the first battle result.
[0204] Optionally, if the game state indicates that: the player virtual characters in the player virtual character lineup are player virtual characters corresponding to novice players, or the player virtual characters in the player virtual character lineup are in a battle failure state, then the allocation rule corresponding to the game state is a first allocation rule, and the first allocation rule indicates: the non-player virtual character lineup whose battle ability is lower than that of the player virtual character lineup is allocated to the player virtual character lineup;
[0205] If the game status indicates that the time the player virtual character lineup waits for battle is greater than or equal to the preset time, then the allocation rule corresponding to the game status is the second allocation rule, and the second allocation rule indicates: allocate the non-player virtual character lineup with the combat capability equivalent to that of the player virtual character lineup to the player virtual character lineup.
[0206] Optionally, determining a set of non-player virtual characters from a plurality of candidate non-player virtual characters comprises:
[0207] Screening the plurality of candidate non-player virtual characters according to preset character attribute parameters to obtain a second matching queue;
[0208] The set of non-player virtual characters is determined from the second matching queue according to preset battle rules, wherein the preset battle rules include: constraints on competitive attribute parameters of the non-player virtual character lineup and the player virtual character lineup.
[0209] Optionally, determining a player virtual character lineup from a plurality of candidate player virtual characters includes:
[0210] The player virtual character lineup is determined from the multiple candidate player virtual characters according to preset battle rules, wherein the preset battle rules include: constraints on competitive attribute parameters of the non-player virtual character lineup and the player virtual character lineup.
[0211] Optionally, the updating of the initial evaluation result and the preset evaluation result according to the first battle result to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character includes:
[0212] From the first battle result, obtaining a target first battle result when the allocation rule is a second allocation rule, wherein the second allocation rule is an allocation rule in which the abilities of the non-player virtual character lineup and the player virtual character lineup are equivalent;
[0213] According to the target first battle result, the initial evaluation result and the preset evaluation result are updated to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
[0214] Optionally, the method further comprises:
[0215] Determining a third battle lineup from a plurality of candidate player virtual characters according to the preset evaluation result of the player virtual character;
[0216] Performing a battle capability test based on the third battle lineup to obtain a second battle result;
[0217] According to the second battle result, the preset evaluation results of the virtual characters of both players in the third battle lineup are updated to obtain target evaluation results of the virtual characters of both players.
[0218] Optionally, determining a third battle lineup from a plurality of candidate player virtual characters according to the preset evaluation result of the player virtual character comprises:
[0219] The third battle lineup is determined from the plurality of candidate player virtual characters according to the preset evaluation results of the player virtual characters and a second allocation rule, wherein the second allocation rule is an allocation rule that the abilities of the two player virtual characters are equivalent.
[0220] In summary, the embodiment of the present application provides a method for testing and evaluating virtual characters, which first tests the combat capabilities of multiple non-player virtual characters, thereby realizing automatic offline evaluation of the skill levels of the non-player virtual characters; then, based on the initial evaluation results and preset evaluation results obtained from the offline evaluation, the combat capabilities of the non-player virtual characters and the player virtual characters are tested, thereby realizing online skill level evaluation, and automatically adopting a combination of offline evaluation and online evaluation to perform combat capability testing, which can realize accurate and objective evaluation of the skill levels of non-player virtual characters and player virtual characters, and also reduce unnecessary waste of human resources.
[0221] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the 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.
[0222] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0223] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0224] 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, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0225] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for testing and evaluating a virtual character, characterized in that: The method comprises: Conducting combat capability tests on a plurality of non-player virtual characters to obtain initial evaluation results of the non-player virtual characters; According to the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character, the combat capability test is performed on the non-player virtual character and the player virtual character to obtain a first combat result; According to the first battle result, the initial evaluation result and the preset evaluation result are updated to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
2. The method according to claim 1, characterized in that The performing of a battle capability test on a plurality of non-player virtual characters to obtain an initial evaluation result of the non-player virtual characters includes: Screening multiple candidate non-player virtual characters according to preset character attribute parameters to obtain a first matching queue; Determine a first battle lineup from the first matching queue according to a preset battle rule, wherein the first battle lineup is composed of non-player virtual characters of both sides of the battle, wherein the preset battle rule includes: constraints on competitive attribute parameters of the non-player virtual characters of both sides of the battle; A battle capability test is performed based on the first battle lineup to obtain an initial evaluation result of the non-player virtual character.
3. The method according to claim 1, characterized in that The step of performing a battle ability test on the non-player virtual character and the player virtual character according to the initial evaluation result of the non-player virtual character and the preset evaluation result of the player virtual character to obtain a first battle result includes: Determining a set of non-player virtual characters from a plurality of candidate non-player virtual characters; Determine a lineup of player virtual characters from a plurality of candidate player virtual characters; Determining a lineup of non-player virtual characters from the set of non-player virtual characters according to an allocation rule corresponding to a game state, the preset evaluation results of each of the player virtual characters in the lineup of player virtual characters, and the initial evaluation results of each of the non-player virtual characters in the set of non-player virtual characters; Determining a second battle lineup according to the non-player virtual character lineup and the player virtual character lineup; A battle capability test is performed based on the second battle lineup to obtain the first battle result.
4. The method according to claim 3, characterized in that If the game state indicates that the player virtual characters in the player virtual character lineup are player virtual characters corresponding to novice players, or the player virtual characters in the player virtual character lineup are in a battle failure state, then the allocation rule corresponding to the game state is a first allocation rule, and the first allocation rule indicates that the non-player virtual character lineup whose battle ability is lower than that of the player virtual character lineup is allocated to the player virtual character lineup; If the game status indicates that the time the player virtual character lineup waits for battle is greater than or equal to the preset time, then the allocation rule corresponding to the game status is the second allocation rule, and the second allocation rule indicates: allocate the non-player virtual character lineup with the combat capability equivalent to that of the player virtual character lineup to the player virtual character lineup.
5. The method according to claim 3, characterized in that: The step of determining a set of non-player virtual characters from a plurality of candidate non-player virtual characters comprises: Screening the plurality of candidate non-player virtual characters according to preset character attribute parameters to obtain a second matching queue; The set of non-player virtual characters is determined from the second matching queue according to preset battle rules, wherein the preset battle rules include: constraints on competitive attribute parameters of the non-player virtual character lineup and the player virtual character lineup.
6. The method according to claim 3, characterized in that The step of determining a player virtual character lineup from a plurality of candidate player virtual characters includes: The player virtual character lineup is determined from the multiple candidate player virtual characters according to preset battle rules, wherein the preset battle rules include: constraints on competitive attribute parameters of the non-player virtual character lineup and the player virtual character lineup.
7. The method according to claim 3, characterized in that The updating of the initial evaluation result and the preset evaluation result according to the first battle result to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character includes: From the first battle result, obtaining a target first battle result when the allocation rule is a second allocation rule, wherein the second allocation rule is an allocation rule in which the abilities of the non-player virtual character lineup and the player virtual character lineup are equivalent; According to the target first battle result, the initial evaluation result and the preset evaluation result are updated to obtain the target evaluation result of the non-player virtual character and the target evaluation result of the player virtual character.
8. The method according to claim 1, characterized in that The method further comprises: Determining a third battle lineup from a plurality of candidate player virtual characters according to the preset evaluation result of the player virtual character; Performing a battle capability test based on the third battle lineup to obtain a second battle result; According to the second battle result, the preset evaluation results of the virtual characters of both players in the third battle lineup are updated to obtain target evaluation results of the virtual characters of both players.
9. The method according to claim 8, characterized in that The step of determining a third battle lineup from a plurality of candidate player virtual characters according to the preset evaluation result of the player virtual character comprises: The third battle lineup is determined from the plurality of candidate player virtual characters according to the preset evaluation results of the player virtual characters and a second allocation rule, wherein the second allocation rule is an allocation rule that the abilities of the two player virtual characters are equivalent.
10. A virtual character testing and evaluation device, characterized in that: The device comprises: The testing module is used to test the combat capability of multiple non-player virtual characters to obtain initial evaluation results of the non-player virtual characters; and to test the combat capability of the non-player virtual characters and the player virtual characters according to the initial evaluation results of the non-player virtual characters and the preset evaluation results of the player virtual characters to obtain a first combat result; An updating module is used to update the initial evaluation result and the preset evaluation result according to the first battle result, so as to obtain a target evaluation result of the non-player virtual character and a target evaluation result of the player virtual character.
11. 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 method for testing and evaluating a virtual character as described in any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is read and executed, the virtual character testing and evaluation method described in any one of claims 1 to 9 is implemented.
Citation Information
Cited By
Test and evaluation method and apparatus for virtual character, and server and storage medium
WO2026021088A1
