CN113590225B - Mapping detection method and device, electronic equipment and storage medium - Google Patents
Mapping detection method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113590225B CN113590225B CN202110880649.7A CN202110880649A CN113590225B CN 113590225 B CN113590225 B CN 113590225B CN 202110880649 A CN202110880649 A CN 202110880649A CN 113590225 B CN113590225 B CN 113590225B
- Authority
- CN
- China
- Prior art keywords
- target
- map
- detection
- file
- mapping
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 153
- 238000013507 mapping Methods 0.000 title claims abstract description 60
- 230000008676 import Effects 0.000 claims abstract description 112
- 238000000034 method Methods 0.000 claims abstract description 52
- 230000008569 process Effects 0.000 claims abstract description 31
- 238000004590 computer program Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 abstract description 8
- 238000011161 development Methods 0.000 description 10
- 230000000694 effects Effects 0.000 description 8
- 239000002699 waste material Substances 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 241000737241 Cocos Species 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010304 firing Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/33—Intelligent editors
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a mapping detection method, a mapping detection device, electronic equipment and a storage medium, wherein the method comprises the following steps: loading a pre-constructed map detection hook file in the starting process of an editor of a target engine; detecting at least one target import map based on the map detection hook file; it is determined whether to continue the operation of starting the editor of the target engine based on the detection result. By the technical scheme of the embodiment of the invention, the target import map can be automatically detected in the starting process of the editor of the target engine, a manual processing mode is not needed, the labor cost is saved, and the starting flow of the editor is optimized.
Description
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to a mapping detection method, a mapping detection device, electronic equipment and a storage medium.
Background
In the game development process, the display effect of game pictures is often enriched through various mapping. However, if the map is damaged during the start of the game engine editor, the display effect of the map may be affected or the map may be imported to fail. Therefore, in order to ensure normal use of the map, the insertion of the map is detected.
At present, the detection mode of the mapping is that after the editor is started, professional technicians manually check the mapping, the detection mode has high requirements on operators, human resources are wasted, and a mode of checking the mapping after the editor is started is adopted, so that certain hysteresis exists in checking time, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for detecting a mapping, which are used for optimizing the starting flow of an engine editor and realizing automatic detection of a target import mapping.
In a first aspect, an embodiment of the present invention provides a mapping detection method, where the method includes:
loading a pre-constructed map detection hook file in the starting process of an editor of a target engine;
detecting at least one target import map based on the map detection hook file;
it is determined whether to continue the operation of starting the editor of the target engine based on the detection result.
In a second aspect, an embodiment of the present invention further provides a mapping detection apparatus, where the apparatus includes:
the hook file loading module is used for loading a pre-constructed map detection hook file in the starting process of the editor of the target engine;
the mapping detection module is used for detecting at least one target import mapping based on the mapping detection hook file;
and the starting operation execution module is used for determining whether to continue executing the operation of starting the editor of the target engine or not based on the detection result.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for map detection provided by any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the mapping detection method provided by any embodiment of the present invention.
According to the technical scheme, the pre-built map detection hook file is loaded in the starting process of the editor of the target engine, at least one target import map is detected based on the map detection hook file, and automatic detection of the target import map in the starting process of the editor is achieved, so that whether the target import map is damaged or not is detected in advance. Furthermore, whether to continue to execute the operation of starting the editor of the target engine is determined based on the detection result, the problem of manpower waste and time waste caused by the fact that whether each target import map can be used or not is checked by a manual checking mode after the editor is started is solved, and the technical effects of optimizing the starting flow of the engine editor and automatically detecting the target import maps are achieved.
Drawings
In order to more clearly illustrate the technical solution of the exemplary embodiments of the present invention, a brief description is given below of the drawings required for describing the embodiments. It is obvious that the drawings presented are only drawings of some of the embodiments of the invention to be described, and not all the drawings, and that other drawings can be made according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a mapping detection method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a mapping detection method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a mapping detection apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
It should be further noted that, for convenience of description, only some, but not all of the matters related to the present invention are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example 1
Fig. 1 is a schematic flow chart of a mapping detection method provided in an embodiment of the present invention, where the embodiment is applicable to a situation of detecting whether a mapping is damaged during a startup process of an engine editor, and the method may be performed by a mapping detection apparatus, and the apparatus may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement the mapping detection method in the embodiment of the present invention.
As shown in fig. 1, the method of this embodiment specifically includes the following steps:
s110, loading a pre-constructed map detection hook file in the starting process of the editor of the target engine.
The target engine may be an engine that needs to be started and perform mapping detection currently. The goal engine may provide a large number of core technologies, data generation tools, and underlying support for the developer. Alternatively, the target engine may be a game engine, such as a Unity engine, a fantasy engine, a Cocos engine, or the like. The editor of the target engine may be understood as a tool for project development matched with the target engine, such as a Unity engine editor, optionally, the project development may be a game development, etc. The editor of the target engine may help the developer build the scene more quickly. The map detection hook file may be a hook file for detecting whether a map in a target engine is damaged, such as: enginePreEntry hook. Dll file, etc.
In this embodiment, the starting process of the editor of the target engine may include the steps of: 1. initializing basic configuration of a target engine; 2. compiling all codes of a target engine; 3. importing project resources of a target engine; 4. and importing the numerical value file of the target engine.
Wherein the compiled code of the target engine includes: the method comprises the steps of a native code library of a target engine, plug-in layer codes of the target engine, all codes of project engineering of the target engine and a third party library software development kit library or a third party plug-in library code of the target engine. Project resources of the target engine may include resources of character models, building models, weapon models, maps, actions, bones, prefab preforms, and the like. The value file of the target engine may be a file describing a model base value, an action related value, or a scene related value; such as model height values, weapon appearance values, weapon firing values, character action speed values, special effects time values, scene transparency values, etc.
Specifically, in the starting process of the editor of the target engine, a pre-built hook file for detecting the mapping is loaded into the memory, so that whether the mapping is damaged or not is detected by the hook file for detecting the mapping, and whether the mapping can be used for subsequent importing or not is ensured.
The time for constructing the map detection hook file is only required before the map detection hook file is loaded, and the method is not limited herein.
It should also be noted that, through the hook file, various event messages in the system or process can be monitored, and the messages sent to the target window are intercepted and processed. In this embodiment, the hook file may be detected by the map, whether the map is damaged is detected during the start-up of the editor of the target engine, and corresponding handling is performed according to the detection result.
Optionally, the map detection hook file is a dynamic link library file or a tag file.
Specifically, the map detection hook file may be a dynamic link library file with a file extension of. Dll, or a tag file with a file extension of. Lab.
It should be noted that the dynamic link library file can be updated and applied to each module in the development process without affecting other parts.
S120, detecting at least one target import map based on the map detection hook file.
The target import map may be a map that needs to be used in a subsequent development process.
Specifically, after loading of the map detection hook file is completed, at least one target import map may be determined based on the map detection hook file, and further, detection may be performed for each target import map to determine whether the target import map is available for subsequent development and use.
In the case of game development, the display effect of the game screen is enriched by various kinds of maps in the game, and therefore, the number of target import maps is usually more than one.
S130, determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result.
The detection results may include both the pass-detected and pass-undetected results.
Specifically, if the detection result is that the detection result is passed, it can be determined that each target import map meets the requirements of subsequent development and use, and the operation of starting the editor of the target engine can be continuously executed. If the detection result is that the target import map is not detected, the problem that the target import map is damaged and cannot be used continuously can exist, at this time, corresponding processing should be performed to repair or update the damaged target import map so as to ensure the usability of each target import map, and the operation of starting the editor of the target engine can be continuously performed based on the processed target import map.
For example, if the target import map is damaged, the target import map is not detected to pass, and a new target import map needs to be updated to ensure that the target import map can be used for subsequent development processing, and further, the operation of starting the editor of the target engine is continuously executed. If the target import map is not damaged, the target import map is detected to pass, and the operation of starting the editor of the target engine is continuously executed.
Whether or not the target import map is damaged can be determined by attribute information or the like of the target import map, and if the attribute information or the like of the target import map matches the attribute information or the like described earlier, the target import map can be determined to be undamaged, and if the attribute information or the like of the target import map does not match the attribute information or the like described earlier, the target import map can be determined to be damaged. Optionally, the attribute information of the target import map includes: size of the storage space, color ratio, etc.
Alternatively, in addition to the above-mentioned manner of determining whether the target import map is damaged according to the attribute information, it may be determined whether the target import map is damaged by other manners, which is not specifically limited in this embodiment.
According to the technical scheme, the pre-built map detection hook file is loaded in the starting process of the editor of the target engine, at least one target import map is detected based on the map detection hook file, and automatic detection of the target import map in the starting process of the editor is achieved, so that whether the target import map is damaged or not is detected in advance. Furthermore, whether to continue to execute the operation of starting the editor of the target engine is determined based on the detection result, the problem of manpower waste and time waste caused by the fact that whether each target import map can be used or not is checked by a manual checking mode after the editor is started is solved, and the technical effects of optimizing the starting flow of the engine editor and automatically detecting the target import maps are achieved.
Example two
Fig. 2 is a schematic flow chart of a mapping detection method provided by a second embodiment of the present invention, and the method for detecting at least one target import mapping based on a mapping detection hook file and determining whether to continue to execute an operation of starting an editor of a target engine based on a detection result according to the embodiment of the present invention can be referred to the technical scheme of the present invention. Wherein, the technical terms identical to or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method of this embodiment specifically includes the following steps:
s210, loading a native code library of the target engine in the starting process of the editor of the target engine.
The native code library may be understood as a system file supporting the operation of the target engine. The language in which the native code library is written may be a c++ object-oriented language. Alternatively, the native code library may be a UnityEngine. Dll library, or the like.
Specifically, a native code library of the target engine is loaded into the memory.
S220, when the loading of the native code library of the target engine is completed, loading the pre-constructed mapping detection hook file.
Specifically, when it is detected that the native code library of the target engine is completely loaded, a pre-built map detection hook file for detecting whether the target import map is damaged may be loaded into the memory.
S230, obtaining a local configuration file of each target import map based on the map detection hook file, and detecting the target import map based on the local configuration file.
The local configuration file may be a file for recording attribute information of the target import map, and the attribute information may include size information of the target import map, and the like. There may be a local profile for each target import map. The local configuration file may be stored in a local storage space. Alternatively, the local profile may be a meta file.
Specifically, for each target import map, a local configuration file corresponding to the target import map may be acquired based on the map detection hook file. Furthermore, the attribute information of the target import map can be obtained by detecting the target import map based on the map detection hook file, the attribute information is compared with the attribute information in the local configuration file, and the detection result corresponding to the target import map is determined according to the comparison result.
Optionally, the detection of the target import map based on the local configuration file may be performed according to the size information in the attribute information, and specifically may include the following steps:
step one, reading target size information of a target import map in a local configuration file, and comparing current size information of the target import map with target size information.
The target size information may be size information of a target import map recorded in the local configuration file. The current size information may be size information of the detected target import map.
Specifically, after the local configuration file of the target import map is obtained, the target size information of the target import map in the local configuration file may be read. And, the current size information of the target import map can be detected for the target import map based on the map detection hook file. Further, the current size information of the target import map may be compared with the target size information to compare whether the current size information is identical with the target size information.
And step two, if the current size information is consistent with the target size information, determining the detection result as passing detection.
And step three, if the current size information is inconsistent with the target size information, determining the detection result as non-detection passing.
In the above steps, the detection result is determined by comparing the size information in the attribute information of the target import map, and in the practical application process, the detection result may be determined by comparing other information in the attribute information, or the detection result may be determined by comparing other information in the target import map except the attribute information, which is not particularly limited in this embodiment.
S240, judging whether the detection result is passing detection or not, and executing S250 if the detection result is not passing detection; if the detection result is that the pass has been detected, S260 is performed.
Specifically, after the target import map is detected based on the local configuration file, a detection result can be obtained. After the detection result is obtained, the corresponding operation to be executed later can be determined according to the detection result.
S250, acquiring a target update map corresponding to the target import map from the resource server based on the local configuration file, and updating the target import map into a target update map.
The resource server may be a remote server storing the map file, for example: cloud servers storing target engine related resources, etc. The target update map may be a map stored in the resource server that corresponds to the target import map.
Specifically, the map corresponding to the local configuration file may be found from the resource server based on the local configuration file, and the found map may be obtained, and the map may be used as the target update map corresponding to the target import map. Further, the target import map that has not passed the detection may be updated to the target update map acquired from the resource server.
For example, a map that matches attribute information or the like recorded in the local profile may be found in the resource server, and the found map is taken as a target update map corresponding to the target import map.
Alternatively, the target update map corresponding to the target import map may be obtained by:
and determining a target configuration file corresponding to the local configuration file in the resource server, and taking a mapping corresponding to the target configuration file as a target updating mapping.
The target configuration file may be a configuration file corresponding to the local configuration file in the resource server.
Specifically, the target configuration file corresponding to the local configuration file can be determined in the resource server according to the basic information of the local configuration file. Further, in the resource server, the map corresponding to the target profile may be determined as the target update map according to the correspondence between the profile and the map.
The basic information may be name information of the configuration file, update time information, and the like.
Optionally, the target configuration file corresponding to the local configuration file is determined by the file update time, which may specifically be:
determining the file updating time of the local configuration file, and taking the configuration file, in the file updating time of each configuration file in the resource server, which is consistent with or later than the file updating time of the local configuration file as the target configuration file.
The file update time may be the time when the configuration file was last changed.
Specifically, the file update time of the local configuration file can be obtained according to the local configuration file, and the configuration file with the file update time consistent with the file update time of the local configuration file can be searched in each configuration file of the resource server according to the file update time, so that the configuration file is determined to be the target configuration file. And searching a configuration file with file update time later than that of the local configuration file in each configuration file of the resource server according to the file update time, determining that the configuration file is a subsequent update version of the local configuration file, and taking the configuration file as a target configuration file.
It should be noted that, the configuration file consistent with the file update time of the local configuration file may be a configuration file consistent with the local configuration file. However, a profile that is later than the file update time of the local profile may be considered as a profile that corresponds to the local profile that is obtained after a subsequent update, i.e., a profile that is currently available for use.
Optionally, when the configuration file and the mapping corresponding to the configuration file in the resource server are detected to be updated, the updated configuration file and mapping can be obtained, and the locally stored corresponding configuration file and mapping can be updated, so as to ensure that the locally stored mapping is the mapping corresponding to the latest version.
S260, continuing to execute the operation of starting the editor of the target engine.
Specifically, if the target import map has been detected to pass, the operation of opening the editor of the target engine may be continued to be performed so as to open the editor of the target engine.
It should be noted that S250 and S260 may be executed in parallel, or S260 may be executed after S250.
Alternatively, if the target import map is updated to the target update map and then detected to pass, the operation of opening the editor of the target engine may be continued to be performed so as to enable the editor of the target engine to be opened.
It should be noted that, the map detection hook file may be stored in the local server, and if the map detection hook file is changed, the changed map detection hook file may be automatically applied to the starting process of the editor of the subsequent target engine.
According to the technical scheme, the native code library of the target engine is loaded in the starting process of the editor of the target engine, when the native code library of the target engine is loaded, the pre-built map detection hook file is loaded, the local configuration file of each target import map is obtained based on the map detection hook file, the target import map is detected based on the local configuration file, the subsequent operation required to be executed is determined according to the detection result, and the automatic detection of the target import map in the starting process of the editor is realized, so that whether the target import map can meet the subsequent use requirement or not is detected in advance. Further, if the detection result is that the detection result is not passed, a target update map corresponding to the target import map is acquired from the resource server based on the local configuration file, and the target import map is updated to be the target update map, so that the target update map which is stored locally and cannot be used is updated to be the target update map which can be used. If the detection result is that the detection is passed, the operation of starting the editor of the target engine is continuously executed, the problem of manpower waste and time waste caused by the fact that whether each target import map can be used or not is checked by a manual checking mode after the editor is started is solved, and the technical effects of optimizing the starting flow of the engine editor and automatically detecting the target import maps are achieved.
Example III
Fig. 3 is a schematic structural diagram of a mapping detection apparatus according to a third embodiment of the present invention, where the mapping detection apparatus provided in the present embodiment includes: a hook file loading module 310, a map detection module 320, and a start operation execution module 330.
The hook file loading module 310 is configured to load a pre-built map detection hook file during a starting process of an editor of the target engine; a map detection module 320, configured to detect at least one target import map based on the map detection hook file; the start operation execution module 330 is configured to determine whether to continue executing the operation of starting the editor of the target engine based on the detection result.
Optionally, on the basis of any optional technical solution of the embodiments of the present invention, the map detection module 320 is further configured to obtain a local configuration file for each target import map based on the map detection hook file, and detect the target import map based on the local configuration file.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the map detection module 320 is further configured to read target size information of the target import map in the local configuration file, and compare current size information of the target import map with the target size information; if the current size information is consistent with the target size information, determining a detection result as passing detection; and if the current size information is inconsistent with the target size information, determining the detection result as non-detection passing.
Optionally, the starting operation executing module 330 is further configured to obtain, if the detection result is that the detection result is not passed, a target update map corresponding to the target import map from a resource server based on the local configuration file, and update the target import map to the target update map; if the detection result is that the detection is passed, the operation of starting the editor of the target engine is continuously executed.
Optionally, on the basis of any optional technical solution in the embodiment of the present invention, the starting operation execution module 330 is further configured to determine a target configuration file corresponding to the local configuration file in the resource server, and use a map corresponding to the target configuration file as a target update map.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the start operation execution module 330 is further configured to determine a file update time of the local configuration file, and use, as the target configuration file, a configuration file in the file update time of each configuration file in the resource server, where the file update time is consistent with or later than the file update time of the local configuration file.
On the basis of any optional technical scheme of the embodiment of the invention, optionally, the device further comprises: the native code library loading module is used for loading a native code library of the target engine; the hook file loading module 310 is further configured to load a pre-built map detection hook file when the native code library of the target engine is loaded.
According to the technical scheme, the pre-built map detection hook file is loaded in the starting process of the editor of the target engine, at least one target import map is detected based on the map detection hook file, and automatic detection of the target import map in the starting process of the editor is achieved, so that whether the target import map is damaged or not is detected in advance. Furthermore, whether to continue to execute the operation of starting the editor of the target engine is determined based on the detection result, the problem of manpower waste and time waste caused by the fact that whether each target import map can be used or not is checked by a manual checking mode after the editor is started is solved, and the technical effects of optimizing the starting flow of the engine editor and automatically detecting the target import maps are achieved.
The mapping detection device can execute the mapping detection method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, each unit and module included in the map detecting apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Example IV
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Fig. 4 shows a block diagram of an exemplary electronic device 40 suitable for use in implementing the embodiments of the present invention. The electronic device 40 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 4, the electronic device 40 is in the form of a general purpose computing device. Components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, a bus 403 that connects the various system components (including the system memory 402 and the processing units 401).
Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include 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.
Electronic device 40 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 40 and includes both volatile and non-volatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 404 and/or cache memory 405. Electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 403 through one or more data medium interfaces. The system memory 402 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored in, for example, system memory 402, such program modules 407 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), one or more devices that enable a user to interact with the electronic device 40, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 411. Also, electronic device 40 may 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, through network adapter 412. As shown, network adapter 412 communicates with other modules of electronic device 40 over bus 403. It should be appreciated that although not shown in fig. 4, other hardware and/or software modules may be used in connection with electronic device 40, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 401 executes various functional applications and data processing by running a program stored in the system memory 402, for example, implements the map detection method provided by the embodiment of the present invention.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a mapping detection method, the method comprising:
loading a pre-constructed map detection hook file in the starting process of an editor of a target engine;
detecting at least one target import map based on the map detection hook file;
it is determined whether to continue the operation of starting the editor of the target engine based on the detection result.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may 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 electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (8)
1. A method of map detection, comprising:
loading a pre-constructed map detection hook file in the starting process of an editor of a target engine;
detecting at least one target import map based on the map detection hook file;
determining whether to continue to perform the operation of starting the editor of the target engine based on the detection result; the detecting at least one target import map based on the map detection hook file includes:
acquiring a local configuration file of each target import map based on the map detection hook file, and detecting the target import map based on the local configuration file;
the determining whether to continue to execute the operation of starting the editor of the target engine based on the detection result includes:
if the detection result is that the detection result is not passed, acquiring a target update mapping corresponding to the target import mapping from a resource server based on the local configuration file, and updating the target import mapping into the target update mapping;
if the detection result is that the detection is passed, continuing to execute the operation of starting the editor of the target engine;
wherein the map detection hook file is a hook file for detecting whether a map in a target engine is damaged.
2. The method of claim 1, wherein the detecting the target import map based on the local profile comprises:
reading target size information of the target import map in the local configuration file, and comparing current size information of the target import map with the target size information;
if the current size information is consistent with the target size information, determining a detection result as passing detection;
and if the current size information is inconsistent with the target size information, determining the detection result as non-detection passing.
3. The method of claim 1, wherein the obtaining, from a resource server, a target update map corresponding to the target import map based on the local profile comprises:
and determining a target configuration file corresponding to the local configuration file in the resource server, and taking a mapping corresponding to the target configuration file as a target updating mapping.
4. A method according to claim 3, wherein said determining a target profile in a resource server corresponding to said local profile comprises:
and determining the file updating time of the local configuration file, and taking the configuration file, in the file updating time of each configuration file in the resource server, which is consistent with or later than the file updating time of the local configuration file as a target configuration file.
5. The method as recited in claim 1, further comprising:
loading a native code library of the target engine;
the loading of the pre-built map detection hook file includes:
and when the loading of the native code library of the target engine is completed, loading a pre-constructed map detection hook file.
6. A map detecting apparatus, comprising:
the hook file loading module is used for loading a pre-constructed map detection hook file in the starting process of the editor of the target engine;
the mapping detection module is used for detecting at least one target import mapping based on the mapping detection hook file;
the starting operation execution module is used for determining whether to continue executing the operation of starting the editor of the target engine or not based on the detection result;
the mapping detection module is further used for obtaining a local configuration file of each target import mapping based on the mapping detection hook file and detecting the target import mapping based on the local configuration file;
the starting operation executing module is further configured to obtain a target update map corresponding to the target import map from a resource server based on the local configuration file if the detection result is that the detection result is not passed, and update the target import map to the target update map;
if the detection result is that the detection is passed, continuing to execute the operation of starting the editor of the target engine;
wherein the map detection hook file is a hook file for detecting whether a map in a target engine is damaged.
7. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the map detection method of any of claims 1-5.
8. A computer readable storage medium having stored thereon a computer program which when executed by a processor implements a mapping detection method as claimed in any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110880649.7A CN113590225B (en) | 2021-08-02 | 2021-08-02 | Mapping detection method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110880649.7A CN113590225B (en) | 2021-08-02 | 2021-08-02 | Mapping detection method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113590225A CN113590225A (en) | 2021-11-02 |
CN113590225B true CN113590225B (en) | 2023-11-10 |
Family
ID=78253801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110880649.7A Active CN113590225B (en) | 2021-08-02 | 2021-08-02 | Mapping detection method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113590225B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114288666A (en) * | 2021-12-29 | 2022-04-08 | 完美世界(北京)软件科技发展有限公司 | Game element detection method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117217A (en) * | 2015-08-12 | 2015-12-02 | 北京触控科技有限公司 | Cross-platform game rendering method and system |
CN108537891A (en) * | 2017-03-01 | 2018-09-14 | 黎志毅 | The method that three-dimensional material and textures data are automatically switched to UE4 |
CN112667314A (en) * | 2020-12-23 | 2021-04-16 | 上海米哈游天命科技有限公司 | Game engine editor starting method and device, electronic equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7340513B2 (en) * | 2002-08-13 | 2008-03-04 | International Business Machines Corporation | Resource management method and system with rule based consistency check |
US7150008B2 (en) * | 2002-10-25 | 2006-12-12 | Microsoft Corporation | Non-invasive rule-based binary analysis of software assemblies |
US10486068B2 (en) * | 2015-05-14 | 2019-11-26 | Activision Publishing, Inc. | System and method for providing dynamically variable maps in a video game |
DE102018003142A1 (en) * | 2017-12-13 | 2019-06-13 | The Mathworks, Inc. | Automatic setting of multitasking configurations for a code checking system |
-
2021
- 2021-08-02 CN CN202110880649.7A patent/CN113590225B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117217A (en) * | 2015-08-12 | 2015-12-02 | 北京触控科技有限公司 | Cross-platform game rendering method and system |
CN108537891A (en) * | 2017-03-01 | 2018-09-14 | 黎志毅 | The method that three-dimensional material and textures data are automatically switched to UE4 |
CN112667314A (en) * | 2020-12-23 | 2021-04-16 | 上海米哈游天命科技有限公司 | Game engine editor starting method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113590225A (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110990411B (en) | Data structure generation method and device, and calling method and device | |
CN113296786B (en) | Data processing method, device, electronic equipment and storage medium | |
CN111124371A (en) | Game-based data processing method, device, equipment and storage medium | |
CN112667315A (en) | Game engine editor starting method and device, electronic equipment and storage medium | |
CN113590327A (en) | Project resource detection method and device, electronic equipment and storage medium | |
CN110659210A (en) | Information acquisition method and device, electronic equipment and storage medium | |
CN113760306B (en) | Method and device for installing software, electronic equipment and storage medium | |
CN110688111A (en) | Configuration method, device, server and storage medium of business process | |
CN113590225B (en) | Mapping detection method and device, electronic equipment and storage medium | |
CN114003269A (en) | Component processing method and device, electronic equipment and storage medium | |
CN112988192A (en) | Version updating method and device, electronic equipment and storage medium | |
CN113590221B (en) | Method and device for detecting number of shader variants, electronic equipment and storage medium | |
CN113590446B (en) | Method and device for detecting numerical value file, electronic equipment and storage medium | |
CN113590179B (en) | Plug-in detection method and device, electronic equipment and storage medium | |
CN113590224B (en) | Method and device for detecting server, electronic equipment and storage medium | |
CN113986385A (en) | Item font library loading method and device, electronic equipment and storage medium | |
CN113590228A (en) | Starting method and device of engine editor, electronic equipment and storage medium | |
CN113590226B (en) | Method and device for starting engine editor, electronic equipment and storage medium | |
CN112114811A (en) | Compiling method, device and equipment | |
CN112667310A (en) | Game engine editor starting method and device, electronic equipment and storage medium | |
CN113760631A (en) | Page loading duration determination method, device, equipment and storage medium | |
CN111124423A (en) | Multi-platform-based compiling detection method, device, server and medium | |
CN109976765B (en) | Application group deployment method, device, equipment and storage medium | |
CN113986388B (en) | Program set loading method, system, electronic device and storage medium | |
CN113590220B (en) | Method, device, electronic equipment and medium for detecting action resource configuration information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |