A method, device and equipment for detecting game cheats

By analyzing the game operation interface data on the smart terminal device, we can determine whether the sliding trajectory complies with the preset distribution, and solve the problem of how to quickly detect game plug-ins, and realize the effective identification and detection of game plug-ins.

CN114570029BActive Publication Date: 2025-06-27SUNINFO INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210238034.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-10
Publication Date
2025-06-27
Estimated Expiration
2042-03-10

AI Technical Summary

Technical Problem

The existing technology is difficult to quickly detect whether players have enabled game plug-ins when playing games on smart terminal devices, resulting in the inability to effectively maintain the fairness of the game.

Method used

By obtaining action events in the game operation interface data, determine whether the action is a sliding operation, and record sliding track information. If the sliding track information satisfies the preset distribution (such as a linear distribution), it is determined that the game is operated by the game plug-in.

Benefits of technology

It realizes fast, simple and effective detection of game plug-ins, improves the accuracy of detection and the ability to avoid misjudgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114570029B_ABST
    Figure CN114570029B_ABST
Patent Text Reader

Abstract

The present application provides a technical solution for detecting game cheats. The method includes: obtaining an action event in the game operation interface data; determining whether the action corresponding to the action event is a sliding operation. If so, recording the sliding trajectory information corresponding to the sliding operation; determining whether the sliding trajectory information meets a preset distribution. If it meets, determining that the game is operated by a game cheat. Through this method, it is possible to determine whether the sliding operation is completed by a real person or a game cheat by judging the sliding trajectory information in the game, so as to simply, quickly and effectively complete the detection and identification of game cheats.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a technology for detecting game cheats. Background Art

[0002] With the continuous development of economy and science and technology, mobile Internet and smart terminal devices have become popular, and the functions of smart terminal devices are becoming more and more powerful. Smart terminal games have gradually become a kind of entertainment activity frequently used in people's daily lives, and the smart terminal game market has also become a highly competitive market. Game plug-ins have also appeared in the market. Smart terminal game players can simulate real people playing games by activating game plug-ins and quickly obtain the expected results in an abnormal way. The use of game plug-ins is very unfair to normal game players and undermines the fairness and justice of smart terminal games.

[0003] When playing smart terminal games, the operations of smart terminal game players mainly include: moving, clicking, pressing buttons, and data input. Smart terminal game plug-ins are usually scripted software. When the game plug-ins are enabled while playing the game, real people can be simulated to operate smart terminal games. For example, when running smart terminal games on smart terminal devices based on the Android system, after enabling the game plug-ins, various ADB (Android DebugBridge) commands can be executed in the background of the smart terminal to simulate real people to perform the above operations. Since the smart terminal game itself does not destroy the operating rules, status information, etc. of the smart terminal game itself, it is difficult to detect smart terminal game plug-ins. Summary of the invention

[0004] The purpose of this application is to provide a technical solution for game plug-in detection, so as to solve the technical problem of how to quickly detect whether a player has enabled a game plug-in while playing a smart terminal game.

[0005] According to one aspect of the present application, a game cheat detection method is provided, characterized in that it is applied to a smart terminal device, and the method includes:

[0006] Get action events in the game operation interface data;

[0007] Determine whether the action corresponding to the action event is a sliding operation, and if so, record the sliding track information corresponding to the sliding operation;

[0008] It is determined whether the sliding trajectory information satisfies a preset distribution. If so, it is determined that the game is operated by a game plug-in.

[0009] Optionally, the sliding track information at least includes:

[0010] The positions of the starting point, ending point corresponding to the sliding operation, and other points on at least one of the sliding trajectories.

[0011] Optionally, wherein the preset distribution includes:

[0012] Linear distribution.

[0013] According to another aspect of the present application, there is provided a method for detecting game cheats, characterized in that it is applied to an intelligent terminal device, and the method includes:

[0014] Obtain action events in the game operation interface data;

[0015] Determine whether the action corresponding to the action event is a sliding operation. If so, record the sliding trajectory information corresponding to the sliding operation;

[0016] Determine whether the sliding trajectory information meets the preset distribution. If it meets, mark the action event;

[0017] Repeat the above steps. When the number of marked action events meets the preset threshold, it is determined that the game is operated by game cheats.

[0018] According to another aspect of the present application, there is provided a game cheat detection device, characterized in that the device includes:

[0019] The first module is used to obtain action events in the game operation interface data;

[0020] The second module is used to determine whether the action corresponding to the action event is a sliding operation. If so, record the sliding trajectory information corresponding to the sliding operation;

[0021] The third module is used to determine whether the sliding trajectory information meets the preset distribution. If it meets, it is determined that the game is operated by game cheats.

[0022] According to still another aspect of the present application, there is provided a game cheat detection device, characterized in that the device includes:

[0023] The first module is used to obtain action events in the game operation interface data;

[0024] The second module is used to determine whether the action corresponding to the action event is a sliding operation. If so, record the sliding trajectory information corresponding to the sliding operation;

[0025] The third module is used to determine whether the sliding trajectory information meets the preset distribution. If it meets, mark the action event. When the number of marked action events meets the preset threshold, it is determined that the game is operated by game cheats.

[0026] Compared with the prior art, the present application provides a technical solution for game cheating detection, which is applied to intelligent terminal devices. The method includes:

[0027] Obtain the action events in the game operation interface data; determine whether the action corresponding to the action event is a sliding operation. If so, record the sliding trajectory information corresponding to the sliding operation; determine whether the sliding trajectory information meets a preset distribution. If it meets, determine that the game is operated by a game cheat. Further, in the above steps, if it meets, mark the action event, and repeat the above steps. When the number of marked action events meets a preset threshold, determine that the game is operated by a game cheat.

[0028] The technical effects that can be brought by the technical solution provided by the present application:

[0029] Since it is unlikely that the trajectory of a real person's sliding operation during the game perfectly conforms to the preset distribution, it is possible to determine whether the sliding operation is completed by a real person or a game cheat by judging the trajectory of the sliding operation, so that the detection and identification of game cheats can be simply, quickly and effectively completed. Further, it can also be determined based on the judgment of multiple similar action events to improve the accuracy and avoid misjudgment. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:

[0031] Figure 1 Show a flowchart of a method for game cheat detection according to one aspect of the present application;

[0032] Figure 2 Show a flowchart of a method for game cheat detection according to another aspect of the present application;

[0033] Figure 3 Show a schematic diagram of a device for game cheat detection according to another aspect of the present application;

[0034] Figure 4 Show a schematic diagram of a device for game cheat detection according to still another aspect of the present application;

[0035] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0036] The present invention will be further described in detail below with reference to the drawings.

[0037] In a typical configuration of the present application, each module of the device, the trusted party, and the executor of the method all include one or more processors (CPUs), an input / output interface, a network interface, and a memory.

[0038] The memory may include non-permanent memory in the computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0039] The computer-readable medium includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of the computer storage medium include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory, or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD), or other optical storage, magnetic cassette tapes, magnetic disk storage, or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. As defined herein, the computer-readable medium does not include transitory media, such as modulated data signals and carrier waves.

[0040] A method and device for detecting game cheats provided in the embodiments of the present application are applied to intelligent terminal devices, especially intelligent terminal devices based on the Android system.

[0041] The method embodiment of the present application is executed by device 100, which is an intelligent terminal device with corresponding software and hardware environments and installed with application programs including games. Among them, the intelligent terminal device includes smartphones, tablets, and laptops using the Android system. Here, only for example, other existing or future possible intelligent terminal devices applicable to the present application should also be included within the protection scope of the present application and are included herein by reference.

[0042] Running a game on an intelligent terminal device using the Android system, it is difficult to distinguish whether operations such as clicks, key presses, and inputs are executed by enabling game cheats or by real players. Sliding operations usually have a sliding trajectory. Since the finger sliding during real player operations has a certain arc or curvature and is unlikely to conform to a certain standard distribution, while a game cheat is essentially a written ADB script that enables the game cheat to simulate sliding operations when running the game. In the ADB script, the command parameters for completing the sliding only include the coordinate information of the starting point and the ending point. Therefore, if a game cheat is enabled to complete the sliding operation, its sliding trajectory should conform to a certain standard distribution. For example, the sliding trajectory of the game cheat simulating the sliding operation conforms to a straight-line distribution, that is, the sliding trajectory from the starting point to the ending point is on a straight line, or a broken line composed of multiple line segments. Based on the above characteristics of the game cheat, the present application provides a technical solution for detecting game cheats. For an intelligent terminal device using the Android system, when running a game, the method provided by the present application is adopted to use the hook technology to obtain the relevant parameters of the action event of the sliding operation in the game interface data for judgment, so as to detect and identify whether a game cheat is used in the running game.

[0043] To further elaborate on the technical means and achieved effects adopted by the present application, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings and preferred embodiments.

[0044] Figure 1 A method flow chart for detecting game cheats according to one aspect of the present application is shown. Among them, the method of one embodiment includes:

[0045] S101 Obtain the action event in the game operation interface data;

[0046] S102 Determine whether the action corresponding to the action event is a sliding operation. If so, record the sliding trajectory information corresponding to the sliding operation;

[0047] S103 Determine whether the sliding trajectory information meets the preset distribution. If it meets, determine that the game is operated by a game cheat.

[0048] In this method embodiment, in step S101, the action event in the game operation interface data is obtained.

[0049] Among them, during the running of a game on a smart terminal device using the Android system, the device 100 can obtain data related to action events in the game operation interface data through the hook technology. Among them, the game operation interface data is data related to the triggering operation of game operation controls, including but not limited to: data related to action events such as clicking, inputting, pressing keys, and swiping. For example, the Android system function dispatchTouchEvent(MotionEvent me) can be hooked to obtain the action events of game players.

[0050] Continuing in this method embodiment, in step S102, it is determined whether the action corresponding to the obtained action event is a swiping operation. If so, the swiping trajectory information corresponding to the swiping operation is recorded.

[0051] Among them, it is determined whether the obtained action event is a swiping operation. If so, the coordinate information of relevant trajectory points of the swiping operation is collected and recorded.

[0052] Among them, in an optional embodiment, the relevant code written based on the Java language is as follows:

[0053]

[0054]

[0055] Continuing in this method embodiment, in step S103, it is determined whether the recorded swiping trajectory information meets a preset distribution. If it meets, it is determined that the game is operated by a game cheat.

[0056] This method embodiment can quickly implement the detection of game cheats, which is simple and practical.

[0057] In an optional embodiment, the swiping trajectory information includes:

[0058] The position information of the starting point, the ending point, and at least one other trajectory point corresponding to the swiping operation, and the ending point position information.

[0059] In an optional embodiment, the preset distribution includes:

[0060] Linear distribution.

[0061] Among them, according to the position information of the starting point and the ending point corresponding to the swiping operation, a straight line can be uniquely determined. Assuming that the starting point coordinates corresponding to the swiping operation are (X1, Y1), and the corresponding ending point coordinates are (X2, Y2), then a straight line y = ax + b can be uniquely determined, such that both the starting point and the ending point are on this straight line, where,

[0062] a = (Y1 - Y2) / (X1 - X2)

[0063] b = (X1Y2 - X2Y1) / (X1 - X2)

[0064] If the coordinates (X3, Y3) of another trajectory point on the sliding trajectory satisfy Y3 = aX3 + b, it can be considered that the points on the sliding trajectory are all on a straight line, and it can be determined that the sliding operation is completed by a game cheat.

[0065] Among them, all coordinate points on the sliding trajectory can be collected through hook. Suppose a sliding operation slides from point a to point b, with a total of 200 coordinates, then 200 trajectory point coordinates on the sliding trajectory will be collected. The more the number of other trajectory points selected for judgment and verification on the sliding trajectory, the higher the detection accuracy, but the greater the data calculation amount. In a suitable alternative embodiment, the number of other trajectory points on the sliding trajectory can be selected to be no more than 10.

[0066] In an alternative embodiment, the preset distribution may also include:

[0067] Broken line distribution.

[0068] That is, the sliding trajectory corresponding to the sliding operation is actually a broken line composed of several line segments, and such a trajectory is unlikely to be caused by a human operation. Therefore, if the points on the sliding trajectory corresponding to the sliding operation are all on a broken line, it can also be considered that the sliding operation is completed by a game cheat.

[0069] Among them, in order to ensure the detection accuracy and avoid misjudgment, usually about 10 coordinate points are used for detection. In an alternative embodiment, each line segment trajectory forming the broken line contains no less than 10 coordinate points.

[0070] Figure 2 The flowchart of a method for detecting game cheats according to another aspect of the present application is shown. Among them, the method of an embodiment includes:

[0071] S201 Obtain the action event in the game operation interface data;

[0072] S202 Determine whether the action corresponding to the action event is a sliding operation. If so, record the sliding trajectory information corresponding to the sliding operation;

[0073] S203 Determine whether the sliding trajectory information satisfies the preset distribution. If it is satisfied, mark the action event;

[0074] S204 Repeat the above steps. When the number of marked action events meets the preset threshold, it is determined that the game is operated by a game cheat.

[0075] The execution subject of the method embodiment is the same as Figure 1The same as that of the method embodiment shown. Steps S201 and S202 in this method embodiment are the same as Figure 1 steps S101 and S102 in the method embodiment shown, and will not be elaborated here.

[0076] Continuing in this method embodiment, in step S203, it is determined whether the recorded sliding trajectory information meets a preset distribution. If it meets, the action event is marked. For example, if it meets, a counter with an initial value of 0 is enabled and the counter is incremented by 1.

[0077] Continuing in this embodiment, the above steps are repeated. In step S204, when the number of marked action events meets a preset threshold, it is determined that the game is operated by a game cheating program. For example, after repeating the above steps several times, when the counter value meets the preset threshold N, it is confirmed that the game is operated by a game cheating program.

[0078] Determined based on the marking of multiple similar action events. On the basis of quickly realizing the detection of game cheating programs, the accuracy can be further improved and misjudgment can be avoided.

[0079] Figure 3 Shown is a schematic diagram of a device for detecting game cheating programs according to another aspect of the present application. Among them, the device in one embodiment includes:

[0080] A first module 301 for obtaining action events in game operation interface data;

[0081] A second module 302 for determining whether the action corresponding to the action event is a sliding operation. If so, record the sliding trajectory information corresponding to the sliding operation;

[0082] A third module 303 for determining whether the sliding trajectory information meets a preset distribution. If it meets, it is determined that the game is operated by a game cheating program.

[0083] The device in this embodiment is deployed in a device with the same software and hardware environment as the above device 100. When the game is running on the device 100, through this device in real time Figure 1 the method embodiment shown.

[0084] In this embodiment, the first module 301 of the device obtains action events in game operation interface data.

[0085] Among them, during the operation of a game on a smart terminal device using the Android system, data related to action events in the game operation interface data can be obtained through the hook technology. Among them, the game operation interface data is data related to the triggering operation of game operation controls, including but not limited to: data related to action events such as clicks, inputs, key presses, swipes, etc., as well as data related to character attributes, game states, etc. For example, the Android system function dispatchTouchEvent(MotionEvent me) can be hooked to obtain the action events of game players.

[0086] Continuing in this embodiment, the second module 302 of the device determines whether the action corresponding to the action event obtained by the first module 301 is a swipe operation. If so, the swipe trajectory information corresponding to the swipe operation is recorded.

[0087] Among them, it is determined whether the obtained action event is a swipe operation. If so, the relevant trajectory point coordinate information of the swipe operation is collected and recorded.

[0088] Continuing in this embodiment, the third module 303 of the device determines whether the swipe trajectory information recorded by the second module 302 meets a preset distribution. If it meets, it is determined that the game is operated by a game cheat.

[0089] Based on the operations of the modules in the device embodiment being the same as the corresponding steps in the foregoing Figure 1 shown in the method embodiment, the detection of game cheats can be quickly realized, which is simple and practical.

[0090] In an alternative embodiment, the swipe trajectory information includes:

[0091] The position information of the starting point, the ending point, and at least one other trajectory point corresponding to the swipe operation, and the ending point position information.

[0092] In an alternative embodiment, the preset distribution includes:

[0093] Linear distribution.

[0094] In an alternative embodiment, the preset distribution may also include:

[0095] Polyline distribution.

[0096] Figure 4 The schematic diagram of a device for detecting game cheats according to another aspect of the present application is shown. Among them, the device in one embodiment includes:

[0097] The first module 401 is configured to obtain action events in the game operation interface data;

[0098] The second module 402 is configured to determine whether the action corresponding to the action event is a sliding operation. If so, it records the sliding trajectory information corresponding to the sliding operation.

[0099] The third module 403 is configured to determine whether the sliding trajectory information meets a preset distribution. If it meets, it marks the action event. When the number of marked action events meets a preset threshold, it determines that the game is operated by a game cheat.

[0100] The device of this embodiment is deployed in a device with the same software and hardware environment as the above device 100. When running a game on the device 100, through this device in real time Figure 2 The method embodiment shown.

[0101] In this embodiment, the first module 401 and the second module 402 of the device are the same as Figure 2 the first module 301 and the second module 302 in the device embodiment shown, and their functions will not be elaborated here.

[0102] Continuing in this embodiment, the third module 403 of the device judges the sliding trajectories of several corresponding action events of sliding operations obtained through the first module 401 and the second module 402, marks the corresponding action events that meet the preset distribution, and when the number of marked action events meets the preset threshold, it determines that the game is operated by a game cheat.

[0103] Based on the operations of the modules in this device embodiment being the same as the corresponding steps in the foregoing Figure 2 method embodiment shown, on the basis of quickly realizing the detection of game cheats, the accuracy can be further improved and misjudgment can be avoided.

[0104] The game running on the intelligent terminal device targeted by this application can be a single-player version or a network version. If it is a game client running on the intelligent terminal device, in each method embodiment of this application, it can also be that the game client sends the obtained game operation interface data to the game server, and the game server completes relevant judgments and detections to identify whether the game client uses a game cheat. Correspondingly, the corresponding modules in each device embodiment are integrated in the game client and / or the game server.

[0105] According to another aspect of this application, there is also provided a computer-readable medium, which stores computer-readable instructions that can be executed by a processor to implement the foregoing method.

[0106] It should be noted that each method embodiment in the present application can be implemented in software and / or a combination of software and hardware. For example, it can be implemented using an application-specific integrated circuit (ASIC), a general-purpose computer, a cache computer, and / or any other similar hardware device. Similarly, the software program (including related data structures) of the present application can be stored in a computer-readable recording medium.

[0107] In addition, all or a part of the present application can be applied as a computer program product. For example, computer program instructions, when executed by a computer, can call or provide the methods and / or technical solutions according to the present application through the operation of the computer. The program instructions for calling the methods of the present application may be stored in a fixed or removable recording medium, and / or transmitted through a data stream in a broadcast or other signal-bearing medium, and / or stored in the working memory of a computer device running according to the program instructions.

[0108] According to another aspect of the present application, an intelligent terminal device is further provided. The device includes: a memory storing computer program instructions and a processor for executing the program instructions. When the computer program instructions are executed by the processor, the device is triggered to run the methods and / or technical solutions based on the foregoing multiple embodiments according to the present application.

[0109] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic characteristics of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of the present invention is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be included in the present invention. Any reference signs in the claims should not be regarded as limiting the claimed rights. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or devices stated in the apparatus claims can also be implemented by one unit or device through software and / or hardware. First, second, etc. are used to denote names and do not represent any specific order.

Claims

1. A method for detecting game cheats, characterized in that, Applied to intelligent terminal devices, the method includes: Obtain action events in the game operation interface data; Determine whether the action corresponding to the action event is a sliding operation. If so, record the sliding trajectory information corresponding to the sliding operation; Determine whether the sliding trajectory information satisfies a polyline distribution. If it does, mark the action event; Repeat the above steps. When the number of marked action events meets a preset threshold, determine that the game is operated by a game cheat.

2. The method according to claim 1, characterized in that The sliding trajectory information includes: The position information of the starting point, the ending point, and at least one other point on the sliding trajectory corresponding to the sliding operation.

3. A game cheating detection device, characterized in that, The device includes: A first module for obtaining action events in the game operation interface data; A second module for determining whether the action corresponding to the action event is a sliding operation. If so, record the sliding trajectory information corresponding to the sliding operation; A third module for determining whether the sliding trajectory information satisfies a polyline distribution. If it does, mark the action event. When the number of marked action events meets a preset threshold, determine that the game is operated by a game cheat.

4. A computer-readable medium, characterized in that: Computer-readable instructions are stored thereon, and the computer-readable instructions are executed by a processor to implement the method according to any one of claims 1 to 2.

5. An intelligent terminal device, characterized in that, The device includes: One or more processors; and A memory storing computer-readable instructions, and the computer-readable instructions, when executed, cause the processor to perform the operations of the method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Data processing method and device, medium and computing equipment

    CN108543313A

  • Plug-in identification method and device, electronic equipment and storage medium

    CN113926201A