Virtual character control method and device

By using the preset target data format in the virtual role control system to parse the first data and disperse the execution subject, the problem of virtual roles slow response and inability to execute complex actions in scenarios with a large number of APIs is solved, efficient and accurate action control is achieved, and user experience is improved.

CN119987531APending Publication Date: 2025-05-13BEIJING INSTITUTE FOR GENERAL ARTIFICIAL INTELLIGENCE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311493403.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-09
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The prior art cannot effectively solve the problem of virtual character action control slow response and inability to execute complex actions in scenarios with a large number of APIs, which affects the user experience.

Method used

The first data is generated by the preset target data format, and each execution subject on the server side analyzes the first data based on the format, realizing the dispersion of the execution subject, thereby improving data processing efficiency, allowing the virtual character to perform a large number of complex actions, with a fast response rate and high execution accuracy.

Benefits of technology

It improves the response rate and execution accuracy of virtual characters in complex action control scenarios, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987531A_ABST
    Figure CN119987531A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual character control method and device, and belongs to the field of virtual reality. The virtual character control method comprises the following steps: analyzing first data based on a target data format of the first data to sequentially obtain an identifier, an action control code and an action control parameter of a virtual character; the action control function component generates an action instruction based on the action control code and the action control parameter, and adds the action instruction to an action instruction queue; under the condition that a command for starting action execution sent by the client side is received, the server side sends a target action instruction in the action instruction queue to an action instruction executor corresponding to a target action control code corresponding to the target action instruction based on the storage sequence of the action instruction queue; and the action instruction executor executes the target action based on the target action instruction. According to the virtual character control method, the virtual character can execute a large number of complex actions, the response speed is high, and the execution accuracy is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtual reality, and more particularly to a method and device for controlling a virtual character. Background Art

[0002] With the development of virtual reality technology, users have higher and higher requirements for controlling virtual characters. In the context of virtual character motion control, more complex motion control functions are often involved. In related technologies, the entire task is mainly fully controlled by the same execution unit, which cannot be applied to scenarios with a large number of APIs, and thus cannot flexibly combine motion control functions according to different virtual character motion control requirements, and cannot be adapted to different types of virtual characters. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a virtual character control method and device, which enables the virtual character to perform a large number of complex actions with a fast response rate and high execution accuracy, thereby improving the user experience.

[0004] In a first aspect, the present application provides a virtual character control method, the method comprising:

[0005] Parsing the first data based on the target data format of the first data to obtain the virtual character's identifier, action control code and action control parameter in sequence; the first data is generated by the client after processing the action control instruction based on the target data format, and the target data format is a preset data format;

[0006] The action control function component generates an action instruction based on the action control code and the action control parameter, and adds the action instruction to the action instruction queue;

[0007] Upon receiving the command for starting action execution sent by the client, the server sends the target action instruction in the action instruction queue to the action instruction executor corresponding to the target action control code corresponding to the target action instruction based on the storage order of the action instruction queue;

[0008] The action instruction executor executes the target action based on the target action instruction.

[0009] According to the virtual character control method of the present application, the first data is generated by a pre-set target data format, and each execution subject on the server side sequentially parses the first data based on the target data format to obtain the required content, so as to achieve the dispersion of the execution subjects, thereby improving the data processing efficiency. On this basis, the virtual character can perform a large number of complex actions with a fast response rate and high execution accuracy, thereby improving the user experience.

[0010] According to an embodiment of the present application, the server sends the target action instruction in the action instruction queue to the action instruction executor corresponding to the target action control code corresponding to the target action instruction based on the storage order of the action instruction queue, including:

[0011] The server starts to retrieve the action instruction added earliest in the action instruction queue, and sequentially determines the currently retrieved action instruction as the target action instruction;

[0012] The target action instruction is parsed to obtain the target action control code, and the target action instruction is sent to an action instruction executor corresponding to the target action control code.

[0013] According to an embodiment of the present application, the action instruction executor executes the target action based on the target action instruction, including:

[0014] In the case that the target action instruction has not been executed, the action instruction executor generates action control parameters in each frame based on the target action instruction, and sends the action control parameters to the virtual character action generator;

[0015] When the target action instruction is executed, the server retrieves the next action instruction from the action instruction queue to update the target action instruction, and sends the updated target action instruction to the action instruction executor corresponding to the target control code corresponding to the updated target action instruction.

[0016] According to an embodiment of the present application, the first data is parsed based on the target data format of the first data to obtain the identifier, action control code and action control parameter of the virtual character in sequence, including:

[0017] The server side forwards the first data to the action control function component corresponding to the virtual character based on the identifier of the virtual character;

[0018] The action control function component parses the first data to obtain the action control code, and forwards the first data to the action instruction parser corresponding to the action control code;

[0019] The action instruction parser parses the first data to obtain action control parameters corresponding to the action control code.

[0020] According to an embodiment of the present application, after the action instruction parser parses the first data to obtain the action control parameter corresponding to the action control code, the method further includes:

[0021] The action instruction parser returns the action control parameter to the action control function component corresponding to the action control code.

[0022] According to an embodiment of the present application, after adding the action instruction to the action instruction queue and before receiving a command to start action execution sent by the client, the method further includes:

[0023] The action control function component generates a command identification code for the action instruction corresponding to the action control code;

[0024] The command identification code is returned to the client.

[0025] According to an embodiment of the present application, the target data format includes a field corresponding to the identifier of the virtual character, a field corresponding to the action control code, and a field corresponding to the action control parameter, and different fields correspond to different execution entities.

[0026] In a second aspect, the present application provides a virtual character control device, the device comprising:

[0027] A first processing module is used to parse the first data based on a target data format of the first data, and obtain the virtual character's identifier, action control code and action control parameter in sequence; the first data is generated by the client after processing the action control instruction based on the target data format, and the target data format is a preset data format;

[0028] A second processing module, configured to enable the action control function component to generate an action instruction based on the action control code and the action control parameter, and add the action instruction to an action instruction queue;

[0029] A third processing module is used for, when receiving the command for starting action execution sent by the client, causing the server to send the target action instruction in the action instruction queue to the action instruction executor corresponding to the target action control code corresponding to the target action instruction based on the storage order of the action instruction queue;

[0030] The fourth processing module is used to enable the action instruction executor to execute the target action based on the target action instruction.

[0031] According to the virtual character control device of the present application, the first data is generated by a pre-set target data format, and each execution subject on the server side sequentially parses the first data based on the target data format to obtain the required content, so as to realize the dispersion of the execution subjects, thereby improving the data processing efficiency. On this basis, the virtual character can perform a large number of complex actions with a fast response rate and high execution accuracy, thereby improving the user experience.

[0032] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the virtual character control method as described in the first aspect above is implemented.

[0033] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the virtual character control method as described in the first aspect above.

[0034] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the virtual character control method as described in the first aspect above.

[0035] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:

[0036] The first data is generated through a preset target data format, and each execution subject on the server side sequentially parses the first data based on the target data format to obtain the required content, so as to achieve the dispersion of the execution subjects, thereby improving the data processing efficiency. On this basis, the virtual character can perform a large number of complex actions with a fast response rate and high execution accuracy, thereby improving the user experience.

[0037] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0039] Figure 1 This is one of the flow charts of the virtual character control method provided in the embodiment of the present application;

[0040] Figure 2 This is the second flow chart of the virtual character control method provided in the embodiment of the present application;

[0041] Figure 3 is a structural schematic diagram of a virtual character control device provided in an embodiment of the present application;

[0042] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0044] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0045] The following, in conjunction with the accompanying drawings, describes in detail the virtual character control method, virtual character control device, electronic device and readable storage medium provided in the embodiments of the present application through specific embodiments and their application scenarios.

[0046] The virtual character control method may be applied to a terminal, and may be specifically executed by hardware or software in the terminal.

[0047] The terminal includes but is not limited to a portable communication device. It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer.

[0048] The virtual character control method provided in the embodiment of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the virtual character control method. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, wearable devices, etc. The virtual character control method provided in the embodiment of the present application is described below using an electronic device as an example of the execution subject.

[0049] The virtual character control method provided in this application can be applied to human-computer interaction scenarios or virtual reality scenarios.

[0050] It can be understood that in actual application scenarios, it involves a client and a server connected to the client for communication. The client is the terminal corresponding to the player, and the server is used to generate virtual scenes and virtual characters, and send the displayed virtual data to the client for display; the player inputs action control instructions through the client, and the server can update the actions of the virtual character based on the action control instructions after receiving the action control instructions, thereby realizing human-computer interaction.

[0051] The virtual character may be a character in a virtual scene, such as a virtual person or a virtual animal.

[0052] like Figure 1 As shown, the virtual character control method includes: step 110, step 120, step 130 and step 140.

[0053] Step 110: parsing the first data based on the target data format of the first data, and obtaining the virtual character's identifier, action control code, and action control parameter in sequence; the first data is generated by the client after processing the action control instruction based on the target data format, and the target data format is a preset data format;

[0054] In this step, the action control instruction is an instruction for instructing the virtual character to change the action.

[0055] It is understandable that, in a virtual scene, there may be one or more virtual characters. The identifier of the virtual character is used to distinguish different virtual characters. The identifier may be expressed as an ID or a code, etc.

[0056] For the same virtual character, it may correspond to one or more action function components for performing different action functions, such as walking, running, jumping, opening a door, and shooting a basketball.

[0057] The target data format is the preset data format.

[0058] In some embodiments, the target data format may include: a field corresponding to the virtual character's identifier, a field corresponding to the action control code, and a field corresponding to the action control parameter. Different fields may correspond to different execution entities, as shown in Table 1.

[0059] Table 1

[0060] Data Label 1 2 3 Data content Avatar Number Action control code Action control parameters

[0061] In the actual execution process, the client can fill in the content of each data according to the action control instruction to be sent and based on the target data format shown in Table 1, obtain the first data, and then send the first data to the server.

[0062] After receiving the first data, the server determines the execution subject corresponding to each field in turn based on the target data format, and sends the first data to the corresponding execution subject so that the execution subject parses the first data and obtains the data of the corresponding field.

[0063] The specific parsing process is described below.

[0064] like Figure 2 As shown, in some embodiments, step 110 may include:

[0065] The server forwards the first data to the action control function component corresponding to the virtual character based on the identifier of the virtual character;

[0066] The action control function component parses the first data to obtain an action control code, and forwards the first data to an action instruction parser corresponding to the action control code;

[0067] The action instruction parser parses the first data to obtain the action control parameter corresponding to the action control code.

[0068] In this embodiment, after receiving the first data, the server parses the first data to obtain the identifier of the virtual character, and determines the virtual character distributor corresponding to the identifier based on the identifier of the virtual character.

[0069] After receiving the first data, the virtual character distributor forwards the first data to the corresponding action control function component of the virtual character according to the identifier of the virtual character in the first data (step 2).

[0070] In some embodiments, the target data format may also include a component ID.

[0071] In this embodiment, after the virtual character distributor receives the first data, it determines the corresponding action control function component based on the identification of the virtual character in the first data and the component ID, and forwards the first data to the action control function component consistent with the component ID, thereby realizing data distribution to multiple different action function components.

[0072] Continue to refer Figure 2 After the action control function component obtains the first data, it parses the first data to obtain the action control code contained therein, determines the action instruction parser corresponding to the action control code based on the action control code, and then forwards the first data to the action instruction parser (step 3).

[0073] The action instruction parser receives the first data and parses it to obtain the action control parameter corresponding to the action control code corresponding to the first data (step 4).

[0074] Continue to refer Figure 2 In some embodiments, after the action instruction parser parses the first data and obtains the action control parameter corresponding to the action control code, the method may further include:

[0075] The action instruction parser returns the action control parameters to the action control function component corresponding to the action control code.

[0076] In this embodiment, the action instruction parser receives the first data and parses it to obtain the action control parameter corresponding to the action control code corresponding thereto, and returns the action control parameter to the action control function component (step 4).

[0077] Step 120: the action control function component generates an action instruction based on the action control code and the action control parameter, and adds the action instruction to the action instruction queue;

[0078] In this step, the action instruction is an instruction for updating the action of the virtual character.

[0079] After parsing the action control code and receiving the action control parameters returned by the action instruction parser, the action control function component combines the action control code and the action control parameters to obtain the action instruction, and adds the action instruction to the action instruction queue (step 5).

[0080] It can be understood that there may be one or more action instructions, and different action instructions may be the same or different.

[0081] The action instruction queue is used to store action instructions in sequence.

[0082] In some embodiments, continue to refer to Figure 2 , the action instructions can be stored in sequence from bottom to top based on the generation time of the action instructions: action instruction 1, action instruction 2, ..., action instruction m, etc.

[0083] In some embodiments, after adding the action instruction to the action instruction queue and before receiving a command to start the action execution sent by the client, the method may further include:

[0084] The action control function component generates a command identification code for the action instruction corresponding to the action control code;

[0085] Returns the command identification code to the client.

[0086] In this embodiment, after the action control function component parses the action control code and receives the action control parameters returned by the action instruction parser, it combines the action control code and the action control parameters, adds them to the action instruction queue, generates a command identification code for the action control instruction and returns it to the client (step 5).

[0087] After receiving the command identification code, the client sends a command to start the action execution to the server (step 6).

[0088] Step 130: upon receiving the command for starting action execution sent by the client, the server sends the target action instruction in the action instruction queue to the action instruction executor corresponding to the target action control code corresponding to the target action instruction based on the storage order of the action instruction queue;

[0089] In this step, the target action instruction is the currently called action instruction.

[0090] The target action instruction may be any instruction among all the action instructions included in the action instruction queue.

[0091] The storage order is the order in which the action instructions are stored in the action instruction sequence.

[0092] Continue to refer Figure 2 After receiving the command to start the action execution sent by the client, the server retrieves the action instructions in sequence based on the order in which the action instructions are stored, parses the action instructions to obtain the action control code included therein, and sends the action instruction to the action instruction executor corresponding to the action control code included in the action instruction (step 7).

[0093] In some embodiments, step 130 may further include:

[0094] The server starts to call the action instruction added earliest in the action instruction queue, and sequentially determines the currently called action instruction as the target action instruction;

[0095] The target action instruction is parsed to obtain a target action control code, and the target action instruction is sent to an action instruction executor corresponding to the target action control code.

[0096] In this embodiment, continue to refer to Figure 2 The server can sequentially take out action instructions from the bottom of the action instruction queue, parse the action control code included in the action instruction, and send the action instruction to the action instruction executor corresponding to the action control code.

[0097] For example, the server may sequentially retrieve action instructions from the bottom of the action instruction queue based on the order of action instruction 1, action instruction 2, ..., and action instruction m.

[0098] In some embodiments, when the action instruction queue is empty, the action is stopped.

[0099] Step 140: The action instruction executor executes the target action based on the target action instruction.

[0100] In this step, the target action is determined based on the execution status of the action instruction.

[0101] The execution of the action instruction is different, and the corresponding target action may also be different.

[0102] In the actual execution process, after the action instruction executor receives the action instruction, it determines whether the current action instruction has been executed, and enters the corresponding execution process based on the execution status (step 8).

[0103] The specific implementation of step 140 is described below.

[0104] Continue to refer Figure 2 In some embodiments, step 140 may further include:

[0105] When the target action instruction is not fully executed, the action instruction executor generates action control parameters in each frame based on the target action instruction, and sends the action control parameters to the virtual character action generator;

[0106] When the target action instruction is executed, the server retrieves the next action instruction from the action instruction queue to update the target action instruction, and sends the updated target action instruction to the action instruction executor corresponding to the target control code corresponding to the updated target action instruction.

[0107] In this embodiment, the virtual character action generator is used to update the actions of the virtual character.

[0108] After receiving the action instruction, the action instruction executor determines whether the current action instruction has been executed.

[0109] If the execution is not completed, execute the target action: step 9; if the execution is completed, execute the target action: step 10.

[0110] Among them, continue to refer to Figure 2 , step 9 includes: the action instruction executor generates action control parameters in each frame, sends them to the virtual character action generator to update the virtual character action, and jumps to step 8, so that the action instruction executor continues to determine whether the action instruction has been executed.

[0111] Step 10 includes: the action instruction executor sends a message to the action control function component and jumps to step 7, so that the server retrieves the next action instruction from the action instruction queue, parses the action control code of the next action instruction, and sends the action instruction to the action instruction executor corresponding to the new action control code; after receiving the action instruction, the action instruction executor determines whether the current action instruction has been executed.

[0112] And so on, until all the action instructions in the action instruction queue are called, the action is stopped, thereby realizing the action control of the virtual character.

[0113] During the research and development process, the inventor discovered that in the related technology, when conducting human-computer interaction and virtual character control, the API mainly sends instructions to the server, and the server's execution unit has complete control over the entire task. When there are a large number of APIs, it will lead to a large amount of calculation, affecting the corresponding rate and data processing effect, resulting in slow response of the virtual character, and the virtual character cannot perform more complex actions, affecting the user's human-computer interaction experience.

[0114] In the present application, the first data is generated by a pre-set target data format, and each execution entity on the server side sequentially parses the first data based on the target data format to obtain the required content. By dispersing the execution entities to improve data processing efficiency, a large number of API processing scenarios can be realized, so that the virtual character can perform a large number of complex actions with a fast response rate and high execution accuracy, thereby improving the user experience.

[0115] According to the virtual character control method provided in the embodiment of the present application, the first data is generated by a pre-set target data format, and each execution subject on the server side sequentially parses the first data based on the target data format to obtain the required content, so as to achieve the dispersion of the execution subjects, thereby improving the data processing efficiency. On this basis, the virtual character can perform a large number of complex actions with a fast response rate and high execution accuracy, thereby improving the user experience.

[0116] The virtual character control method provided in the embodiment of the present application can be executed by a virtual character control device. In the embodiment of the present application, the virtual character control device provided in the embodiment of the present application is described by taking the virtual character control method executed by the virtual character control device as an example.

[0117] The embodiment of the present application also provides a virtual character control device.

[0118] like Figure 3 As shown, the virtual character control device includes: a first processing module 310 , a second processing module 320 , a third processing module 330 and a fourth processing module 340 .

[0119] The first processing module 310 is used to parse the first data based on the target data format of the first data, and obtain the virtual character's identification, action control code and action control parameter in sequence; the first data is generated by the client after processing the action control instruction based on the target data format, and the target data format is a preset data format;

[0120] The second processing module 320 is used to enable the action control function component to generate an action instruction based on the action control code and the action control parameter, and add the action instruction to the action instruction queue;

[0121] The third processing module 330 is used to enable the server to send the target action instruction in the action instruction queue to the action instruction executor corresponding to the target action control code corresponding to the target action instruction based on the storage order of the action instruction queue when receiving the command to start the action execution sent by the client;

[0122] The fourth processing module 340 is used to enable the action instruction executor to execute the target action based on the target action instruction.

[0123] According to the virtual character control device provided in the embodiment of the present application, the first data is generated by a pre-set target data format, and each execution subject on the server side sequentially parses the first data based on the target data format to obtain the required content, so as to achieve the dispersion of the execution subjects, thereby improving the data processing efficiency. On this basis, the virtual character can perform a large number of complex actions with a fast response rate and high execution accuracy, thereby improving the user experience.

[0124] In some embodiments, the third processing module 330 may also be used to:

[0125] The server starts to call the action instruction added earliest in the action instruction queue, and sequentially determines the currently called action instruction as the target action instruction;

[0126] The target action instruction is parsed to obtain a target action control code, and the target action instruction is sent to an action instruction executor corresponding to the target action control code.

[0127] In some embodiments, the fourth processing module 340 may also be used to:

[0128] When the target action instruction has not been executed, the action instruction executor generates action control parameters in each frame based on the target action instruction, and sends the action control parameters to the virtual character action generator;

[0129] When the target action instruction is executed, the server side retrieves the next action instruction from the action instruction queue to update the target action instruction, and sends the updated target action instruction to the action instruction executor corresponding to the target control code corresponding to the updated target action instruction.

[0130] In some embodiments, the first processing module 310 may be used to:

[0131] The server forwards the first data to the action control function component corresponding to the virtual character based on the identifier of the virtual character;

[0132] The action control function component parses the first data to obtain an action control code, and forwards the first data to an action instruction parser corresponding to the action control code;

[0133] The motion instruction parser is enabled to parse the first data to obtain the motion control parameter corresponding to the motion control code.

[0134] In some embodiments, the apparatus may further include a fifth processing module, configured to:

[0135] After the action instruction parser parses the first data and obtains the action control parameter corresponding to the action control code, the action instruction parser returns the action control parameter to the action control function component corresponding to the action control code.

[0136] In some embodiments, the apparatus may further include a sixth processing module, configured to:

[0137] After adding the action instruction to the action instruction queue and before receiving the command for starting the action execution sent by the client, the action control function component generates a command identification code for the action instruction corresponding to the action control code;

[0138] Returns the command identification code to the client.

[0139] The virtual character control device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0140] The virtual character control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0141] The virtual character control device provided in the embodiment of the present application can achieve Figure 1 to Figure 2To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0142] In some embodiments, Figure 4 As shown, an embodiment of the present application further provides an electronic device 400, including a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the program is executed by the processor 401, each process of the above-mentioned virtual character control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0143] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0144] An embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned virtual character control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0145] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0146] The embodiment of the present application also provides a computer program product, including a computer program, which implements the above-mentioned virtual character control method when executed by a processor.

[0147] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0148] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned virtual character control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0149] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0150] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0151] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0152] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0153] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0154] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.

Claims

1. A virtual character control method, characterized in that: include: parsing the first data based on a target data format of the first data to sequentially obtain an identifier of the virtual character, an action control code, and an action control parameter; The first data is generated by the client after processing the action control instruction based on the target data format, and the target data format is a preset data format; The action control function component generates an action instruction based on the action control code and the action control parameter, and adds the action instruction to the action instruction queue; Upon receiving the command for starting action execution sent by the client, the server sends the target action instruction in the action instruction queue to the action instruction executor corresponding to the target action control code corresponding to the target action instruction based on the storage order of the action instruction queue; The action instruction executor executes the target action based on the target action instruction.

2. The virtual character control method according to claim 1, characterized in that: The server sends the target action instruction in the action instruction queue to the action instruction executor corresponding to the target action control code corresponding to the target action instruction based on the storage order of the action instruction queue, including: The server starts to retrieve the action instruction added earliest in the action instruction queue, and sequentially determines the currently retrieved action instruction as the target action instruction; The target action instruction is parsed to obtain the target action control code, and the target action instruction is sent to an action instruction executor corresponding to the target action control code.

3. The virtual character control method according to claim 1, characterized in that: The action instruction executor executes the target action based on the target action instruction, including: In the case that the target action instruction has not been executed, the action instruction executor generates action control parameters in each frame based on the target action instruction, and sends the action control parameters to the virtual character action generator; When the target action instruction is executed, the server retrieves the next action instruction from the action instruction queue to update the target action instruction, and sends the updated target action instruction to the action instruction executor corresponding to the target control code corresponding to the updated target action instruction.

4. The virtual character control method according to any one of claims 1 to 3, characterized in that: The step of parsing the first data based on the target data format of the first data to sequentially obtain the identifier, action control code and action control parameter of the virtual character includes: The server side forwards the first data to the action control function component corresponding to the virtual character based on the identifier of the virtual character; The action control function component parses the first data to obtain the action control code, and forwards the first data to the action instruction parser corresponding to the action control code; The action instruction parser parses the first data to obtain action control parameters corresponding to the action control code.

5. The virtual character control method according to claim 4, characterized in that: After the action instruction parser parses the first data to obtain the action control parameter corresponding to the action control code, the method further includes: The action instruction parser returns the action control parameter to the action control function component corresponding to the action control code.

6. The virtual character control method according to any one of claims 1 to 3, characterized in that: After adding the action instruction to the action instruction queue and before receiving a command for starting action execution sent by the client, the method further includes: The action control function component generates a command identification code for the action instruction corresponding to the action control code; The command identification code is returned to the client.

7. The virtual character control method according to any one of claims 1 to 3, characterized in that: The target data format includes a field corresponding to the identifier of the virtual character, a field corresponding to the action control code, and a field corresponding to the action control parameter, and different fields correspond to different execution entities.

8. A virtual character control device, characterized in that: include: A first processing module is used to parse the first data based on a target data format of the first data, and obtain the virtual character's identifier, action control code and action control parameter in sequence; the first data is generated by the client after processing the action control instruction based on the target data format, and the target data format is a preset data format; A second processing module, configured to enable the action control function component to generate an action instruction based on the action control code and the action control parameter, and add the action instruction to an action instruction queue; A third processing module is used for, when receiving the command for starting action execution sent by the client, causing the server to send the target action instruction in the action instruction queue to the action instruction executor corresponding to the target action control code corresponding to the target action instruction based on the storage order of the action instruction queue; The fourth processing module is used to enable the action instruction executor to execute the target action based on the target action instruction.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the virtual character control method as described in any one of claims 1-7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the virtual character control method as described in any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the virtual character control method according to any one of claims 1 to 7 is implemented.