WO2019179048A1 - Method and device for detecting cheating in gameplay - Google Patents

Method and device for detecting cheating in gameplay Download PDF

Info

Publication number
WO2019179048A1
WO2019179048A1 PCT/CN2018/103628 CN2018103628W WO2019179048A1 WO 2019179048 A1 WO2019179048 A1 WO 2019179048A1 CN 2018103628 W CN2018103628 W CN 2018103628W WO 2019179048 A1 WO2019179048 A1 WO 2019179048A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
game
communication module
server
user
Prior art date
Application number
PCT/CN2018/103628
Other languages
French (fr)
Chinese (zh)
Inventor
吉融
Original Assignee
北京金山安全软件有限公司
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 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Publication of WO2019179048A1 publication Critical patent/WO2019179048A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/75Enforcing rules, e.g. detecting foul play or generating lists of cheating players
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5586Details of game data or player data management for enforcing rights or rules, e.g. to prevent foul play

Abstract

A method and device for detecting cheating in gameplay, related to the technical field of computer anti-cheating, applicable in anti-cheating in gameplay, capable of detecting whether a user is cheating in gameplay while playing a game, thus ensuring the fairness of gameplay. The method comprises: monitoring via a preset communication module a network message that needs to be transmitted, where the anti-decompilation capability of a first programming language on which the preset communication module is based is stronger than the anti-decompilation capability of a second programming language on which the network message is based (S11); when location coordinates of a user carried in the network message are detected to be located in a preset monitored area of a gaming scene, recording an operating parameter of the user in the preset monitored area (S12); and transmitting the operating parameter to a server via the preset communication module, thus allowing the server to determine, on the basis of the operating parameter, whether the user is cheating (S13).

Description

一种游戏作弊检测方法及装置Game cheating detection method and device
相关申请的交叉引用Cross-reference to related applications
本申请要求北京金山安全软件有限公司于2018年03月22日提交的、申请名称为“一种游戏作弊检测方法及装置”的、中国专利申请号“201810243515.2”的优先权。This application claims the priority of the Chinese patent application number "201810243515.2" filed by Beijing Jinshan Security Software Co., Ltd. on March 22, 2018, which is entitled "A Method and Apparatus for Game Cheating Detection".
技术领域Technical field
本申请涉及计算机反作弊技术领域,尤其涉及一种游戏作弊检测方法及装置。The present application relates to the field of computer anti-cheat techniques, and in particular, to a game cheating detection method and apparatus.
背景技术Background technique
当今,各种网络游戏层出不穷。然而,游戏开发商和玩家也遭受着很多困扰。例如,很多跨平台游戏中的游戏代码很容易被反编译,从而为一些恶意玩家的游戏作弊提供了可乘之机,严重影响了游戏的公平性。Today, a variety of online games are emerging. However, game developers and players are also suffering a lot. For example, the game code in many cross-platform games is easily decompiled, which provides an opportunity for some malicious players to cheat, which seriously affects the fairness of the game.
申请内容Application content
有鉴于此,本申请实施例提供一种游戏作弊检测方法及装置,能够检测出用户(即玩家)在游戏中是否进行了游戏作弊,从而有效保证了游戏的公平性。In view of this, the embodiment of the present application provides a method and device for detecting a game cheating, which can detect whether a user (ie, a player) has cheated in a game, thereby effectively ensuring the fairness of the game.
第一方面,本申请的实施例提供一种游戏作弊检测方法,包括:通过预设通信模块监测需要发送的网络消息;其中,所述预设通信模块基于的第一程序语言的防止反编译能力高于所述网络消息基于的第二程序语言的防止反编译能力;当监测到所述网络消息中携带的用户位置坐标位于游戏场景的预设监测区域时,记录所述用户在所述预设监测区域中的操作参数;通过所述预设通信模块向服务器发送所述操作参数,以使服务器根据所述操作参数确定该用户是否实施了作弊行为。In a first aspect, an embodiment of the present application provides a game cheat detection method, including: monitoring, by a preset communication module, a network message that needs to be sent; wherein the preset communication module is based on a first program language preventing decompilation capability The anti-compilation capability of the second program language is higher than the network programming message; when it is detected that the user location coordinates carried in the network message are located in a preset monitoring area of the game scene, the user is recorded in the preset Monitoring an operation parameter in the area; sending the operation parameter to the server by using the preset communication module, so that the server determines, according to the operation parameter, whether the user performs cheating behavior.
结合第一方面,在第一方面的第一种实施方式中,所述操作参数包括所述用户的位置参数,或所述用户的位置参数及该位置参数对应的速度参数。In conjunction with the first aspect, in a first implementation of the first aspect, the operational parameter includes a location parameter of the user, or a location parameter of the user and a velocity parameter corresponding to the location parameter.
结合第一方面,在第一方面的第二种实施方式中,所述通过所述预设通信模块向服务器发送所述操作参数包括:将所述操作参数附着在向所述服务器发起的预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息。With reference to the first aspect, in a second implementation manner of the first aspect, the sending, by the preset communication module, the operating parameter to a server includes: attaching the operation parameter to a preset initiated to the server And in the request message, sending the preset request message to the server by using the preset communication module.
结合第一方面的第二种实施方式,在第一方面的第三种实施方式中,所述将所述操作参数附着在向所述服务器发起的预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息包括:在游戏过程中实时将每个所述操作参数附着在预设请求消息 中,并通过所述预设通信模块向所述服务器发送所述预设请求消息;或者在游戏结束时,将游戏过程中记录的所有操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器统一发送所述预设请求消息。With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the operating parameter is attached to a preset request message initiated by the server, and the preset is adopted The sending, by the communication module, the preset request message to the server includes: attaching each of the operation parameters to a preset request message in real time during a game, and transmitting, by using the preset communication module, the server Presetting the request message; or at the end of the game, attaching all the operation parameters recorded during the game to the preset request message, and uniformly transmitting the preset request message to the server through the preset communication module.
结合第一方面,或第一方面的第一至第三中任一种实施方式,在第一方面的第四种实施方式中,在通过预设通信模块监测需要发送的网络消息之前,所述方法还包括:接收服务器的游戏开局响应消息,所述游戏开局响应消息中携带所述预设监测区域的标识信息;根据预先设置的所述标识信息与所述预设监测区域的边界信息之间的对应关系,确定所述预设监测区域在所述游戏场景中的位置。With reference to the first aspect, or any one of the first to third aspects of the first aspect, in the fourth implementation manner of the first aspect, before the network message that needs to be sent is monitored by the preset communication module, The method further includes: receiving a game start response message of the server, where the game start response message carries the identification information of the preset monitoring area; and according to the preset identifier information and the boundary information of the preset monitoring area Corresponding relationship, determining a position of the preset monitoring area in the game scene.
结合第一方面的第四种实施方式,在第一方面的第五种实施方式中,所述标识信息与所述预设监测区域的边界信息之间的对应关系为从游戏的场景文件中提取并硬编码在所述预设通信模块中。With reference to the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the correspondence between the identifier information and the boundary information of the preset monitoring area is extracted from a scene file of the game And hard coded in the preset communication module.
第二方面,本申请的实施例还提供一种游戏作弊检测装置,包括:监测单元,用于通过预设通信模块监测需要发送的网络消息;其中,所述预设通信模块基于的第一程序语言的防止反编译能力高于所述网络消息基于的第二程序语言的防止反编译能力;记录单元,用于当所述监测单元监测到所述网络消息中携带的用户位置坐标位于游戏场景的预设监测区域时,记录所述用户在所述预设监测区域中的操作参数;发送单元,用于通过所述预设通信模块向服务器发送所述记录单元记录的操作参数,以使服务器根据所述操作参数确定该用户是否实施了作弊行为。In a second aspect, the embodiment of the present application further provides a game cheat detecting apparatus, including: a monitoring unit, configured to monitor, by using a preset communication module, a network message that needs to be sent; wherein the first program is based on the preset communication module The anti-compilation capability of the language is higher than the anti-compilation capability of the second programming language on which the network message is based; the recording unit is configured to: when the monitoring unit detects that the user location coordinates carried in the network message are located in the game scenario When the monitoring area is preset, the operating parameter of the user in the preset monitoring area is recorded; the sending unit is configured to send, by using the preset communication module, the operating parameter recorded by the recording unit to the server, so that the server is configured according to the server The operational parameters determine whether the user has performed cheating.
结合第二方面,在第二方面的第一种实施方式中,所述操作参数包括所述用户的位置参数,或所述用户的位置参数及该位置参数对应的速度参数。In conjunction with the second aspect, in a first implementation of the second aspect, the operational parameter includes a location parameter of the user, or a location parameter of the user and a velocity parameter corresponding to the location parameter.
结合第二方面,在第二方面的第二种实施方式中,所述发送单元用于将所述操作参数附着在向所述服务器发起的预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息。With reference to the second aspect, in a second implementation manner of the second aspect, the sending unit is configured to attach the operation parameter to a preset request message initiated by the server, and pass the preset communication module Sending the preset request message to the server.
结合第二方面的第二种实施方式,在第二方面的第三种实施方式中,所述发送单元具体用于:在游戏过程中实时将每个所述操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息;或者在游戏结束时,将游戏过程中记录的所有操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器统一发送所述预设请求消息。With reference to the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the sending unit is specifically configured to: attach each of the operation parameters to a preset request message in real time during a game And sending, by the preset communication module, the preset request message to the server; or at the end of the game, attaching all operation parameters recorded during the game to the preset request message, and passing the preset The communication module uniformly sends the preset request message to the server.
结合第二方面,或第二方面的第一至第三中任一种实施方式,在第二方面的第四种实施方式中,所述装置还包括:接收单元,用于在通过预设通信模块监测需要发送的网络消息之前,接收服务器的游戏开局响应消息,所述游戏开局响应消息中携带所述预设监测区域的标识信息;确定单元,用于根据预先设置的所述标识信息与所述预设监测区域的边界 信息之间的对应关系,确定所述预设监测区域在所述游戏场景中的位置。With reference to the second aspect, or any one of the first to third embodiments of the second aspect, in the fourth implementation manner of the second aspect, the device further includes: a receiving unit, configured to communicate by using preset Before receiving the network message that needs to be sent, the module receives a game start response message of the server, where the game start response message carries the identifier information of the preset monitoring area, and the determining unit is configured to use the identifier information and the preset Determining a correspondence between boundary information of the preset monitoring area, and determining a position of the preset monitoring area in the game scene.
结合第二方面的第四种实施方式,在第二方面的第五种实施方式中,所述标识信息与所述预设监测区域的边界信息之间的对应关系为从游戏的场景文件中提取并硬编码在所述预设通信模块中。With reference to the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect, the correspondence between the identifier information and the boundary information of the preset monitoring area is extracted from a scenario file of the game And hard coded in the preset communication module.
第三方面,本申请的实施例还提供一种电子设备,所述电子设备包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为上述电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行本申请的实施例提供的任一种游戏作弊检测方法。In a third aspect, an embodiment of the present application further provides an electronic device, including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, The processor and the memory are disposed on the circuit board; the power supply circuit is configured to supply power to each circuit or device of the electronic device; the memory is used to store the executable program code; and the processor is operated by reading the executable program code stored in the memory. A program corresponding to the executable program code, for performing any of the game cheat detection methods provided by the embodiments of the present application.
第四方面,本申请的实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现本申请的实施例提供的任一种游戏作弊检测方法。In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors To implement any of the game cheat detection methods provided by the embodiments of the present application.
本申请的实施例提供的游戏作弊检测方法及装置,能够通过预设通信模块监测需要发送的网络消息,当监测到所述网络消息中携带的用户位置坐标位于游戏场景的预设监测区域时,记录所述用户在所述预设监测区域中的操作参数,并通过所述预设通信模块向服务器发送所述操作参数,以便使服务器根据所述操作参数确定该用户是否实施了作弊行为。由于所述预设通信模块和所述网络消息基于不同的程序语言,且预设通信模块所基于的第一程序语言的防止反编译能力高于网络消息所基于的第二程序语言的防止反编译能力,因此,通过预设通信模块监测、记录和发送的用户在预设监测区域中的操作参数难以通过反编译进行篡改,从而能够有效检测出用户是否进行了游戏作弊,大大提升了游戏公平性。The game cheating detection method and device provided by the embodiment of the present application can monitor a network message to be sent by using a preset communication module, and when it is detected that the user location coordinate carried in the network message is located in a preset monitoring area of the game scene, Recording an operation parameter of the user in the preset monitoring area, and sending the operation parameter to the server by using the preset communication module, so that the server determines, according to the operation parameter, whether the user performs cheating behavior. The anti-compilation capability of the first programming language on which the preset communication module is based is higher than the anti-compilation of the second programming language on which the network message is based, because the preset communication module and the network message are based on different programming languages. Capability, therefore, the operating parameters of the user monitored, recorded, and transmitted by the preset communication module in the preset monitoring area are difficult to be tampered with by decompilation, thereby effectively detecting whether the user has cheated the game, and greatly improving the fairness of the game. .
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本申请的实施例提供的游戏作弊检测方法的一种流程图;1 is a flowchart of a method for detecting a game cheat provided by an embodiment of the present application;
图2为本申请的实施例提供的游戏作弊检测方法的一种详细流程图;2 is a detailed flowchart of a method for detecting a game cheat provided by an embodiment of the present application;
图3为图2所示游戏作弊检测方法中进行网络消息监测和分发的一种流程图;3 is a flow chart of monitoring and distributing network messages in the game cheat detecting method shown in FIG. 2;
图4为本申请的实施例提供的游戏作弊检测装置的一种结构示意图;4 is a schematic structural diagram of a game cheat detecting apparatus according to an embodiment of the present application;
图5为本申请的实施例提供的电子设备的一种结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
下面结合附图对本申请实施例进行详细描述。The embodiments of the present application are described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be understood that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
第一方面,本申请实施例提供一种游戏作弊检测方法,能够检测出用户(即玩家)在游戏中是否进行了游戏作弊,从而有效保证了游戏的公平性。In a first aspect, the embodiment of the present application provides a method for detecting a game cheating, which can detect whether a user (ie, a player) has cheated in a game, thereby effectively ensuring fairness of the game.
如图1所示,本申请的实施例提供的游戏作弊检测方法可包括:As shown in FIG. 1 , the game cheat detecting method provided by the embodiment of the present application may include:
S11,通过预设通信模块监测需要发送的网络消息;其中,所述预设通信模块基于的第一程序语言的防止反编译能力高于所述网络消息基于的第二程序语言的防止反编译能力;S11. Monitor, by using a preset communication module, a network message that needs to be sent. The anti-compilation capability of the first programming language based on the preset communication module is higher than the anti-compilation capability of the second programming language based on the network message. ;
具体而言,很多网络游戏在游戏进行中,客户端会向服务器发送各种各样的网络消息,用以向服务器传递用户的各种游戏操作。服务器能够根据接收到的各客户端的网络消息对游戏评分和判断胜负等。Specifically, many online games are in progress, and the client sends various network messages to the server to deliver various user operations to the server. The server can score and judge the game based on the received network messages of each client.
然而,很多游戏在开发时具有较强的跨平台性(例如使用Unity平台开发的游戏),游戏开发所使用的程序语言例如C#、JAVA等都比较容易被反编译,从而导致一些恶意玩家以此进行游戏作弊。为解决该问题,在本申请的实施例中,为游戏设置了专门的通信模块(即预设通信模块),客户端向服务器发送的所有网络消息都由该预设通信模块监测和发送。其中,预设通信模块所基于的程序语言与游戏中网络消息所基于的程序语言不同,更具体来说,预设通信模块基于的第一程序语言的防止反编译能力高于网络消息基于的第二程序语言的防止反编译能力。However, many games have strong cross-platform development (such as games developed using the Unity platform), and the programming languages used in game development such as C#, JAVA, etc. are relatively easy to be decompiled, causing some malicious players to use this. Play the game to cheat. To solve this problem, in the embodiment of the present application, a special communication module (ie, a preset communication module) is set for the game, and all network messages sent by the client to the server are monitored and sent by the preset communication module. The programming language on which the preset communication module is based is different from the programming language on which the network message in the game is based. More specifically, the anti-compilation capability of the first programming language based on the preset communication module is higher than that based on the network message. The second program language prevents decompilation.
其中,程序语言的反编译是指通过对他人软件的目标程序(比如可执行程序)进行“逆向分析、研究”工作,以推导出他人的软件产品所使用的思路、原理、结构、算法、处理过程、运行方法等设计要素,某些特定情况下可能推导出源代码。防止反编译能力是指防止被反编译的能力。由于不同程序语言的特性不同,其具有的防止反编译能力也不尽相同。例如,C++语言在众多程序语言中就具有较高的防止反编译能力,而Java就具有较低的防止反编译能力。作为一种可能的实施方式,在本申请的一个实施例中,第一程序语言可以为C++语言,而第二程序语言可以为C#程序语言。Among them, the decompilation of the programming language refers to the "reverse analysis and research" work of the target program of other software (such as an executable program) to derive the ideas, principles, structures, algorithms, and processes used by other people's software products. Design elements such as procedures, running methods, etc., and source code may be derived in some specific cases. Preventing decompilation is the ability to prevent decompilation. Due to the different characteristics of different programming languages, their ability to prevent decompilation is not the same. For example, the C++ language has a high ability to prevent decompilation in many programming languages, while Java has a low anti-compilation capability. As a possible implementation manner, in one embodiment of the present application, the first programming language may be a C++ language, and the second programming language may be a C# programming language.
S12,当监测到所述网络消息中携带的用户位置坐标位于游戏场景的预设监测区域时,记录所述用户在所述预设监测区域中的操作参数;S12, when it is detected that the user location coordinate carried in the network message is located in a preset monitoring area of the game scene, recording an operation parameter of the user in the preset monitoring area;
游戏过程中,用户在游戏场景中进行各种位置变换和游戏操作。客户端可以通过网络消息将用户位置随时向服务器发送。当预设通信模块监测到网络消息中携带的用户位置坐标位于游戏场景的预设监测区域时,就记录下该用户在该预设监测区域中相应的操作参数。During the game, the user performs various position changes and game operations in the game scene. The client can send the user's location to the server at any time via a network message. When the preset communication module detects that the user location coordinate carried in the network message is located in the preset monitoring area of the game scene, the corresponding operation parameter of the user in the preset monitoring area is recorded.
其中,预设监测区域是指在游戏场景中预先设置的具有一定位置、形状、大小的区域。可选的,预设监测区域在游戏场景中的数量不限,既可以为一个,也可以为多个。预设监测区域的形状可以为矩形、圆形、三角形及各种多边形等;预设监测区域的面积可大可小,具体可以根据游戏需要进行确定和调整,本申请的实施例对此不做限定。The preset monitoring area refers to an area having a certain position, shape, and size preset in the game scene. Optionally, the number of preset monitoring areas in the game scene is not limited, and may be one or multiple. The shape of the preset monitoring area may be a rectangle, a circle, a triangle, a variety of polygons, etc.; the area of the preset monitoring area may be large or small, and may be determined and adjusted according to the needs of the game, and the embodiment of the present application does not do this. limited.
用户在预设监测区域中的操作参数是指当用户在游戏场景中的位置处于该预设监测区域中时,对应的各种游戏参数,例如,用户的位置、速度、运动方向、使用技能、装备等。The operation parameter of the user in the preset monitoring area refers to various game parameters when the user's position in the game scene is in the preset monitoring area, for example, the user's position, speed, movement direction, usage skill, Equipment and so on.
作为一种可能的实施方式,当监测到当前用户的位置坐标为(x,y),且该坐标点位于预设监测区域A中时,则记录下用户在预设监测区域A中的一个位置或多个位置对应的操作参数。例如,可以记录用户在预设监测区域A中运动轨迹上的所有坐标点处对应的操作参数,也可以只记录用户进入预设监测区域A和/或走出预设监测区域A时对应的操作参数,还可以只记录用户在该预设监测区域A中的最大速度处对应的操作参数等。本申请的实施例对此不做限定。As a possible implementation manner, when the position coordinate of the current user is monitored as (x, y) and the coordinate point is located in the preset monitoring area A, a position of the user in the preset monitoring area A is recorded. Or operating parameters corresponding to multiple locations. For example, the operation parameters corresponding to all coordinate points on the motion track of the user in the preset monitoring area A may be recorded, or only the corresponding operation parameters when the user enters the preset monitoring area A and/or exit the preset monitoring area A may be recorded. It is also possible to record only the operational parameters and the like corresponding to the maximum speed of the user in the preset monitoring area A. The embodiment of the present application does not limit this.
S13,通过所述预设通信模块向服务器发送所述操作参数,以使服务器根据所述操作参数确定该用户是否实施了作弊行为。S13. Send the operation parameter to the server by using the preset communication module, so that the server determines, according to the operation parameter, whether the user performs cheating behavior.
本步骤中,通过预设通信模块可以向服务器发送步骤S12中记录的操作参数,由于预设通信模块基于的第一程序语言具有较强的防止反编译能力,因此能够有效阻止恶意玩家在预设通信模块中对程序进行篡改和故意隐瞒作弊行为,从而使监测到的操作参数能够真实保留,以便服务端根据该操作参数判断用户是否实施了作弊行为。In this step, the operation parameter recorded in step S12 can be sent to the server by using the preset communication module. Since the first program language based on the preset communication module has strong anti-compilation capability, the malicious player can be effectively prevented from being preset. The communication module tampers with the program and deliberately conceals the cheating behavior, so that the monitored operation parameters can be truly retained, so that the server determines whether the user has implemented the cheating behavior according to the operation parameter.
本申请的实施例提供的游戏作弊检测方法,能够通过预设通信模块监测需要发送的网络消息,当监测到所述网络消息中携带的用户位置坐标位于游戏场景的预设监测区域时,记录所述用户在所述预设监测区域中的操作参数,并通过所述预设通信模块向服务器发送所述操作参数,以便使服务器根据所述操作参数确定该用户是否实施了作弊行为。由于所述预设通信模块和所述网络消息基于不同的程序语言,且预设通信模块所基于的第一程序语言的防止反编译能力高于网络消息所基于的第二程序语言的防止反编译能力,因此,通过预设通信模块监测、记录和发送的用户在预设监测区域中的操作参数难以通过反编译进行篡改,从而能够有效检测出用户是否进行了游戏作弊,大大提升了游戏公平性。The game cheating detection method provided by the embodiment of the present application can monitor a network message that needs to be sent by using a preset communication module, and when it is detected that the user location coordinate carried in the network message is located in a preset monitoring area of the game scene, the recording office Determining an operation parameter of the user in the preset monitoring area, and sending the operation parameter to the server by using the preset communication module, so that the server determines, according to the operation parameter, whether the user performs cheating behavior. The anti-compilation capability of the first programming language on which the preset communication module is based is higher than the anti-compilation of the second programming language on which the network message is based, because the preset communication module and the network message are based on different programming languages. Capability, therefore, the operating parameters of the user monitored, recorded, and transmitted by the preset communication module in the preset monitoring area are difficult to be tampered with by decompilation, thereby effectively detecting whether the user has cheated the game, and greatly improving the fairness of the game. .
需要说明的是,不同种类的游戏,对用户行为的关注点不同,因此对应的操作参数也可能不同。例如,对于速度竞技类游戏,例如赛车等,操作参数可以包括所述用户的位置参数及该位置参数对应的速度参数,如用户在通过某个转弯或桥梁时用户的具体位置及在该位置上的速度。而对于一些探索类的游戏,对用户的运动速度并不十分关注,而更关注用户处于何种位置,使用何种技能发现了什么或者作出了何种攻击或防守等,则其对应的操作参数可以包括用户的位置参数、技能参数等。当然,在本申请的其他实施例中,操作 参数也可以为其它内容,例如仅包括用户的位置参数等,只要满足游戏的设置和需求即可,本申请的实施例对此不做限定。It should be noted that different types of games have different concerns about user behavior, and thus corresponding operational parameters may also be different. For example, for a speed competitive game, such as a racing car, the operating parameters may include a position parameter of the user and a speed parameter corresponding to the position parameter, such as a specific position of the user when the user passes a certain turn or bridge and at the position. speed. For some exploration games, the user's movement speed is not very concerned, but more attention to the user's position, what kind of skills are used to discover what kind of attack or defense, etc., the corresponding operating parameters It may include the user's location parameters, skill parameters, and the like. Of course, in other embodiments of the present application, the operating parameters may be other content, for example, only the location parameter of the user, and the like, as long as the setting and the requirements of the game are met, which is not limited by the embodiment of the present application.
记录下用户在预设监测区域中的操作参数后,在步骤S13中,即可以通过预设通信模块向服务器发送所述操作参数。具体的,进行操作参数发送可以包括:将操作参数附着在向服务器发起的预设请求消息中,并通过预设通信模块向服务器发送所述预设请求消息。可选的,预设请求消息可以是游戏过程中或游戏结束时客户端向服务器发送的各种请求消息。预设通信模块在将该预设请求消息发送出去之前,可以对该预设请求消息进行改造,将之前记录的操作参数附着在该预设请求消息中,然后向服务器发送附着有操作参数的预设请求消息。After the operation parameters of the user in the preset monitoring area are recorded, in step S13, the operation parameters may be sent to the server through the preset communication module. Specifically, the sending the operation parameter may include: attaching the operation parameter to the preset request message initiated by the server, and sending the preset request message to the server by using the preset communication module. Optionally, the preset request message may be various request messages sent by the client to the server during the game or at the end of the game. Before the preset request message is sent, the preset communication module may modify the preset request message, attach the previously recorded operation parameter to the preset request message, and then send the pre-attached operation parameter to the server. Set the request message.
需要说明的是,由于对用户是否进行了游戏作弊的判断只需在游戏玩家排名确定之前做出即可,因此,在本申请的实施例中,操作参数可以在此之前的任意时刻发送,既可以在游戏的进行过程中陆续向服务器发送,也可以在游戏结束时向服务器统一发送,只要使服务器能够在进行玩家排名之前确定出每个玩家是否实施了游戏作弊行为即可。It should be noted that, since the judgment of whether the user has made the game cheating can be performed only before the game player ranking is determined, in the embodiment of the present application, the operation parameter can be sent at any time before, It can be sent to the server one after another during the game, or it can be sent to the server at the end of the game, as long as the server can determine whether each player has implemented the game cheating behavior before the player ranks.
举例说明,在本申请的一个实施例中,将所述操作参数附着在向所述服务器发起的预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息具体可以包括:在游戏过程中实时将每个所述操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息。也就是预设通信模块每记录一组操作参数即通过一个预设请求消息发送给服务器,具有较强的时效性。For example, in an embodiment of the present application, the operation parameter is attached to a preset request message initiated by the server, and the preset request message is sent to the server by using the preset communication module. Specifically, the method may include: attaching each of the operation parameters to a preset request message in real time during a game, and sending the preset request message to the server by using the preset communication module. That is, the preset communication module transmits a set of operation parameters to the server through a preset request message, which has strong timeliness.
在本申请的另一个实施例中,将所述操作参数附着在向所述服务器发起的预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息具体可以包括:在游戏结束时,将游戏过程中记录的所有操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器统一发送所述预设请求消息。也就是,预设通信模块在整个游戏过程中陆续记录出一组组操作参数,但没有将这些操作参数及时发送出去,而是等到游戏结束时,才将游戏过程中记录的所有操作参数附着在预设请求消息中,通过所述预设通信模块向所述服务器统一发送。这种发送方式提高了网络资源的利用率。In another embodiment of the present application, the operation parameter is attached to the preset request message initiated by the server, and the preset request message is sent to the server by using the preset communication module. Including: at the end of the game, all the operation parameters recorded during the game are attached to the preset request message, and the preset request message is uniformly sent to the server through the preset communication module. That is, the preset communication module successively records a set of group operation parameters throughout the game process, but does not send these operation parameters in time, but waits until the end of the game, and attaches all the operation parameters recorded during the game to the game. The preset request message is uniformly sent to the server by the preset communication module. This type of transmission improves the utilization of network resources.
具体的,服务器接收到客户端发送的操作参数后,可以根据用户在预设监测区域中的操作参数是否超过预设范围或者操作参数的数量是否满足预设条件来确定用户是否作弊。其中,预设范围是指预设监测区域中用户该具有怎样范围的操作参数才合理,超出这个范围则不合理,从而确定用户进行了游戏作弊。操作参数的数量是指用户游戏过程中共需要经过的预设监测区域所对应的操作参数的个数或组数。例如,赛车游戏中,如果通过某个弯道的速度过大,超过预设的速度范围,则可以确定该用户在该弯道处实施了作弊行为;又例如,如果整个赛程中设置有12个预设监测区域,均是赛车的必经之路,对应12组操 作参数,而某用户的操作参数仅仅有10组,则说明该用户通过作弊手段跳过了其中2个预设监测区域。当然,在本申请的其它实施例中,服务器还可以根据其它标准确定用户是否实施了作弊行为,本申请的实施例对此不做限定。Specifically, after receiving the operation parameter sent by the client, the server may determine whether the user is cheating according to whether the operation parameter of the user in the preset monitoring area exceeds a preset range or whether the number of operation parameters satisfies a preset condition. The preset range refers to a reasonable range of operating parameters in the preset monitoring area, and it is unreasonable to exceed the range, thereby determining that the user has cheated the game. The number of operating parameters refers to the number or group of operating parameters corresponding to the preset monitoring area that the user needs to pass during the game. For example, in a racing game, if the speed of passing a certain curve is too large and exceeds the preset speed range, it can be determined that the user has performed cheating at the corner; for example, if 12 are set throughout the course The preset monitoring area is the only way for the car, corresponding to 12 sets of operating parameters, and a user's operating parameters only have 10 groups, indicating that the user skipped two of the preset monitoring areas by cheating. Of course, in other embodiments of the present application, the server may determine whether the user performs the cheating behavior according to other standards, which is not limited by the embodiment of the present application.
预设监测区域是客户端与服务器之间约定设置的,在不同的场景下,服务器和客户端可以对约定好的预设监测区域进行修改或调整,以适应不同的需求。例如,在一个游戏的版本1.0中预设监测区域为B1、B2、C1、C2,而在该游戏的版本1.2中预设监测区域为B1、C2、D1、D2等。客户端与服务器之间通过约定的标识相互确认各预设监测区域。The preset monitoring area is set by the client and the server. In different scenarios, the server and the client can modify or adjust the agreed preset monitoring area to meet different requirements. For example, in version 1.0 of a game, the preset monitoring areas are B1, B2, C1, C2, and in the version 1.2 of the game, the preset monitoring areas are B1, C2, D1, D2, and the like. The preset monitoring area is mutually confirmed by the client and the server through the agreed identifier.
为了在每个游戏开始之前确定该游戏中的预设监测区域,进一步的,在本申请的一个实施例中,在通过预设通信模块监测需要发送的网络消息之前,本申请的实施例提供的游戏作弊检测方法还可以包括:In order to determine a preset monitoring area in the game before the start of each game, further, in an embodiment of the present application, before the network message to be transmitted is monitored by the preset communication module, the embodiment of the present application provides The game cheating detection method may further include:
接收服务器的游戏开局响应消息,所述游戏开局响应消息中携带所述预设监测区域的标识信息;Receiving a game start response message of the server, where the game start response message carries the identification information of the preset monitoring area;
根据预先设置的所述标识信息与所述预设监测区域的边界信息之间的对应关系,确定所述预设监测区域在所述游戏场景中的位置。Determining a position of the preset monitoring area in the game scene according to a correspondence between the identifier information set in advance and the boundary information of the preset monitoring area.
本实施例中,在客户端上定义有预设监测区域,即客户端存储有游戏中各预设监测区域的标识及该标识对应的预设监测区域的边界信息。服务器端存储有游戏中可以作为备选的所有预设监测区域的标识的集合。游戏开始前,服务器端可以通过指定预设监测区域的标识通知对应的客户端监测哪些具体的区域位置。In this embodiment, a preset monitoring area is defined on the client, that is, the client stores the identifier of each preset monitoring area in the game and the boundary information of the preset monitoring area corresponding to the identifier. The server side stores a collection of identifications of all preset monitoring areas that can be used as alternatives in the game. Before the game starts, the server can notify the corresponding client to monitor which specific regional locations by specifying the identifier of the preset monitoring area.
可选的,在本申请的一个实施例中,客户端中存储的预设监测区域的标识信息与所述预设监测区域的边界信息之间的对应关系可以从游戏的场景文件中提取并编码(例如硬编码)在预设通信模块中,从而使恶意玩家难以对编码进行反编译,进一步提高了游戏的反作弊能力和游戏的公平性。Optionally, in an embodiment of the present application, the correspondence between the identifier information of the preset monitoring area and the boundary information of the preset monitoring area stored in the client may be extracted and encoded from the scene file of the game. (eg hard coded) in the default communication module, making it difficult for malicious players to decompile the code, further improving the game's anti-cheat ability and fairness of the game.
下面通过具体实施例对本申请的实施例提供的游戏作弊检测方法进行详细说明。The game cheat detection method provided by the embodiment of the present application will be described in detail below through specific embodiments.
如图2所示,本申请的实施例提供的游戏作弊检测方法可以包括如下步骤:As shown in FIG. 2, the method for detecting a game cheat provided by the embodiment of the present application may include the following steps:
S201,客户端通过预设通信模块向服务器发送游戏开局请求;S201. The client sends a game start request to the server by using a preset communication module.
S202,客户端接收到服务器返回的游戏开局响应消息,所述游戏开局响应消息中携带游戏中需要监测的预设监测区域的标识(M1,M2);S202, the client receives the game start response message returned by the server, where the game start response message carries the identifier (M1, M2) of the preset monitoring area that needs to be monitored in the game;
可选的,开局响应消息中携带的预设监测区域的标识可以采用加密算法进行加密。Optionally, the identifier of the preset monitoring area carried in the deployment response message may be encrypted by using an encryption algorithm.
S203,客户端根据预先设置的所述标识信息与所述预设监测区域的边界信息之间的对应关系,确定所述预设监测区域在游戏场景中的位置;S203. The client determines, according to a correspondence between the identifier information set in advance and the boundary information of the preset monitoring area, a location of the preset monitoring area in a game scenario.
具体的,客户端包括原始的游戏模块以及预设通信模块,其中,原始的游戏模块基于第二程序语言(例如C#语言),预设通信模块基于第一程序语言(例如C++语言)。作为一 种可能的实现方式,预设通信模块接收到游戏开局响应消息后,可以对该响应消息中携带的预设监测区域的标识进行解密并存储在预设通信模块中,然后将该响应消息中的其它信息传递给原始的游戏模块进行消息处理,以便开始游戏。Specifically, the client includes an original game module and a preset communication module, wherein the original game module is based on a second programming language (eg, C# language), and the preset communication module is based on a first programming language (eg, C++ language). As a possible implementation manner, after receiving the game start response message, the preset communication module may decrypt the identifier of the preset monitoring area carried in the response message and store it in the preset communication module, and then the response message. The other information in it is passed to the original game module for message processing in order to start the game.
S204,游戏过程中,客户端通过预设通信模块监测需要发送的网络消息;其中,所述预设通信模块基于的第一程序语言的防止反编译能力高于所述网络消息基于的第二程序语言的防止反编译能力;S204: During the game, the client monitors the network message that needs to be sent by using the preset communication module, where the anti-compilation capability of the first programming language based on the preset communication module is higher than the second program based on the network message. The ability to prevent decompilation of the language;
S205,当监测到网络消息中携带的用户位置坐标(x1,y1)位于游戏场景的预设监测区域M1时,记录所述用户在预设监测区域M1中的操作参数;当监测到网络消息中携带的用户位置坐标(x2,y2)位于游戏场景的预设监测区域M2时,记录所述用户在预设监测区域M2中的操作参数;S205, when it is detected that the user position coordinate (x1, y1) carried in the network message is located in the preset monitoring area M1 of the game scene, the operation parameter of the user in the preset monitoring area M1 is recorded; when the network message is detected When the carried user position coordinate (x2, y2) is located in the preset monitoring area M2 of the game scene, the operation parameter of the user in the preset monitoring area M2 is recorded;
可选的,记录的操作参数具体可以包括用户位置坐标(x1,y1)和用户在(x1,y1)处的运动速度v1,以及用户位置坐标(x2,y2)和用户在(x2,y2)处的运动速度v2。Optionally, the recorded operation parameters may specifically include user position coordinates (x1, y1) and the user's motion speed v1 at (x1, y1), and the user position coordinates (x2, y2) and the user at (x2, y2). The speed of movement is v2.
作为一种可能的实施方式,预设通信模块对网络消息的监测和发送过程可以具体参照图3。如图3所示,预设通信模块先判断网络消息中携带的用户位置坐标是否在预设监测区域中,如果用户位置坐标位于预设监测区域中,则预设通信模块记录相应的操作参数后,通过HTTP(HyperText Transfer Protocol,超文本传输协议)、TCP(Transmission Control Protocol,传输控制协议)、UDP(User Datagram Protocol,用户数据报协议)、Websocket等协议将该网络消息向服务器发送;如果用户位置坐标不在该预设监测区域中,则预设通信模块直接通过HTTP、TCP、UDP、Websocket等协议将该网络消息向服务器发送。As a possible implementation manner, the process of monitoring and transmitting the network message by the preset communication module may be specifically referred to FIG. 3. As shown in FIG. 3, the preset communication module first determines whether the user position coordinate carried in the network message is in the preset monitoring area. If the user position coordinate is located in the preset monitoring area, the preset communication module records the corresponding operation parameter. Sending the network message to the server through a protocol such as HTTP (HyperText Transfer Protocol), TCP (Transmission Control Protocol), UDP (User Datagram Protocol), Websocket, etc. If the location coordinate is not in the preset monitoring area, the preset communication module directly sends the network message to the server through a protocol such as HTTP, TCP, UDP, or Websocket.
S206,在游戏结束时,客户端将游戏过程中记录的所有操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器统一发送所述预设请求消息。S206. At the end of the game, the client attaches all the operation parameters recorded during the game to the preset request message, and uniformly sends the preset request message to the server through the preset communication module.
S207,服务器根据接收到的操作参数确定该用户是否依次通过预设监测区域M1和预设监测区域M2,如果依次通过,则进一步判断运动速度v1和运动速度v2是否超过预设的速度范围,如果没有超过,则确定该用户没有实施游戏作弊;如果用户没有依次通过这两个预设监测区域,或者用户的运动速度超出了该预设的速度范围,则确定该用户实施了游戏作弊。S207: The server determines, according to the received operation parameter, whether the user sequentially passes the preset monitoring area M1 and the preset monitoring area M2, and if it passes in sequence, further determines whether the motion speed v1 and the motion speed v2 exceed a preset speed range, if If it is not exceeded, it is determined that the user does not implement game cheat; if the user does not pass through the two preset monitoring areas in turn, or the user's motion speed exceeds the preset speed range, it is determined that the user has implemented game cheat.
第二方面,本申请的实施例还提供一种游戏作弊检测装置,能够检测出用户在游戏中是否进行了游戏作弊,从而有效保证了游戏的公平性。In a second aspect, an embodiment of the present application further provides a game cheat detection apparatus, which is capable of detecting whether a user has cheated a game in a game, thereby effectively ensuring fairness of the game.
如图4所示,本申请的实施例提供的游戏作弊检测装置,包括:As shown in FIG. 4, the game cheat detection apparatus provided by the embodiment of the present application includes:
监测单元41,用于通过预设通信模块监测需要发送的网络消息;其中,所述预设通信模块基于的第一程序语言的防止反编译能力高于所述网络消息基于的第二程序语言的防止反编译能力;The monitoring unit 41 is configured to monitor, by using a preset communication module, a network message that needs to be sent, where the anti-compilation capability of the first programming language based on the preset communication module is higher than that of the second programming language based on the network message. Prevent decompilation capabilities;
记录单元42,用于当所述监测单元监测到所述网络消息中携带的用户位置坐标位于游戏场景的预设监测区域时,记录所述用户在所述预设监测区域中的操作参数;The recording unit 42 is configured to record an operation parameter of the user in the preset monitoring area when the monitoring unit monitors that the user location coordinate carried in the network message is located in a preset monitoring area of the game scene;
发送单元43,用于通过所述预设通信模块向服务器发送所述记录单元记录的操作参数,以使服务器根据所述操作参数确定该用户是否实施了作弊行为。The sending unit 43 is configured to send, by using the preset communication module, an operation parameter recorded by the recording unit to a server, so that the server determines, according to the operation parameter, whether the user performs cheating behavior.
本申请的实施例提供的游戏作弊检测装置,能够通过预设通信模块监测需要发送的网络消息,当监测到所述网络消息中携带的用户位置坐标位于游戏场景的预设监测区域时,记录所述用户在所述预设监测区域中的操作参数,并通过所述预设通信模块向服务器发送所述操作参数,以便使服务器根据所述操作参数确定该用户是否实施了作弊行为。由于所述预设通信模块和所述网络消息基于不同的程序语言,且预设通信模块所基于的第一程序语言的防止反编译能力高于网络消息所基于的第二程序语言的防止反编译能力,因此,通过预设通信模块监测、记录和发送的用户在预设监测区域中的操作参数难以通过反编译进行篡改,从而能够有效检测出用户是否进行了游戏作弊,大大提升了游戏公平性。The game cheat detecting apparatus provided by the embodiment of the present application can monitor a network message that needs to be sent by using a preset communication module, and when it is detected that the user location coordinate carried in the network message is located in a preset monitoring area of the game scene, the recording office Determining an operation parameter of the user in the preset monitoring area, and sending the operation parameter to the server by using the preset communication module, so that the server determines, according to the operation parameter, whether the user performs cheating behavior. The anti-compilation capability of the first programming language on which the preset communication module is based is higher than the anti-compilation of the second programming language on which the network message is based, because the preset communication module and the network message are based on different programming languages. Capability, therefore, the operating parameters of the user monitored, recorded, and transmitted by the preset communication module in the preset monitoring area are difficult to be tampered with by decompilation, thereby effectively detecting whether the user has cheated the game, and greatly improving the fairness of the game. .
可选的,所述操作参数包括所述用户的位置参数,或所述用户的位置参数及该位置参数对应的速度参数。Optionally, the operation parameter includes a location parameter of the user, or a location parameter of the user and a speed parameter corresponding to the location parameter.
可选的,发送单元43可用于将所述操作参数附着在向所述服务器发起的预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息。Optionally, the sending unit 43 is configured to attach the operation parameter to a preset request message initiated by the server, and send the preset request message to the server by using the preset communication module.
可选的,发送单元43具体可用于:Optionally, the sending unit 43 is specifically configured to:
在游戏过程中实时将每个所述操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息;或者Each of the operation parameters is attached to the preset request message in real time during the game, and the preset request message is sent to the server by the preset communication module; or
在游戏结束时,将游戏过程中记录的所有操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器统一发送所述预设请求消息。At the end of the game, all the operation parameters recorded during the game are attached to the preset request message, and the preset request message is uniformly sent to the server through the preset communication module.
进一步的,本申请实施例提供的游戏作弊检测装置还可以包括:Further, the game cheat detecting apparatus provided in the embodiment of the present application may further include:
接收单元,用于在通过预设通信模块监测需要发送的网络消息之前,接收服务器的游戏开局响应消息,所述游戏开局响应消息中携带所述预设监测区域的标识信息;a receiving unit, configured to receive a game start response message of the server before the network message that needs to be sent is monitored by the preset communication module, where the game start response message carries the identifier information of the preset monitoring area;
确定单元,用于根据预先设置的所述标识信息与所述预设监测区域的边界信息之间的对应关系,确定所述预设监测区域在所述游戏场景中的位置。And a determining unit, configured to determine a location of the preset monitoring area in the game scenario according to a correspondence between the preset identifier information and boundary information of the preset monitoring area.
可选的,所述标识信息与所述预设监测区域的边界信息之间的对应关系为从游戏的场景文件中提取并硬编码在所述预设通信模块中。Optionally, the correspondence between the identifier information and the boundary information of the preset monitoring area is extracted from the scene file of the game and hard coded in the preset communication module.
第三方面,本申请实施例提供一种电子设备,能够检测出用户在游戏中是否进行了游戏作弊,从而有效保证了游戏的公平性。In a third aspect, an embodiment of the present application provides an electronic device capable of detecting whether a user has cheated a game in a game, thereby effectively ensuring fairness of the game.
如图5所示,本申请的实施例提供的电子设备,可以包括:壳体51、处理器52、存储器53、电路板54和电源电路55,其中,电路板54安置在壳体51围成的空间内部,处理 器52和存储器53设置在电路板54上;电源电路55,用于为上述电子设备的各个电路或器件供电;存储器53用于存储可执行程序代码;处理器52通过读取存储器53中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行前述任一实施例提供的游戏作弊检测方法。As shown in FIG. 5, an electronic device provided by an embodiment of the present application may include a housing 51, a processor 52, a memory 53, a circuit board 54, and a power supply circuit 55, wherein the circuit board 54 is disposed in the housing 51. Internally, the processor 52 and the memory 53 are disposed on the circuit board 54; the power supply circuit 55 is for supplying power to the respective circuits or devices of the above electronic device; the memory 53 is for storing executable program code; and the processor 52 is for reading The executable program code stored in the memory 53 runs a program corresponding to the executable program code for executing the game cheat detection method provided by any of the foregoing embodiments.
处理器52对上述步骤的具体执行过程以及处理器52通过运行可执行程序代码来进一步执行的步骤,可以参见前述实施例的描述,在此不再赘述。For the specific execution of the foregoing steps by the processor 52 and the steps of the processor 52 for further execution by running the executable program code, refer to the description of the foregoing embodiment, and details are not described herein again.
上述电子设备以多种形式存在,包括但不限于:The above electronic devices exist in various forms including, but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子设备。(5) Other electronic devices with data interaction functions.
第四方面,本申请的实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现前述实施例提供的任一种游戏作弊检测方法,因此也能实现相应的技术效果,前文已经进行了详细说明,此处不再赘述。In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors In order to implement any of the game cheat detection methods provided by the foregoing embodiments, the corresponding technical effects can also be achieved. The foregoing has been described in detail, and details are not described herein.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。The various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单, 相关之处参见方法实施例的部分说明即可。In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
为了描述的方便,描述以上装置是以功能分为各种单元/模块分别描述。当然,在实施本申请时可以把各单元/模块的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above devices are described as being separately divided into various units/modules. Of course, the functions of each unit/module may be implemented in the same software or software and/or hardware when implementing the present application.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any change or replacement that can be easily conceived by those skilled in the art within the technical scope disclosed by the present application is All should be covered by the scope of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims (14)

  1. 一种游戏作弊检测方法,其特征在于,包括:A method for detecting a game cheating, which is characterized by comprising:
    通过预设通信模块监测需要发送的网络消息;其中,所述预设通信模块基于的第一程序语言的防止反编译能力高于所述网络消息基于的第二程序语言的防止反编译能力;Monitoring, by the preset communication module, a network message that needs to be sent; wherein the anti-compilation capability of the first programming language based on the preset communication module is higher than the anti-compilation capability of the second programming language based on the network message;
    当监测到所述网络消息中携带的用户位置坐标位于游戏场景的预设监测区域时,记录所述用户在所述预设监测区域中的操作参数;Recording, when the user location coordinate carried in the network message is located in a preset monitoring area of the game scene, recording an operation parameter of the user in the preset monitoring area;
    通过所述预设通信模块向服务器发送所述操作参数,以使服务器根据所述操作参数确定该用户是否实施了作弊行为。And sending, by the preset communication module, the operation parameter to the server, so that the server determines, according to the operation parameter, whether the user performs cheating behavior.
  2. 根据权利要求1所述的方法,其特征在于,所述操作参数包括所述用户的位置参数,或所述用户的位置参数及该位置参数对应的速度参数。The method according to claim 1, wherein the operation parameter comprises a position parameter of the user, or a position parameter of the user and a speed parameter corresponding to the position parameter.
  3. 根据权利要求1或2所述的方法,其特征在于,所述通过所述预设通信模块向服务器发送所述操作参数包括:The method according to claim 1 or 2, wherein the sending the operation parameter to the server by using the preset communication module comprises:
    将所述操作参数附着在向所述服务器发起的预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息。And attaching the operation parameter to a preset request message initiated by the server, and sending the preset request message to the server by using the preset communication module.
  4. 根据权利要求3所述的方法,其特征在于,所述将所述操作参数附着在向所述服务器发起的预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息包括:The method according to claim 3, wherein the attaching the operation parameter to a preset request message initiated by the server, and transmitting the pre-prepared to the server by using the preset communication module Let the request message include:
    在游戏过程中实时将每个所述操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息;或者Each of the operation parameters is attached to the preset request message in real time during the game, and the preset request message is sent to the server by the preset communication module; or
    在游戏结束时,将游戏过程中记录的所有操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器统一发送所述预设请求消息。At the end of the game, all the operation parameters recorded during the game are attached to the preset request message, and the preset request message is uniformly sent to the server through the preset communication module.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,在通过预设通信模块监测需要发送的网络消息之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein before the monitoring of the network message to be sent by the preset communication module, the method further comprises:
    接收服务器的游戏开局响应消息,所述游戏开局响应消息中携带所述预设监测区域的标识信息;Receiving a game start response message of the server, where the game start response message carries the identification information of the preset monitoring area;
    根据预先设置的所述标识信息与所述预设监测区域的边界信息之间的对应关系,确定所述预设监测区域在所述游戏场景中的位置。Determining a position of the preset monitoring area in the game scene according to a correspondence between the identifier information set in advance and the boundary information of the preset monitoring area.
  6. 根据权利要求5所述的方法,其特征在于,所述标识信息与所述预设监测区域的边界信息之间的对应关系为从游戏的场景文件中提取并硬编码在所述预设通信模块中。The method according to claim 5, wherein the correspondence between the identification information and the boundary information of the preset monitoring area is extracted from the scene file of the game and hard coded in the preset communication module. in.
  7. 一种游戏作弊检测装置,其特征在于,包括:A game cheating detecting device, comprising:
    监测单元,用于通过预设通信模块监测需要发送的网络消息;其中,所述预设通信模块基于的第一程序语言的防止反编译能力高于所述网络消息基于的第二程序语言的防止反编译能力;a monitoring unit, configured to monitor, by using a preset communication module, a network message that needs to be sent; wherein the anti-compilation capability of the first programming language based on the preset communication module is higher than the prevention of the second programming language based on the network message Decompilation ability;
    记录单元,用于当所述监测单元监测到所述网络消息中携带的用户位置坐标位于游戏场景的预设监测区域时,记录所述用户在所述预设监测区域中的操作参数;a recording unit, configured to record an operation parameter of the user in the preset monitoring area when the monitoring unit monitors that the user location coordinate carried in the network message is located in a preset monitoring area of the game scene;
    发送单元,用于通过所述预设通信模块向服务器发送所述记录单元记录的操作参数,以使服务器根据所述操作参数确定该用户是否实施了作弊行为。And a sending unit, configured to send, by using the preset communication module, an operation parameter recorded by the recording unit to a server, so that the server determines, according to the operation parameter, whether the user performs cheating behavior.
  8. 根据权利要求7所述的装置,其特征在于,所述操作参数包括所述用户的位置参数,或所述用户的位置参数及该位置参数对应的速度参数。The apparatus according to claim 7, wherein the operation parameter comprises a position parameter of the user, or a position parameter of the user and a speed parameter corresponding to the position parameter.
  9. 根据权利要求7或8所述的装置,其特征在于,所述发送单元用于将所述操作参数附着在向所述服务器发起的预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息。The device according to claim 7 or 8, wherein the sending unit is configured to attach the operation parameter to a preset request message initiated by the server, and use the preset communication module to The server sends the preset request message.
  10. 根据权利要求9所述的装置,其特征在于,所述发送单元具体用于:The device according to claim 9, wherein the sending unit is specifically configured to:
    在游戏过程中实时将每个所述操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器发送所述预设请求消息;或者Each of the operation parameters is attached to the preset request message in real time during the game, and the preset request message is sent to the server by the preset communication module; or
    在游戏结束时,将游戏过程中记录的所有操作参数附着在预设请求消息中,并通过所述预设通信模块向所述服务器统一发送所述预设请求消息。At the end of the game, all the operation parameters recorded during the game are attached to the preset request message, and the preset request message is uniformly sent to the server through the preset communication module.
  11. 根据权利要求7至10中任一项所述的装置,其特征在于,还包括:The apparatus according to any one of claims 7 to 10, further comprising:
    接收单元,用于在通过预设通信模块监测需要发送的网络消息之前,接收服务器的游戏开局响应消息,所述游戏开局响应消息中携带所述预设监测区域的标识信息;a receiving unit, configured to receive a game start response message of the server before the network message that needs to be sent is monitored by the preset communication module, where the game start response message carries the identifier information of the preset monitoring area;
    确定单元,用于根据预先设置的所述标识信息与所述预设监测区域的边界信息之间的对应关系,确定所述预设监测区域在所述游戏场景中的位置。And a determining unit, configured to determine a location of the preset monitoring area in the game scenario according to a correspondence between the preset identifier information and boundary information of the preset monitoring area.
  12. 根据权利要求11所述的装置,其特征在于,所述标识信息与所述预设监测区域的边界信息之间的对应关系为从游戏的场景文件中提取并硬编码在所述预设通信模块中。The device according to claim 11, wherein the correspondence between the identification information and the boundary information of the preset monitoring area is extracted from the scene file of the game and hard coded in the preset communication module. in.
  13. 一种电子设备,其特征在于,所述电子设备包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为上述电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行前述权利要求1至6中任一项所述的游戏作弊检测方法。An electronic device, comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed in the circuit a power supply circuit for supplying power to each circuit or device of the electronic device; a memory for storing executable program code; and a processor for operating the executable program code by reading executable program code stored in the memory A program for performing the game cheat detection method according to any one of the preceding claims 1 to 6.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现前述权利要求1至6中任一项所述的游戏作弊检测方法。A computer readable storage medium, wherein the computer readable storage medium stores one or more programs, the one or more programs being executable by one or more processors to implement the foregoing claim 1 The game cheat detection method according to any one of the six.
PCT/CN2018/103628 2018-03-22 2018-08-31 Method and device for detecting cheating in gameplay WO2019179048A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810243515.2A CN110292777B (en) 2018-03-22 2018-03-22 Game cheating detection method and device
CN201810243515.2 2018-03-22

Publications (1)

Publication Number Publication Date
WO2019179048A1 true WO2019179048A1 (en) 2019-09-26

Family

ID=67986671

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103628 WO2019179048A1 (en) 2018-03-22 2018-08-31 Method and device for detecting cheating in gameplay

Country Status (2)

Country Link
CN (1) CN110292777B (en)
WO (1) WO2019179048A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11439911B2 (en) * 2020-04-07 2022-09-13 Riot Games, Inc. Systems and methods for anti-cheat detection
CN111569433B (en) * 2020-05-11 2023-09-12 上海米哈游天命科技有限公司 Game cheating detection method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071456A (en) * 2007-04-29 2007-11-14 腾讯科技(深圳)有限公司 Network game cheat monitoring method and system
US20090163280A1 (en) * 2006-09-04 2009-06-25 Tencent Technology (Shenzhen) Company Ltd. Network Game Anti-Cheating Device, Method and System
CN103530490A (en) * 2012-07-06 2014-01-22 腾讯科技(深圳)有限公司 Simulator-type plug-in identification method and system for networking game
CN106550026A (en) * 2016-11-01 2017-03-29 武汉斗鱼网络科技有限公司 A kind of network communication device and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7169050B1 (en) * 2002-08-28 2007-01-30 Matthew George Tyler Online gaming cheating prevention system and method
JP2006141665A (en) * 2004-11-19 2006-06-08 Taito Corp Game system having advising function
CN100583736C (en) * 2005-07-08 2010-01-20 王荣 Method for detecting network game cheat
CN105718462B (en) * 2014-12-02 2020-01-17 阿里巴巴集团控股有限公司 Cheating detection method and device for application operation
CN107670280A (en) * 2017-09-30 2018-02-09 尹辉 A kind of game APP judges the method whether closely practised fraud between player

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090163280A1 (en) * 2006-09-04 2009-06-25 Tencent Technology (Shenzhen) Company Ltd. Network Game Anti-Cheating Device, Method and System
CN101071456A (en) * 2007-04-29 2007-11-14 腾讯科技(深圳)有限公司 Network game cheat monitoring method and system
CN103530490A (en) * 2012-07-06 2014-01-22 腾讯科技(深圳)有限公司 Simulator-type plug-in identification method and system for networking game
CN106550026A (en) * 2016-11-01 2017-03-29 武汉斗鱼网络科技有限公司 A kind of network communication device and method

Also Published As

Publication number Publication date
CN110292777B (en) 2020-09-04
CN110292777A (en) 2019-10-01

Similar Documents

Publication Publication Date Title
US9744465B2 (en) Identify plug-in of EMU class internet game
WO2022022281A1 (en) Game data processing method and apparatus, and computer and readable storage medium
WO2018145554A1 (en) Data processing method, related device and system, and computer readable storage medium
TWI573619B (en) Automatic generation of suggested mini-games for cloud-gaming based on recorded gameplay
WO2020114007A1 (en) Method employing gamepad to remotely control computer game, system, and electronic apparatus
KR102575204B1 (en) Systems and methods for establishing direct communication between a server system and a video game controller
KR20140031399A (en) Method and system for transferring an application state
US9323323B2 (en) Augmented reality system for playground equipment incorporating transforming avatars
US11478700B2 (en) Asynchronous event management for hosted sessions
WO2019179048A1 (en) Method and device for detecting cheating in gameplay
CN112169327A (en) Control method of cloud game and related device
CN113398590A (en) Sound processing method, sound processing device, computer equipment and storage medium
WO2019127113A1 (en) Audio competition playing device and method therefor and mobile terminal
US20160158653A1 (en) Dynamic interface control device mapping when game sharing
US20230356082A1 (en) Method and apparatus for displaying event pop-ups, device, medium and program product
WO2017185618A1 (en) Method and device for implementing civilian commentary
CN106535152B (en) Application data processing method, device and system based on terminal
WO2022217826A1 (en) Game interaction method and system based on close contact, server, and storage medium
CN117861194A (en) Cloud game-based device control method and device, electronic device and readable medium
DeMarle Let us entertain you
KR20120079621A (en) Game service system, game service apparatus and game execution method thereof
US11975264B2 (en) Gaze-based coordination of virtual effects indicators
CN109621414B (en) Method and device for displaying and providing throwing result of virtual dice
TW201909074A (en) Server device that provides advertisement, terminal device, and method Including a database unit, a back-stage server unit, and a game server unit
US9075761B1 (en) Social spaces for games

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18911298

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18911298

Country of ref document: EP

Kind code of ref document: A1