CN108057249B - Service data processing method and device - Google Patents

Service data processing method and device Download PDF

Info

Publication number
CN108057249B
CN108057249B CN201711227191.5A CN201711227191A CN108057249B CN 108057249 B CN108057249 B CN 108057249B CN 201711227191 A CN201711227191 A CN 201711227191A CN 108057249 B CN108057249 B CN 108057249B
Authority
CN
China
Prior art keywords
artificial intelligence
target
terminal equipment
virtual object
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711227191.5A
Other languages
Chinese (zh)
Other versions
CN108057249A (en
Inventor
成明洪
武如春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201711227191.5A priority Critical patent/CN108057249B/en
Publication of CN108057249A publication Critical patent/CN108057249A/en
Priority to PCT/CN2018/117870 priority patent/WO2019105377A1/en
Application granted granted Critical
Publication of CN108057249B publication Critical patent/CN108057249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/45Controlling the progress of the video game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
    • A63F2300/538Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing for performing operations on behalf of the game client, e.g. rendering

Abstract

The embodiment of the invention discloses a method and a device for processing service data, wherein the method comprises the following steps: the target terminal equipment receives an artificial intelligence logic operation request sent by the server, and acquires a target virtual object in the current service scene according to the artificial intelligence logic operation request; the target terminal equipment acquires target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object; the target terminal equipment sends an artificial intelligence command to the server so that the server synchronously feeds back the artificial intelligence command to all terminal equipment in the current service scene; and the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command. By adopting the invention, the computing resources can be saved.

Description

Service data processing method and device
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for processing service data.
Background
As three-dimensional rendering and graphic visual effects have progressed to the peak, the emphasis of current game development has gradually shifted from "image" to "artificial intelligence". The Artificial Intelligence (AI) technology is better applied to game development, so that characters controlled by Artificial Intelligence in a game can show the characteristics consistent with the intelligent behaviors, thinking activities or emotions of human beings, the interest of the game is enriched, and the reality of the game is improved.
The artificial intelligence technology is generally applied to scenes such as man-machine confrontation or offline hosting in a multiplayer real-time competitive game class. In order to ensure the consistency of game operation, the server sends artificial intelligence logic calculation requests to all terminal devices in the game, and after each terminal device in the game receives the requests, the same artificial intelligence logic processing is required. Since the plurality of terminal devices all execute the same artificial intelligence logic process, there is a situation of redundant processes in the plurality of terminal devices, which further causes a great waste of computing resources.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing service data, which can save computing resources of terminal equipment.
One aspect of the present invention provides a method for processing service data, including:
the method comprises the steps that target terminal equipment receives an artificial intelligence logic operation request sent by a server, and a target virtual object in a current service scene is obtained according to the artificial intelligence logic operation request;
the target terminal equipment acquires target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
the target terminal device sends the artificial intelligence command to the server so that the server can synchronously feed back the artificial intelligence command to all terminal devices in the current service scene; the all terminal equipment comprises the target terminal equipment;
and the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command.
Wherein, the performing artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object includes:
the target terminal equipment acquires the current equipment working parameters and selects an artificial intelligence model matched with the current equipment working parameters;
and the target terminal equipment generates behavior data to be processed of the target virtual object according to the target service data and the artificial intelligence parameters in the artificial intelligence model, and encapsulates the behavior data to be processed into an artificial intelligence command corresponding to the target virtual object.
The method for receiving the artificial intelligence logic operation request sent by the server by the target terminal device comprises the following steps:
the target terminal equipment sends the current equipment working parameters to the server so that the server selects the terminal equipment meeting equipment performance conditions according to the current equipment working parameters sent by all the terminal equipment;
and if the target terminal equipment is the terminal equipment meeting the equipment performance condition in all the terminal equipment, the target terminal equipment receives the artificial intelligence logic operation request sent by the server.
Before the target terminal device sends the current device operating parameter to the server, the method further includes:
if the virtual object corresponding to the target terminal device is a main virtual object and the terminal device in the offline state exists in the current service scene, the target terminal device receives an artificial intelligence hosting request sent by the server;
and if the target terminal equipment confirms to respond to the artificial intelligence hosting request, the target terminal equipment executes the step of sending the current equipment working parameters to the server.
Wherein, still include:
if the target terminal equipment is multi-thread terminal equipment, the service main logic and the artificial intelligence logic in the target terminal equipment are respectively operated in different threads; the service main logic is used for operating the current service scene, and the artificial intelligence logic is used for carrying out artificial intelligence logic processing on the target virtual object.
Another aspect of the present invention provides a method for processing service data, including:
the method comprises the steps that a server sends an artificial intelligence logic operation request to a target terminal device, so that the target terminal device obtains a target virtual object in a current service scene according to the artificial intelligence logic operation request, obtains target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
the server receives the artificial intelligence command sent by the target terminal device and synchronously feeds back the artificial intelligence command to all terminal devices in the current service scene so that all terminal devices synchronously perform service behavior processing on the target virtual object according to the artificial intelligence command; the all terminal devices include the target terminal device.
The server sends an artificial intelligence logic operation request to the target terminal device, and the artificial intelligence logic operation request comprises the following steps:
the server receives the current equipment working parameters sent by all the terminal equipment, and selects the terminal equipment meeting the equipment performance conditions according to the current equipment working parameters sent by all the terminal equipment;
and if the target terminal equipment is the terminal equipment meeting the equipment performance condition in all the terminal equipment, the server sends the artificial intelligence logic operation request to the target terminal equipment.
Before the server receives the current device operating parameters sent by all the terminal devices, the method further includes:
if the virtual object corresponding to the target terminal device is a main virtual object and the terminal device in the offline state exists in the current service scene, the server sends an artificial intelligence hosting request to the target terminal device;
and if the target terminal equipment confirms to respond to the artificial intelligence hosting request, the server executes the step of receiving the current equipment working parameters sent by all the terminal equipment.
Another aspect of the present invention provides a service data processing apparatus, including:
the request receiving module is used for receiving an artificial intelligence logic operation request sent by the server and acquiring a target virtual object in the current service scene according to the artificial intelligence logic operation request;
the command generation module is used for acquiring target service data associated with the target virtual object in a service behavior data set corresponding to the current service scene, and carrying out artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
the command sending module is used for sending the artificial intelligence command to the server so that the server can synchronously feed back the artificial intelligence command to all terminal devices in the current service scene; the all terminal equipment comprises the target terminal equipment;
and the command processing module is used for receiving the artificial intelligence command sent by the server and carrying out service behavior processing on the target virtual object according to the artificial intelligence command.
Wherein the command generation module comprises:
the model selection unit is used for acquiring the working parameters of the current equipment and selecting an artificial intelligence model matched with the working parameters of the current equipment;
and the command generation unit is used for generating behavior data to be processed of the target virtual object according to the target service data and the artificial intelligence parameters in the artificial intelligence model, and packaging the behavior data to be processed into the artificial intelligence command corresponding to the target virtual object.
Wherein the request receiving module includes:
a parameter sending unit, configured to send the current device operating parameter to the server, so that the server selects a terminal device that meets a device performance condition according to the current device operating parameter sent by all terminal devices;
a first receiving unit, configured to receive the artificial intelligence logic operation request sent by the server if the target terminal device is a terminal device that meets the device performance condition among all the terminal devices.
Wherein, the request receiving module further comprises:
a second receiving unit, configured to receive an artificial intelligence hosting request sent by the server if a virtual object corresponding to the target terminal device is a main virtual object and a terminal device in a dropped state exists in the current service scene;
and the first notification unit is used for notifying the parameter sending unit to send the current equipment working parameters to the server if the response of the artificial intelligence hosting request is confirmed.
Wherein, still include:
if the target terminal equipment is multi-thread terminal equipment, the service main logic and the artificial intelligence logic in the target terminal equipment are respectively operated in different threads; the service main logic is used for operating the current service scene, and the artificial intelligence logic is used for carrying out artificial intelligence logic processing on the target virtual object.
Another aspect of the present invention provides a service data processing apparatus, including:
a request sending module, configured to send an artificial intelligence logical operation request to a target terminal device, so that the target terminal device obtains a target virtual object in a current service scene according to the artificial intelligence logical operation request, obtains target service data associated with the target virtual object in a service behavior data set corresponding to the current service scene, and performs artificial intelligence logical processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
the command receiving module is used for receiving the artificial intelligence command sent by the target terminal equipment and synchronously feeding back the artificial intelligence command to all terminal equipment in the current service scene so that all terminal equipment synchronously perform service behavior processing on the target virtual object according to the artificial intelligence command; the all terminal devices include the target terminal device.
Wherein, the request sending module includes:
the parameter receiving unit is used for receiving the current equipment working parameters sent by all the terminal equipment and selecting the terminal equipment meeting the equipment performance conditions according to the current equipment working parameters sent by all the terminal equipment;
a first sending unit, configured to send the artificial intelligence logical operation request to the target terminal device if the target terminal device is a terminal device that meets the device performance condition among all the terminal devices.
Wherein, at the request sending module, the method further comprises:
a second sending unit, configured to send an artificial intelligence hosting request to the target terminal device if a virtual object corresponding to the target terminal device is a main virtual object and a terminal device in a dropped state exists in the current service scene;
and the second notification unit is used for notifying the parameter receiving unit to receive the current equipment working parameters sent by all the terminal equipment if the target terminal equipment confirms to respond to the artificial intelligence hosting request.
Another aspect of the present invention provides an electronic device, including: a processor and a memory;
the processor is connected to a memory, wherein the memory is used for storing program codes, and the processor is used for calling the program codes to execute the method in one aspect of the embodiment of the invention.
Another aspect of the present invention provides an electronic device, including: a processor and a memory;
the processor is coupled to a memory, wherein the memory is configured to store program code and the processor is configured to invoke the program code to perform a method as in another aspect of an embodiment of the invention.
Another aspect of the embodiments of the present invention provides a computer storage medium storing a computer program, the computer program comprising program instructions that, when executed by a processor, perform a method as in one aspect of the embodiments of the present invention.
Another aspect of embodiments of the present invention provides a computer storage medium storing a computer program comprising program instructions that, when executed by a processor, perform a method as in another aspect of embodiments of the present invention.
In the embodiment of the invention, the target terminal equipment acquires the target virtual object in the current service scene according to the artificial intelligence logic operation request by receiving the artificial intelligence logic operation request sent by the server; the target terminal equipment acquires target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object; the target terminal equipment sends an artificial intelligence command to the server so that the server synchronously feeds back the artificial intelligence command to all terminal equipment in the current service scene; all terminal devices comprise the target terminal device; and the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command. Therefore, when the situation that the artificial intelligence logic processing is needed occurs in the service scene, the artificial intelligence processing is executed only by the target terminal equipment, the artificial intelligence command is generated, and the artificial intelligence command is forwarded to all the terminal equipment in the service scene through the server, so that the situation that a large amount of computing resources are wasted due to the fact that all the terminal equipment execute the same artificial intelligence logic processing is avoided, and the computing resources are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1a to fig. 1d are schematic diagrams of a scenario of a service data processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a service data processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a process for generating an artificial intelligence command according to an embodiment of the invention;
fig. 4 is a schematic flowchart of another service data processing method according to an embodiment of the present invention;
fig. 5 is a timing diagram of a service data processing method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a service data processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another service data processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Please refer to fig. 1a to fig. 1d, which are schematic views of a scenario of a service data processing method according to an embodiment of the present invention. As shown in fig. 1d, the current service scene is a game scene, and the scene includes a terminal device 1000a, a terminal device 1000b, a terminal device 1000c, a terminal device 1000d, and a terminal device 1000 e. The virtual object corresponding to the terminal device 1000e is the virtual object 100a shown in fig. 1a, when the terminal device 1000e is disconnected due to a network failure, the terminal device 1000a sends current device working parameters to the server, the terminal device 1000b sends current device working parameters to the server, the terminal device 1000c sends current device working parameters to the server, the terminal device 1000d sends current device working parameters to the server 1000h, and after the server 1000h receives the current device working parameters of the terminal device, the terminal device 1000a with the optimal performance is selected as the target terminal device 1000a, and an artificial intelligence operation request is sent to the target terminal device 1000 a. Since the virtual object corresponding to the dropped terminal device 1000e is 100a, the virtual object 100a is the target virtual object 100a, and the target terminal device 1000a obtains game data from the game main logic (in the current game scene, all instructions and data except the artificial intelligence logic are executed and generated by the game main logic). Taking fig. 1a as an example, the acquired game data may include: position coordinates of the target virtual object 100a, an enemy unit 100b having a distance of 3 unit lengths from the target virtual object 100a, and data such as a life value, a grade, and equipment of the target virtual object 100 a. After the target terminal device 1000a obtains the game data, first, a matched artificial intelligence model is selected according to the current device working parameters, and behavior data of the target virtual object 100a is generated according to the game data and the artificial intelligence model, where the behavior data may include: attacking the enemy unit 100b, the target terminal device 1000a encapsulates the generated behavior data into an artificial intelligence command and sends the artificial intelligence command to the server 1000 h. After receiving the artificial intelligence command, the server synchronously forwards the artificial intelligence command to the terminal device 1000a, the terminal device 1000b, the terminal device 1000c, and the terminal device 1000d in the game-play, as shown in fig. 1b, after receiving the artificial intelligence command, the terminal device 1000a, the terminal device 1000b, the terminal device 1000c, and the terminal device 1000d all synchronously adjust the behavior of the target virtual object 100a to: attacking the enemy unit 100 b. After the attack enemy unit 100b is completed, the target terminal device 1000a continues to acquire new game data from the game master logic, and taking fig. 1c as an example, the acquired new game data may include: position coordinates of the target virtual object 100a, friendly units 100c having a distance of 2 units from the target virtual object 100a, and data of life value, class, equipment, and the like of the target virtual object 100 a. Similarly, after the target terminal device 1000a obtains the game data, behavior data of the target virtual object 100a is generated according to the game data and the artificial intelligence model, where the behavior data may include: following friend's unit 100 c. The target terminal device packages the generated behavior data into an artificial intelligent command and sends the artificial intelligent command to the server 1000 h. After receiving the artificial intelligence command, the server forwards the artificial intelligence command to the terminal device 1000a, the terminal device 1000b, the terminal device 1000c, and the terminal device 1000d in the game-play, as shown in fig. 1c, after receiving the artificial intelligence command, the terminal device 1000a, the terminal device 1000b, the terminal device 1000c, and the terminal device 1000d synchronously adjust the behavior of the target virtual object 100a to: following friend's unit 100 c. In addition, if the target terminal device 1000a is a multi-core terminal device, the game master logic (the game master logic is configured to run the current game scene) and the artificial intelligence logic (the artificial intelligence logic is configured to perform artificial intelligence logic processing on the target virtual object 100 a) are respectively run in different threads. Because the artificial intelligence logic processing is only carried out on the target virtual object 100a by the terminal device 1000a, the generated artificial intelligence command is sent to the server 1000h, and then the server 1000h synchronously forwards the artificial intelligence command to the terminal device 1000a, the terminal device 1000b, the terminal device 1000c and the terminal device 1000d in the bureau, all the terminal devices do not need to carry out the artificial intelligence logic processing on the virtual object 100a, and therefore the computing resources can be saved. Because the terminal device 1000a is the terminal device with the best performance, the artificial intelligence model with higher complexity can be selected to simulate the behavior of the target virtual object 100a more accurately, and meanwhile, the condition that the game runs stuttering due to the artificial intelligence model with lower hardware configuration and higher complexity in running the terminal device is avoided, so that the smoothness of game running can be improved.
The target terminal device may include a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch, a smart band, etc.), or other terminal devices providing a location function service.
For a specific process of performing artificial intelligence logic processing on the target virtual object, reference may be made to the following embodiments corresponding to fig. 2 to 5.
Further, please refer to fig. 2, which is a flowchart illustrating a method for processing service data according to an embodiment of the present invention. As shown in fig. 2, the method may include:
step S101, a target terminal device receives an artificial intelligence logic operation request sent by a server, and acquires a target virtual object in a current service scene according to the artificial intelligence logic operation request;
specifically, the target terminal device (which may be the terminal device 1000a in fig. 1) monitors and receives an artificial intelligence logical operation request sent by the server, and after receiving the artificial intelligence logical operation request, determines a target virtual object in the current service scene according to the artificial intelligence logical operation request. The artificial intelligence logic operation request is a request sent by a server for carrying out artificial intelligence logic processing on the virtual object; and the virtual object to be subjected to the artificial intelligence logical operation in the artificial intelligence logical operation request is the target virtual object. If the current service scene is a man-machine confrontation scene in the game, the target virtual object is a virtual object which needs to be controlled by artificial intelligence; if the current service scene is a drop-off hosting scene of a player in the game, the target virtual object may be a virtual object corresponding to the drop-off player in the hosting process. The business scenario may include a man-machine confrontation scenario in the game, a drop hosting scenario in the game, or other scenarios where artificial intelligence exists. For example, the terminal device a corresponds to the virtual object a in the game play, when the network of the terminal device a fails and is disconnected, the server sends an artificial intelligence operation request to the target terminal device B in the game play, and the target terminal device B determines that the target virtual object is the virtual object a through the artificial intelligence operation request.
Step S102, the target terminal device obtains target service data associated with the target virtual object in a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
specifically, the target terminal device obtains target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and makes a judgment on the next service behavior of the target virtual object according to the target service data and the artificial intelligence model. For example, in a game play scene, the target terminal device obtains target game data associated with the target virtual object from a data set generated by the game play, and the target terminal device determines, according to the target game data and the artificial intelligence model, that the next service behavior of the target virtual object is: attacking the enemy unit and packaging the attacking enemy unit into a man-made intelligent command. The service behavior data set is stored in a local file of the terminal device (the service behavior data sets in all the terminal devices in the current service scene are consistent), so that the target terminal device only needs to directly acquire the service behavior data set from the memory, and communication consumption is reduced.
Step S103, the target terminal device sends the artificial intelligence command to the server, so that the server synchronously feeds back the artificial intelligence command to all terminal devices in the current service scene; the all terminal equipment comprises the target terminal equipment;
specifically, after the target terminal device generates the artificial intelligence command, the artificial intelligence command is sent to the server (which may be specifically the server 1000h in fig. 1), so that the server synchronously forwards the artificial intelligence command to all terminal devices in the current service scenario (for example, a game partner) after receiving the artificial intelligence command.
And step S104, the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command.
Specifically, after the server sends the artificial intelligence command to all the terminal devices, the target terminal device receives the artificial intelligence command and executes corresponding business behavior processing on the target virtual object according to the artificial intelligence command. For example, in a game scenario, the process of performing business behavior processing on the target virtual object may include: the target virtual object searches for an enemy unit with the shortest path approaching to an friend unit, the lowest attack life value of the target virtual object, a Non-Player controlled Character (NPC) in the target virtual object attack game, and the like. And other terminal equipment except the target terminal equipment in all the terminal equipment can synchronously perform the same service behavior processing on the target virtual object according to the received artificial intelligence command. Taking fig. 1d as an example, after the target terminal device 1000a generates the artificial intelligence command, the artificial intelligence command is sent to the server 1000h, and the server forwards the artificial intelligence command to the target terminal device 1000a, the terminal device 1000b, the terminal device 1000c, and the terminal device 1000d in the current service scene. After receiving the artificial intelligence command, the target terminal device 1000a, the terminal device 1000b, the terminal device 1000c and the terminal device 1000d synchronously perform the same behavior processing on the target virtual object.
It should be noted that, if the target terminal device is a multi-thread terminal device, in order to fully utilize the computing resources of the terminal device, the service main logic and the artificial intelligence logic in the target terminal device are respectively operated in different threads; the service main logic is used for operating the current service scene, and the artificial intelligence logic is used for carrying out artificial intelligence logic processing on the target virtual object, namely all instructions and data except the artificial intelligence logic processing are operated and generated by the main logic. The multithreading terminal equipment means that the terminal equipment comprises at least two Central Processing Units (CPU), and each CPU runs one thread.
Further, please refer to fig. 3, which is a flowchart illustrating a process of generating an artificial intelligence command according to an embodiment of the present invention. As shown in fig. 3, steps S201 to S202 are specific descriptions of step S102 in the embodiment corresponding to fig. 2, that is, steps S201 to S202 are a specific flow for generating an artificial intelligence command according to an embodiment of the present invention, and may include the following steps:
step S201, the target terminal equipment acquires current equipment working parameters and selects an artificial intelligence model matched with the current equipment working parameters;
specifically, the target terminal device obtains a current device operating parameter of the target terminal device, where the current device parameter may include: equipment brand, central processing unit, operating memory, battery capacity, screen resolution, and the like. And selecting an artificial intelligence model matched with the current equipment parameters by the target terminal equipment, wherein the artificial intelligence model comprises artificial intelligence parameters, and the artificial intelligence parameters can be artificial intelligence operation formulas which can be used for calculating the next step behavior data of the target virtual object. The artificial intelligence model is stored in a local file of the target terminal device, the selection of the artificial intelligence model by the target terminal device is a dynamic adjustment process, and changes along with the change of the current device working parameters, for example, in a game scene, when the current battery capacity of the target terminal device is 1000 milliamperes, the first local target terminal device selects the corresponding artificial intelligence model A, and when the current battery capacity of the target terminal device is 500 milliamperes, the second local target terminal device selects the corresponding artificial intelligence model B. The complexity of the corresponding artificial intelligence parameters of different artificial intelligence models is different. For example, if it is determined that the performance of the device is better according to the current device operating parameters, an artificial intelligence model including artificial intelligence parameters with higher complexity can be selected, so that the calculated next step behavior data of the target virtual object can be more real and accurate.
Step S202, the target terminal device generates behavior data to be processed of the target virtual object according to the target service data and the artificial intelligence parameters in the artificial intelligence model, and encapsulates the behavior data to be processed into an artificial intelligence command corresponding to the target virtual object.
Specifically, the target terminal device generates behavior data to be processed of the target virtual object according to the target service data acquired from the service behavior data set and the artificial intelligence parameters in the local artificial intelligence model, where the behavior data to be processed is data indicating a next action behavior of the target virtual object. And the generated behavior data to be processed is also required to be sent to the server, so that the behavior data to be processed is packaged into an artificial intelligence command corresponding to the target virtual object.
In the embodiment of the invention, the target terminal equipment acquires the target virtual object in the current service scene according to the artificial intelligence logic operation request by receiving the artificial intelligence logic operation request sent by the server; the target terminal equipment acquires target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object; the target terminal equipment sends an artificial intelligence command to the server so that the server synchronously feeds back the artificial intelligence command to all terminal equipment in the current service scene; all terminal devices comprise the target terminal device; and the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command. Therefore, when the situation that the artificial intelligence logic processing is needed occurs in the service scene, the artificial intelligence processing is executed only by the target terminal equipment, the artificial intelligence command is generated, and the artificial intelligence command is forwarded to all the terminal equipment in the service scene through the server, so that the situation that a large amount of computing resources are wasted due to the fact that all the terminal equipment execute the same artificial intelligence logic processing is avoided, and the computing resources are saved. Because the terminal equipment with the optimal performance is selected as the target terminal equipment, the artificial intelligence model with higher complexity can be selected to simulate the behavior of the target virtual object more accurately, and meanwhile, the condition that the operation of the service scene is blocked due to the artificial intelligence model with lower hardware configuration and higher complexity when the terminal equipment in the current service scene operates is avoided, and the smoothness of the operation of the service scene is improved.
Further, please refer to fig. 4, which is a flowchart illustrating another service data processing method according to an embodiment of the present invention. As shown in fig. 4, the method may specifically include the following steps:
step S301, if a virtual object corresponding to the target terminal device is a main virtual object and a terminal device in a dropped state exists in the current service scene, the target terminal device receives an artificial intelligence hosting request sent by the server;
specifically, the target terminal device detects a corresponding virtual object, and if the virtual object corresponding to the target terminal device is a main virtual object (for example, a captain in a game match) and a terminal device in a dropped state exists in a current service scene (the terminal device may be determined to be in the dropped state by the server due to a network fault, or a user actively clicks a hosting button to enable the server to determine that the terminal device is in the dropped state), the target terminal device receives an artificial intelligence hosting request sent by the server, and the artificial intelligence hosting request is a request sent by the server to control the target virtual object through artificial intelligence. For example, in a game scene, a virtual object corresponding to a target terminal device B is a captain in a game play, and a terminal device a in the play is in a disconnection state due to a network failure, a server sends an artificial intelligence hosting request to the target terminal device B, and the target terminal device B receives the artificial intelligence hosting request.
Step S302, if the target terminal device confirms to respond to the artificial intelligence hosting request, the target terminal device sends the current device working parameters to the server, so that the server selects the terminal device meeting the device performance conditions according to the current device working parameters sent by all the terminal devices;
specifically, after the target terminal device receives the artificial intelligence hosting request, if the target terminal device agrees to the artificial intelligence hosting request, all terminal devices (including the target terminal device) in the current service scenario send current device operating parameters to the server, where the current device operating parameters may include: equipment brand, central processing unit, operating memory, battery capacity, screen resolution, and the like. The server selects terminal equipment meeting equipment performance conditions according to current equipment working parameters sent by all terminal equipment (including target terminal equipment) in a current service scene, and sends an artificial intelligence logical operation request to the terminal equipment meeting the equipment performance conditions, wherein the terminal equipment meeting the equipment performance conditions can be one terminal equipment with optimal equipment performance or two terminal equipment with optimal equipment performance and suboptimum equipment performance (at the moment, one terminal equipment can be randomly selected from the terminal equipment as the target terminal equipment).
Step S303, if the target terminal device is a terminal device which meets the device performance condition in all the terminal devices, the target terminal device receives the artificial intelligence logic operation request sent by the server;
specifically, if the target terminal device is a terminal device that satisfies the device performance conditions among all terminal devices in the current service scenario, the terminal device receives an artificial intelligence logic operation request sent by the server, where the artificial intelligence logic operation request is a request sent by the server to perform artificial intelligence logic processing on the virtual object.
Step S304, acquiring a target virtual object in the current service scene according to the artificial intelligence logic operation request;
step S305, the target terminal device obtains target service data associated with the target virtual object in a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
step S306, the target terminal device sends the artificial intelligence command to the server, so that the server synchronously feeds back the artificial intelligence command to all terminal devices in the current service scene; the all terminal equipment comprises the target terminal equipment;
step S307, the target terminal device receives the artificial intelligence command sent by the server, and performs service behavior processing on the target virtual object according to the artificial intelligence command.
The specific implementation manner of steps S304 to S307 may refer to the description of steps S101 to S104 in the embodiment corresponding to fig. 2, and the specific flow of generating the artificial intelligence command may refer to the description of steps S201 to S202 in fig. 3, which will not be described again here.
In the embodiment of the invention, the target terminal equipment acquires the target virtual object in the current service scene according to the artificial intelligence logic operation request by receiving the artificial intelligence logic operation request sent by the server; the target terminal equipment acquires target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object; the target terminal equipment sends an artificial intelligence command to the server so that the server synchronously feeds back the artificial intelligence command to terminal equipment in the current service scene; all terminal devices comprise the target terminal device; and the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command. Therefore, when the situation that the artificial intelligence logic processing is needed occurs in the service scene, the artificial intelligence processing is executed only by the target terminal equipment, the artificial intelligence command is generated, and the artificial intelligence command is forwarded to all the terminal equipment in the service scene through the server, so that the situation that a large amount of computing resources are wasted due to the fact that all the terminal equipment execute the same artificial intelligence logic processing is avoided, and the computing resources are saved. Because the terminal equipment with the optimal performance is selected as the target terminal equipment, the artificial intelligence model with higher complexity can be selected to simulate the behavior of the target virtual object more accurately, and meanwhile, the condition that the operation of the service scene is blocked due to the artificial intelligence model with lower hardware configuration and higher complexity when the terminal equipment in the current service scene operates is avoided, and the smoothness of the operation of the service scene is improved.
Further, please refer to fig. 5, which is a timing diagram illustrating a method for processing service data according to an embodiment of the present invention. As shown in fig. 5, the method may specifically include the following steps:
step S401, if the virtual object corresponding to the target terminal device is a main virtual object and a terminal device in a dropped state exists in the current service scene;
step S402, the server sends an artificial intelligence hosting request to the target terminal equipment;
step S403, if the target terminal device confirms to respond to the artificial intelligence hosting request;
step S404, the server receives the current equipment working parameters sent by the target terminal equipment;
for a specific implementation manner of steps S401 to S404, refer to the description of steps S301 to S302 in the embodiment corresponding to fig. 4, which will not be described again here.
Step S405, the server receives the current equipment working parameters sent by the other terminal equipment;
specifically, the server receives current device parameters sent by the other terminal devices in the current service scene except the target terminal device, that is, all the terminal devices in the current service scene send the current device parameters to the server. The time sequence of sending the equipment working parameters to the server by the target terminal equipment and the other terminal equipment is not limited, and the equipment working parameters can be sent to the server by the target terminal equipment firstly, and then sent by the other terminal equipment; or the target terminal device and the rest terminal devices can synchronously send the device working parameters to the server.
Step S406, the server selects the terminal equipment meeting the equipment performance condition according to the current equipment working parameters sent by all the terminal equipment;
step S407, if the target terminal device is a terminal device satisfying the device performance condition among all the terminal devices, the target terminal device receives the artificial intelligence logic operation request sent by the server;
step S408, the target terminal device obtains target service data associated with the target virtual object in a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
step S409, the target terminal equipment sends the artificial intelligence command to the server;
the specific implementation manner of steps S406 to S409 may refer to the description of steps S302 to S305 in the embodiment corresponding to fig. 4, and steps S201 to S202 are a specific flow for generating the artificial intelligence command, which will not be described again here.
Step S410, the server sends the artificial intelligence command to the target terminal equipment;
specifically, the server sends an artificial intelligence command generated by the target terminal device to the target terminal device.
Step S411, the server sends the artificial intelligence command to other terminal equipment;
specifically, the server sends the artificial intelligence command generated by the target terminal device to the other terminal devices in the current service scenario, in order to make the behavior of the target virtual object controlled by artificial intelligence in the current service scenario in the same, step S410 and step S411 in fig. 5 are executed synchronously, that is, the server sends the artificial intelligence command to the target terminal device and the other terminal devices synchronously. For example, in a game scene, a terminal device a, a terminal device B, a terminal device C, and a terminal device D exist, a target terminal device is the terminal device a, the terminal device a generates and sends an artificial intelligence command to the server, and the server synchronously forwards the artificial intelligence command to the terminal device a, the terminal device B, the terminal device C, and the terminal device D.
Step S412, the target terminal performs service behavior processing on the target virtual object according to the artificial intelligence command;
specifically, after receiving an artificial intelligence command sent by a server, a target terminal device performs service behavior processing on a target virtual object according to the artificial intelligence command, for example, in a game scene, the artificial intelligence command received by the target terminal device is: approaching to the nearest friend unit, so that the target terminal equipment adjusts the service behavior of the target virtual object according to the artificial intelligence command as follows: and searching the friend unit approach with the shortest radial distance.
If the target terminal equipment is multi-thread terminal equipment, in order to fully utilize the computing resources of the terminal equipment, the service main logic and the artificial intelligence logic in the target terminal equipment are respectively operated in different threads; the service main logic is used for operating the current service scene, and the artificial intelligence logic is used for carrying out artificial intelligence logic processing on the target virtual object, namely all instructions and data except the artificial intelligence logic processing are operated and generated by the main logic. The multithreading terminal equipment means that the terminal equipment comprises at least two central processing units, and each central processing unit runs one thread.
And step S413, the other terminal devices perform service behavior processing on the target virtual object according to the artificial intelligence command.
Specifically, the other terminal devices in the current service scene synchronously perform service behavior processing on the target virtual object according to the received artificial intelligence command. For example, in a game scene, there are a terminal device a, a terminal device B, and a terminal device C, and the server synchronously sends an artificial intelligence command to the terminal device a, the terminal device B, and the terminal device C, where the artificial intelligence command is: and after attacking an enemy unit D, and after receiving the artificial intelligence command, the terminal equipment A, the terminal equipment B and the terminal equipment C all adjust the behavior of the target virtual object to be as follows according to the artificial intelligence command: attack enemy unit D.
In the embodiment of the invention, the target terminal equipment acquires the target virtual object in the current service scene according to the artificial intelligence logic operation request by receiving the artificial intelligence logic operation request sent by the server; the target terminal equipment acquires target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object; the target terminal equipment sends an artificial intelligence command to the server so that the server synchronously feeds back the artificial intelligence command to terminal equipment in the current service scene; all terminal devices comprise the target terminal device; and the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command. Therefore, when the situation that the artificial intelligence logic processing is needed occurs in the service scene, the artificial intelligence processing is executed only by the target terminal equipment, the artificial intelligence command is generated, and the artificial intelligence command is forwarded to all the terminal equipment in the service scene through the server, so that the situation that a large amount of computing resources are wasted due to the fact that all the terminal equipment execute the same artificial intelligence logic processing is avoided, and the computing resources are saved. Because the terminal equipment with the optimal performance is selected as the target terminal equipment, the artificial intelligence model with higher complexity can be selected to simulate the behavior of the target virtual object more accurately, and meanwhile, the condition that the operation of the service scene is blocked due to the artificial intelligence model with lower hardware configuration and higher complexity when the terminal equipment in the current service scene operates is avoided, and the smoothness of the operation of the service scene is improved.
Further, please refer to fig. 6, which is a schematic structural diagram of a service data processing apparatus according to an embodiment of the present invention. As shown in fig. 6, the service data processing apparatus 1 may be applied to the target terminal device in the embodiment corresponding to fig. 2, where the service data processing apparatus 1 may include: a request receiving module 11, a command generating module 12, a command transmitting module 13 and a command processing module 14;
the request receiving module 11 is configured to receive an artificial intelligence logical operation request sent by a server, and obtain a target virtual object in a current service scene according to the artificial intelligence logical operation request;
a command generating module 12, configured to obtain, in a service behavior data set corresponding to the current service scenario, target service data associated with the target virtual object, and perform artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
a command sending module 13, configured to send the artificial intelligence command to the server, so that the server synchronously feeds back the artificial intelligence command to all terminal devices in the current service scenario; the all terminal equipment comprises the target terminal equipment;
and the command processing module 14 is configured to receive the artificial intelligence command sent by the server, and perform service behavior processing on the target virtual object according to the artificial intelligence command.
For specific functional implementation manners of the request receiving module 11, the command generating module 12, the command sending module 13, and the command processing module 14, reference may be made to steps S101 to step 104 in the corresponding embodiment of fig. 2, which is not described herein again.
Further, as shown in fig. 6, the request receiving module 11 includes: a parameter transmitting unit 111, a first receiving unit 112, a second receiving unit 113, and a first notifying unit 114;
a parameter sending unit 111, configured to send the current device operating parameter to the server, so that the server selects a terminal device that meets a device performance condition according to the current device operating parameter sent by all terminal devices;
a first receiving unit 112, configured to receive the artificial intelligence logic operation request sent by the server if the target terminal device is a terminal device that meets the device performance condition among all the terminal devices;
a second receiving unit 113, configured to receive an artificial intelligence hosting request sent by the server if the virtual object corresponding to the target terminal device is a main virtual object and there is a terminal device in a dropped state in the current service scenario;
a first notifying unit 114, configured to notify the parameter sending unit 111 to send the current device operating parameter to the server if it is determined that the artificial intelligence hosting request is responded to;
for specific functional implementation manners of the parameter sending unit 111, the first receiving unit 112, the second receiving unit 113, and the first notifying unit 114, reference may be made to steps S301 to S303 in the embodiment corresponding to fig. 4, which is not described herein again.
Further, as shown in fig. 6, the command generating module 12 includes: a model selecting unit 121, a command generating unit 122;
the model selection unit 121 is configured to obtain a current device operating parameter, and select an artificial intelligence model matched with the current device operating parameter;
and the command generating unit 122 is configured to generate behavior data to be processed of the target virtual object according to the target service data and the artificial intelligence parameters in the artificial intelligence model, and encapsulate the behavior data to be processed into an artificial intelligence command corresponding to the target virtual object.
The specific functional implementation manners of the model selecting unit 121 and the command generating unit 122 may refer to step S201 to step S202 in the embodiment corresponding to fig. 3, which is not described herein again.
In the embodiment of the invention, the target terminal equipment acquires the target virtual object in the current service scene according to the artificial intelligence logic operation request by receiving the artificial intelligence logic operation request sent by the server; the target terminal equipment acquires target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object; the target terminal equipment sends an artificial intelligence command to the server so that the server synchronously feeds back the artificial intelligence command to terminal equipment in the current service scene; all terminal devices comprise the target terminal device; and the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command. Therefore, when the situation that the artificial intelligence logic processing is needed occurs in the service scene, the artificial intelligence processing is executed only by the target terminal equipment, the artificial intelligence command is generated, and the artificial intelligence command is forwarded to all the terminal equipment in the service scene through the server, so that the situation that a large amount of computing resources are wasted due to the fact that all the terminal equipment execute the same artificial intelligence logic processing is avoided, and the computing resources are saved. Because the terminal equipment with the optimal performance is selected as the target terminal equipment, the artificial intelligence model with higher complexity can be selected to simulate the behavior of the target virtual object more accurately, and meanwhile, the condition that the operation of the service scene is blocked due to the artificial intelligence model with lower hardware configuration and higher complexity when the terminal equipment in the current service scene operates is avoided, and the smoothness of the operation of the service scene is improved.
Further, please refer to fig. 7, which is a schematic structural diagram of another service data processing apparatus according to an embodiment of the present invention. As shown in fig. 7, the service data processing apparatus 2 may be applied to the server in the embodiment corresponding to fig. 2, where the service data processing apparatus 2 may include: a request sending module 21, a command receiving module 22;
a request sending module 21, configured to send an artificial intelligence logical operation request to a target terminal device, so that the target terminal device obtains a target virtual object in a current service scene according to the artificial intelligence logical operation request, obtains target service data associated with the target virtual object in a service behavior data set corresponding to the current service scene, and performs artificial intelligence logical processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
a command receiving module 22, configured to receive the artificial intelligence command sent by the target terminal device, and synchronously feed back the artificial intelligence command to all terminal devices in the current service scenario, so that all terminal devices synchronously perform service behavior processing on the target virtual object according to the artificial intelligence command; the all terminal devices include the target terminal device.
The specific functional implementation manners of the request sending module 21 and the command receiving module 22 may refer to steps S407 to S413 in the embodiment corresponding to fig. 5, which is not described herein again.
Further, as shown in fig. 7, the request sending module 21 may include: a parameter receiving unit 211, a first transmitting unit 212, a second transmitting unit 213, and a second notification unit 214;
a parameter receiving unit 211, configured to receive current device operating parameters sent by all the terminal devices, and select a terminal device that meets a device performance condition according to the current device operating parameters sent by all the terminal devices;
a first sending unit 212, configured to send the artificial intelligence logical operation request to the target terminal device if the target terminal device is a terminal device that meets the device performance condition among all the terminal devices;
a second sending unit 213, configured to send an artificial intelligence hosting request to the target terminal device if the virtual object corresponding to the target terminal device is a main virtual object and there is a terminal device in a dropped state in the current service scenario;
a second notifying unit 214, configured to notify the parameter receiving unit 211 to receive the current device operating parameters sent by all the terminal devices if the target terminal device confirms to respond to the artificial intelligence hosting request.
For specific functional implementation manners of the parameter receiving unit 211, the first sending unit 212, the second sending unit 213, and the second notifying unit 214, reference may be made to steps S401 to S413 in the embodiment corresponding to fig. 5, which is not described herein again.
In the embodiment of the invention, the target terminal equipment acquires the target virtual object in the current service scene according to the artificial intelligence logic operation request by receiving the artificial intelligence logic operation request sent by the server; the target terminal equipment acquires target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object; the target terminal equipment sends an artificial intelligence command to the server so that the server synchronously feeds back the artificial intelligence command to terminal equipment in the current service scene; all terminal devices comprise the target terminal device; and the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command. Therefore, when the situation that the artificial intelligence logic processing is needed occurs in the service scene, the artificial intelligence processing is executed only by the target terminal equipment, the artificial intelligence command is generated, and the artificial intelligence command is forwarded to all the terminal equipment in the service scene through the server, so that the situation that a large amount of computing resources are wasted due to the fact that all the terminal equipment execute the same artificial intelligence logic processing is avoided, and the computing resources are saved. Because the terminal equipment with the optimal performance is selected as the target terminal equipment, the artificial intelligence model with higher complexity can be selected to simulate the behavior of the target virtual object more accurately, and meanwhile, the condition that the operation of the service scene is blocked due to the artificial intelligence model with lower hardware configuration and higher complexity when the terminal equipment in the current service scene operates is avoided, and the smoothness of the operation of the service scene is improved.
Further, please refer to fig. 8, which is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 8, the electronic device 1000 may be a target terminal device in the embodiment corresponding to fig. 2, where the electronic device 1000 may include: the processor 1001, the network interface 1004, and the memory 1005, the electronic device 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1004 may optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 8, the memory 1004, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
The electronic device 1000 may be a target terminal device in the embodiment corresponding to fig. 2, and in the electronic device 1000 shown in fig. 8, the network interface 1004 may provide a network communication function; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1004 to implement:
receiving an artificial intelligence logic operation request sent by a server, and acquiring a target virtual object in a current service scene according to the artificial intelligence logic operation request;
acquiring target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performing artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
sending the artificial intelligence command to the server so that the server synchronously feeds back the artificial intelligence command to all terminal devices in the current service scene; the all terminal equipment comprises the target terminal equipment;
and receiving the artificial intelligence command sent by the server, and carrying out service behavior processing on the target virtual object according to the artificial intelligence command.
In an embodiment, when the processor 1001 executes the artificial intelligence logic processing on the target virtual object according to the target service data, the processor obtains an artificial intelligence command corresponding to the target virtual object, and specifically executes the following steps:
obtaining current equipment working parameters, and selecting an artificial intelligence model matched with the current equipment working parameters;
and generating behavior data to be processed of the target virtual object according to the target service data and the artificial intelligence parameters in the artificial intelligence model, and packaging the behavior data to be processed into an artificial intelligence command corresponding to the target virtual object.
In an embodiment, when the processor 1001 executes the artificial intelligence logical operation request sent by the target terminal device receiving server, the following steps are specifically executed:
sending the current equipment working parameters to the server so that the server selects the terminal equipment meeting equipment performance conditions according to the current equipment working parameters sent by all the terminal equipment;
and if the target terminal equipment is the terminal equipment meeting the equipment performance condition in all the terminal equipment, receiving the artificial intelligence logic operation request sent by the server.
In one embodiment, before the processor 1001 sends the current device operating parameters to the server, the processor further performs the following steps:
if the virtual object corresponding to the target terminal device is a main virtual object and the terminal device in the offline state exists in the current service scene, receiving an artificial intelligence hosting request sent by the server;
and if the target terminal equipment confirms to respond to the artificial intelligence hosting request, executing the step of sending the current equipment working parameters to the server.
It should be understood that the terminal device 1000 described in the embodiment of the present invention may perform the description of the service data processing method in the embodiment corresponding to fig. 2 to fig. 5, and may also perform the description of the service data processing apparatus 1 in the embodiment corresponding to fig. 6, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores the aforementioned computer program executed by the service data processing apparatus 1, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the service data processing method in the embodiment corresponding to fig. 2 to fig. 5 can be executed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer storage medium to which the present invention relates, reference is made to the description of the method embodiments of the present invention.
Further, please refer to fig. 9, which is a schematic structural diagram of another electronic device according to an embodiment of the present invention. As shown in fig. 9, the electronic device 2000 may be the server in the embodiment corresponding to fig. 2, where the electronic device 2000 may include: the processor 2001, the network interface 2004 and the memory 2005, the electronic device 2000 may further include: a user interface 2003, and at least one communication bus 2002. The communication bus 2002 is used to implement connection communication between these components. The user interface 2003 may include a Display (Display) and a Keyboard (Keyboard), and the optional user interface 2003 may further include a standard wired interface and a standard wireless interface. The network interface 2004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 2004 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 2004 may alternatively be at least one memory device located remotely from the aforementioned processor 2001. As shown in fig. 9, the memory 2004, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
The terminal device 2000 may be the server in the embodiment corresponding to fig. 2, and in the electronic device 2000 shown in fig. 9, the network interface 2004 may provide a network communication function; and the user interface 2003 is primarily used to provide an interface for user input; and the processor 2001 may be used to invoke the device control application stored in the memory 2004 to implement:
sending an artificial intelligence logic operation request to a target terminal device, so that the target terminal device obtains a target virtual object in a current service scene according to the artificial intelligence logic operation request, obtains target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
receiving the artificial intelligence command sent by the target terminal device, and synchronously feeding back the artificial intelligence command to all terminal devices in the current service scene so that all terminal devices synchronously perform service behavior processing on the target virtual object according to the artificial intelligence command; the all terminal devices include the target terminal device.
In one embodiment, when the processor 2001 executes the server to send the artificial intelligence logical operation request to the target terminal device, the following steps are specifically executed:
receiving current equipment working parameters sent by all the terminal equipment, and selecting the terminal equipment meeting equipment performance conditions according to the current equipment working parameters sent by all the terminal equipment;
and if the target terminal equipment is the terminal equipment meeting the equipment performance condition in all the terminal equipment, sending the artificial intelligence logic operation request to the target terminal equipment.
In one embodiment, the processor 2001 further performs the following steps before executing the step of receiving, at the server, the current device operating parameters sent by all the terminal devices:
if the virtual object corresponding to the target terminal equipment is a main virtual object and the terminal equipment in the offline state exists in the current service scene, sending an artificial intelligent hosting request to the target terminal equipment;
and if the target terminal equipment confirms to respond to the artificial intelligence hosting request, executing the step of receiving the current equipment working parameters sent by all the terminal equipment.
In the embodiment of the invention, the target terminal equipment acquires the target virtual object in the current service scene according to the artificial intelligence logic operation request by receiving the artificial intelligence logic operation request sent by the server; the target terminal equipment acquires target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object; the target terminal equipment sends an artificial intelligence command to the server so that the server synchronously feeds back the artificial intelligence command to terminal equipment in the current service scene; all terminal devices comprise the target terminal device; and the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command. Therefore, when the situation that the artificial intelligence logic processing is needed occurs in the service scene, the artificial intelligence processing is executed only by the target terminal equipment, the artificial intelligence command is generated, and the artificial intelligence command is forwarded to all the terminal equipment in the service scene through the server, so that the situation that a large amount of computing resources are wasted due to the fact that all the terminal equipment execute the same artificial intelligence logic processing is avoided, and the computing resources are saved. Because the terminal equipment with the optimal performance is selected as the target terminal equipment, the artificial intelligence model with higher complexity can be selected to simulate the behavior of the target virtual object more accurately, and meanwhile, the condition that the operation of the service scene is blocked due to the artificial intelligence model with lower hardware configuration and higher complexity when the terminal equipment in the current service scene operates is avoided, and the smoothness of the operation of the service scene is improved.
The terminal device 2000 described in the embodiment of the present invention may perform the description of the service data processing method in the embodiment corresponding to fig. 2 to fig. 5, and may also perform the description of the service data processing apparatus 2 in the embodiment corresponding to fig. 7, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores the aforementioned computer program executed by the service data processing apparatus 2, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the service data processing method in the embodiment corresponding to fig. 2 to fig. 5 can be executed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer storage medium to which the present invention relates, reference is made to the description of the method embodiments of the present invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (13)

1. A method for processing service data is characterized by comprising the following steps:
the method comprises the steps that target terminal equipment receives an artificial intelligence logic operation request sent by a server, and a target virtual object in a current service scene is obtained according to the artificial intelligence logic operation request;
the target terminal equipment acquires target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
the target terminal device sends the artificial intelligence command to the server so that the server can synchronously feed back the artificial intelligence command to all terminal devices in the current service scene; the all terminal equipment comprises the target terminal equipment;
the target terminal equipment receives the artificial intelligence command sent by the server and carries out service behavior processing on the target virtual object according to the artificial intelligence command;
if the target terminal equipment is multi-thread terminal equipment, the service main logic and the artificial intelligence logic in the target terminal equipment are respectively operated in different threads; the service main logic is used for operating the current service scene, and the artificial intelligence logic is used for carrying out artificial intelligence logic processing on the target virtual object.
2. The method according to claim 1, wherein the performing artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object includes:
the target terminal equipment acquires the current equipment working parameters and selects an artificial intelligence model matched with the current equipment working parameters;
and the target terminal equipment generates behavior data to be processed of the target virtual object according to the target service data and the artificial intelligence parameters in the artificial intelligence model, and encapsulates the behavior data to be processed into an artificial intelligence command corresponding to the target virtual object.
3. The method of claim 1, wherein the receiving, by the target terminal device, the request for the artificial intelligence logical operation sent by the server comprises:
the target terminal equipment sends the current equipment working parameters to the server so that the server selects the terminal equipment meeting equipment performance conditions according to the current equipment working parameters sent by all the terminal equipment;
and if the target terminal equipment is the terminal equipment meeting the equipment performance condition in all the terminal equipment, the target terminal equipment receives the artificial intelligence logic operation request sent by the server.
4. The method of claim 3, further comprising, before the target terminal device sends the current device operating parameters to the server:
if the virtual object corresponding to the target terminal device is a main virtual object and the terminal device in the offline state exists in the current service scene, the target terminal device receives an artificial intelligence hosting request sent by the server;
and if the target terminal equipment confirms to respond to the artificial intelligence hosting request, the target terminal equipment executes the step of sending the current equipment working parameters to the server.
5. A method for processing service data is characterized by comprising the following steps:
the method comprises the steps that a server sends an artificial intelligence logic operation request to a target terminal device, so that the target terminal device obtains a target virtual object in a current service scene according to the artificial intelligence logic operation request, obtains target service data associated with the target virtual object from a service behavior data set corresponding to the current service scene, and performs artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
the server receives the artificial intelligence command sent by the target terminal device and synchronously feeds back the artificial intelligence command to all terminal devices in the current service scene so that all terminal devices synchronously perform service behavior processing on the target virtual object according to the artificial intelligence command; the all terminal equipment comprises the target terminal equipment;
if the target terminal equipment is multi-thread terminal equipment, the service main logic and the artificial intelligence logic in the target terminal equipment are respectively operated in different threads; the service main logic is used for operating the current service scene, and the artificial intelligence logic is used for carrying out artificial intelligence logic processing on the target virtual object.
6. The method of claim 5, wherein the server sends the request for artificial intelligence logical operation to the target terminal device, comprising:
the server receives the current equipment working parameters sent by all the terminal equipment, and selects the terminal equipment meeting the equipment performance conditions according to the current equipment working parameters sent by all the terminal equipment;
and if the target terminal equipment is the terminal equipment meeting the equipment performance condition in all the terminal equipment, the server sends the artificial intelligence logic operation request to the target terminal equipment.
7. The method according to claim 6, before the server receives the current device operating parameters sent by all the terminal devices, further comprising:
if the virtual object corresponding to the target terminal device is a main virtual object and the terminal device in the offline state exists in the current service scene, the server sends an artificial intelligence hosting request to the target terminal device;
and if the target terminal equipment confirms to respond to the artificial intelligence hosting request, the server executes the step of receiving the current equipment working parameters sent by all the terminal equipment.
8. A service data processing device is applied to a target terminal device, and is characterized by comprising:
the request receiving module is used for receiving an artificial intelligence logic operation request sent by the server and acquiring a target virtual object in the current service scene according to the artificial intelligence logic operation request;
the command generation module is used for acquiring target service data associated with the target virtual object in a service behavior data set corresponding to the current service scene, and carrying out artificial intelligence logic processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
the command sending module is used for sending the artificial intelligence command to the server so that the server can synchronously feed back the artificial intelligence command to all terminal devices in the current service scene; the all terminal equipment comprises the target terminal equipment;
the command processing module is used for receiving the artificial intelligence command sent by the server and carrying out service behavior processing on the target virtual object according to the artificial intelligence command;
if the target terminal equipment is multi-thread terminal equipment, the service main logic and the artificial intelligence logic in the target terminal equipment are respectively operated in different threads; the service main logic is used for operating the current service scene, and the artificial intelligence logic is used for carrying out artificial intelligence logic processing on the target virtual object.
9. A service data processing device applied to a server is characterized by comprising:
a request sending module, configured to send an artificial intelligence logical operation request to a target terminal device, so that the target terminal device obtains a target virtual object in a current service scene according to the artificial intelligence logical operation request, obtains target service data associated with the target virtual object in a service behavior data set corresponding to the current service scene, and performs artificial intelligence logical processing on the target virtual object according to the target service data to obtain an artificial intelligence command corresponding to the target virtual object;
the command receiving module is used for receiving the artificial intelligence command sent by the target terminal equipment and synchronously feeding back the artificial intelligence command to all terminal equipment in the current service scene so that all terminal equipment synchronously perform service behavior processing on the target virtual object according to the artificial intelligence command; the all terminal equipment comprises the target terminal equipment;
if the target terminal equipment is multi-thread terminal equipment, the service main logic and the artificial intelligence logic in the target terminal equipment are respectively operated in different threads; the service main logic is used for operating the current service scene, and the artificial intelligence logic is used for carrying out artificial intelligence logic processing on the target virtual object.
10. An electronic device, comprising: a processor and a memory;
the processor is coupled to a memory, wherein the memory is configured to store program code and the processor is configured to invoke the program code to perform the method of any of claims 1-4.
11. An electronic device, comprising: a processor and a memory;
the processor is coupled to a memory, wherein the memory is configured to store program code and the processor is configured to invoke the program code to perform the method of any of claims 5-7.
12. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 1-4.
13. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 5-7.
CN201711227191.5A 2017-11-29 2017-11-29 Service data processing method and device Active CN108057249B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711227191.5A CN108057249B (en) 2017-11-29 2017-11-29 Service data processing method and device
PCT/CN2018/117870 WO2019105377A1 (en) 2017-11-29 2018-11-28 Service processing method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711227191.5A CN108057249B (en) 2017-11-29 2017-11-29 Service data processing method and device

Publications (2)

Publication Number Publication Date
CN108057249A CN108057249A (en) 2018-05-22
CN108057249B true CN108057249B (en) 2020-07-24

Family

ID=62135359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711227191.5A Active CN108057249B (en) 2017-11-29 2017-11-29 Service data processing method and device

Country Status (2)

Country Link
CN (1) CN108057249B (en)
WO (1) WO2019105377A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108057249B (en) * 2017-11-29 2020-07-24 腾讯科技(成都)有限公司 Service data processing method and device
CN108765138B (en) * 2018-05-31 2021-09-21 创新先进技术有限公司 Object and fund transfer method and device
CN108809711B (en) * 2018-06-06 2021-07-09 中国人民解放军陆军工程大学 Self-adaptive management system for communication equipment
CN108888958B (en) * 2018-06-22 2023-03-21 深圳市腾讯网络信息技术有限公司 Virtual object control method, device, equipment and storage medium in virtual scene
CN109316743A (en) * 2018-07-31 2019-02-12 努比亚技术有限公司 A kind of game control method, terminal and computer readable storage medium
CN111316199B (en) * 2018-10-16 2022-08-19 华为技术有限公司 Information processing method and electronic equipment
CN111092848A (en) * 2018-10-24 2020-05-01 奇酷互联网络科技(深圳)有限公司 Cooperative control method, server and storage device for remote communication group
CN112368723A (en) * 2018-11-26 2021-02-12 华为技术有限公司 Model selection method and terminal
CN109550249B (en) * 2018-11-28 2022-04-29 腾讯科技(深圳)有限公司 Target object control method, device and equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012050618A1 (en) * 2010-10-16 2012-04-19 James Charles Vago Multimedia methods, devices and systems
JP5021834B1 (en) * 2011-11-04 2012-09-12 株式会社バンダイ GAME SYSTEM, ITS CONTROL METHOD, PROGRAM
CN103678892A (en) * 2013-12-03 2014-03-26 腾讯科技(成都)有限公司 Role object management method and role object management device
CN104965695B (en) * 2014-11-25 2018-01-23 深圳市腾讯计算机系统有限公司 The method and apparatus of analog subscriber real-time operation
CN105561578A (en) * 2015-12-11 2016-05-11 北京像素软件科技股份有限公司 NPC behavior decision method
CN108057249B (en) * 2017-11-29 2020-07-24 腾讯科技(成都)有限公司 Service data processing method and device

Also Published As

Publication number Publication date
CN108057249A (en) 2018-05-22
WO2019105377A1 (en) 2019-06-06

Similar Documents

Publication Publication Date Title
CN108057249B (en) Service data processing method and device
CN109413480B (en) Picture processing method, device, terminal and storage medium
KR102319206B1 (en) Information processing method and device and server
US10751623B2 (en) Incentivizing players to engage in competitive gameplay
CN108619720A (en) Playing method and device, storage medium, the electronic device of animation
AU2021254521B2 (en) Virtual character control method and apparatus, device, and storage medium
US20230043121A1 (en) Skill casting method and apparatus of virtual object, device, and storage medium
KR20180009352A (en) Method and apparatus for data processing for mobile games
EP3667464B1 (en) Supporting an augmented-reality software application
CN112891943B (en) Lens processing method and device and readable storage medium
CN106693365B (en) A kind of quick transfer approach of game object and device
CN113952720A (en) Game scene rendering method and device, electronic equipment and storage medium
CN112927332B (en) Bone animation updating method, device, equipment and storage medium
CN112473130A (en) Scene rendering method and device, cluster, storage medium and electronic equipment
CN110124307A (en) Method of controlling operation thereof and device, storage medium and electronic device
CN113398595B (en) Scene resource updating method and device, storage medium and electronic device
CN113398580B (en) Game scene generation method and device, storage medium and electronic device
US11752426B2 (en) Peer-to-peer multiplayer cloud gaming architecture
CN114885199B (en) Real-time interaction method, device, electronic equipment, storage medium and system
US20230031217A1 (en) Screen generation method and apparatus, computer device, storage medium and program product
CN115888101A (en) Virtual role state switching method and device, storage medium and electronic equipment
CN114307150A (en) Interaction method, device, equipment, medium and program product between virtual objects
CN114011069A (en) Control method of virtual object, storage medium and electronic device
CN115512019A (en) Rendering method, device and system
CN112947748A (en) Augmented reality AR remote interaction method and system thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant