CN113590224B - Method and device for detecting server, electronic equipment and storage medium - Google Patents

Method and device for detecting server, electronic equipment and storage medium Download PDF

Info

Publication number
CN113590224B
CN113590224B CN202110880643.XA CN202110880643A CN113590224B CN 113590224 B CN113590224 B CN 113590224B CN 202110880643 A CN202110880643 A CN 202110880643A CN 113590224 B CN113590224 B CN 113590224B
Authority
CN
China
Prior art keywords
server
target
engine
editor
detection
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
Application number
CN202110880643.XA
Other languages
Chinese (zh)
Other versions
CN113590224A (en
Inventor
王达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Miha Youliyue Technology Co ltd
Original Assignee
Shanghai Miha Youliyue Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Miha Youliyue Technology Co ltd filed Critical Shanghai Miha Youliyue Technology Co ltd
Priority to CN202110880643.XA priority Critical patent/CN113590224B/en
Publication of CN113590224A publication Critical patent/CN113590224A/en
Application granted granted Critical
Publication of CN113590224B publication Critical patent/CN113590224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a method and a device for detecting a server, electronic equipment and a storage medium, wherein the method comprises the following steps: loading a pre-constructed server detection hook file in the starting process of an editor of a target engine; detecting a target server in the engine editor based on the server detection hook file; and determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result of the target server. According to the technical scheme, the target server can be automatically detected in the starting process of the engine editor, compared with the existing mode of manually checking the target server after the engine editor is started, the technical effect of saving human resources can be achieved by optimizing the starting flow of the engine editor, the target server is automatically and rapidly detected, and therefore smooth importing of resources to be imported in the target server is guaranteed.

Description

Method and device for detecting server, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to a method and a device for detecting a server, electronic equipment and a storage medium.
Background
In the project development process, there are often cases where it is necessary to import a lot of resource data related to the project from the server. Thus, during the engine start-up, the setting information related to the server is loaded. If the setting information of the server is wrong, the importing of the subsequent project resources is affected.
In order to ensure that the server works normally, the relevant processing mode is that after the editor is started, a professional technician manually checks the setting information of the server to ensure normal communication with the server. However, since the manual inspection is required by a professional technician after the editor is started, the requirement on the inspector is high, a certain hysteresis exists in the inspection time, and the inspection of the technician can only be performed one by one for the single machine, so that the inspection efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for detecting a server, which are used for optimizing the starting flow of an engine editor and automatically and quickly detecting a target server.
In a first aspect, an embodiment of the present invention provides a method for detecting a server, where the method includes:
Loading a pre-constructed server detection hook file in the starting process of an editor of a target engine;
detecting setting information of a target server in the engine editor based on the server detection hook file;
And determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result of the target server.
In a second aspect, an embodiment of the present invention further provides a detection apparatus for a server, where the apparatus includes:
the hook file loading module loads a pre-built server detection hook file in the starting process of an editor of the target engine;
the target server detection module is used for detecting a target server in the engine editor based on the server detection hook file;
and the target engine starting module is used for determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result of the target server.
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 detecting a server provided by any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the method for detecting a server provided by any embodiment of the present invention.
According to the technical scheme, the pre-built server detection hook file is loaded in the starting process of the editor of the target engine, so that the pre-built server detection hook file for detecting the setting information of the target server is loaded before the setting information in the target server is detected, and the target server is detected through the detection of the setting information of the target server; detecting setting information of a target server in the engine editor based on a server detection hook file, so as to obtain a detection result of the setting information; and determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result of the target server, so as to determine the starting state of the switch in the starting process of the editor of the target engine. According to the technical scheme, the target server can be automatically detected in the starting process of the engine editor, compared with the existing mode of manually checking the target server after the engine editor is started, the starting process of the engine editor can be optimized, human resources can be saved, the target server can be automatically and rapidly detected, and therefore the technical effect of smooth introduction of resources to be introduced in the target server is guaranteed.
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 method for detecting a server according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for detecting a server according to a second embodiment of the present invention;
Fig. 3 is a schematic structural diagram of a detection device of a server 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 method for detecting a server according to an embodiment of the present invention, where the method may be applied to a case of checking after an engine editor is started, and the method may be performed by a device for detecting a server, where the device may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement the method for detecting a server according to the embodiment of the present invention.
As shown in fig. 1, the method of this embodiment may specifically include:
s110, loading a pre-built server detection hook file in the starting process of the editor of the target engine.
Wherein the target engine may be understood as an environment for developing the project. In the embodiment of the invention, the target engine can be an engine which is currently starting an editor. By way of example, the target engine may be a tool that provides a developer with a large number of core technologies, underlying support, or function calls. For example, the target engine may be a game engine including, but not limited to, a Unity engine, a fantasy engine, a script engine, a physics engine, a rendering engine, a network engine, and the like. Taking a rendering engine as an example, all effects of a character model, animation, light shadow, special effects and the like can be calculated in real time by using the rendering engine and displayed on a screen; taking a physical engine as an example, the physical engine can be utilized to enable the movement of an object in the game to follow a fixed rule, such as prescribing the jump height, running speed, flying speed, a recruiting type release track and the like.
Wherein, the editor of the target engine can be understood as an editing interface for a project developer to realize the project development function.
Wherein a hook file is understood as such. The server detecting the hook file can be understood as a dynamic link library file with a detection function, and the hook file can be utilized to detect the server. The hook file may have various formats, such as a dynamic link library file or a tag file. Specifically, the format may be a. Dll format or a. Lab format. It can be understood that the specific format of the hook file is not limited in the embodiment of the present invention, and can be determined according to actual requirements.
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 native code library of the target engine, the plug-in layer code of the target engine, all the codes of project engineering of the target engine, and the plug-in library of a third party library of the target engine or a software development kit. 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.
Wherein the native code library of the target engine may contain the base code of the target engine; for example, the native code library may contain UnityEngine series dll files. The engine plug-in layer program set of the target engine may contain plug-in layer code or program code that invokes native code; such as dll files containing package and plug in families. The pre-built project program set may also include all program code for the project; the whole program code of game engineering can be dll file code of Project series. The pre-built third party software development kit suite may contain a third party library or plug-in library file for an SDK (Software Development Kit ). By way of example, the third party software development kit suite may be sound effects Wwise, a game SDK, or the like.
Specifically, during the start-up process of the editor of the target engine, the pre-built server detection hook file needs to be loaded into the editor of the target engine.
Optionally, loading a target engineering program set of the target engine; the loading of the pre-built server detection hook file includes: and when the target engineering program set is detected to be loaded, loading a pre-built server detection hook file.
Optionally, before loading the target engineering program set of the target engine, the method further comprises loading an engine plug-in layer program set of the target engine; the loading of the pre-built server detection hook file comprises the step of loading the pre-built server detection hook file when the completion of the loading of the engine plug-in layer program set of the target engine is detected.
Specifically, before the target engineering program set of the target engine is loaded into the editor of the target engine, the engine plug-in layer program set of the target engine may be loaded into the editor of the target engine. When the engine plug-in layer program set of the target engine and the target engineering program set of the target engine are loaded, the pre-built server detection hook file is also loaded into an editor of the target engine.
Optionally, before loading the engine plug-in layer program set of the target engine, loading a native code library of the target engine; the loading of the pre-built server detection hook file includes: and when the loading of the native code library of the target engine is detected to be completed, loading a pre-built server detection hook file.
Specifically, before the engine plug-in layer program set of the target engine is loaded into the editor of the target engine, the native code library of the target engine may be first loaded into the editor of the target engine. And after the original code library of the target engine, the target engine plug-in layer program set and the target engineering program set of the target engine are loaded, loading the pre-built server detection hook file into an editor of the target engine.
Specifically, the server detection hook file may contain instructions that invoke the folder server detection method. The server detection hook file may be a hook file, such as a dll file, a lab file, etc. The server detection hook file may be an EnginePreEntry hook file, for example. For example, an engineering EnginePreEntryHook may be pre-built based on the target engine c# generation dll method, so as to generate an enginepreentry hook. Alternatively, the EnginePreEntry hook. Dll file may be placed under ENGINEDLL mesh within the project and maintained separately from the dll files inside the other engines. Specifically, the server detection hook file may also be stored in the client repository, and after each writing EnginePreEntryHook of the internal code, the EnginePreEntry hook.dll file under the ENGINEDLL directory in the project is automatically mapped and updated.
S120, detecting the setting information of the target server in the engine editor based on the server detection hook file.
The target server may be a server storing project resources, and may provide support for project resource import. The setting information of the target server may be understood as information related to the setting of the target server, including, but not limited to, whether a switch of the target server is turned on or whether a network address of the target server is configured correctly, etc. Specifically, during the starting process of the editor of the target engine, when the setting information of the target server is loaded, the setting information of the target server is detected.
Specifically, the state of the setting information in the target server generally affects the normal operation of the target server, and thus detection of the state of the setting information is required. In the embodiment of the invention, after the server detection hook file is loaded into the editor of the target engine in the starting process of the editor of the target engine, the state of the setting information in the target server can be detected through the server detection hook file.
S130, determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result of the target server.
Specifically, after the server detects the hook file to detect the setting information of the target server in the engine editor, whether to start the editor of the target engine is judged according to the detection result of the target server. For example, if the detection result of the target server is that the detection has passed, the execution of the editor that starts the target engine may be continued. Alternatively, if the detection result of the target server is that the detection fails, the setting information of the target server in the engine editor may be updated based on the server detection hook file, and the editor for starting the target engine may be continuously executed.
According to the technical scheme, the pre-built server detection hook file is loaded in the starting process of the editor of the target engine, so that the pre-built server detection hook file for detecting the setting information is loaded before the setting information in the target server is detected, and the target server is detected through the detection of the setting information of the target server; detecting setting information of a target server in the engine editor based on a server detection hook file, so as to obtain a detection result of the setting information; and determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result of the target server, so as to determine the starting state of the switch in the starting process of the editor of the target engine. According to the technical scheme, the target server can be automatically detected in the starting process of the engine editor, compared with the existing mode of manually checking the target server after the engine editor is started, the starting process of the engine editor can be optimized, human resources can be saved, the target server can be automatically and rapidly detected, and therefore the technical effect of smooth introduction of resources to be introduced in the target server is guaranteed.
Example two
Fig. 2 is a flowchart of a method for detecting a server according to a second embodiment of the present invention, where the setting information includes a switch state of an import switch according to any one of the optional technical solutions of the second embodiment of the present invention; the detecting the setting information of the target server in the engine editor based on the server detection hook file includes: and detecting the switch state of an import switch of a target server in a server setting panel in the engine editor based on the server detection class in the server detection hook file.
On the basis of the above technical solutions, optionally, the determining whether to continue to execute the operation of starting the editor of the target engine based on the detection result of the target server includes: and if the switch state of the import switch is not opened, opening the import switch in the server setting class based on the server detection of the server update class in the hook file.
On the basis of the above technical solutions, optionally, the determining whether to continue to execute the operation of starting the editor of the target engine based on the detection result of the target server includes: and if the switch state of the import switch is opened, continuing to execute the operation of starting the editor of the target engine.
As shown in fig. 2, the method of this embodiment may specifically include:
s210, loading a pre-built server detection hook file in the starting process of the editor of the target engine.
S220, detecting the switch state of an import switch of a target server in a server setting panel in the engine editor based on the server detection class in the server detection hook file.
In view of the import efficiency of project resources, the efficiency of import from a target server is generally much higher than that of import of resources on a stand-alone basis. Therefore, the embodiment of the invention can detect the switch state of the import switch of the target server. The on-off state of the import switch of the target server can be found in the server setup panel in the engine editor. Illustratively, the import switch of the target server may be found by a preset switch key corresponding to the import switch of the target server in the server setting panel in the engine editor.
The server detection class in the server detection hook file can be understood as a library file for detecting the setting information in the server, and has a detection function. The server setting panel may be understood as an editing interface storing various setting information in an editor of the target engine. The import switch may be understood as a switch that controls whether or not an item resource is imported from a target server. The switch state of the lead-in switch may include an opened state and an unopened state.
In the embodiment of the present invention, the manner how to indicate whether the switch is turned on is not particularly limited, for example, a key may be edited for the switch state of the lead-in switch, and when key=1, the state of the switch is turned on; when key=0, the state of the switch is unopened. Further, whether the introduction switch is in the on state or not may be detected based on the state of the keyword corresponding to the on state of the introduction switch. The setting of the key word of the switch state is not limited, and may be any word with a designation, a user-defined character string, or the like, for example, on, off, or the like.
Specifically, in the process of starting the editor of the target engine, the on-off state of the import switch in the setting information of the target server can be detected by detecting the server detection class in the hook file by the server constructed in the editor of the target engine in advance.
S230, if the switch state of the import switch is not opened, opening the import switch in the server setting class based on the server detection of the server update class in the hook file.
The server update class is understood to be a library file that exists in the server detection hook file and is capable of changing the on state of the import switch. When the state of the introduction switch is detected as unopened, the state of the introduction switch may be updated to the opened state. Alternatively, the update of the switch state of the import switch may be achieved by means of a switch reset or by means of changing the state of the edit key of the on state. The switch state of the update import switch is mainly to update the unopened state to the opened state.
Specifically, when the detection result of the server detection class in the server detection hook file is that the state of the import switch is unopened, the server detection server update class in the hook file is called, and the state of the import switch is set to be an open state.
S240, if the switch state of the import switch is on, continuing to execute the operation of starting the editor of the target engine.
When the switch state of the import switch is the opened state, the resources can be imported to the local through the target server.
Specifically, when the switch state of the import switch is on, the server is considered to detect that the detection result of the server detection class in the hook file is that the detection has passed, and at this time, the operation of starting the editor of the target engine is continued.
As an optional example of the embodiment of the present invention, specifically, when the editor of the target engine is started, the target engine is initialized by basic configuration, and after the initialization, a native code library is loaded in the target engine, and a basic program set required by project engineering is loaded to the target server, where the loading mode may be, for example, loading from a third party platform website into a local server. And after the original code library of the target engine is loaded, continuing to load the plug-in layer code library into the target server, and after the plug-in layer code library is loaded, loading and compiling project engineering codes. Alternatively, the pre-built server detection hook file needs to be loaded into the editor of the target engine before the setting information in the server setting panel in the target engine editor is detected by the server detection class in the server detection hook file. When the position of the hook file detected by the server can detect that the target engineering program set is loaded, loading the pre-constructed server detection hook file; the method can also load a pre-built server detection hook file when the engine plug-in layer program set of the target engine and the target engineering program set of the target engine are loaded; and after the loading of the native code library of the target engine, the plug-in layer program set of the target engine and the target engineering program set of the target engine is completed, loading the pre-built server detection hook file.
The server detection class in the server detection hook file is used for detecting the setting information in the server setting panel in the target engine editor, wherein the setting information can be the switch state of the import switch. According to the detection result of the server detection class, if the switch state of the import switch is detected to be unopened, the server update class in the server detection hook file can update the state of the import switch to be opened.
According to the technical scheme, the on-off state of the import switch of the target server in the server setting panel in the engine editor is detected, so that the automatic detection of the import switch state can be completed in the process of starting the target engine, and the detection is not needed manually in the process; if the switch state of the import switch is not opened, the import switch in the server setting class is opened based on the server detection of the server update class in the hook file, so that when the import switch is not opened, the switch is opened in time by utilizing the server update class, resources are imported through a target server subsequently, and the resource import efficiency is improved. The technical problem that the importing efficiency of the resource data is affected because the importing switch of the target server is not opened in the project development process is solved, the timely detection and adjustment of the on-off state of the importing switch of the server are achieved, the target server can be automatically detected, and the technical effect of improving the importing efficiency of the resource is achieved.
Example III
Fig. 3 is a schematic structural diagram of a detection device for a server according to a third embodiment of the present invention, where the detection device for a server according to the present embodiment may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement a method for detecting a server according to an embodiment of the present invention. As shown in fig. 3, the apparatus may specifically include: a hook file loading module 310, a target server detection module 320, and a target engine start module 330.
The hook file loading module 310 is configured to load a pre-built server detection hook file during a starting process of an editor of the target engine; a target server detection module 320, configured to detect a target server in the engine editor based on the server detection hook file; the target engine starting module 330 is configured to determine whether to continue to execute the operation of starting the editor of the target engine based on the detection result of the target server.
According to the technical scheme, the pre-built server detection hook file is loaded in the starting process of the editor of the target engine, so that the pre-built server detection hook file for detecting the setting information of the target server is loaded before the setting information in the target server is detected, and the target server is detected through the detection of the setting information of the target server; detecting setting information of a target server in the engine editor based on a server detection hook file, so as to obtain a detection result of the setting information; and determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result of the target server, so as to determine the starting state of the switch in the starting process of the editor of the target engine. According to the technical scheme, the target server can be automatically detected in the starting process of the engine editor, compared with the existing mode of manually checking the target server after the engine editor is started, the starting process of the engine editor can be optimized, human resources can be saved, the target server can be automatically and rapidly detected, and therefore the technical effect of smooth introduction of resources to be introduced in the target server is guaranteed.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the target server detection module is specifically configured to:
And detecting the switch state of an import switch of a target server in a server setting panel in the engine editor based on the server detection class in the server detection hook file.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the target engine starting module is configured to:
and if the switch state of the import switch is not opened, opening the import switch in the server setting class based on the server detection of the server update class in the hook file.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the target engine starting module is configured to:
and if the switch state of the import switch is opened, continuing to execute the operation of starting the editor of the target engine.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the detection device of the server further includes: a target engineering program set loading module; wherein,
The target engineering program set loading module is used for loading the target engineering program set of the target engine;
the hook file loading module is used for
And when the target engineering program set is detected to be loaded, loading a pre-built server detection hook file.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the detection device of the server further includes: the plug-in layer program load module, wherein,
The plug-in layer program set loading module is used for loading the engine plug-in layer program set of the target engine before loading the target engineering program set of the target engine;
And the hook file loading module is used for loading a pre-built server detection hook file when the completion of the loading of the engine plug-in layer program set of the target engine is detected.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the detection device of the server further includes: a native code library loading module, wherein,
The native code library loading module is used for loading the native code library of the target engine before loading the engine plug-in layer program set of the target engine;
and the hook file loading module is used for loading a pre-built server to detect a hook file when the completion of the loading of the native code library of the target engine is detected.
The detection device of the server can execute the detection method of the server provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 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 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 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, and 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 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk 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 18 through one or more data medium interfaces. The system memory 28 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 40 having a set (at least one) of program modules 42 may be stored in, for example, system memory 28, such program modules 42 including, but 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 42 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 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 a network adapter 20. As shown in fig. 4, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. 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 12, 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 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, implementing a server detection method provided in the present embodiment.
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 method of detecting a server, the method comprising: loading a pre-constructed server detection hook file in the starting process of an editor of a target engine; detecting setting information of a target server in the engine editor based on the server detection hook file; and determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result of the target server.
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 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 (9)

1. A method for detecting a server, comprising:
Loading a pre-constructed server detection hook file in the starting process of an editor of a target engine;
detecting setting information of a target server in the engine editor based on the server detection hook file;
determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result of the target server;
The setting information comprises a switch state of an import switch, wherein the switch state of the import switch comprises an opened state and a non-opened state; the detecting the setting information of the target server in the engine editor based on the server detection hook file includes:
And detecting the switch state of an import switch of a target server in a server setting panel in the engine editor based on the server detection class in the server detection hook file.
2. The method of claim 1, wherein the determining whether to continue the operation of starting the editor of the target engine based on the detection result of the target server comprises:
and if the switch state of the import switch is not opened, opening the import switch in the server setting class based on the server detection of the server update class in the hook file.
3. The method of claim 1, wherein the determining whether to continue the operation of starting the editor of the target engine based on the detection result of the target server comprises:
and if the switch state of the import switch is opened, continuing to execute the operation of starting the editor of the target engine.
4. The method as recited in claim 1, further comprising:
loading a target engineering program set of the target engine;
The loading of the pre-built server detection hook file includes:
And when the target engineering program set is detected to be loaded, loading a pre-built server detection hook file.
5. The method of claim 4, further comprising, prior to loading the target engineering program set of the target engine:
loading an engine plug-in layer program set of the target engine;
The loading of the pre-built server detection hook file includes:
and when the engine plug-in layer program set of the target engine is detected to be loaded, loading a pre-built server detection hook file.
6. The method of claim 1, further comprising, prior to loading the engine plug-in layer program set of the target engine:
loading a native code library of the target engine;
The loading of the pre-built server detection hook file includes:
and when the loading of the native code library of the target engine is detected to be completed, loading a pre-built server detection hook file.
7. A detection apparatus for a server, comprising:
the hook file loading module loads a pre-built server detection hook file in the starting process of an editor of the target engine;
the target server detection module is used for detecting the setting information of the target server in the engine editor based on the server detection hook file;
The target engine starting module is used for determining whether to continue to execute the operation of starting the editor of the target engine or not based on the detection result of the target server;
The setting information comprises a switch state of the leading-in switch, wherein the switch state of the leading-in switch comprises an opened state and a non-opened state; the target server detection module is used for detecting the switch state of the import switch of the target server in the server setting panel in the engine editor based on the server detection class in the server detection hook file.
8. An electronic device, the electronic device comprising:
One or more processors;
Storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of detecting a server as recited in any one of claims 1-6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method of detecting a server according to any one of claims 1-6.
CN202110880643.XA 2021-08-02 2021-08-02 Method and device for detecting server, electronic equipment and storage medium Active CN113590224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110880643.XA CN113590224B (en) 2021-08-02 2021-08-02 Method and device for detecting server, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110880643.XA CN113590224B (en) 2021-08-02 2021-08-02 Method and device for detecting server, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113590224A CN113590224A (en) 2021-11-02
CN113590224B true CN113590224B (en) 2024-05-31

Family

ID=78253798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110880643.XA Active CN113590224B (en) 2021-08-02 2021-08-02 Method and device for detecting server, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113590224B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158910A (en) * 2014-08-29 2014-11-19 金石易诚(北京)科技有限公司 Automatic deployment system for cloud Web application
CN106815131A (en) * 2016-12-27 2017-06-09 珠海金山网络游戏科技有限公司 A kind of game resource inspection method and system based on Unity engines
CN112052111A (en) * 2020-09-08 2020-12-08 中国平安人寿保险股份有限公司 Processing method, device and equipment for server abnormity early warning and storage medium
CN112199093A (en) * 2020-10-15 2021-01-08 腾讯科技(深圳)有限公司 Resource checking method, device, equipment and computer readable storage medium
CN112667315A (en) * 2020-12-23 2021-04-16 上海米哈游天命科技有限公司 Game engine editor starting method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9917609B2 (en) * 2015-07-31 2018-03-13 Blackberry Limited System and method for automatic detection and enablement of a virtual SIM on a mobile device
GB2566886B (en) * 2016-07-27 2022-04-13 Walmart Apollo Llc Automated informix engine install

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158910A (en) * 2014-08-29 2014-11-19 金石易诚(北京)科技有限公司 Automatic deployment system for cloud Web application
CN106815131A (en) * 2016-12-27 2017-06-09 珠海金山网络游戏科技有限公司 A kind of game resource inspection method and system based on Unity engines
CN112052111A (en) * 2020-09-08 2020-12-08 中国平安人寿保险股份有限公司 Processing method, device and equipment for server abnormity early warning and storage medium
CN112199093A (en) * 2020-10-15 2021-01-08 腾讯科技(深圳)有限公司 Resource checking method, device, equipment and computer readable storage medium
CN112667315A (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
CN113590224A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN112513820B (en) Transparent remote execution of development tool extensions
WO2016155388A1 (en) Method and device for installing and running application
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
CN113590327A (en) Project resource detection method and device, electronic equipment and storage medium
WO2017020459A1 (en) Method and apparatus for configuring plugin package for host
CN112667315A (en) Game engine editor starting method and device, electronic equipment and storage medium
CN113986402A (en) Function calling method and device, electronic equipment and storage medium
CN111984300B (en) Code copying method and device, electronic equipment and computer readable storage medium
CN111488275B (en) UI (user interface) automatic testing method and device, storage medium and electronic equipment
CN112860587A (en) UI automatic test method and device
CN113590221B (en) Method and device for detecting number of shader variants, 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
CN113590446B (en) Method and device for detecting numerical value file, electronic equipment and storage medium
CN115080114A (en) Application program transplanting processing method, device and medium
CN114911541A (en) Configuration information processing method and device, electronic equipment and storage medium
CN113590225B (en) Mapping detection method and device, electronic equipment and storage medium
CN112052224B (en) File export method and device
CN113590226B (en) Method and device for starting engine editor, electronic equipment and storage medium
CN112667310A (en) Game engine editor starting method and device, electronic equipment and storage medium
CN115421785B (en) Method, device and medium for transplanting application program
CN115454827B (en) Compatibility detection method, system, equipment and medium
CN219980888U (en) But embedded security protection supervisory equipment of secondary development
CN113986382A (en) Project starting method and device, electronic equipment and storage medium
CN117453302A (en) Method, device, equipment and computer readable medium for importing software development kit

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