CN116351072A - Robot script recording and playing method and device in online game - Google Patents

Robot script recording and playing method and device in online game Download PDF

Info

Publication number
CN116351072A
CN116351072A CN202310363895.4A CN202310363895A CN116351072A CN 116351072 A CN116351072 A CN 116351072A CN 202310363895 A CN202310363895 A CN 202310363895A CN 116351072 A CN116351072 A CN 116351072A
Authority
CN
China
Prior art keywords
robot
behavior data
behavior
playing
behaviors
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.)
Pending
Application number
CN202310363895.4A
Other languages
Chinese (zh)
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.)
Beijing Karma Technology Co ltd
Original Assignee
Beijing Karma Technology 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 Beijing Karma Technology Co ltd filed Critical Beijing Karma Technology Co ltd
Priority to CN202310363895.4A priority Critical patent/CN116351072A/en
Publication of CN116351072A publication Critical patent/CN116351072A/en
Pending legal-status Critical Current

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/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • 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/85Providing additional services to players
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a method and a device for recording and playing a robot script in a network game, which relate to the technical field of network games and are used for acquiring recorded real player behaviors; acquiring behavior data from the actual player behavior; cleaning behavior data; inputting the cleaned behavior data into a preset behavior model to generate robot behaviors; copying robot behaviors through a robot group; the play robot is for data traffic. The robot script recording and playing method and device in the online game have the advantages of being powerful in basic model, high in usability, high in expansibility, capable of effectively reducing maintenance cost of the pressure test script and only required to provide necessary labor cost.

Description

Robot script recording and playing method and device in online game
Technical Field
The application relates to the technical field of online games, in particular to a method and a device for recording and playing a robot script in an online game.
Background
Because the large-scale network game is more in number of participants and easily causes the overload of the server, the server of the large-scale network game needs to be subjected to pressure test before being online. If the stress test of the corresponding function is not performed, the game experience of the player is inevitably affected, and even a logic error problem is caused, so that properties of the player and a game developer are seriously jeopardized. The robot script recording is very important for game developers, and meanwhile, due to the high complexity of the game, how to enable the pressure test function to be widely covered and low in maintenance cost becomes a problem to be solved by the technicians in the field.
Currently, many game developers in the industry write game stress testing tools by themselves to implement a set of code logic separately, however, most game items have many limitations such as: 1. the universality is not strong, only one game can be served, and multiplexing is difficult; 2. inconvenient operation, even incapability of operation and control in operation, incapability of adjusting strategies in real time and the like; and the pressure test needs to integrate a large amount of test resources, so that a common test tool cannot achieve the problem, and only manual arrangement and intervention are needed, thereby being time-consuming and labor-consuming.
Disclosure of Invention
Therefore, the application provides a method and a device for recording and playing a robot script in a network game, so as to solve the problems of single game pressure testing method and high cost in the prior art.
In order to achieve the above object, the present application provides the following technical solutions:
in a first aspect, a method for recording and playing a robot script in a network game includes:
acquiring recorded real player behaviors;
acquiring behavior data from the actual player behavior;
cleaning the behavior data;
inputting the cleaned behavior data into a preset behavior model to generate robot behaviors;
copying the robot behaviors through a robot group;
and playing the robot behavior data flow.
Preferably, the actual player behavior includes player mission, building upgrades and combat campaigns.
Preferably, the robot behavior is similar to a real player behavior.
Preferably, the step of inputting the behavior data after cleaning into a preset behavior model to generate robot behavior further includes:
packaging the robot behavior data, and sending the packaged robot behavior data to a robot group; and the robot group receives the packaged robot behavior data and then analyzes and copies the robot behavior data.
In a second aspect, a robot script recording and playing device in a network game includes:
the first acquisition module is used for acquiring recorded real player behaviors;
the second acquisition module is used for acquiring behavior data from the actual player behaviors;
the data cleaning module is used for cleaning the behavior data;
the robot generating module is used for inputting the cleaned behavior data into a preset behavior model to generate robot behaviors;
the robot behavior copying module is used for copying the robot behaviors through a robot group;
and the playing module is used for playing the robot behavior data flow.
Preferably, the method further comprises:
the packaging module is used for packaging the robot behavior data and sending the packaged robot behavior data to a robot group; and the robot group receives the packaged robot behavior data and then analyzes and copies the robot behavior data.
In a third aspect, a computer device includes a memory and a processor, where the memory stores a computer program, and the processor implements steps of a method for recording and playing a robot script in a network game when the computer program is executed.
In a fourth aspect, a computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of a method for recording and playing a robot script in a network game.
Compared with the prior art, the application has the following beneficial effects:
the application provides a method and a device for recording and playing a robot script in a network game, wherein recorded real player behaviors are obtained; acquiring behavior data from the actual player behavior; cleaning behavior data; inputting the cleaned behavior data into a preset behavior model to generate robot behaviors; copying robot behaviors through a robot group; the play robot is for data traffic. The method and the device for recording and playing the robot script in the online game can effectively reduce the maintenance cost of the pressure test script and only provide necessary labor cost.
Drawings
For a more visual illustration of the prior art and the present application, several exemplary drawings are presented below. It should be understood that the specific shape and configuration shown in the drawings should not be considered in general as limiting upon the practice of the present application; for example, based on the technical concepts and exemplary drawings disclosed herein, those skilled in the art have the ability to easily make conventional adjustments or further optimizations for the add/subtract/assign division, specific shapes, positional relationships, connection modes, dimensional scaling relationships, etc. of certain units (components).
Fig. 1 is a sequence flow chart of a method for recording and playing a robot script in a network game according to a first embodiment of the present application;
fig. 2 is a flowchart of a method for recording and playing a robot script in a network game according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The present application is further described in detail below with reference to the attached drawings.
In the description of the present application: unless otherwise indicated, the meaning of "a plurality" is two or more. The terms "first," "second," "third," and the like in this application are intended to distinguish between the referenced objects without a special meaning in terms of technical connotation (e.g., should not be construed as emphasis on degree or order of importance, etc.). The expressions "comprising", "including", "having", etc. also mean "not limited to" (certain units, components, materials, steps, etc.).
The terms such as "upper", "lower", "left", "right", "middle", and the like, as referred to in this application, are generally used for convenience in visual understanding with reference to the drawings, and are not intended to be an absolute limitation of the positional relationship in actual products. Such changes in relative positional relationship are considered to be within the scope of the present description without departing from the technical concepts disclosed herein.
Example 1
Referring to fig. 1 to 3, the present embodiment provides a method for recording and playing a robot script in a network game, including:
s1: acquiring recorded real player behaviors;
s2: acquiring behavior data from the actual player behavior;
specifically, the actual player behavior includes the player's activities such as tasking, building upgrades, and marching combat
S3: cleaning behavior data;
s4: inputting the cleaned behavior data into a preset behavior model to generate robot behaviors;
specifically, before the cleaned behavior data is input into a preset behavior model to generate the robot behavior, the behavior model needs to be initialized.
In this step, the robot behavior generated is similar to that of a real player. The behavior data of the player is used for simulating the behavior of the robot, the deployment and the use are simple, and the test program can be managed in real time through the console program, so that the method has high usability.
The behavior model is adopted as the bottom layer for implementation, so that the computing resources can be fully and efficiently utilized, and the fault tolerance is high.
S5: copying robot behaviors through a robot group;
the clustered robot group deployment can meet the requirement of larger-scale testing.
S6: the play robot is for data traffic.
The method for recording and playing the robot script in the online game provided in this embodiment further includes, after step S4: and packaging the robot data into flow data, sending the flow data to a robot group server through network communication, and analyzing and copying the flow data after the robot group server receives the flow data, so as to control the behaviors of the robot group.
The robot script recording and playing method in the online game provided by the embodiment has a powerful basic model, and can split testing requirements into multi-layer structures such as modules, strategies, behaviors and the like according to game service characteristics and a high-level abstract testing model, and different components are combined at will; the system has high expansibility, inherits various network components, basic strategies and behavior units, can be assembled into required test cases through the ymal configuration script, can be used for expanding the interfaces more by a developer, can effectively reduce the maintenance cost of the pressure test script, and only needs to provide necessary labor cost.
Example two
The embodiment provides a robot script recording and playing device in a network game, which comprises:
the first acquisition module is used for acquiring recorded real player behaviors;
the second acquisition module is used for acquiring behavior data from the actual player behaviors;
the data cleaning module is used for cleaning the behavior data;
the robot generating module is used for inputting the cleaned behavior data into a preset behavior model to generate robot behaviors;
the robot behavior copying module is used for copying the robot behaviors through a robot group;
and the playing module is used for playing the robot behavior data flow.
The robot script recording and playing device in the online game provided by the embodiment further comprises:
the packaging module is used for packaging the robot behavior data and sending the packaged robot behavior data to a robot group; and the robot group receives the packaged robot behavior data and then analyzes and copies the robot behavior data.
The specific limitation of the apparatus for recording and playing the robot script in the network game can be referred to above for the limitation of the method for recording and playing the robot script in the network game, which is not repeated herein.
Example III
The embodiment provides a computer device, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of a robot script recording and playing method in a network game when executing the computer program.
Example IV
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method for recording and playing a robot script in a network game.
Any combination of the technical features of the above embodiments may be performed (as long as there is no contradiction between the combination of the technical features), and for brevity of description, all of the possible combinations of the technical features of the above embodiments are not described; these examples, which are not explicitly written, should also be considered as being within the scope of the present description.
The foregoing has outlined and detailed description of the present application in terms of the general description and embodiments. It should be appreciated that numerous conventional modifications and further innovations may be made to these specific embodiments, based on the technical concepts of the present application; but such conventional modifications and further innovations may be made without departing from the technical spirit of the present application, and such conventional modifications and further innovations are also intended to fall within the scope of the claims of the present application.

Claims (8)

1. A method for recording and playing a robot script in a network game is characterized by comprising the following steps:
acquiring recorded real player behaviors;
acquiring behavior data from the actual player behavior;
cleaning the behavior data;
inputting the cleaned behavior data into a preset behavior model to generate robot behaviors;
copying the robot behaviors through a robot group;
and playing the robot behavior data flow.
2. The method of claim 1, wherein the actual player behavior includes a player tasking, upgrading a building, and combat.
3. The method for recording and playing a robot script in a network game according to claim 1, wherein the robot behavior is similar to a real player behavior.
4. The method for recording and playing a robot script in a network game according to claim 1, wherein the step of inputting the behavior data after cleaning into a preset behavior model to generate a robot behavior further comprises:
packaging the robot behavior data, and sending the packaged robot behavior data to a robot group; and the robot group receives the packaged robot behavior data and then analyzes and copies the robot behavior data.
5. The robot script recording and playing device in the network game is characterized by comprising:
the first acquisition module is used for acquiring recorded real player behaviors;
the second acquisition module is used for acquiring behavior data from the actual player behaviors;
the data cleaning module is used for cleaning the behavior data;
the robot generating module is used for inputting the cleaned behavior data into a preset behavior model to generate robot behaviors;
the robot behavior copying module is used for copying the robot behaviors through a robot group;
and the playing module is used for playing the robot behavior data flow.
6. The in-network-game robot script recording and playing apparatus of claim 5, further comprising:
the packaging module is used for packaging the robot behavior data and sending the packaged robot behavior data to a robot group; and the robot group receives the packaged robot behavior data and then analyzes and copies the robot behavior data.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN202310363895.4A 2023-04-06 2023-04-06 Robot script recording and playing method and device in online game Pending CN116351072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310363895.4A CN116351072A (en) 2023-04-06 2023-04-06 Robot script recording and playing method and device in online game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310363895.4A CN116351072A (en) 2023-04-06 2023-04-06 Robot script recording and playing method and device in online game

Publications (1)

Publication Number Publication Date
CN116351072A true CN116351072A (en) 2023-06-30

Family

ID=86921367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310363895.4A Pending CN116351072A (en) 2023-04-06 2023-04-06 Robot script recording and playing method and device in online game

Country Status (1)

Country Link
CN (1) CN116351072A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700481A (en) * 2016-03-23 2016-06-22 北京光年无限科技有限公司 Intelligent robot motion generation method and system
CN108553903A (en) * 2018-04-19 2018-09-21 网易(杭州)网络有限公司 Control robot player's method and device
CN109200583A (en) * 2018-08-02 2019-01-15 苏州蜗牛数字科技股份有限公司 Control method, system and the storage medium of game NPC behavior
CN110052031A (en) * 2019-04-11 2019-07-26 网易(杭州)网络有限公司 The imitation method, apparatus and readable storage medium storing program for executing of player
CN111760276A (en) * 2020-07-16 2020-10-13 腾讯科技(深圳)有限公司 Game behavior control method, device, terminal, server and storage medium
CN112717408A (en) * 2021-01-25 2021-04-30 腾讯科技(深圳)有限公司 Action determination method, device, equipment and computer readable storage medium
CN113407424A (en) * 2020-03-17 2021-09-17 亿阳安全技术有限公司 Automatic analysis method and analysis system for user terminal application program
CN114066506A (en) * 2021-11-01 2022-02-18 山东顺国电子科技有限公司 AI analysis algorithm for network behavior
KR20220099425A (en) * 2021-01-06 2022-07-13 (주)지엔에이컴퍼니 System for forecasting Game Plays of Users based on Artificial Intelligence Algorithm

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700481A (en) * 2016-03-23 2016-06-22 北京光年无限科技有限公司 Intelligent robot motion generation method and system
CN108553903A (en) * 2018-04-19 2018-09-21 网易(杭州)网络有限公司 Control robot player's method and device
CN109200583A (en) * 2018-08-02 2019-01-15 苏州蜗牛数字科技股份有限公司 Control method, system and the storage medium of game NPC behavior
CN110052031A (en) * 2019-04-11 2019-07-26 网易(杭州)网络有限公司 The imitation method, apparatus and readable storage medium storing program for executing of player
CN113407424A (en) * 2020-03-17 2021-09-17 亿阳安全技术有限公司 Automatic analysis method and analysis system for user terminal application program
CN111760276A (en) * 2020-07-16 2020-10-13 腾讯科技(深圳)有限公司 Game behavior control method, device, terminal, server and storage medium
KR20220099425A (en) * 2021-01-06 2022-07-13 (주)지엔에이컴퍼니 System for forecasting Game Plays of Users based on Artificial Intelligence Algorithm
CN112717408A (en) * 2021-01-25 2021-04-30 腾讯科技(深圳)有限公司 Action determination method, device, equipment and computer readable storage medium
CN114066506A (en) * 2021-11-01 2022-02-18 山东顺国电子科技有限公司 AI analysis algorithm for network behavior

Similar Documents

Publication Publication Date Title
CN102722381B (en) The technology of optimization and upgrading task
CN103092751B (en) Web application performance test system based on customer behavior model in cloud environment
CN102834806B (en) System architecture management equipment, system architecture management method and program
CN111881022A (en) Method, device and equipment for generating test case based on test scene
CN105335281A (en) Method and device for automatic mock of external dependency
CN106897216A (en) The method and apparatus of test software
CN107590075A (en) A kind of method for testing software and device
CN110941934B (en) FPGA prototype verification development board segmentation simulation system, method, medium and terminal
US8589133B1 (en) Dynamic simulation of a system of interdependent systems
CN109522228A (en) Interface automatic test data configuration method, apparatus, platform and storage medium
US11409928B2 (en) Configurable digital twin
CN111143223A (en) Server pressure testing method and device
CN113632114A (en) Machine learning model full lifecycle management framework
CN104598293B (en) A kind of method and apparatus of online snapshot
CN105930945A (en) Business processing method and apparatus
CN105632270A (en) Data processing method and data processing device based on exam
CN110750445A (en) Method, system and equipment for testing high-availability function of YARN component
CN101639806A (en) Topology adaptation method and device for automatization test
US20220021696A1 (en) Minimizing Production Disruption Through A Scan Rule Engine
CN116351072A (en) Robot script recording and playing method and device in online game
CN109344059B (en) Server pressure testing method and device
CN110752964B (en) Network equipment testing method and device
US10964132B2 (en) Detecting fault states of an aircraft
US11909754B2 (en) Security assessment system
CN115269387A (en) Automatic interface testing method and 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