Virtual Character Status Correction Method, Device, Storage Medium, and Electronic Device
By using the graphical user interface and user experience quantitative model in the game, determining the virtual character status error and deciding whether to make corrections, the problem of poor virtual character status correction in the prior art is solved, and the game experience is improved.
Patent Information
- Application Number
- CN202111235607.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-22
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-10-22
AI Technical Summary
The existing technology has poor effect on the virtual character state correction method during game combat, resulting in users' obvious perception of virtual character position change, affecting the game experience.
The user terminal provides a graphical user interface to determine the actual state error between the display states of the target virtual character in different states and the calculation states sent by the service terminal, and numerically quantize the target correction error based on the pre-configured user experience quantization model to obtain the experience quantization value, and determine whether to correct the target virtual character based on the value.
It improves the accuracy and efficiency of virtual character state correction, reduces the impact of the correction process on users, and improves the user's gaming experience.
Smart Images

Figure CN113952727B_ABST
Abstract
Description
Background Art
[0002] State synchronization means that during the game battle process, the state parameters such as the positions and directions of the virtual characters in the service terminal and the user terminal are all kept consistent, which is one of the important indicators for evaluating the quality of the game. At present, the main way to maintain the state synchronization of virtual characters is: the staff prints the real-time position of the server in the user terminal to detect whether the state parameters in the user terminal and the service terminal are consistent. Once the two state parameters are inconsistent, the virtual character is corrected to the target position through the error between the two state parameters.
[0003] In the specific correction process, generally, the virtual character is adjusted to the target position within a short time by means of rapid dragging or instantaneous position transformation. However, no matter it is the way of rapid dragging or instantaneous position transformation, the user's perception of the position transformation of the virtual character is very obvious, thus greatly affecting the user's game experience.
[0004] Therefore, the effect of the current virtual character state correction method during the game battle process is not good. Summary of the Invention
[0005] The present disclosure provides a virtual character state correction method, device, storage medium and electronic device, thereby improving the correction effect of the virtual character state during the game battle process.
[0006] In a first aspect, an embodiment of the present disclosure provides a virtual character state correction method, which is characterized in that a graphical user interface is provided through the user terminal, and the graphical user interface at least includes a target virtual character. The method includes:
[0007] Determine each actual state error between each display state of the target virtual character in different states and each calculation state sent by the service terminal to obtain a plurality of actual state errors;
[0008] Determine a target correction error according to the plurality of actual state errors;
[0009] Numerically quantify the target correction error based on a pre-configured user perception quantization model to obtain a perception quantization value; wherein, the perception quantization value is used to characterize the influence degree on the user perception when correcting the target virtual character based on the target correction error;
[0010] Determine whether to correct the current display state of the target virtual character based on the target correction error according to the perception quantization value.
[0011] In an optional embodiment of the present disclosure, the user perception quantization model is an S-shaped growth curve model.
[0012] In an optional embodiment of the present disclosure, determining whether to correct the current display state of the target virtual character based on the target correction error according to the feeling quantization value includes:
[0013] If the feeling quantization value is greater than a preset threshold, the current display state of the target virtual character is not corrected;
[0014] If the feeling quantization value is not greater than the preset threshold, the current display state of the target virtual character is corrected based on the target correction error.
[0015] In an optional embodiment of the present disclosure, determining the target correction error according to multiple actual state errors includes:
[0016] Determining the maximum state error and the average state error among the multiple actual state errors;
[0017] Performing weighted summation on the maximum state error and the average state error according to a preset weighting ratio to obtain the target correction error.
[0018] In an optional embodiment of the present disclosure, the weight coefficient of the maximum state error is greater than the weight coefficient of the average state error.
[0019] In an optional embodiment of the present disclosure, determining the respective actual state errors between the respective display states of the target virtual character in different states and the respective calculation states sent by the service terminal to obtain multiple actual state errors includes:
[0020] Determining the respective display state parameters of the target virtual character in different states;
[0021] Obtaining the respective calculation state parameters of the target virtual character in different states sent by the service terminal;
[0022] Determining the difference between each display state parameter and the corresponding calculation state parameter to obtain multiple actual state errors.
[0023] In an optional embodiment of the present disclosure, after obtaining the respective calculation state parameters of the target virtual character in different states sent by the service terminal, the method further includes:
[0024] Generating and displaying the corresponding calculation position identifiers for each target virtual character according to the respective calculation state parameters.
[0025] In an optional embodiment of the present disclosure, the graphical user interface includes multiple target virtual characters and at least one reference virtual character. Before determining whether to correct the current display state of the target virtual character based on the target correction error according to the feeling quantization value, the method further includes:
[0026] Determining the respective real-time distances between the multiple target virtual characters and the reference virtual character to obtain multiple real-time distances;
[0027] Determine the distance weight coefficient corresponding to each target virtual character according to multiple real-time distances; wherein, the magnitude of the real-time distance is negatively correlated with the corresponding distance weight coefficient.
[0028] Perform weighted summation on each feeling quantization value according to the distance weight coefficient corresponding to each target virtual character to obtain a target feeling quantization value.
[0029] In an optional embodiment of the present disclosure, the graphical user interface includes multiple target virtual characters and at least one reference virtual character. Before determining whether to correct the current display state of the target virtual character based on the target correction error according to the feeling quantization value, the method further includes:
[0030] Determine the respective corresponding role influence levels of the multiple target virtual characters to obtain multiple role influence levels; wherein, the role influence level is used to characterize the importance of the target virtual character in the game.
[0031] Determine the influence weight coefficient corresponding to each target virtual character according to the multiple role influence levels; wherein, the magnitude of the influence level is positively correlated with the corresponding influence weight coefficient.
[0032] Perform weighted summation on each feeling quantization value according to the influence weight coefficient corresponding to each target virtual character to obtain a target feeling quantization value.
[0033] In a second aspect, an embodiment of the present disclosure provides a virtual character state correction device, characterized in that the device includes:
[0034] A first determination module, configured to determine each actual state error between each display state of the target virtual character in different states and each calculation state sent by the service terminal, to obtain multiple actual state errors.
[0035] A second determination module, configured to determine a target correction error according to the multiple actual state errors.
[0036] A quantization module, configured to numerically quantify the target correction error based on a pre-configured user feeling quantization model to obtain a feeling quantization value; wherein, the feeling quantization value is used to characterize the influence degree on the user feeling when correcting the target virtual character based on the target correction error.
[0037] A correction module, configured to determine whether to correct the current display state of the target virtual character based on the target correction error according to the feeling quantization value.
[0038] In a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.
[0039] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein, the processor is configured to execute the above method by executing the executable instructions.
[0040] The technical solution of the present disclosure has the following beneficial effects:
[0041] For the above virtual character state correction method, first, a target correction error is determined according to the actual state error between the target virtual character on the service terminal and the display terminal, then the target correction error is numerically quantified based on a pre-configured user experience quantization model to obtain a feeling quantization value, and finally, it is determined whether to correct the current display position of the target virtual character based on the feeling quantization value.
[0042] First of all, in the embodiment of the present disclosure, a target correction error is directly determined according to the actual state error between the target virtual character on the service terminal and the display terminal, which can avoid the subjectivity of manual determination in the traditional technology, so as to improve the accuracy and determination efficiency of the target correction error; secondly, in the embodiment of the present disclosure, the target correction error is numerically quantified through the user experience quantization model to obtain a feeling quantization value that can be used to characterize the influence degree on the user experience during correction, which is convenient to objectively understand the influence degree on the user during correction and further reduce the influence degree on the user during correction; at the same time, in the embodiment of the present disclosure, it is determined whether to correct the current display state of the target virtual character based on the obtained feeling quantization value, so that the display state of the target virtual character can be corrected under the condition of less influence on the user, and the influence on the user caused by the state correction is reduced to the greatest extent, thereby improving the game experience of the user.
[0043] In summary, the embodiment of the present disclosure improves the correction effect of the virtual character state correction from multiple dimensions such as improving the accuracy and determination efficiency of the target correction error and reducing the influence degree on the user during correction, thereby solving the technical problem that the effect of the virtual character state correction method in the current game battle process in the prior art is not good, and achieving the purpose of improving the correction effect.
[0044] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.
[0046] Figure 1 Schematic diagram of an application scenario of a method for correcting the state of a virtual character in this exemplary embodiment;
[0047] Figure 2 Schematic diagram of a graphical user interface in a method for correcting the state of a virtual character in this exemplary embodiment;
[0048] Figure 3 Flowchart of a method for correcting the state of a virtual character in this exemplary embodiment;
[0049] Figure 4 A growth curve diagram in a method for correcting the state of a virtual character in this exemplary embodiment;
[0050] Figure 5 Flowchart of a method for correcting the state of a virtual character in this exemplary embodiment;
[0051] Figure 6 Flowchart of a method for correcting the state of a virtual character in this exemplary embodiment;
[0052] Figure 7 Schematic diagram of a graphical user interface in a method for correcting the state of a virtual character in this exemplary embodiment;
[0053] Figure 8 Flowchart of a method for correcting the state of a virtual character in this exemplary embodiment;
[0054] Figure 9 Flowchart of a method for correcting the state of a virtual character in this exemplary embodiment;
[0055] Figure 10 Schematic diagram of the structure of a device for correcting the state of a virtual character in this exemplary embodiment;
[0056] Figure 11 Schematic diagram of the structure of an electronic device in this exemplary embodiment. Detailed implementation manners
[0057] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will recognize that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring aspects of the present disclosure.
[0058] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0059] The flowcharts shown in the accompanying drawings are only illustrative and do not necessarily include all steps. For example, some steps can be further decomposed, while some steps can be combined or partially combined. Therefore, the actual execution order may change according to the actual situation.
[0060] In the related art, state synchronization refers to the state parameters such as the positions and directions of each virtual character in the service terminal and the user terminal being kept consistent during the game battle process, which is one of the important indicators for evaluating the quality of the game. Currently, the main way to maintain the state synchronization of virtual characters is that the staff prints the position of the server in the user terminal to detect in real time whether the state parameters in the user terminal and the service terminal are consistent. Once the state parameters of the two are inconsistent, the virtual character is corrected to the target position through the error between the two state parameters. In the specific correction process, generally, the virtual character is adjusted to the target position within a short time by means of rapid dragging or instantaneous position transformation. However, whether it is the way of rapid dragging or instantaneous position transformation, the user's perception of the position transformation of the virtual character is very obvious, thus greatly affecting the user's gaming experience. Therefore, the current method for correcting the state of virtual characters during the game battle process has poor effects.
[0061] In view of the above problems, embodiments of the present disclosure provide a method for correcting the state of a virtual character. First, a target correction error is determined according to the actual state error between the target virtual character in the service terminal and the display terminal. Then, the target correction error is numerically quantified based on a pre-configured user experience quantification model to obtain a quantified experience value. Finally, it is determined whether to correct the current display position of the target virtual character based on the quantified experience value.
[0062] First, embodiments of the present disclosure directly determine a target correction error according to the actual state error between the target virtual character in the service terminal and the display terminal, which can avoid the subjectivity of manual determination in the traditional technology, so as to improve the accuracy and determination efficiency of the target correction error. Second, embodiments of the present disclosure numerically quantify the target correction error through a user experience quantification model to obtain a quantified experience value that can be used to characterize the influence degree on the user experience during correction, which is convenient for objectively understanding the influence degree on the user during correction and further reducing the influence degree on the user during correction. At the same time, embodiments of the present disclosure determine whether to correct the current display state of the target virtual character based on the obtained quantified experience value, which can correct the display state of the target virtual character under the condition of less influence on the user, and minimize the influence on the user due to state correction, thereby improving the game experience of the user.
[0063] In summary, embodiments of the present disclosure jointly improve the correction effect of the virtual character state correction from multiple dimensions such as improving the accuracy and determination efficiency of the target correction error and reducing the influence degree on the user during correction, thereby solving the technical problem that the effect of the virtual character state correction method in the current game combat process in the prior art is not good, and achieving the purpose of improving the correction effect.
[0064] The following briefly introduces the application environment of the virtual character state correction method provided by the embodiments of the present disclosure:
[0065] Please refer to Figure 1 , the virtual character state correction method of the embodiments of the present disclosure is applied to a game interaction system 10, which at least includes: a service terminal 110 and a user terminal 120. Among them, the service terminal 110 is used to receive the state parameters of each virtual character sent by each user terminal 120, perform state calculations on the received state parameters according to a preset game calculation model to obtain the calculated state parameters corresponding to each virtual character, and send the corresponding calculated state parameters to several user terminals 120 in the same game for each user terminal 120 to perform display and state settlement, etc. Of course, the user terminal 120 is the main device for users to interact, so a graphical user interface 20 is provided. Please refer to Figure 2, the graphical user interface 20 at least includes a plurality of virtual characters 201, such as bosses, various monsters, minions, etc. In this embodiment, the types, quantities, etc. of the virtual characters are not specifically limited and can be set according to the actual situation.
[0066] Taking any one of the above user terminals 120 as the execution subject and taking any one of the above plurality of virtual characters 201 as the target virtual character, and taking the application of the virtual character state correction method to the above user terminal as an example, the correction of the position of the target virtual character in the graphical user interface will be described as an example. Please refer to Figure 3 , the virtual character state correction method provided by the embodiments of the present disclosure includes the following steps 301-step 304.
[0067] Step 301: The user terminal determines the actual state errors between the display states of the target virtual character in different states and the calculation states sent by the service terminal, and obtains a plurality of actual state errors.
[0068] Among them, the display state refers to the state in which the target virtual character is displayed in the graphical user interface of the user terminal, and may include, for example, the display position, display direction, etc. The calculation state refers to the state after the service terminal performs state settlement on the target virtual character based on the current display state and the hit state of the target virtual character after receiving the display states and attack states of each virtual character sent by each user terminal. For example, if the target virtual character receives a water attack, and a water attack can rotate the current display state of the virtual character by 720° and move back 20m, the service terminal calculates the calculation state of the target virtual character according to the current display state of the target virtual character and the state adjustment value caused by a water attack. After the service terminal obtains the display state and the calculation state of the target virtual character, it calculates the difference between the two to obtain the actual state error of the target virtual character.
[0069] Furthermore, different states refer to different game states of the target virtual character, such as the attack state, pathfinding state, hit state, etc. One state corresponds to at least one actual state error, and when the target virtual character is in different states, it corresponds to a plurality of actual state errors.
[0070] Step 302: The user terminal determines the target correction error according to a plurality of actual state errors.
[0071] Among them, the target correction error refers to a parameter that characterizes the integrity of the errors of the target virtual character in different states in the same game, and there is only one such parameter. The user terminal obtains a plurality of actual state errors based on the actual state errors of the target virtual character in different states obtained in step 301. The user terminal can determine the target correction error based on the following several methods:
[0072] In the first method, the user terminal sums up multiple actual state errors with weights to obtain a target correction error. In the second method, the user terminal calculates the average value of multiple actual state errors to obtain a target correction error. In the third method, the user terminal takes the median value among multiple actual state errors as the target correction error. Through the above three methods, all errors of different sizes can be covered to the greatest extent, so as to improve the comprehensiveness of subsequent position correction of the target virtual character. In the fourth method, the user terminal takes the maximum value among multiple actual state errors as the target correction error to further amplify the error, so as to improve the correction effect of subsequent position correction of the target virtual character.
[0073] Step 303: The user terminal numerically quantifies the target correction error based on a pre-configured user experience quantification model to obtain a quantified experience value.
[0074] The user experience quantification model is pre-configured in the user terminal. This user experience quantification model can be a trained deep learning model or a mathematical model, as long as the target correction error can be quantified into specific hierarchical values, that is, the quantified experience value. This embodiment does not make specific limitations. Among them, the quantified experience value is used to represent the influence degree on the user experience when correcting the target virtual character based on the target correction error.
[0075] Step 304: The user terminal determines whether to correct the current display state of the target virtual character based on the quantified experience value.
[0076] As in step 303 above, the quantified experience value is used to represent the influence degree on the user experience when correcting the target virtual character based on the target correction error. If the determined quantified experience value indicates that the influence degree on the user experience when correcting the target virtual character based on the target correction error is small, then the target virtual character can be corrected based on the target correction error. Otherwise, the influence degree on the user is large. Once the state is corrected, the user can easily perceive the state change of the target virtual character, which greatly affects the user's gaming experience. Therefore, when the quantified experience value indicates that the influence degree on the user experience when correcting the target virtual character based on the target correction error is large, the target virtual character is not corrected.
[0077] The embodiment of the present disclosure provides a method for correcting the state of a virtual character. First, a target correction error is determined according to the actual state error of the target virtual character between the service terminal and the display terminal. Then, the target correction error is numerically quantified based on a pre-configured user experience quantification model to obtain a quantified experience value. Finally, it is determined whether it is necessary to correct the current display position of the target virtual character based on the quantified experience value.
[0078] First, the embodiments of the present disclosure directly determine a target correction error according to the actual state error between the service terminal and the display terminal of the target virtual character, which can avoid the subjectivity of manual determination in the traditional technology, so as to improve the accuracy and determination efficiency of the target correction error. Secondly, the embodiments of the present disclosure numerically quantify the target correction error through the user experience quantification model to obtain a feeling quantification value that can be used to characterize the influence degree of the correction on the user experience, which is convenient for objectively understanding the influence degree of the correction on the user and further reducing the influence degree of the correction on the user. At the same time, the embodiments of the present disclosure determine whether to correct the current display state of the target virtual character through the obtained feeling quantification value, and can correct the display state of the target virtual character when the influence on the user is relatively small, so as to minimize the influence on the user due to the state correction, thereby improving the game experience of the user.
[0079] In summary, the embodiments of the present disclosure improve the correction effect of the virtual character state correction from multiple dimensions such as improving the accuracy and determination efficiency of the target correction error and reducing the influence degree of the correction on the user in a double way, thereby solving the technical problem that the effect of the virtual character state correction method in the current game combat process in the prior art is not good, and achieving the purpose of improving the correction effect.
[0080] In an optional embodiment of the present disclosure, the user experience quantification model is an S-shaped growth curve model.
[0081] Among them, the S-shaped growth curve model is also called the Logistic function model. Generally, the growth is slow in the initial stage and the curve changes gently; the growth is fast in the middle stage and the curve changes rapidly; the growth is slow in the later stage and the curve shows a stable development trend. For example Figure 4 is an exemplary growth curve, where the abscissa is the target correction error and the ordinate is the feeling quantification value. The target correction error and the feeling quantification value are negatively correlated. The larger the target correction error, the smaller the user quantification value, indicating that the influence degree on the user experience is greater. The S-shaped growth curve model can be a sigmoid function, a tanh function, etc., and this embodiment does not make specific limitations.
[0082] The user experience quantification model in the embodiments of the present disclosure is an S-shaped growth curve model. Both the early stage and the later stage of the S-shaped growth curve model show a stable development trend, and the dependent variable user experience quantification value can be limited within a relatively fixed numerical range. For example Figure 4 limits the feeling quantification value to 0-10, which is convenient for determining the quantification level range, can improve the determination efficiency of the feeling quantification value, and further improve the correction efficiency of the virtual character state correction method provided by the embodiments of the present disclosure.
[0083] In an optional embodiment of the present disclosure, in step 304 above, the user terminal determines whether to correct the current display state of the target virtual character based on the perceived quantization value, including the following two cases:
[0084] In the first case, if the perceived quantization value is greater than a preset threshold, the user terminal does not correct the current display state of the target virtual character.
[0085] If the perceived quantization value is greater than the preset threshold, it means that the degree of influence on the user's perception when correcting the target virtual character based on the target correction error is small, and the user is not easily aware that the state of the target virtual character, such as its position and direction, has changed. Then, the target virtual character can be corrected based on the target correction error. Among them, the preset threshold can be specifically set according to the actual situation. For example, Figure 4 in the perceived quantization value range in the appendix is [0, 10], and the preset threshold can be set to 5, 7, 9, etc.
[0086] In the second case, if the perceived quantization value is not greater than the preset threshold, the user terminal corrects the current display state of the target virtual character based on the target correction error.
[0087] If the perceived quantization value is less than or equal to the preset threshold, it means that the degree of influence on the user's perception when correcting the target virtual character based on the target correction error is large, and the user can easily perceive that the state of the target virtual character, such as its position and direction, has changed. Then, the target virtual character is not corrected at this time to avoid affecting the user experience.
[0088] The embodiment of the present disclosure determines whether to correct the current display state of the target virtual character based on the relative size between the perceived quantization value and the preset threshold. The determination method is simple, which can improve the determination efficiency and further improve the correction efficiency of the virtual character state correction method provided by the embodiment of the present disclosure.
[0089] Please refer to Figure 5 In an optional embodiment of the present disclosure, in step 302 above, the user terminal determines the target correction error according to multiple actual state errors, including the following steps 501-502:
[0090] Step 501: The user terminal determines the maximum state error and the average state error among the multiple actual state errors.
[0091] For example, the multiple actual state errors include: 10, 11, 8, 6, 17, then the maximum state error among them is 17, and the average state error = 10.4.
[0092] Step 502: The user terminal performs weighted summation on the maximum state error and the average state error according to a preset weighting ratio to obtain the target correction error.
[0093] Among them, the preset weighting ratio can be maximum state error: average state error = 1:1, 1.5:1, 1:2, etc., and all are acceptable. This embodiment does not make specific limitations and can be specifically determined according to the actual situation.
[0094] In the embodiment of the present disclosure, the maximum state error and the average state error are weighted and summed according to the preset weighting ratio to obtain the target correction error. The proportion of the maximum state error and the average state error can be specifically adjusted according to the actual situation, with high flexibility, which can further improve the flexibility of the virtual character state correction method provided by the embodiment of the present disclosure.
[0095] In a specific embodiment of the present disclosure, the weight coefficient of the maximum state error is greater than the weight coefficient of the average state error.
[0096] For example, the ratio of the maximum state error to the average state error is 6 / 4, 7 / 3, etc. In the embodiment of the present disclosure, the weight coefficient of the maximum state error is configured to be greater than the weight coefficient of the average state error, that is, to increase the proportion of the maximum state error in the target correction error, and magnify the maximum state error to increase the error threshold of the target correction error, further improving the reliability of the virtual character state correction method provided by the embodiment of the present disclosure.
[0097] Please refer to Figure 6 , in an alternative embodiment of the present disclosure, in the above step 301, the user terminal determines the respective actual state errors between the respective display states of the target virtual character in different states and the respective calculation states sent by the service terminal, and obtains a plurality of actual state errors, including the following steps 601-step 603:
[0098] Step 601, the user terminal determines the respective display state parameters of the target virtual character in different states.
[0099] Among them, the display state parameter refers to the specific parameter used to characterize the display state of the target virtual character in the graphical user interface of the user terminal. For example, it may include coordinate position, orientation angle, etc. The user terminal can collect the display state parameters of each virtual character in real time through the automatic battle copy in the game, the gm mobile game assistant, the instruction set in the game, etc.
[0100] Step 602, the user terminal obtains the respective calculation state parameters of the target virtual character in different states sent by the service terminal.
[0101] Among them, calculating the state parameter value refers to various state parameters obtained after real-time state calculation of the target virtual character at the service terminal in different states, such as position coordinates, orientation angles, etc. After the service terminal calculates in a certain period or in real time, the obtained calculated state parameters are sent to the user terminal in real time, and the user terminal can obtain the calculated state parameters of the target virtual character in each state.
[0102] Step 603: The user terminal determines the difference between each display state parameter and the corresponding calculated state parameter to obtain multiple actual state errors.
[0103] For example, for a state of the target virtual character, the user terminal determines the display state parameter of the target virtual character in this state, obtains the corresponding calculated state parameter in this state from the service terminal, and then calculates the difference between the two to obtain the actual state error in this state. Similarly, the user terminal obtains the actual state errors in other states.
[0104] In the embodiment of the present disclosure, the corresponding actual state error can be obtained by directly calculating the difference between each calculated state parameter of the service terminal and each determined display state parameter of the user terminal. The calculation method is simple and does not require state analysis, etc., which can greatly improve the determination efficiency of the actual state error and further improve the correction efficiency of the virtual character state correction method provided by the embodiment of the present disclosure.
[0105] In an optional embodiment of the present disclosure, after the user terminal obtains each calculated state parameter of the target virtual character sent by the service terminal in step 602, the method further includes the following step A:
[0106] Step A: The user terminal generates and displays a calculated position identifier corresponding to each target virtual character according to each calculated state parameter.
[0107] The user terminal receives the calculated state parameters sent by the service terminal, such as position coordinates, orientation angles, etc., and then generates a calculated position identifier for characterizing the specific position of the virtual character at the service terminal based on these calculated state parameters, and displays it at the corresponding position of the graphical user interface of the user terminal to facilitate the user to determine the actual position of the target virtual character in real time and intuitively. The calculated position identifier can be displayed as a two-dimensional image in the shape of a circle, a square or any shape, or a corresponding three-dimensional structure can be constructed according to the image of the target virtual character, such as Figure 7 the three-dimensional box 701 in it, etc. Of course, if the number of target virtual characters is multiple, the calculated position identifiers of different target virtual characters are also different. For example, they can be distinguished by labels, names, colors, etc.
[0108] Embodiments of the present disclosure generate and display calculation position identifiers corresponding to each target virtual character according to various calculation state parameters, so that users can intuitively know the actual position of the target virtual character on the service terminal in real time. At the same time, even if the display position of the target virtual character on the graphical user interface is not corrected, users can clearly know the actual position of the target virtual character, minimizing the impact on users caused by position correction. In summary, embodiments of the present disclosure improve the correction effect of correcting the state of virtual characters from two dimensions: improving user intuitiveness and reducing the impact of correction on the user's gaming experience.
[0109] In an optional embodiment of the present disclosure, the graphical user interface includes multiple target virtual characters and at least one reference virtual character. Before step 304 where the user terminal determines whether to correct the current display state of the target virtual character based on the target correction error according to the feeling quantization value, the method further includes the following steps 801-803:
[0110] Step 801: The user terminal determines the respective real-time distances of the multiple target virtual characters from the reference virtual character, obtaining multiple real-time distances.
[0111] Wherein, the target virtual character refers to the virtual character whose state needs to be corrected; the reference virtual character can be a pre-set virtual character used to represent the center position or edge position of the current graphical user interface, or the virtual character corresponding to the user. This embodiment does not make specific limitations, and only needs to be distinguished from the virtual character whose state needs to be corrected.
[0112] Step 802: The user terminal determines the distance weight coefficient corresponding to each target virtual character according to the multiple real-time distances.
[0113] Wherein, the magnitude of the real-time distance is negatively correlated with the corresponding distance weight coefficient. That is to say, the larger the real-time distance, the smaller the distance weight coefficient of the target virtual character farther from the reference virtual character, and the smaller the error proportion. Conversely, the smaller the real-time distance, the larger the distance weight coefficient of the target virtual character closer to the reference virtual character, and the larger the error proportion.
[0114] Step 803: The user terminal performs weighted summation on each feeling quantization value according to the distance weight coefficient corresponding to each target virtual character, obtaining a target feeling quantization value.
[0115] The user terminal obtains the feeling quantization value of the target virtual character through step 303, and obtains the distance weight coefficient corresponding to each target virtual character through step 802. That is to say, one target virtual character corresponds to one feeling quantization value and one distance weight coefficient. Then, all the feeling quantization values are weighted and summed according to the distance weight coefficient to obtain the target feeling quantization value. For example, the target feeling quantization value can be calculated according to the following formula (1):
[0116] n=∑N i x i (1)
[0117] In formula (1), n represents the target feeling quantization value, and N i represents the feeling quantization value of the i-th target virtual character, and x i represents the distance weight coefficient of the i-th target virtual character. Of course, in a specific embodiment, the sum of all the distance weight coefficients can be equal to 1 to further facilitate calculation and improve calculation efficiency.
[0118] In the embodiment of the present disclosure, when there are multiple target virtual characters in the graphical user interface, different distance weight coefficients are configured according to the distances from the reference virtual character, and the target feeling quantization value is obtained by weighted summation according to all the distance weight coefficients. Finally, it can be determined whether to correct the current display state of the target virtual character based on the target correction error based on the target feeling quantization value. In the embodiment of the present disclosure, when there are multiple target virtual characters in the graphical user interface, the positions of the target virtual characters within the user's field of view are determined by the real-time distances between the target virtual characters and the reference virtual character. The farther the distance, the smaller the configured distance weight coefficient, and the closer the distance, the larger the configured distance weight coefficient, so that the obtained target feeling quantization value is more in line with the actual application scenario, and further improves the correction reliability of the virtual character state correction method in the embodiment of the present disclosure.
[0119] Please refer to Figure 9 , in an optional embodiment of the present disclosure, the graphical user interface includes multiple target virtual characters and at least one reference virtual character. Before the user terminal determines whether to correct the current display state of the target virtual character based on the feeling quantization value in the above step 304, the method further includes the following steps 901-903:
[0120] Step 901: The user terminal determines the respective role influence levels corresponding to the multiple target virtual characters to obtain multiple role influence levels.
[0121] Among them, the character influence level is used to represent the importance of the target virtual character in the game. For example, multiple target virtual characters include: boss, monster, and minion. Then the importance of these three in the game decreases in turn, that is to say, the character influence levels of the boss, monster, and minion gradually decrease. For example, they can be 0.5, 0.3, and 0.2. Of course, the target virtual characters in the game are not limited to the above three, and corresponding character influence levels can be configured for each target virtual character according to the actual situation.
[0122] Step 902: The user terminal determines the influence weight coefficient corresponding to each target virtual character according to multiple character influence levels.
[0123] Among them, the magnitude of the influence level is positively correlated with the corresponding influence weight coefficient. That is to say, the higher the influence level of the target virtual character, the greater the influence weight coefficient and the smaller the error proportion. On the contrary, the closer the target virtual character is to the reference virtual character, the greater the distance weight coefficient and the greater the error proportion.
[0124] Step 903: The user terminal performs weighted summation on each feeling quantization value according to the influence weight coefficient corresponding to each target virtual character to obtain the target feeling quantization value.
[0125] The user terminal obtains the feeling quantization value of the target virtual character through step 303 and obtains the influence weight coefficient corresponding to each target virtual character through step 902. That is to say, one target virtual character corresponds to one feeling quantization value and one influence weight coefficient. Then, weighted summation is performed on all the feeling quantization values according to the influence weight coefficient to obtain the target feeling quantization value. For example, the target feeling quantization value can be calculated according to the following formula (2):
[0126] n=∑N i y i (2)
[0127] In formula (2), n represents the target feeling quantization value, N i represents the feeling quantization value of the i-th target virtual character, and y i represents the influence weight coefficient of the i-th target virtual character. Of course, in a specific embodiment, the sum of all the influence weight coefficients can be equal to 1 to further facilitate calculation and improve calculation efficiency.
[0128] Please refer to Figure 10 , in order to implement the above service processing method, an embodiment of the present disclosure provides a virtual character status correction device 1000. Figure 10The schematic architecture diagram of the virtual character status correction device 1000 is shown. Among them, the virtual character status correction device 1000 includes a first determination module 1010, a second determination module 1020, a quantization module 1030, and a correction module 1040.
[0129] The first determination module 1010 is configured to determine the actual status errors between the display statuses of the target virtual character in different states and the calculation statuses sent by the service terminal, and obtain a plurality of actual status errors;
[0130] The second determination module 1020 is configured to determine the target correction error according to the plurality of actual status errors;
[0131] The quantization module 1030 is configured to numerically quantify the target correction error based on a pre-configured user perception quantization model to obtain a perception quantization value; wherein, the perception quantization value is used to characterize the influence degree on the user perception when correcting the target virtual character based on the target correction error;
[0132] The correction module 1040 is configured to determine whether to correct the current display status of the target virtual character based on the target correction error according to the perception quantization value.
[0133] In an alternative embodiment, the user perception quantization model is an S-shaped growth curve model.
[0134] In an alternative embodiment, the correction module 1040 is specifically configured to, if the perception quantization value is greater than a preset threshold, not correct the current display status of the target virtual character; if the perception quantization value is not greater than the preset threshold, correct the current display status of the target virtual character based on the target correction error.
[0135] In an alternative embodiment, the second determination module 1020 is specifically configured to determine the maximum status error and the average status error among the plurality of actual status errors; perform weighted summation on the maximum status error and the average status error according to a preset weighting ratio to obtain the target correction error.
[0136] In an alternative embodiment, the weight coefficient of the maximum status error is greater than the weight coefficient of the average status error.
[0137] In an alternative embodiment, the first determination module 1010 is specifically configured to determine the display status parameters of the target virtual character in different states; obtain the calculation status parameters of the target virtual character in different states sent by the service terminal; determine the difference between each display status parameter and the corresponding calculation status parameter to obtain a plurality of actual status errors.
[0138] In an alternative embodiment, the first determination module 1010 is further configured to generate and display a calculation position identifier corresponding to each target virtual character according to each calculation state parameter.
[0139] In an alternative embodiment, the graphical user interface includes a plurality of target virtual characters and at least one reference virtual character. The quantization module 1030 is further configured to determine respective real-time distances between the plurality of target virtual characters and the reference virtual character, so as to obtain a plurality of real-time distances; determine a distance weight coefficient corresponding to each target virtual character according to the plurality of real-time distances; wherein, the magnitude of the real-time distance is negatively correlated with the corresponding distance weight coefficient; perform weighted summation on each feeling quantization value according to the distance weight coefficient corresponding to each target virtual character, so as to obtain a target feeling quantization value.
[0140] In an alternative embodiment, the graphical user interface includes a plurality of target virtual characters and at least one reference virtual character. The quantization module 1030 is further configured to determine respective role influence levels corresponding to the plurality of target virtual characters, so as to obtain a plurality of role influence levels; wherein, the role influence level is used to characterize the importance of the target virtual character in the game; determine an influence weight coefficient corresponding to each target virtual character according to the plurality of role influence levels; wherein, the magnitude of the influence level is positively correlated with the corresponding influence weight coefficient; perform weighted summation on each feeling quantization value according to the influence weight coefficient corresponding to each target virtual character, so as to obtain a target feeling quantization value.
[0141] The exemplary embodiments of the present disclosure further provide a computer-readable storage medium, which can be implemented in the form of a program product, and includes program code. When the program product runs on an electronic device, the program code is used to cause the electronic device to execute the steps according to the various exemplary embodiments of the present disclosure described in the "Exemplary Method" section of this specification. In one embodiment, the program product can be implemented as a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
[0142] The program product may employ any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0143] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
[0144] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0145] The program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages such as Java, C++, etc., and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., connected through the Internet using an Internet service provider). In the embodiments of the present disclosure, when the program code stored in the computer-readable storage medium is executed, any step in the virtual character state correction method described above may be implemented.
[0146] Please refer to Figure 11 , the exemplary embodiments of the present disclosure also provide an electronic device 1100, which may be a back-end server of an information platform. The following will describe the electronic device with reference to Figure 11 this. It should be understood thatFigure 11 The illustrated electronic device 1100 is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present disclosure.
[0147] As Figure 11 shown, the electronic device 1100 appears in the form of a general-purpose computing device. The components of the electronic device 1100 may include, but are not limited to: at least one processing unit 1110, at least one storage unit 1120, and a bus 1130 that connects different system components (including the storage unit 1120 and the processing unit 1110).
[0148] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 1110, so that the processing unit 1110 executes the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification. For example, the processing unit 1110 can execute the method steps as Figure 2 shown, etc.
[0149] The storage unit 1120 may include a volatile storage unit, such as a random access storage unit (RAM) 1121 and / or a cache storage unit 1122, and may further include a read-only storage unit (ROM) 1123.
[0150] The storage unit 1120 may also include a program / utility 1124 having a set (at least one) of program modules 1125. Such program modules 1125 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment.
[0151] The bus 1130 may include a data bus, an address bus, and a control bus.
[0152] The electronic device 1100 may also communicate with one or more external devices 1400 (such as a keyboard, a pointing device, a Bluetooth device, etc.), and such communication may be performed through an input / output (I / O) interface 1140. The electronic device 1100 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 1150. As shown in the figure, the network adapter 1150 communicates with other modules of the electronic device 1100 through the bus 1130. It should be understood that although not shown in the figure, other hardware and / or software modules may be used in combination with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0153] In the embodiments of the present disclosure, when the program code stored in the electronic device is executed, any step in the above virtual character state correction method can be implemented.
[0154] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0155] Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, a method, or a program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuitry", "module", or "system" here. After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily think of other embodiments of the present disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include well-known knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and the embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.
[0156] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only defined by the appended claims.
Claims
1. A method for correcting the state of a virtual character, characterized in that, a graphical user interface is provided by a user terminal, and the graphical user interface at least includes a target virtual character. The method includes: determining respective actual state errors between respective display states of the target virtual character in different states and respective calculation states sent by a service terminal, to obtain a plurality of actual state errors; determining a target correction error according to the plurality of actual state errors; wherein, the target correction error refers to a parameter that is used to characterize the integrity of the errors of the target virtual character in different states in the same game session, and there is one and only one such parameter; performing numerical quantization on the target correction error based on a pre-configured user feeling quantization model, to obtain a feeling quantization value; wherein, the feeling quantization value is used to characterize the influence degree on the user feeling when correcting the target virtual character based on the target correction error; determining whether to correct the current display state of the target virtual character based on the target correction error according to the feeling quantization value; wherein, the determining whether to correct the current display state of the target virtual character based on the target correction error according to the feeling quantization value includes: if the feeling quantization value is greater than a preset threshold, then not correcting the current display state of the target virtual character; if the feeling quantization value is not greater than the preset threshold, then correcting the current display state of the target virtual character based on the target correction error.
2. The method for correcting the state of a virtual character according to claim 1, characterized in that, the user feeling quantization model is an S-shaped growth curve model.
3. The method for correcting the state of a virtual character according to claim 1, characterized in that, the determining a target correction error according to the plurality of actual state errors includes: determining the maximum state error and the average state error among the plurality of actual state errors; performing weighted summation on the maximum state error and the average state error according to a preset weighting ratio, to obtain the target correction error.
4. The method for correcting the state of a virtual character according to claim 3, characterized in that, the weight coefficient of the maximum state error is greater than the weight coefficient of the average state error.
5. The method for correcting the state of a virtual character according to claim 1, characterized in that, the determining respective actual state errors between respective display states of the target virtual character in different states and respective calculation states sent by a service terminal, to obtain a plurality of actual state errors, includes: determining respective display state parameters of the target virtual character in different states; obtaining respective calculation state parameters of the target virtual character in different states sent by the service terminal; determining the difference between each of the display state parameters and the corresponding calculation state parameter, to obtain the plurality of actual state errors.
6. The method for correcting the state of a virtual character according to claim 5, characterized in that, after obtaining respective calculation state parameters of the target virtual character in different states sent by the service terminal, the method further includes: generating and displaying respective calculation position identifiers corresponding to the target virtual characters according to the respective calculation state parameters.
7. The virtual character status correction method according to claim 1, characterized in that, the graphical user interface includes a plurality of the target virtual characters and at least one reference virtual character. Before determining whether to correct the current display status of the target virtual character based on the target correction error according to the feeling quantization value, the method further includes: determining respective real-time distances of the plurality of target virtual characters from the reference virtual character, to obtain a plurality of real-time distances; determining respective distance weight coefficients corresponding to the target virtual characters according to the plurality of real-time distances; wherein, the magnitude of the real-time distance is negatively correlated with the corresponding distance weight coefficient; performing weighted summation on the feeling quantization values according to the distance weight coefficients corresponding to the target virtual characters, to obtain a target feeling quantization value.
8. The virtual character status correction method according to claim 1, characterized in that, the graphical user interface includes a plurality of the target virtual characters and at least one reference virtual character. Before determining whether to correct the current display status of the target virtual character based on the target correction error according to the feeling quantization value, the method further includes: determining respective character influence levels corresponding to the plurality of target virtual characters, to obtain a plurality of character influence levels; wherein, the character influence level is used to characterize the importance of the target virtual character in the game; determining respective influence weight coefficients corresponding to the target virtual characters according to the plurality of character influence levels; wherein, the magnitude of the influence level is positively correlated with the corresponding influence weight coefficient; performing weighted summation on the feeling quantization values according to the influence weight coefficients corresponding to the target virtual characters, to obtain a target feeling quantization value.
9. A virtual character status correction device, characterized in that, the device includes: a first determination module, configured to determine respective actual status errors between respective display statuses of a target virtual character in different statuses and respective calculation statuses sent by a service terminal, to obtain a plurality of actual status errors; a second determination module, configured to determine a target correction error according to the plurality of actual status errors; wherein, the target correction error is a parameter that is used to characterize the integrity of the errors of the target virtual character in different statuses in the same game session, and there is one and only one such parameter; a quantization module, configured to numerically quantify the target correction error based on a pre-configured user feeling quantization model, to obtain a feeling quantization value; wherein, the feeling quantization value is used to characterize the influence degree on the user feeling when correcting the target virtual character based on the target correction error; a correction module, configured to determine whether to correct the current display status of the target virtual character based on the target correction error according to the feeling quantization value; wherein, the correction module is configured as: if the feeling quantization value is greater than a preset threshold, then do not correct the current display status of the target virtual character; If the feeling quantization value is not greater than a preset threshold value, the current display state of the target virtual character is corrected based on the target correction error.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
11. An electronic device, characterized in that comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method according to any one of claims 1 to 8 by executing the executable instructions.
Citation Information
Patent Citations
Client synchronization method in 2D game, device thereof and system thereof
CN104954349A
Multi-avatar location synchronization system, method and device, electronic equipment and storage medium
CN107124416A