Detection Method, Device, Electronic Device and Storage Medium for Action Resources
By loading the action monitoring hook file and action recognition model when the engine editor is started, automatic detection and update action resources are solved, and the lag problem caused by manual inspection is ensured to ensure resource accuracy and efficient development.
Patent Information
- Application Number
- CN202110880246.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-02
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2041-08-02
AI Technical Summary
During the startup of the project engine editor, the existing technology relies on manual inspection of whether the action resources are expired or damaged, resulting in delayed inspection time and high professional requirements, which affects the action display effect of the project object.
During the editor startup of the target engine, a pre-built action monitoring hook file is loaded, and the target loading action resources to be detected are automatically detected through the action monitoring hook file. The action recognition model is used to identify resource types and update damaged or mismatched resources.
It realizes automated action resource detection during the engine editor startup process, ensures resource accuracy, no manual intervention is required, saves human resources, optimizes the startup process, laying the foundation for efficient project development.
Smart Images

Figure CN113590222B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer application technologies, and in particular, to a method, apparatus, electronic device, and storage medium for detecting action resources. Background Art
[0002] During the startup process of a project engine editor, various action resources required for project development or operation often need to be loaded. If expired action resources or damaged action resources are loaded, it may cause the project objects matching the action resources to be unable to accurately display the preset actions, affecting the screen display effect.
[0003] Currently, the way to check whether action resources are expired is that after the editor is started, professional technicians manually check. This requires a high level of professionalism for the inspection executors, and there is also a certain lag in the inspection time. Summary of the Invention
[0004] The embodiments of the present invention provide a method, apparatus, electronic device, and storage medium for detecting action resources to optimize the startup process of the engine editor and achieve automatic detection of project resources.
[0005] In a first aspect, the embodiments of the present invention provide a method for detecting action resources, including:
[0006] During the startup process of the editor of the target engine, load a pre-constructed action monitoring hook file;
[0007] Based on the action monitoring hook file, detect the target loaded action resources to be detected corresponding to the target engine;
[0008] Based on the detection result, determine whether to continue to execute the operation of starting the editor of the target engine.
[0009] In a second aspect, the embodiments of the present invention further provide a device for detecting action resources, including:
[0010] A hook file loading module, configured to load a pre-constructed resource monitoring hook file during the startup process of the editor of the target engine;
[0011] A project resource detection module, configured to detect the locally loaded project resources based on the resource monitoring hook file and the target loaded project resources in the resource server;
[0012] An opening operation execution module, configured to determine whether to continue to execute the operation of starting the editor of the target engine based on the detection result.
[0013] In a third aspect, the embodiments of the present invention further provide an electronic device, and the electronic device includes:
[0014] One or more processors;
[0015] A storage device for storing one or more programs,
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for detecting action resources provided in any embodiment of the present invention.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for detecting action resources provided in any embodiment of the present invention is implemented.
[0018] The technical solution of the embodiment of the present invention, during the startup process of the editor of the target engine, loads a pre-constructed action monitoring hook file; detects the target loading action resources to be detected corresponding to the target engine based on the action monitoring hook file; can automatically detect the target loading action resources during the startup process of the editor of the target engine, ensuring the accuracy of the target loading action resources, and determines whether to continue to execute the operation of starting the editor of the target engine based on the detection result. The startup process of the editor of the target engine does not need to rely on manual processing methods, saves human resources, optimizes the editor startup process, and lays a foundation for high-efficiency project development. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the introduced drawings are only the drawings of a part of the embodiments to be described by the present invention, rather than all the drawings. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0020] Figure 1 It is a schematic flowchart of a method for detecting action resources provided by an embodiment of the present invention;
[0021] Figure 2 It is a schematic flowchart of another method for detecting action resources provided by an embodiment of the present invention;
[0022] Figure 3 It is a schematic flowchart of a method for detecting action resources in an application scenario provided by an embodiment of the present invention;
[0023] Figure 4 It is a schematic structural diagram of a device for detecting action resources provided by an embodiment of the present invention;
[0024] Figure 5It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners
[0025] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. Additionally, it should be noted that for the sake of description, only parts related to the present invention rather than all structures are shown in the drawings.
[0026] Additionally, it should be noted that for the sake of description, only parts related to the present invention rather than all content are shown in the drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations can be performed in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. When the operations are completed, the process can be terminated, but there can also be additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0027] Embodiment 1
[0028] Figure 1 It is a schematic flowchart of a method for detecting action resources provided by an embodiment of the present invention. This method can be executed by a detection device for action resources, and this device can be implemented through software and / or hardware, and can be configured in a terminal and / or a server to implement the method for detecting action resources in the embodiments of the present invention.
[0029] As Figure 1 shown, the method of this embodiment can specifically include:
[0030] S101. During the startup process of the editor of the target engine, load the pre-constructed action monitoring hook file.
[0031] In the embodiments of the present invention, the target engine includes a game application that currently requires R & D personnel to develop or update. The startup process of the editor of the target engine can include the following steps: 1. Initialize the basic configuration of the target engine; 2. Compile all the code of the target engine; 3. Import the project resources of the target engine; 4. Import the numerical files of the target engine.
[0032] Among them, all the code of the compiled target engine includes: the native code library of the target engine, the code of the plugin layer of the target engine, all the code of the project engineering of the target engine, and the code of the third-party library software development kit library or the third-party plugin library of the target engine. The project resources of the target engine may include resources such as character models, building models, weapon models, textures, animations, skeletons, and prefab prefabs. The numerical files of the target engine can be files that describe the basic numerical values of the models, animation-related numerical values, or scene-related numerical values; for example, model height numerical values, weapon appearance numerical values, weapon firing numerical values, character animation speed numerical values, special effect time numerical values, scene transparency numerical values, etc.
[0033] Taking the startup of the game engine editor as an example, the startup steps of the game engine editor include: compiling the engine native code library, such as compiling the dlls of the UnityEngine series; inserting the EnginePreEntryHook.dll file; compiling the code of the engine plugin layer, such as compiling the dlls of the package and plugin series; compiling the code of the game project, such as compiling the dlls of the Project series; compiling the third-party SDK library or the third-party plugin library, such as compiling the sound effect wwise and the game sdk, etc.
[0034] Optionally, during the startup process of the editor of the target engine, that is, when entering the stage of starting the editor of the target engine, load the pre-built action monitoring hook file. The action monitoring hook file can trigger the detection operation on the target loading action resources to be detected corresponding to the target engine. The target loading action resources can include the texture resources corresponding to each character in the target engine. For example, the texture resources of types such as kicking, raising the hand, turning around, lying down, or soaring in the air of the characters in the game.
[0035] Optionally, the action monitoring hook file is a dynamic link library file or a tag file. Exemplarily, the action monitoring hook file includes the EnginePreEntryHook.dll file.
[0036] Optionally, the method of this embodiment further includes performing at least one of the following operations: loading the native code library of the target engine; loading the engine plugin layer assembly of the target engine; loading the pre-built project engineering assembly; loading the pre-built third-party software development kit assembly.
[0037] Specifically, during the startup process of the editor of the target engine, after initializing the basic configuration of the target engine, first load the native code library of the target engine to provide a development basic environment for the editor of the target engine, and then complete the operations of loading the engine plugin layer assembly of the target engine, loading the pre-built project engineering assembly, and loading the pre-built third-party software development kit assembly.
[0038] Exemplarily, the native code library includes the code library compiled from the dlls of the UnityEngine series. The native code library of the target engine can be repeatedly applied to the development or update scenarios of the target engine, facilitating the management and maintenance by R & D personnel in the later stage and improving the development or update efficiency of the target engine.
[0039] Optionally, loading the pre-built action monitoring hook file includes at least one of the following operations:
[0040] When the native code library of the target engine is loaded successfully, load the pre-built action monitoring hook file; or,
[0041] When the engine plugin layer assembly of the target engine is loaded successfully, load the pre-built action monitoring hook file; or,
[0042] When the pre-built project engineering assembly is loaded successfully, load the pre-built action monitoring hook file; or rather,
[0043] When the pre-built third-party software development kit assembly is loaded successfully, load the pre-built action monitoring hook file.
[0044] Specifically, on the basis of the successful loading of the native code library of the target engine, load the pre-built action monitoring hook file to make full use of the code resources of the loaded native code library, simplify the construction of the action monitoring hook file as much as possible, and make preparations in advance for the use of the action monitoring hook file.
[0045] Furthermore, the operation of loading the pre-built action monitoring hook file can be performed at any time during the startup process of the target engine editor. Exemplarily, the pre-built action monitoring hook file can be loaded when the engine plugin layer assembly of the target engine is loaded successfully; or, the pre-built action monitoring hook file can be loaded when the pre-built project engineering assembly is loaded successfully; or rather, the pre-built action monitoring hook file can be loaded when the pre-built third-party software development kit assembly is loaded successfully.
[0046] In the embodiment of the present invention, the action monitoring hook file is loaded during the startup process of the target engine editor to ensure that the detection of the target loading action resources to be detected is completed during the startup process; and, the loaded engine plugin resources, project engineering resources or third-party software development kit resources can be fully utilized, facilitating the use of the action monitoring hook file.
[0047] S102. Detect the target loading action resources to be detected corresponding to the target engine based on the action monitoring hook file.
[0048] Optionally, after the action monitoring hook file is loaded, it can trigger the detection of the target loading action resources to be detected corresponding to the target engine. Specifically, the target loading action resources may include the action resources corresponding to each role in the target engine. Taking the target engine as a game engine as an example, for example, action resources such as kicking, raising hands, turning around, lying down, or soaring of characters in the game.
[0049] Specifically, the detection content includes at least one of whether the target loading action resources are data corrupted, whether the target loading action resources correspond to the character, and whether the optimization option is enabled for the target loading action resources. By detecting whether the target loading action resources are data corrupted, it is determined whether the game character can perform the texture mapping action operation. By detecting whether the target loading action resources correspond to the character, it is determined whether the action performed by the game character is accurate; by detecting whether the optimization option is enabled for the target loading action resources, it is determined whether the display effect of the target loading action resources meets the requirements.
[0050] S103. Determine whether to continue to execute the operation of starting the editor of the target engine based on the detection result.
[0051] Specifically, based on the action monitoring hook file, the target loading action resources are detected. When the detection result is passed, the operation of starting the editor of the target engine can be continued. When the detection result is not passed, the target loading action resources can be modified, and the modified target loading action resources are detected again, and the operation of starting the editor of the target engine is continued. Alternatively, a detection prompt message can be generated and the detection prompt message can be displayed. Among them, the detection prompt message can be at least one of the information for prompting the detection result of the target loading action resources, the information for prompting the target user to modify the target loading action resources, and the prompt information for prompting the next operation performed on the target loading action resources.
[0052] The technical solution of the embodiment of the present invention, by loading the pre-constructed action monitoring hook file during the startup process of the editor of the target engine; detecting the target loading action resources to be detected corresponding to the target engine based on the action monitoring hook file; can automatically detect the target loading action resources during the startup process of the editor of the target engine, ensuring the accuracy of the target loading action resources, and determining whether to continue to execute the operation of starting the editor of the target engine based on the detection result. The startup process of the editor of the target engine does not need to rely on manual processing methods, saves human resources, optimizes the editor startup process, and lays a foundation for high-efficiency project development.
[0053] Embodiment Two
[0054] Figure 2It is a schematic flowchart of another method for detecting action resources provided by an embodiment of the present invention; based on any optional technical solution in the embodiments of the present invention, optionally, detecting a target loading action resource to be detected corresponding to a target engine based on an action monitoring hook file, including: reading the target loading action resource to be detected corresponding to the target engine based on the action detection class of the action monitoring hook file, and detecting the target loading action resource based on at least one pre-trained action recognition model. Based on any optional technical solution in the embodiments of the present invention, optionally, determining whether to continue to execute the operation of starting the editor of the target engine based on the detection result, including: if the detection result is that the detection fails, calling the action update class of the action monitoring hook file to update the target loading action resource; if the detection result is that the detection passes, continuing to execute the operation of starting the editor of the target engine. Among them, the explanations of the same or corresponding terms as those in the above embodiments are not repeated here.
[0055] As Figure 2 shown, the method of this embodiment may specifically include:
[0056] S201. During the startup process of the editor of the target engine, load the pre-constructed action monitoring hook file.
[0057] S202. Read the target loading action resource to be detected corresponding to the target engine based on the action detection class of the action monitoring hook file, and detect the target loading action resource based on at least one pre-trained action recognition model. If the detection result is that the detection fails, enter S203; if the detection result is that the detection passes, enter S204.
[0058] Optionally, the target loading action resource to be detected corresponding to the target engine can be read based on the action detection class in the action monitoring hook file. Exemplarily, the development environment of the target engine can be the C# language. Since C# is an object-oriented programming language derived from C and C++, C# not only inherits the powerful functions of C and C++, but also reduces the complex features of C and C++. Therefore, writing functional functions in the C# language can enable programmers to develop programs more efficiently. Specifically, the action detection class may include PEAnimationOptChecking.
[0059] Optionally, the action recognition model can be pre-trained. The action recognition model is trained based on sample action resources and label information of the sample action resources, and the label information is used to represent the type of the sample action resources. It can be understood that the action recognition model is an artificial intelligence model, and the initial model of the action recognition model can be a classification model. Among them, the classification model can be a deep learning network or a machine learning model.
[0060] Specifically, the pre-trained action recognition model may include: inputting at least one sample action resource into a pre-established initial model to obtain the output type of the sample action resource; adjusting the model parameters of the initial model based on the output type and the label information of the sample action resource; and if the initial model reaches a preset end training condition after adjustment, using the initial model as the action recognition model. Among them, the preset end training condition may be that a pre-constructed model loss function or cost function corresponding to the initial model converges.
[0061] Exemplarily, the sample action resource includes an action resource corresponding to sample label information. For example, when currently training an action recognition model for the actions of a military advisor character in a game, the label information is the military advisor action type, and the sample action resources can be "raising the hand", "commanding", "playing the zither", etc. When currently training an action recognition model for the actions of a general character in a game, the label information is the general action type, and the sample action resources can be "riding a horse", "swinging a sword", "shooting an arrow", etc.
[0062] Optionally, detecting a target loaded action resource based on at least one pre-trained action recognition model includes: determining the type of the target loaded action resource, determining a target action recognition model from at least one pre-trained action recognition model based on the type, and inputting the target loaded action resource into the target action recognition model for detection.
[0063] It should be noted that the target loaded action resource can be classified according to actual needs to determine the type of the target loaded action resource. Taking a game engine as an example, the target loaded action resource can be an action resource corresponding to the game main body. Exemplarily, the type of the target loaded action resource can be determined according to the setting information of the game main body corresponding to the target loaded action resource. Among them, the setting information may include information such as occupation, gender, or age. Specifically, the target loaded action resources corresponding to game main bodies of the same occupation belong to the same type.
[0064] Specifically, after determining the type of the target loaded action resource, the identification information of each pre-trained action recognition model can be obtained, the target identification information matching the type can be determined from the identification information, the action recognition model corresponding to the target identification information can be determined as the target action recognition model, and the target loaded action resource can be input into the target action recognition model for detection.
[0065] It should be noted that the identification information can be displayed in the form of numbers and / or characters. Exemplarily, the label information can be a number, where "1" represents the action type of the military advisor and "0" represents the action type of the military general. When it is determined that the type of the target loaded action resource is the action type of the military general, the action recognition model with the label information of "0" can be determined as the target action recognition model, and the target loaded action resource is input into the target action recognition model for detection.
[0066] S203. Call the action update class of the action monitoring hook file to update the target loaded action resource.
[0067] Optionally, obtain the detection result output by the target action recognition model. When the detection result is that the detection fails, it indicates that the target loaded action resource is damaged or does not match the corresponding action type. The action update class of the action monitoring hook file can be called to update the target loaded action resource.
[0068] Specifically, calling the action update class of the action monitoring hook file to update the target loaded action resource includes: calling the action update class of the action monitoring hook file, obtaining the action resource corresponding to the target loaded action resource from the resource server as the target update action resource, and updating the target loaded action resource to the target update action resource. That is, the target loaded action resource can be replaced with the target update action resource.
[0069] To ensure that the target update action resource is not damaged, it is still necessary to detect the target update action resource. Optionally, after updating the target loaded action resource to the target update action resource, it further includes: calling the action detection class of the action monitoring hook file to detect the target update action resource. Based on the detection result, determine whether to continue to execute the operation of opening the editor of the target engine.
[0070] Specifically, if the detection result of the target update action resource is that the detection passes, continue to execute the operation of opening the editor of the target engine.
[0071] Specifically, if the detection result of the target update action resource is that the detection fails, send a detection notification message to at least one target terminal, and continue to execute the operation of opening the editor of the target engine. The target terminal can include the operation terminal of the art staff. By sending the detection notification message, the art staff can be notified to discover the current situation in a timely manner and perform repair operations on the action resource.
[0072] The embodiment of the present invention further includes: receiving the target repair action resource corresponding to the target update action resource feedback by the target terminal, and updating the target update resource to the target repair action resource.
[0073] S204. Continue to execute the operation of opening the editor of the target engine.
[0074] Optionally, obtain the detection result output by the target action recognition model. When the detection result is passed, it indicates that the target loaded action resource is intact and matches the corresponding action type, and the operation of opening the editor of the target engine can be continued.
[0075] Optionally, after updating the target loaded action resource in the action update class that calls the action monitoring hook file, the operation of opening the editor of the target engine can be continued. It is also possible to execute S203 and S204 in parallel.
[0076] The technical solution of this embodiment effectively detects the target loaded action resource by using the pre-trained action recognition model to detect the target loaded action resource; if the detection fails, the target loaded action resource is updated to ensure that each action resource is accurate and error-free, realizing the accurate operation of the target engine and laying a foundation for high-efficiency project development.
[0077] Embodiment Three
[0078] The above text has described in detail the embodiments corresponding to the detection method of action resources. To make those skilled in the art further clear about the technical solution of this method, specific application scenarios are given below.
[0079] Figure 3 is a schematic flowchart of a detection method for action resources in an application scenario provided by an embodiment of the present invention; as Figure 3 shown, the engine is a game application that currently needs to be developed or updated by R & D personnel. The development or update process of the engine editor includes an engine basic configuration initialization stage, an all-code compilation stage, an engine system resource import stage, a data file import stage, and a start editor stage.
[0080] After the engine basic configuration is initialized, code compilation is completed. During the code compilation process, an action monitoring hook file is pre-constructed. Specifically, code compilation includes the compilation of the engine native code library, such as the compilation of dlls in the UnityEngine series; the inserted EnginePreEntryHook.dll file, that is, the dll compilation of PreEntryHook.
[0081] Exemplarily, a project EnginePreEntryHook is made using the C# language to generate the corresponding EnginePreEntryHook.dll file.
[0082] Optionally, store the built EnginePreEntryHook.dll in the EngineDll directory within the game project, separate from other engine-internal dlls, for independent maintenance. Further, map the updated EnginePreEntryHook received to the EnginePreEntryHook.dll file in the EngineDll folder within the game project.
[0083] In an embodiment of the present invention, a C# language plug-in library detection class PEAnimationChecking can be written in the EnginePreEntryHook project to communicate with an AI artificial intelligence server, trigger the reading of target loading action resources, and send the target loading action resources to the AI artificial intelligence server. Specifically, the target loading action resources include target action texture maps.
[0084] Exemplarily, the AI artificial intelligence server can be a shape recognition remote end. An action recognition model is pre-trained in the AI artificial intelligence server, and can detect the received target action texture map. If the recognition fails, feedback information will be sent to the target engine, requesting to re-obtain the target action texture map and send it again.
[0085] Optionally, the detection standard of the action recognition model can be set such that the measured similarity between the action playback and the actual action is greater than or equal to 90%, and it can be determined that the detection passes. It can be understood that when the similarity between the target action texture map of the character in the target engine and the standard action texture map of the character is greater than or equal to 90%, the target action texture map detection passes.
[0086] Further, a C# language plug-in library update class PEAnimationUpdater is written in the EnginePreEntryHook project to communicate with the resource server.
[0087] Obtain the detection result output by the action recognition model, that is, the measurement result in the figure. When the detection result is not passed, it indicates that the target action texture map is damaged or the version number of the target action texture map does not match the version number of the current target engine; EnginePreEntryHook.dll triggers an operation to automatically re-download resources, downloads the corresponding target update texture map from the resource server, and updates the target action texture map. When the detection result is passed, it indicates that the target action texture map is not damaged, and the startup operation of the editor of the target engine can continue.
[0088] The technical solution of this embodiment detects the target loading action resources through a pre-trained action recognition model, effectively detecting the target loading action resources; if the detection fails, the target loading action resources are updated to ensure that each action resource is accurate and error-free, realizing the accurate operation of the target engine and laying a foundation for high-efficiency project development.
[0089] Embodiment 4
[0090] Figure 4 It is a schematic structural diagram of a detection device for action resources provided by an embodiment of the present invention. The detection device for action resources provided by this embodiment can be implemented through software and / or hardware, and can be configured in a terminal and / or a server to implement the detection method for action resources in the embodiment of the present invention. The device specifically may include:
[0091] The hook file loading module 10 is used to load a pre-constructed resource monitoring hook file during the startup process of the editor of the target engine.
[0092] The project resource detection module 11 is used to detect the local loaded project resources based on the resource monitoring hook file and the target loaded project resources in the resource server.
[0093] The start operation execution module 12 is used to determine whether to continue to execute the operation of starting the editor of the target engine based on the detection result.
[0094] Based on any optional technical solution in the embodiment of the present invention, optionally, the project resource detection module 11 includes:
[0095] The target loaded action resource reading unit is used to read the target loaded action resources to be detected corresponding to the target engine based on the action detection class of the action monitoring hook file, and detect the target loaded action resources based on at least one pre-trained action recognition model.
[0096] Based on any optional technical solution in the embodiment of the present invention, optionally, the action recognition model is trained according to the sample action resources and the label information of the sample action resources, and the label information is used to represent the type of the sample action resources; the target loaded action resource reading unit includes:
[0097] The unit for determining the type of the target loaded action resource is used to determine the type of the target loaded action resource, determine the target action recognition model from at least one pre-trained action recognition model based on the type, and input the target loaded action resources into the target action recognition model for detection.
[0098] Based on any optional technical solution in the embodiment of the present invention, optionally, the start operation execution module 12 includes:
[0099] An update unit, configured to, if the detection result is that the detection fails, call the action update class of the action monitoring hook file to update the target loading action resource; if the detection result is that the detection passes, continue to execute the operation of opening the editor of the target engine.
[0100] Based on any optional technical solution in the embodiments of the present invention, optionally, the update unit includes:
[0101] A target update action resource acquisition unit, configured to call the action update class of the action monitoring hook file, obtain the action resource corresponding to the target loading action resource from the resource server as the target update action resource, and update the target loading action resource to the target update action resource.
[0102] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:
[0103] A target update action resource detection module, configured to, after updating the target loading action resource to the target update action resource, call the action detection class of the action monitoring hook file to detect the target update action resource;
[0104] An opening operation execution module 12, including:
[0105] A detection notification information sending unit, configured to, if the detection result of the target update action resource is that the detection fails, send detection notification information to at least one target terminal, and continue to execute the operation of opening the editor of the target engine.
[0106] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:
[0107] A loading module, configured to load the native code library of the target engine; load the engine plugin layer assembly of the target engine; load the pre-built project engineering assembly; load the pre-built third-party software development kit assembly.
[0108] A hook file loading module 10, including:
[0109] A loading action monitoring hook file unit, configured to load the pre-built action monitoring hook file when the native code library of the target engine is loaded; or, when the engine plugin layer assembly of the target engine is loaded; or, when the pre-built project engineering assembly is loaded; or, when the pre-built third-party software development kit assembly is loaded.
[0110] The above device can execute the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.
[0111] Embodiment 5
[0112] Figure 5 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. Figure 5 It shows a block diagram of an exemplary electronic device 20 suitable for implementing the implementation manner of the embodiment of the present invention. The shown electronic device 20 is only an example and should not bring any limitation to the functions and usage scope of the embodiment of the present invention.
[0113] As Figure 5 shown, the electronic device 20 is presented in the form of a general-purpose computing device. The components of the electronic device 20 may include, but are not limited to: one or more processors or processing units 201, a system memory 202, and a bus 203 connecting different system components (including the system memory 202 and the processing unit 201).
[0114] The bus 203 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the multiple bus structures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0115] The electronic device 20 typically includes a variety of computer system-readable media. These media can be any available media that can be accessed by the electronic device 20, including volatile and non-volatile media, removable and non-removable media.
[0116] System memory 202 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 204 and / or cache memory 205. Electronic device 20 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 206 can be used for reading and writing non-removable, non-volatile magnetic media. A disk drive for reading and writing a removable non-volatile disk (e.g., a “floppy disk”), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM or other optical media) can be provided. In these cases, each drive can be connected to bus 203 via one or more data media interfaces. Memory 202 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of the embodiments of the present invention.
[0117] A program / utility 208 having a set (at least one) of program modules 207 can be stored, for example, in memory 202. Such program modules 207 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, and an implementation of a network environment may be included in each or some combination of these examples. Program modules 207 generally carry out the functions and / or methods in the embodiments described in the present invention.
[0118] Electronic device 20 can also communicate with one or more external devices 209 (such as a keyboard, a pointing device, a display 210, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 20, and / or communicate with any device that enables the electronic device 20 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out via an input / output (I / O) interface 211. Also, electronic device 20 can communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 212. As shown, network adapter 212 communicates with other modules of electronic device 20 via bus 203. It should be understood that other hardware and / or software modules can be used in conjunction with electronic device 20, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0119] Processing unit 201 performs various functional applications and data processing by running programs stored in system memory 202.
[0120] An electronic device provided by the present invention can implement the following method: during the startup process of the editor of the target engine, load a pre-constructed action monitoring hook file; detect the target loading action resources to be detected corresponding to the target engine based on the action monitoring hook file; and determine whether to continue to execute the operation of starting the editor of the target engine based on the detection result. The technical solution of the embodiment of the present invention can automatically detect the target loading action resources during the startup process of the editor of the target engine, ensure the accuracy of the target loading action resources, do not need to rely on manual processing methods, save human resources, optimize the editor startup process, and lay a foundation for high-efficiency project development.
[0121] Embodiment Six
[0122] Embodiment Six of the present invention further provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute a detection method for action resources when executed by a computer processor. The method includes:
[0123] During the startup process of the editor of the target engine, load a pre-constructed action monitoring hook file; detect the target loading action resources to be detected corresponding to the target engine based on the action monitoring hook file; and determine whether to continue to execute the operation of starting the editor of the target engine based on the detection result. The technical solution of the embodiment of the present invention can automatically detect the target loading action resources during the startup process of the editor of the target engine, ensure the accuracy of the target loading action resources, do not need to rely on manual processing methods, save human resources, optimize the editor startup process, and lay a foundation for high-efficiency project development.
[0124] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or combined with an instruction execution system, apparatus, or device.
[0125] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
[0126] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including - but not limited to - wireless, wire, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0127] The computer program code for performing the operations of the embodiments of the present invention may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages - such as Java, Smalltalk, C++ - and also include conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network - including a local area network (LAN) or a wide area network (WAN) - or, alternatively, may be connected to an external computer (e.g., via an Internet service provider through the Internet).
[0128] Note that the above is only the preferred embodiments of the present invention and the applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein. Various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, it may include more other equivalent embodiments, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for detecting an action resource, characterized in that, Including: During the startup process of the editor of the target engine, load the pre-built action monitoring hook file; Read the target loading action resources to be detected corresponding to the target engine based on the action detection class of the action monitoring hook file, and detect the target loading action resources based on at least one pre-trained action recognition model; wherein, the detection content includes at least one of whether the target loading action resources are data corrupted, whether the target loading action resources correspond to the role, and whether the target loading action resources enable the optimization option; the action recognition model is trained according to the sample action resources and the label information of the sample action resources, and the label information is used to represent the type of the sample action resources; Determine whether to continue to execute the operation of opening the editor of the target engine based on the detection result; The detecting the target loading action resources based on at least one pre-trained action recognition model includes: Determine the type of the target loading action resources, determine the target action recognition model from at least one pre-trained action recognition model based on the type, and input the target loading action resources into the target action recognition model for detection.
2. The method according to claim 1, characterized in that, The determining whether to continue to execute the operation of opening the editor of the target engine based on the detection result includes: If the detection result is that the detection fails, call the action update class of the action monitoring hook file to update the target loading action resources; If the detection result is that the detection passes, continue to execute the operation of opening the editor of the target engine.
3. The method according to claim 2, characterized in that, The calling the action update class of the action monitoring hook file to update the target loading action resources includes: Call the action update class of the action monitoring hook file, obtain the action resources corresponding to the target loading action resources from the resource server as the target update action resources, and update the target loading action resources to the target update action resources.
4. The method according to claim 3, characterized in that, After updating the target loading action resources to the target update action resources, it further includes: Call the action detection class of the action monitoring hook file to detect the target update action resources; The determining whether to continue to execute the operation of opening the editor of the target engine based on the detection result includes: If the detection result of the target update action resources is that the detection fails, send detection notification information to at least one target terminal, and continue to execute the operation of opening the editor of the target engine.
5. The method according to claim 1, wherein It further includes performing at least one of the following operations: Load the native code library of the target engine; Load the engine plugin layer assembly of the target engine; Load the pre-built project engineering assembly; Load the pre-built third-party software development kit assembly; The loading the pre-built action monitoring hook file includes at least one of the following operations: When the native code library of the target engine is loaded, load the pre-built action monitoring hook file; or, When the engine plugin layer assembly of the target engine is loaded, load the pre-built action monitoring hook file; or, When the pre-built project engineering assembly is loaded completely, load the pre-built action monitoring hook file; or, When the pre-built third-party software development kit assembly is loaded completely, load the pre-built action monitoring hook file.
6. A detection device for motion resources, characterized in that, It includes: A hook file loading module, configured to load the pre-built resource monitoring hook file during the startup process of the editor of the target engine; A project resource detection module, including a unit for reading the target loading action resource; The unit for reading the target loading action resource is configured to read the target loading action resource to be detected corresponding to the target engine based on the action detection class of the action monitoring hook file, and detect the target loading action resource based on at least one pre-trained action recognition model; wherein, the detection content includes at least one of whether the target loading action resource is data corrupted, whether the target loading action resource corresponds to a role, and whether the target loading action resource enables an optimization option; the action recognition model is trained according to the sample action resource and the label information of the sample action resource, and the label information is used to represent the type of the sample action resource; An enabling operation execution module, configured to determine whether to continue to execute the operation of enabling the editor of the target engine based on the detection result; The unit for reading the target loading action resource includes: A unit for determining the type of the target loading action resource, configured to determine the type of the target loading action resource, determine the target action recognition model from at least one pre-trained action recognition model based on the type, and input the target loading action resource into the target action recognition model for detection.
7. An electronic device, characterized in that, The electronic device includes: One or more processors; A storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the detection method of the action resource as described in any one of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the detection method of the action resource as described in any one of claims 1-5.
Citation Information
Patent Citations
Game data monitoring method and device
CN106326113A
Action detection method and device, electronic equipment and readable storage medium
CN109598201A
Game resource checking method, device and system and storage medium
CN109977022A
Client online method and device and client operation method and device
CN110113391A