CN110507989B - Cloud game control method and device, electronic equipment and readable storage medium - Google Patents

Cloud game control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN110507989B
CN110507989B CN201910840786.0A CN201910840786A CN110507989B CN 110507989 B CN110507989 B CN 110507989B CN 201910840786 A CN201910840786 A CN 201910840786A CN 110507989 B CN110507989 B CN 110507989B
Authority
CN
China
Prior art keywords
game
behavior
reproduction function
network
user operation
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
CN201910840786.0A
Other languages
Chinese (zh)
Other versions
CN110507989A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910840786.0A priority Critical patent/CN110507989B/en
Publication of CN110507989A publication Critical patent/CN110507989A/en
Application granted granted Critical
Publication of CN110507989B publication Critical patent/CN110507989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • A63F13/358Adapting the game course according to the network or server load, e.g. for reducing latency due to different connection speeds between clients
    • 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/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • 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
    • A63F13/49Saving the game status; Pausing or ending the 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/45Controlling the progress of the video game
    • A63F13/49Saving the game status; Pausing or ending the game
    • A63F13/493Resuming a game, e.g. after pausing, malfunction or power failure
    • 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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/67Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor adaptively or by learning from player actions, e.g. skill level adjustment or by storing successful combat sequences for re-use
    • 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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the field of game technologies, and in particular, to a method and apparatus for controlling a cloud game, an electronic device, and a readable storage medium. In the embodiment of the application, when the game server detects network abnormality with the user equipment, a user operation reproduction function matched with the current game activity is obtained, and the game activity during the network abnormality is controlled according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality. By adopting the scheme, the acquired user operation reproduction function can control the game activity in the network abnormal period so as to reduce the influence on the game activity in the network abnormal period.

Description

Cloud game control method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of game technologies, and in particular, to a method and apparatus for controlling a cloud game, an electronic device, and a readable storage medium.
Background
The cloud game is based on cloud computing, in the running mode of the cloud game, the game runs on a server, the server compresses rendered game pictures and transmits the compressed game pictures to user equipment through a network, and the user equipment does not need to have any high-end processor and display card and only needs basic video decompression capability. However, the multimedia data transmission of the cloud game is more sensitive to network delay than that of the traditional game, and when the network condition of one player in the game is not ideal, the server cannot receive the game operation sent by the player, so that the subsequent game activity is affected.
In the prior art, the network environment of the cloud game is mainly improved by optimizing network hardware conditions and adding a network accelerator, but the scheme for optimizing the hardware conditions is passive and depends on the improvement of hardware conditions and productivity level seriously, the network accelerator can only effectively improve the condition that the network speed is influenced by factors such as network delay, packet loss rate and the like, but has no effective improvement on other network problems such as network disconnection, hardware equipment faults and the like.
Therefore, when an abnormality occurs in the network between the server side and the user equipment of the cloud game, how to reduce the influence of the game activity during the network abnormality is a technical problem to be solved.
Disclosure of Invention
Accordingly, an object of the embodiments of the present application is to provide a method, an apparatus, an electronic device, and a readable storage medium for controlling a cloud game, which can control a game activity during a network anomaly to reduce an influence of the game activity during the network anomaly.
The application mainly comprises the following aspects:
in a first aspect, an embodiment of the present application provides a control method for a cloud game, which is applied to a game server, where the control method includes:
receiving game operation input by user equipment through a network, controlling game activities according to the game operation, and feeding back game pictures corresponding to the game activities to the user equipment through the network;
When detecting network abnormality with the user equipment, acquiring a user operation reproduction function matched with the current game activity, and controlling the game activity during the network abnormality according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality;
when the network with the user equipment is detected to be restored to be normal, stopping controlling the game activity according to the user operation reproduction function, restoring the game operation input by the user equipment through the network, and controlling the game activity according to the game operation.
In one possible implementation, if there is a virtual character in the game that is controlled according to the game operation input by the user device, the controlling the game activity according to the game operation includes:
and controlling the game behavior of the virtual character according to the game operation.
In one possible implementation manner, before detecting a network anomaly with the user equipment, the control method further includes:
Determining a first game behavior executed by the virtual character in a game according to the game operation, and acquiring the first game behavior;
when the first game behavior meets the preset condition, recording and storing a second game behavior executed by the virtual character; the second game action is a game action performed by the virtual character determined according to the game operation after the first game action;
the user operation reproduction function is generated based on the second game behavior.
In a possible implementation manner, the first game behavior is determined to meet the preset condition according to the following steps:
counting the execution times of the virtual character executing the first game behavior;
and when the execution times are equal to a first preset times, determining that the first game behavior meets the preset conditions.
In one possible implementation, the first game behavior includes a single game behavior and a combined game behavior.
In a possible implementation manner, the first game behavior is determined to meet the preset condition according to the following steps:
detecting whether a second game scene converted into the first game scene is a preset game scene or not after the virtual character executes the first game behavior in the first game scene;
If yes, determining that the first game behavior meets the preset condition.
In one possible implementation, the recording and storing the second game behavior performed by the virtual character includes:
acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing the second game behavior which is the same as the first preset game behavior.
In one possible implementation, the recording and storing the second game behavior performed by the virtual character includes:
acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing a second game behavior matched with a second preset game behavior of the specific virtual object in the preset game scene.
In one possible implementation, the recording and storing the second game behavior performed by the virtual character includes:
acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing the second game behaviors with the execution times larger than or equal to a second preset times.
In a possible implementation manner, the generating the user operation reproduction function based on the second game behavior includes:
Generating the user operation reproduction function according to each game behavior in the second game behaviors and the execution time sequence of each game behavior.
In a possible implementation manner, the generating the user operation reproduction function based on the second game behavior includes:
acquiring a scene element associated with the second game action;
and generating the user operation reproduction function according to the second game behavior and the scene element.
In one possible implementation, the obtaining a user operation recurrence function that matches the current gaming activity includes:
and acquiring the user operation reproduction function matched with the current game behavior according to the current game behavior of the virtual character.
In one possible implementation, the obtaining a user operation recurrence function that matches the current gaming activity includes:
and acquiring the user operation reproduction function matched with the current game behavior according to the current game behavior of the virtual character and the current scene element associated with the current game behavior.
In one possible implementation, the controlling the game activity during the network anomaly according to the user-operated reproduction function includes:
Judging whether scene elements which do not meet the execution condition of any one of the second game behaviors exist in the current scene elements according to scene elements associated with the second game behaviors in the user operation reproduction function;
and if the game behavior exists, executing the game behaviors except the game behaviors which do not meet the execution conditions in the user operation reproduction function according to the execution time sequence of each game behavior in the user operation reproduction function.
In a second aspect, an embodiment of the present application further provides a control device for a cloud game, where the control device includes:
the first control module is used for receiving game operations input by the user equipment through a network, controlling game activities according to the game operations, and feeding back game pictures corresponding to the game activities to the user equipment through the network;
the second control module is used for acquiring a user operation reproduction function matched with the current game activity when the network abnormality between the user equipment is detected, and controlling the game activity during the network abnormality according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality;
The first control module is further configured to stop controlling a game activity according to the user operation recurrence function when it is detected that the network with the user equipment is restored to be normal, resume the game operation input by the user equipment through the network, and control the game activity according to the game operation.
In one possible implementation, if there is a virtual character in the game that is controlled according to the game operation input by the user device, the first control module is configured to control the game activity according to the following steps:
and controlling the game behavior of the virtual character according to the game operation.
In one possible embodiment, the control device further includes:
the acquisition module is used for determining a first game behavior executed by the virtual character in a game according to the game operation and acquiring the first game behavior;
the storage module is used for recording and storing a second game behavior executed by the virtual character when the first game behavior meets a preset condition; the second game action is a game action performed by the virtual character determined according to the game operation after the first game action;
And the generation module is used for generating the user operation reproduction function based on the second game behavior.
In one possible embodiment, the control device further comprises a first determination module; the first determining module is configured to determine that the first game behavior meets the preset condition according to the following steps:
counting the execution times of the virtual character executing the first game behavior;
and when the execution times are equal to a first preset times, determining that the first game behavior meets the preset conditions.
In one possible implementation, the first game behavior includes a single game behavior and a combined game behavior.
In one possible embodiment, the control device further comprises a second determination module; the second determining module is configured to determine that the first game behavior meets the preset condition according to the following steps:
detecting whether a second game scene converted into the first game scene is a preset game scene or not after the virtual character executes the first game behavior in the first game scene;
if yes, determining that the first game behavior meets the preset condition.
In a possible implementation manner, the storage module is configured to store the second game behavior according to the following steps:
Acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing the second game behavior which is the same as the first preset game behavior.
In a possible implementation manner, the storage module is further configured to store the second game behavior according to the following steps:
acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing a second game behavior matched with a second preset game behavior of the specific virtual object in the preset game scene.
In a possible implementation manner, the storage module is configured to store the second game behavior according to the following steps:
acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing the second game behaviors with the execution times larger than or equal to a second preset times.
In a possible implementation manner, the generating module is configured to generate the user operation recurrence function according to the following steps:
generating the user operation reproduction function according to each game behavior in the second game behaviors and the execution time sequence of each game behavior.
In a possible implementation manner, the generating module is configured to generate the user operation recurrence function according to the following steps:
acquiring a scene element associated with the second game action;
and generating the user operation reproduction function according to the second game behavior and the scene element.
In a possible implementation manner, the second control module includes a first acquisition unit, where the first acquisition unit is configured to:
and acquiring the user operation reproduction function matched with the current game behavior according to the current game behavior of the virtual character.
In a possible embodiment, the second control module includes a second acquisition unit for:
and acquiring the user operation reproduction function matched with the current game behavior according to the current game behavior of the virtual character and the current scene element associated with the current game behavior.
In a possible implementation manner, the second control module is configured to control game activities during network anomalies according to the following steps:
judging whether scene elements which do not meet the execution condition of any one of the second game behaviors exist in the current scene elements according to scene elements associated with the second game behaviors in the user operation reproduction function;
And if the game behavior exists, executing the game behaviors except the game behaviors which do not meet the execution conditions in the user operation reproduction function according to the execution time sequence of each game behavior in the user operation reproduction function.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the method for controlling a cloud game as described in the first aspect or any of the possible implementation manners of the first aspect.
In a fourth aspect, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to perform the steps of the method for controlling a cloud game according to the first aspect or any possible implementation manner of the first aspect.
In the embodiment of the application, when the game server detects network abnormality with the user equipment, a user operation reproduction function matched with the current game activity is obtained, and the game activity during the network abnormality is controlled according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality. By adopting the scheme, the acquired user operation reproduction function can control the game activity in the network abnormal period so as to reduce the influence on the game activity in the network abnormal period.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flowchart of a control method of a cloud game according to an embodiment of the present application;
fig. 2 shows a flowchart of another control method of a cloud game according to an embodiment of the present application;
fig. 3 shows one of functional block diagrams of a control device for a cloud game according to an embodiment of the present application;
fig. 4 shows a second functional block diagram of a control device for a cloud game according to an embodiment of the present application;
FIG. 5 illustrates a functional block diagram of the second control module shown in FIGS. 3 and 4;
fig. 6 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for the purpose of illustration and description only and are not intended to limit the scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate acts implemented according to some embodiments of the application. It should be appreciated that the acts of the flowcharts may be performed out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other acts may be added to, and one or more acts may be removed from, the flowcharts, as directed by the person skilled in the art in view of the present disclosure.
In addition, the described embodiments are only some, but not all, embodiments of the application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art based on embodiments of the application without making any inventive effort, fall within the scope of the application.
In order to enable those skilled in the art to make use of the present disclosure, the following embodiments are provided in connection with a specific application scenario "how to control game activity during network anomalies" and it is possible for those skilled in the art to apply the general principles defined herein to other embodiments and applications without departing from the spirit and scope of the present disclosure.
The method, the device, the electronic equipment or the computer readable storage medium can be applied to any scene needing cloud game control, the embodiment of the application does not limit specific application scenes, and any scheme using the method, the device, the electronic equipment and the readable storage medium for controlling the cloud game provided by the embodiment of the application is within the protection scope of the application.
It is noted that in cloud games, when network conditions of a player in a game are not ideal, a server cannot receive a game operation sent by the player, which affects subsequent game activities. In the prior art, the network environment of the cloud game is mainly improved by optimizing network hardware conditions and adding a network accelerator, but the scheme for optimizing the hardware conditions is passive and depends on the improvement of hardware conditions and productivity level seriously, the network accelerator can only effectively improve the condition that the network speed is influenced by factors such as network delay, packet loss rate and the like, but has no effective improvement on other network problems such as network disconnection, hardware equipment faults and the like.
In view of the above problems, in the embodiment of the present application, when a game server detects a network anomaly with a user device, a user operation recurrence function that matches a current game activity is obtained, and a game activity during the network anomaly is controlled according to the user operation recurrence function, where the user operation recurrence function is a function generated according to a historical game operation input by the user device and used to simulate a game operation of the user device during the network anomaly. By adopting the scheme, the game activity during the network abnormality can be controlled through the obtained user operation reproduction function, so that the influence on the game activity during the network abnormality is reduced, and the user experience is improved.
In order to facilitate understanding of the present application, the following detailed description of the technical solution provided by the present application is provided in connection with specific embodiments.
Fig. 1 is a flowchart of a control method of a cloud game according to an embodiment of the present application. The control method of the cloud game provided by the embodiment of the application is applied to the game server, and comprises the following steps:
s101: and receiving game operation input by the user equipment through a network, controlling game activities according to the game operation, and feeding back game pictures corresponding to the game activities to the user equipment through the network.
In a specific implementation, in the cloud game, the game is not run in the user equipment of the user, but is run in the game server, specifically, the game server receives the game operation input by the user equipment in real time through the network, controls the game activity according to the received game operation, and then transmits the game picture corresponding to the game activity to the user equipment through the network, so that the game picture corresponding to the game operation is displayed on the user equipment.
Here, a game operation may be understood as an operation of controlling the progress of a game, for example, an operation of controlling the game behavior of a virtual character in a game (e.g., an operation of controlling the movement of the virtual character in a game scene, performing an attack, etc.), or an operation of interacting with a game element in a game (e.g., an operation of interacting with a dropped piece of music in a music game). A game activity may be understood as any change that occurs within a game, such as a game action of a virtual character (e.g., a virtual character moves in a game scene, performs an attack, etc.), or a change in state of a game element (e.g., in a music game, a music color block generates a change corresponding to a game operation and generates a corresponding scoring result).
It should be noted that, in the same cloud game, one or more users may be online at the same time, and each user performs information interaction with the game server through a respective user device. The user equipment is terminal equipment used by a user, and the terminal equipment is not limited to a mobile terminal and a personal computer.
Further, if there is a virtual character in the game that is controlled according to the game operation input by the user device, the game operation is an operation of controlling the game behavior of the virtual character, and controlling the game activity according to the game operation includes controlling the game behavior of the virtual character according to the game operation.
The game behavior is a game behavior in which a virtual character determined according to a game operation is executed in a game, and the game behavior is such as fishing, grilling fish, attacking, jumping, defending, and the like.
S102: when network abnormality with the user equipment is detected, a user operation reproduction function matched with the current game activity is obtained, and the game activity during the network abnormality is controlled according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality.
In a specific implementation, when the game server detects a network abnormality with the user equipment, the current game activity is firstly obtained, a user operation recurrence function closest to the current game activity is matched from at least one user operation recurrence function, and the game operation of the user equipment in the network abnormality period is simulated according to the matched user operation recurrence function, namely, the game operation possibly input by the user equipment in the network abnormality period is simulated according to the historical game operation of the user, and further, the game activity in the network abnormality period is controlled according to the simulated game operation, wherein the network abnormality refers to network disconnection, network delay, network failure and the like. By adopting the mode, the game activity during the network abnormality can be controlled through the obtained user operation reproduction function, so that the influence on the game activity during the network abnormality is reduced, the continuity of the game is ensured, and the instant game experience of the user in the game is promoted.
Here, before the network is abnormal, the user operation reproduction function matched with the game activity can be generated in real time according to the game activity controlled by the game operation input by the user equipment, so that when the network between the game server and the user equipment is abnormal, the game activity during the network abnormality can be directly controlled according to the user operation reproduction function, the influence on the game activity during the network abnormality can be further reduced, and the efficiency of matching the user operation reproduction function is improved.
It should be noted that, during the network anomaly, the game server may attempt to feed back the execution result of the game activity controlled according to the user operation reproduction function to the user device, specifically, the execution result may be sent to the user device in real time, where the execution result may be a game picture obtained according to the user operation reproduction function and a game parameter variation result related to the game activity; and the execution result can be a settlement result obtained according to the user operation recurrence function during abnormal network, so that the user equipment can continue the game without influencing the progress of the game when the network is restored to be normal.
In an example, if the bss in the game is defeated during the network anomaly, after the network returns to normal, the execution result fed back to the user equipment may be the result that the bss is defeated; if the game is not defeated during the abnormal period of the network, the execution result fed back to the user equipment may be a game picture of fighting with the game and the progress of playing the game after the network is restored to normal.
S103: when the network with the user equipment is detected to be restored to be normal, stopping controlling the game activity according to the user operation reproduction function, restoring the game operation input by the user equipment through the network, and controlling the game activity according to the game operation.
In a specific implementation, during abnormal network, the game server detects the network state between the game server and the user equipment in real time, when the network between the game server and the user equipment is detected to be recovered to be normal, the game activity is not controlled by the user operation recovery function, but the game operation input by the user equipment is recovered to be received through the network to control the game activity, namely, the next game activity is controlled according to the game operation actually input by the user through the user equipment, and the game picture corresponding to the game activity is fed back to the user equipment through the network, so that the priority of the game operation actually input by the user is higher than the priority of the matched user operation recovery function, the game is guaranteed to be played preferentially according to the wish of the user, and the situation that the simulated game operation does not accord with the actual wish of the user is avoided.
In the embodiment of the application, when the game server detects network abnormality with the user equipment, a user operation reproduction function matched with the current game activity is obtained, and the game activity during the network abnormality is controlled according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality. By adopting the scheme, the acquired user operation reproduction function can control the game activity in the network abnormal period so as to reduce the influence on the game activity in the network abnormal period.
Fig. 2 is a flowchart of another control method of a cloud game according to an embodiment of the present application. The control method of the cloud game provided by the embodiment of the application is applied to the game server, and comprises the following steps:
s201: and receiving game operation input by the user equipment through a network, controlling game activities according to the game operation, and feeding back game pictures corresponding to the game activities to the user equipment through the network.
The description of S201 may refer to the description of S101, and the same technical effects can be achieved, which will not be described in detail.
S202: and determining a first game behavior executed by the virtual character in the game according to the game operation, and acquiring the first game behavior.
In specific implementation, the game server receives, in real time, a game operation input by the user device through the network, where the game operation is an operation of controlling the virtual character to execute a game action, and through the game operation, a first game action executed by the virtual character in the game can be determined, and the first game action is obtained.
S203: when the first game behavior meets the preset condition, recording and storing a second game behavior executed by the virtual character; the second game behavior is a game behavior performed by the virtual character determined according to the game operation after the first game behavior.
In a specific implementation, after the first game behavior is acquired, the first game behavior is judged, and when the first game behavior is judged to meet the preset condition, the recording and storage of the second game behavior which occurs after the first game behavior are triggered.
Further, it may be determined that the first game behavior satisfies the preset condition in the following manner:
mode one: counting the execution times of the virtual character executing the first game behavior; and when the execution times are equal to a first preset times, determining that the first game behavior meets the preset conditions.
In a specific implementation, counting the execution times of the first game behavior executed by the virtual character in real time, wherein the first game behavior can be executed continuously or at intervals, when the counted execution times of the first game behavior are equal to a first preset times, determining that the first game behavior meets a preset condition, and triggering the recording and storage of a second game behavior after the occurrence of the first game behavior, wherein the first game behavior and the second game behavior are identical. By adopting the mode, the game behaviors repeatedly executed by the virtual game roles are recorded, namely, the data which can reflect the rules of the user behaviors are recorded, so that the user operation reproduction function generated by the records can simulate the game operation which is closer to the real game operation input by the user equipment during the abnormal period of the network.
The first preset times can be preset according to the habit of the historical game operation of the user, and can also be set according to the actual requirement condition of the game.
Further, the first game behavior includes an individual game behavior that is an independently occurring action and a combined game behavior that is an action occurring in the form of an action combination.
In the specific implementation, a first game behavior executed by the virtual character is obtained in real time, whether different game behaviors exist in the first game behavior is judged, and if so, the first game behavior is a combined game behavior; if not, the first game action is a single game action.
In one example, the first game is "fishing-grilling fish", the first preset number of times is 5, and when the number of consecutive occurrences of "fishing-grilling fish" reaches 5, the recording of the next second game is started.
Mode two: detecting whether a second game scene converted into the first game scene is a preset game scene or not after the virtual character executes the first game behavior in the first game scene; if yes, determining that the first game behavior meets the preset condition.
In specific implementation, a first game behavior executed by the virtual character is obtained in real time, and a first game scene where the virtual character is located when the first game behavior occurs, when the situation that the game scene where the virtual character is located is changed after the virtual character executes the first game behavior is detected, the first game scene is converted into a second game scene, and the second game scene is a preset game scene, the second game behavior after the first game behavior occurs is triggered to be recorded and stored. Here, the first game behavior and the second game behavior are different, and the preset game scene may be a specific game scene of a game link that affects a game key course, such as a BOSS battle, a copy, a timing game, and the like. By adopting the mode, the game actions executed by the virtual characters in the specific game scene are recorded, so that the user operation reproduction function generated by the records can simulate the game operation which is more close to the real game operation input by the user equipment during the network anomaly and in the specific game scene.
In an example, the first game behavior is "entering copy a", the game scene is changed after the first game behavior occurs, the converted second game scene is "copy a", the preset game scene is "preset copy", when the copy a is the preset copy, the second game behavior executed by the virtual character after the virtual character completes execution of "entering copy a", such as "attack-jump-defense" executed by the virtual character, is triggered and recorded under the game scene of copy a.
Further, the second game behavior performed by the virtual character may be recorded and stored in the following manner:
mode one: acquiring the second game behavior executed by the virtual character in the preset game scene; and recording and storing the second game behavior which is the same as the first preset game behavior.
In specific implementation, after determining that the virtual character executes the first game action in the first game scene, when the converted second game scene is the preset game scene, acquiring all game actions executed by the virtual character in the preset game scene, namely the second game actions, and recording and storing only the second game actions identical to the first preset game action according to the execution sequence of each game action in the second game action, namely recording only the second game action meeting the requirements after the first game action occurs, so that actions which have no effect and influence on the game progress can be filtered out, or only game actions which have key effects on the game progress can be recorded, and the game operation which acts on the game can be effectively reproduced through the recorded second game actions, so that the game progress efficiency is improved.
In an example, the first preset game behavior includes "using skill X and normal attack", and after the first game behavior occurs, the virtual character jumps to the preset game scene "copy", and the executed second game behavior includes "normal attack, using skill X, jumping, using skill X, moving", and according to the execution sequence of the game behaviors, only the second game behavior "normal attack, using skill X" identical to the first preset game behavior is recorded.
Mode two: acquiring the second game behavior executed by the virtual character in the preset game scene; and recording and storing a second game behavior matched with a second preset game behavior of the specific virtual object in the preset game scene.
In a specific implementation, after determining that the virtual character executes the first game action in the first game scene, when the converted second game scene is the preset game scene, acquiring all the game actions executed by the virtual character in the preset game scene, namely, the second game actions, and recording and storing only the second game actions matched with the second preset game actions of the specific virtual object, so that by recording only the game actions having a key effect on the game progress, for example, the specific virtual object is a boss (game head needing to be defeated by the virtual character in the game copy), only the game actions meeting the boss are recorded. In this way, through the recorded second game behavior, the generated user operation reproduction function can effectively reproduce the game operation playing a key role in the game, and the game progress efficiency is improved.
In an example, the specific virtual object is a boss, the second preset game behavior of the boss is "still, still and attack", when the user controls the virtual character to execute "attack" when the boss is "still" and execute "evasion" when the boss is "attack", the second game behavior "attack, attack and evasion" executed by the virtual character and corresponding to the boss preset action is recorded according to the "still, still and attack" of the boss preset action (first preset game behavior).
Mode three: acquiring the second game behavior executed by the virtual character in the preset game scene; and recording and storing the second game behaviors with the execution times larger than or equal to a second preset times.
In a specific implementation, after determining that the virtual character executes the first game behavior in the first game scene, when the converted second game scene is the preset game scene, acquiring all game behaviors executed by the virtual character in the preset game scene, namely the second game behaviors, and recording only the second game behaviors with the execution times being greater than or equal to the second preset times. By adopting the mode, the game behaviors repeatedly executed by the virtual game roles are recorded, namely, the data which can reflect the rules of the user behaviors are recorded, so that the user operation reproduction function generated by the records can simulate the game operation which is closer to the real game operation input by the user equipment during the abnormal period of the network.
The second preset times can be preset according to the habit of the historical game operation of the user, and can also be set according to the actual requirement condition of the game.
In an example, in a preset game scene mass attack scene, when the number of times of executing the second game behavior of "attack, jump, defend, move" by the virtual character reaches 5 times, the second preset number of times is 5 times, and the second game behavior of "attack, jump, defend, move" is recorded and stored.
S204: the user operation reproduction function is generated based on the second game behavior.
In the implementation, for each recorded second game behavior, a user operation reproduction function is correspondingly generated, so that for a plurality of recorded second game behaviors, a plurality of user operation reproduction functions are correspondingly generated, when the game server detects network abnormality with the user equipment, the user operation reproduction function closest to the current game activity can be found out from the plurality of user operation reproduction functions, the game activity in the network abnormality period is controlled according to the matched user operation reproduction function, the influence of the game activity in the network abnormality period can be reduced, and the continuity of the game is ensured.
Further, the user operation reproduction function may be generated in the following manner:
mode one: generating the user operation reproduction function according to each game behavior in the second game behaviors and the execution time sequence of each game behavior.
In a specific implementation, the user operation reproduction function is generated according to each game behavior in the recorded second game behaviors and the execution time sequence of each game behavior in each game behavior, namely the sequence of the virtual character executing each game behavior, namely the user operation reproduction function is generated only according to the recorded second game behaviors.
In one example, the second game action "fishing-grilling" generates a user operation reproduction function "fishing-grilling" from "fishing-grilling".
Mode two: acquiring a scene element associated with the second game action; and generating the user operation reproduction function according to the second game behavior and the scene element.
In a specific implementation, a scene element associated with the recorded second game behavior is obtained, wherein the scene element is a scene element corresponding to a game scene where the virtual character is located when the recorded second game behavior occurs, and the scene element is, for example, "bonfire, bait, night" and the like, and a user operation reproduction function is generated according to the recorded second game behavior and the scene element associated with the second game behavior.
In one example, the second game action "fishing-grilling" is that the scene element associated with "fishing-grilling" is "bonfire", and the user operation reproduction function is generated as "fishing-grilling" from "bonfire" and "fishing-grilling".
S205: when network abnormality with the user equipment is detected, a user operation reproduction function matched with the current game activity is obtained, and the game activity during the network abnormality is controlled according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality.
The description of S205 may refer to the description of S102, and the same technical effects can be achieved, which will not be described in detail.
Further, the user operation reproduction function matched with the current game activity may be acquired in the following manner:
mode one: and acquiring the user operation reproduction function matched with the current game behavior according to the current game behavior of the virtual character.
In specific implementation, when the game server detects network abnormality with the user equipment, the current game behavior executed by the virtual character is obtained, and according to the current game behavior, a user operation recurrence function closest to the current game behavior is obtained from a plurality of user operation recurrence functions.
In one example, the current game action is "fishing", and a user operation reproduction function matching the "fishing" is obtained from a plurality of user operation reproduction functions, for example, "fishing-grilling".
Mode two: and acquiring the user operation reproduction function matched with the current game behavior according to the current game behavior of the virtual character and the current scene element associated with the current game behavior.
In specific implementation, when the game server detects network abnormality with the user equipment, the current game behavior executed by the virtual character at the moment and the current scene element in the game scene corresponding to the current game behavior are obtained, and according to the current game behavior, the user operation recurrence function closest to the current game behavior is obtained from a plurality of user operation recurrence functions.
In an example, the current game behavior "fishing", i.e. the user controls the game character to perform a fishing action, and the current scene element associated with "fishing" is "bonfire", i.e. when the game character performs a fishing action, there is a scene element "bonfire" in the game scene, and a user operation recurrence function matching the "bonfire" and the "fishing" is obtained from a plurality of user operation recurrence functions. For example, the user operation reproduction function includes a user operation reproduction function 1 "fishing-fishing (no-bonfire)", and a user operation reproduction function 2 "fishing-grilling (bonfire)", then the user operation reproduction function 2 "fishing-grilling, bonfire" matched with the current game behavior "fishing" and the scene element "bonfire" is determined according to the current game behavior "fishing" and the scene element "bonfire", and the game behavior of the virtual character during the network anomaly is controlled according to the user operation reproduction function 2, namely, the virtual character is controlled to execute the "fishing-grilling" action.
In another example, the current game behavior is "attack", that is, the user controls the game character to execute an attack action in the boss copy, and the current scene elements related to the "attack" are "night, level land, little monster", that is, when the game character executes the attack action, the scene elements are "night, level land, little monster" in the game scene, and the user operation reproduction function matched with the "attack" and the "night, level land, little monster" is obtained from the plurality of user operation reproduction functions. For example, the user operation reproduction function includes a user operation reproduction function 1 "attack-jump, (night, bridge, monster)" user operation reproduction function 1; the user operation reproduction function 2 is ' attack-defense ' (daytime, flat land and no monster) ', when the network is abnormal, the user operation reproduction function 1 closest to the current game behavior is determined according to the current game behavior ' attack ', and the current scene element is ' night, flat land and no monster ', and the game behavior of the virtual character in the abnormal period of the network is controlled according to the user operation reproduction function 1, namely the virtual character is controlled to execute the action of ' attack-jump '. Because the user operation reproduction function 1 accords with 2 scene elements of 'black, little strange', the user operation reproduction function 2 accords with 1 scene element of 'flat ground', and the user operation reproduction function corresponding to a large number of scene elements is selected. It should be noted that, in this embodiment, the user operation reproduction function is generated according to the second game behavior and the scene element associated with the second game behavior, specifically, according to the second game behavior matched with the second preset game behavior of the specific virtual object in the preset game scene and the scene element associated with the second game behavior. Namely, the scene element is "night, bridge, little monster", then according to the preset action "still-attack" of the boss, the second game behavior "attack-jump" of the virtual character is recorded and stored, and the user operation reproduction function 1 "attack-jump" (night, bridge, little monster) "is generated; the scene elements are "daytime, flat ground, no monster", the second game behavior "attack-defense" of the virtual character is recorded and stored, and the user operation reproduction function 2 "attack-defense" (daytime, flat ground, no monster) "is generated.
Further, judging whether a scene element which does not meet the execution condition of any one of the second game behaviors exists in the current scene element according to the scene element which is associated with the second game behavior in the user operation reproduction function; and if the game behavior exists, executing the game behaviors except the game behaviors which do not meet the execution conditions in the user operation reproduction function according to the execution time sequence of each game behavior in the user operation reproduction function.
In a specific implementation, after the user operation reproduction function closest to the current game behavior is acquired, judging whether a scene element which does not meet the execution condition of the second game behavior in the user operation reproduction function exists in the current scene element in the game scene when the current game behavior occurs, if not, controlling the game activity in the abnormal period of the network according to the user operation reproduction function completely, and if so, executing the game behaviors except the game behaviors which do not meet the execution condition in the user operation reproduction function according to the execution time sequence of each game behavior in the user operation reproduction function. In this way, under the current scene element, the acquired user operation reproduction function does not have game actions which do not meet the execution conditions, and the control of game activities during network abnormality can be ensured.
In an example, when the network is abnormal, the current game behavior is "fishing", if the reproduction function is "fishing-grilled fish" according to the user operation matched with the "fishing", if the "bonfire" exists in the current scene element, the "fishing" and the "grilled fish" all meet the execution conditions, and the "fishing-grilled fish" is executed; if the current scene element does not have the 'bonfire', the 'grilled fish' does not meet the execution conditions, and only 'fishing' is executed.
In another example, when the network is abnormal, the user operation reproduction function matched with the current game behavior is 'large fish, small fish, big fish and small fish are fished', large fish is needed for fishing, small fish is needed for fishing, if the current scene element 'small fish' does not exist, the 'small fish' does not meet the execution condition, only 'large fish, big fish is fished, small fish is baked, and small fish is fried'.
S206: when the network with the user equipment is detected to be restored to be normal, stopping controlling the game activity according to the user operation reproduction function, restoring the game operation input by the user equipment through the network, and controlling the game activity according to the game operation.
The description of S206 may refer to the description of S103, and the same technical effects can be achieved, which will not be described in detail.
Based on the same application conception, the embodiment of the application also provides a control device of the cloud game corresponding to the control method of the cloud game, and because the principle of solving the problem of the device in the embodiment of the application is similar to that of the control method of the cloud game provided by the application, the implementation of the device can be referred to the implementation of the method, and the repetition is omitted.
Referring to fig. 3, one of functional block diagrams of a control device 300 for a cloud game according to an embodiment of the present application is shown; referring to fig. 4, a second functional block diagram of a control device 300 for a cloud game according to an embodiment of the present application is shown; referring to fig. 5, a functional block diagram of the second control module 320 shown in fig. 3 and 4 is shown.
As shown in fig. 3 and 4, the control device 300 of the cloud game includes:
a first control module 310, configured to receive a game operation input by a user device through a network, control a game activity according to the game operation, and feed back a game screen corresponding to the game activity to the user device through the network;
a second control module 320, configured to, when detecting a network anomaly with the user device, obtain a user operation recurrence function that matches a current game activity, and control a game activity during the network anomaly according to the user operation recurrence function, where the user operation recurrence function is generated according to a historical game operation input by the user device, and is used to simulate a game operation of the user device during the network anomaly;
The first control module 310 is further configured to stop controlling the game activity according to the user operation recurrence function when it is detected that the network with the user equipment is restored to be normal, resume receiving the game operation input by the user equipment through the network, and control the game activity according to the game operation.
In one possible implementation, as shown in fig. 3 and 4, if there is a virtual character in the game that is controlled according to the game operation input by the user device, the first control module 310 is configured to control the game activity according to the following steps:
and controlling the game behavior of the virtual character according to the game operation.
In one possible implementation manner, as shown in fig. 4, the control device 300 for a cloud game further includes:
an obtaining module 330, configured to determine a first game behavior executed by the virtual character in a game according to the game operation, and obtain the first game behavior;
a storage module 340, configured to record and store a second game behavior executed by the virtual character when the first game behavior meets a preset condition; the second game action is a game action performed by the virtual character determined according to the game operation after the first game action;
A generating module 350, configured to generate the user operation reproduction function based on the second game behavior.
In one possible implementation manner, as shown in fig. 4, the control device 300 for a cloud game further includes a first determining module 360; the first determining module 360 is configured to determine that the first game behavior meets the preset condition according to the following steps:
counting the execution times of the virtual character executing the first game behavior;
and when the execution times are equal to a first preset times, determining that the first game behavior meets the preset conditions.
In one possible implementation, the first game behavior includes a single game behavior and a combined game behavior.
In one possible implementation manner, as shown in fig. 4, the control device 300 for a cloud game further includes a second determining module 370; the second determining module 370 is configured to determine that the first game behavior meets the preset condition according to the following steps:
detecting whether a second game scene converted into the first game scene is a preset game scene or not after the virtual character executes the first game behavior in the first game scene;
if yes, determining that the first game behavior meets the preset condition.
In a possible implementation, as shown in fig. 4, the storage module 340 is configured to store the second game behavior according to the following steps:
acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing the second game behavior which is the same as the first preset game behavior.
In a possible implementation, as shown in fig. 4, the storage module 340 is further configured to store the second game behavior according to the following steps:
acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing a second game behavior matched with a second preset game behavior of the specific virtual object in the preset game scene.
In a possible implementation, as shown in fig. 4, the storage module 340 is configured to store the second game behavior according to the following steps:
acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing the second game behaviors with the execution times larger than or equal to a second preset times.
In one possible implementation, as shown in fig. 4, the generating module 350 is configured to generate the user operation recurrence function according to the following steps:
Generating the user operation reproduction function according to each game behavior in the second game behaviors and the execution time sequence of each game behavior.
In one possible implementation, as shown in fig. 4, the generating module 350 is configured to generate the user operation recurrence function according to the following steps:
acquiring a scene element associated with the second game action;
and generating the user operation reproduction function according to the second game behavior and the scene element.
In one possible implementation manner, as shown in fig. 5, the second control module 320 includes a first obtaining unit 322, where the first obtaining unit 322 is configured to:
and acquiring the user operation reproduction function matched with the current game behavior according to the current game behavior of the virtual character.
In a possible implementation manner, as shown in fig. 5, the second control module 320 includes a second obtaining unit 324, where the second obtaining unit 324 is configured to:
and acquiring the user operation reproduction function matched with the current game behavior according to the current game behavior of the virtual character and the current scene element associated with the current game behavior.
In one possible implementation, as shown in fig. 3 and 4, the second control module 320 is configured to control the game activity during the network anomaly according to the following steps:
judging whether scene elements which do not meet the execution condition of any one of the second game behaviors exist in the current scene elements according to scene elements associated with the second game behaviors in the user operation reproduction function;
and if the game behavior exists, executing the game behaviors except the game behaviors which do not meet the execution conditions in the user operation reproduction function according to the execution time sequence of each game behavior in the user operation reproduction function.
In the embodiment of the application, when the game server detects network abnormality with the user equipment, a user operation reproduction function matched with the current game activity is obtained, and the game activity during the network abnormality is controlled according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality. By adopting the scheme, the acquired user operation reproduction function can control the game activity in the network abnormal period so as to reduce the influence on the game activity in the network abnormal period.
Based on the same application concept, referring to fig. 6, a schematic structural diagram of an electronic device 600 according to an embodiment of the present application includes: a processor 610, a memory 620 and a bus 630, said memory 620 storing machine readable instructions executable by said processor 610, said processor 610 and said memory 620 communicating via said bus 630 when said electronic device 600 is running, said machine readable instructions being executed by said processor 610 to perform the steps of a method of controlling a cloud game as shown in fig. 1 and/or fig. 2.
In particular, the machine-readable instructions, when executed by the processor 610, may perform the following:
receiving game operation input by user equipment through a network, controlling game activities according to the game operation, and feeding back game pictures corresponding to the game activities to the user equipment through the network;
when detecting network abnormality with the user equipment, acquiring a user operation reproduction function matched with the current game activity, and controlling the game activity during the network abnormality according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality;
When the network with the user equipment is detected to be restored to be normal, stopping controlling the game activity according to the user operation reproduction function, restoring the game operation input by the user equipment through the network, and controlling the game activity according to the game operation.
In the embodiment of the application, when the game server detects network abnormality with the user equipment, a user operation reproduction function matched with the current game activity is obtained, and the game activity during the network abnormality is controlled according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality. By adopting the scheme, the acquired user operation reproduction function can control the game activity in the network abnormal period so as to reduce the influence on the game activity in the network abnormal period.
Based on the same application concept, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the control method of the cloud game shown in fig. 1 and/or fig. 2 are executed.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, and when the computer program on the storage medium is executed, the control method of the cloud game can be executed, and the acquired user operation reproduction function can control the game activity during the network anomaly so as to reduce the influence on the game activity during the network anomaly.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (17)

1. The control method of the cloud game is applied to a game server and is characterized by comprising the following steps:
receiving game operation input by user equipment through a network, controlling game activities according to the game operation, and feeding back game pictures corresponding to the game activities to the user equipment through the network;
when detecting network abnormality with the user equipment, acquiring a user operation reproduction function matched with the current game activity, and controlling the game activity during the network abnormality according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality; the history game operations include operations of controlling game behavior of virtual characters in a game or operations of interacting with game elements in the game; when the history game operation includes an operation of controlling a game behavior of a virtual character in a game, the user operation reproduction function is generated based on a second game behavior meeting a requirement after occurrence of the recorded first game behavior;
When the network with the user equipment is detected to be restored to be normal, stopping controlling the game activity according to the user operation reproduction function, restoring the game operation input by the user equipment through the network, and controlling the game activity according to the game operation.
2. The control method according to claim 1, wherein if there is a virtual character in a game that is controlled according to the game operation input by the user device, the controlling a game activity according to the game operation includes:
and controlling the game behavior of the virtual character according to the game operation.
3. The control method according to claim 2, characterized in that before detecting a network anomaly with the user equipment, the control method further comprises:
determining a first game behavior executed by the virtual character in a game according to the game operation, and acquiring the first game behavior;
when the first game behavior meets the preset condition, recording and storing a second game behavior executed by the virtual character; the second game action is a game action performed by the virtual character determined according to the game operation after the first game action;
The user operation reproduction function is generated based on the second game behavior.
4. A control method according to claim 3, characterized in that it is determined that the first game behavior satisfies the preset condition according to the steps of:
counting the execution times of the virtual character executing the first game behavior;
and when the execution times are equal to a first preset times, determining that the first game behavior meets the preset conditions.
5. The control method of claim 4, wherein the first game play comprises a single game play and a combined game play.
6. A control method according to claim 3, characterized in that it is determined that the first game behavior satisfies the preset condition according to the steps of:
detecting whether a second game scene converted into the first game scene is a preset game scene or not after the virtual character executes the first game behavior in the first game scene;
if yes, determining that the first game behavior meets the preset condition.
7. The control method according to claim 6, wherein the recording and storing the second game behavior performed by the virtual character includes:
Acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing the second game behavior which is the same as the first preset game behavior.
8. The control method according to claim 6, wherein the recording and storing the second game behavior performed by the virtual character includes:
acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing a second game behavior matched with a second preset game behavior of the specific virtual object in the preset game scene.
9. The control method according to claim 6, wherein the recording and storing the second game behavior performed by the virtual character includes:
acquiring the second game behavior executed by the virtual character in the preset game scene;
and recording and storing the second game behaviors with the execution times larger than or equal to a second preset times.
10. A control method according to claim 3, wherein the generating the user operation reproduction function based on the second game behavior includes:
generating the user operation reproduction function according to each game behavior in the second game behaviors and the execution time sequence of each game behavior.
11. A control method according to claim 3, wherein the generating the user operation reproduction function based on the second game behavior includes:
acquiring a scene element associated with the second game action;
and generating the user operation reproduction function according to the second game behavior and the scene element.
12. The control method according to claim 10, wherein the acquiring the user operation reproduction function matched with the current game activity includes:
and acquiring the user operation reproduction function matched with the current game behavior according to the current game behavior of the virtual character.
13. The control method according to claim 11, wherein the acquiring the user operation reproduction function matched with the current game activity includes:
and acquiring the user operation reproduction function matched with the current game behavior according to the current game behavior of the virtual character and the current scene element associated with the current game behavior.
14. The control method according to claim 11, wherein the controlling the game activity during the network anomaly according to the user operation reproduction function includes:
Judging whether scene elements which do not meet the execution condition of any one of the second game behaviors exist in the current scene elements according to scene elements associated with the second game behaviors in the user operation reproduction function;
and if so, executing the game behaviors except the game behaviors which do not meet the execution conditions in the user operation reproduction function according to the execution time sequence of each game behavior in the user operation reproduction function.
15. A control device for a cloud game, the control device comprising:
the first control module is used for receiving game operations input by the user equipment through a network, controlling game activities according to the game operations, and feeding back game pictures corresponding to the game activities to the user equipment through the network;
the second control module is used for acquiring a user operation reproduction function matched with the current game activity when the network abnormality between the user equipment is detected, and controlling the game activity during the network abnormality according to the user operation reproduction function, wherein the user operation reproduction function is generated according to the historical game operation input by the user equipment and is used for simulating the game operation of the user equipment during the network abnormality; the history game operations include operations of controlling game behavior of virtual characters in a game or operations of interacting with game elements in the game; when the history game operation includes an operation of controlling a game behavior of a virtual character in a game, the user operation reproduction function is generated based on a second game behavior meeting a requirement after occurrence of the recorded first game behavior;
The first control module is further configured to stop controlling a game activity according to the user operation recurrence function when it is detected that the network with the user equipment is restored to be normal, resume the game operation input by the user equipment through the network, and control the game activity according to the game operation.
16. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the method of controlling a cloud game according to any of claims 1 to 14.
17. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the control method of a cloud game according to any of claims 1 to 14.
CN201910840786.0A 2019-09-06 2019-09-06 Cloud game control method and device, electronic equipment and readable storage medium Active CN110507989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910840786.0A CN110507989B (en) 2019-09-06 2019-09-06 Cloud game control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910840786.0A CN110507989B (en) 2019-09-06 2019-09-06 Cloud game control method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110507989A CN110507989A (en) 2019-11-29
CN110507989B true CN110507989B (en) 2023-08-22

Family

ID=68630044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910840786.0A Active CN110507989B (en) 2019-09-06 2019-09-06 Cloud game control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110507989B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111803940B (en) * 2020-01-14 2022-05-31 厦门雅基软件有限公司 Game processing method and device, electronic equipment and computer-readable storage medium
CN111569424B (en) * 2020-05-14 2023-04-28 北京代码乾坤科技有限公司 Physical settlement method and device in game scene
CN111589107B (en) * 2020-05-14 2023-04-28 北京代码乾坤科技有限公司 Behavior prediction method and device of virtual model
CN111803926B (en) * 2020-06-05 2023-03-24 厦门雅基软件有限公司 Matching method and device of control object in cloud application and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346514A (en) * 2013-08-09 2015-02-11 聚游互动(北京)科技发展有限公司 Method and system capable of supporting off-line running of online game application
US20160184712A1 (en) * 2014-12-31 2016-06-30 Sony Computer Entertainment America Llc Game State Save, Transfer and Resume for Cloud Gaming
CN108717372A (en) * 2018-05-24 2018-10-30 网易(杭州)网络有限公司 Virtual object control method and device in a kind of scene of game
CN108905201A (en) * 2018-07-13 2018-11-30 上海斐讯数据通信技术有限公司 A kind of game algorithm system and method for simulated operation
CN109107167A (en) * 2018-06-22 2019-01-01 网易(杭州)网络有限公司 Interaction control method, electronic equipment and storage medium in game

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346514A (en) * 2013-08-09 2015-02-11 聚游互动(北京)科技发展有限公司 Method and system capable of supporting off-line running of online game application
US20160184712A1 (en) * 2014-12-31 2016-06-30 Sony Computer Entertainment America Llc Game State Save, Transfer and Resume for Cloud Gaming
CN108717372A (en) * 2018-05-24 2018-10-30 网易(杭州)网络有限公司 Virtual object control method and device in a kind of scene of game
CN109107167A (en) * 2018-06-22 2019-01-01 网易(杭州)网络有限公司 Interaction control method, electronic equipment and storage medium in game
CN108905201A (en) * 2018-07-13 2018-11-30 上海斐讯数据通信技术有限公司 A kind of game algorithm system and method for simulated operation

Also Published As

Publication number Publication date
CN110507989A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN110507989B (en) Cloud game control method and device, electronic equipment and readable storage medium
US20210220742A1 (en) Attribute value restoration method and apparatus, storage medium, and electronic device
CN111298449B (en) Control method and device in game, computer equipment and storage medium
EP1704903B1 (en) Message output device, message control method, program, and information recording medium
US11395971B2 (en) Auto harassment monitoring system
CN114225402A (en) Method and device for editing virtual object video in game
EP3513850A2 (en) User analysis system and method
CN113101669B (en) Refreshing method, refreshing device, equipment and medium for virtual object in game
US20210402301A1 (en) Server-Based Mechanics Help Determination from Aggregated User Data
JP2022000180A (en) Game processing program, game processing method, and game processing device
CN113941149A (en) Game behavior data processing method, nonvolatile storage medium and electronic device
CN115705385A (en) Smart recommendations for gaming session adjustments
CN114288639A (en) Picture display method, providing method, device, equipment and storage medium
CN111346375B (en) Method, device, equipment and storage medium for automatically recording group war events
US20240037276A1 (en) Methods and systems for generating multimedia content based on processed data with variable privacy concerns
US8914136B2 (en) Game control program and game device
CN112807693A (en) Game control method and device, electronic equipment and storage medium
CN112221148B (en) Game skill release state synchronization method, server and readable storage medium
CN113633968A (en) Information display method and device in game, electronic equipment and storage medium
CN109857567B (en) AI state information synchronization method and device
CN113509727A (en) Method, device, electronic equipment and medium for displaying props in game
JP6560376B2 (en) GAME PROGRAM AND GAME DEVICE
US20230149814A1 (en) Information processing apparatus, recording medium, and usage object creating method
CN113786618B (en) Virtual object control method, device, equipment and medium
CN110548293B (en) Information verification method and related device

Legal Events

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