A configuration file processing method and processing device
The configuration files are imported and processed through the interactive components of electronic devices, and the configuration table is formed and the data is synchronized to the server, which solves the problems of high maintenance costs and inconvenient operation in the prior art, and realizes low-cost and convenient configuration file processing.
Patent Information
- Application Number
- CN202110371462.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-07
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2041-04-07
Smart Images

Figure CN112957742B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a configuration file processing method and a processing device. Background Art
[0002] Game configuration files are an important part of game servers. Specifically, there will be a large number of Excel configuration files during the game development and operation process, and then the content in Excel will be converted into a format that can be used by the server to achieve the normal operation of the game.
[0003] Currently, the common conversion methods mainly include the following two methods: 1. Use Python or other scripting language writing tools to convert the content in Excel into a format that can be used by the server. 2. Use third-party tools such as Navicat for Mysql to first create a corresponding table based on the Excel header and the data type of each column, then import the content contained in Excel into the table, and then export it into a format that can be used by the server.
[0004] However, in the first method, a separate script file is required for each Excel to process the file content, resulting in high maintenance costs; in the second method, once the Excel field changes, the table structure corresponding to the Excel needs to be maintained, and the maintenance cost is also relatively high; and both of the above methods require the use of third-party tools, which is inconvenient to operate. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a configuration file processing method and a processing device, which can not only reduce maintenance costs but also facilitate operation.
[0006] In a first aspect, an embodiment of the present application provides a method for processing a configuration file, which includes:
[0007] A configuration file of a target program is imported based on an interactive component of the electronic device to form a configuration table, wherein the configuration table is in the form of a table structure, and the table structure has at least one of the following presets: a field type, a field name, and a field description;
[0008] Based on the format of the data to be configured, exporting the data to be configured in the configuration file from the configuration table;
[0009] The data to be configured is synchronized to the first server to support the running of the target program.
[0010] In a possible implementation, the configuration file of the target program imported by the interactive component of the electronic device to form a configuration table includes:
[0011] Based on the interactive component of the electronic device, obtaining the import instructions transmitted by multiple users with import permissions;
[0012] Importing the configuration file corresponding to each of the import instructions based on the time sequence of each of the import instructions;
[0013] A configuration table is formed using the configuration file.
[0014] In a possible implementation manner, the data to be configured is one or more; and the step of exporting the data to be configured in the configuration file from the configuration table based on the format of the data to be configured includes:
[0015] Extracting a separator symbol in the data format to be configured, wherein the separator symbol is preset;
[0016] The number of the data to be configured is determined based on the number of the separation symbols.
[0017] In a possible implementation manner, the processing method further includes:
[0018] Based on the to-be-configured data of the first server, determining whether there is a second server that meets a preset condition;
[0019] If so, the data to be configured is synchronized to the second server.
[0020] In a possible implementation manner, determining whether there is a second server that meets a preset condition based on the to-be-configured data of the first server includes:
[0021] Determining whether the to-be-configured data required by the second server is the same as the to-be-configured data of the first server;
[0022] If they are the same, it is determined that there is a second server that meets the preset condition.
[0023] In a possible implementation, the configuration table is divided into a plurality of tabs; and the exporting the data to be configured in the configuration file from the configuration table based on the format of the data to be configured includes:
[0024] Based on the format of the data to be configured, the data to be configured is exported from any one tab or multiple tabs of the configuration table.
[0025] In a possible implementation manner, the processing method further includes:
[0026] Saving the data format to be configured;
[0027] The next export of the data to be configured is performed based on the format of the data to be configured.
[0028] In a possible implementation manner, the processing method further includes:
[0029] Saving the data to be configured;
[0030] Comparing the exported data to be configured for a preset number of times, and determining the difference data between the data to be configured for the preset number of times;
[0031] The difference data is displayed in a specific manner, wherein the specific manner includes a specific color and a specific font.
[0032] In a second aspect, an embodiment of the present application further provides a configuration file processing device, which includes:
[0033] An import module configured to import a configuration file of a target program based on an interactive component of an electronic device to form a configuration table, wherein the configuration table is in the form of a table structure, and the table structure has at least one of the following pre-set fields: a field type, a field name, and a field description;
[0034] An export module configured to export the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
[0035] The first synchronization module is configured to synchronize the data to be configured to a first server to support the running of the target program.
[0036] In a third aspect, an embodiment of the present application further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the processing method steps in any of the above-mentioned embodiments.
[0037] The processing method provided in the embodiment of the present application can import the configuration file directly through the interactive component of the electronic device without the need to install other applications separately, which is easy to operate and has low maintenance costs. In addition, by selectively exporting the data to be configured in the format of the data to be configured, the data to be configured is synchronized to the first server, which means that the data to be configured in the first server can be modified in a targeted manner, thereby reducing the maintenance cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0039] Figure 1 A flowchart of a method for processing a configuration file provided by the present application is shown;
[0040] Figure 2 A flowchart showing a configuration table formed by importing a configuration file of a target program based on an interactive component of an electronic device in a configuration file processing method provided by the present application is shown;
[0041] Figure 3 A flowchart of exporting data to be configured in a configuration file in a configuration file processing method provided by the present application is shown;
[0042] Figure 4 A flowchart of configuring data to be configured of other programs in a configuration file processing method provided by the present application is shown;
[0043] Figure 5 A flowchart of exporting the next data to be configured in a configuration file processing method provided by the present application is shown;
[0044] Figure 6 A flowchart showing a method for processing a configuration file provided by the present application for distinguishing and displaying different data to be configured is shown;
[0045] Figure 7 A schematic diagram showing the structure of a configuration file processing device provided by the present application is shown;
[0046] Figure 8 A schematic structural diagram of an electronic device provided in the present application is shown. DETAILED DESCRIPTION
[0047] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0048] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0049] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0050] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0051] It should also be understood that, although the present application has been described with reference to some specific examples, those skilled in the art will be able to realize many other equivalent forms of the present application that have the features described in the claims and are therefore within the scope of protection defined thereby.
[0052] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0053] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.
[0054] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.
[0055] The configuration file processing method provided in the embodiment of the present application can be applied to the configuration scenarios of configuration files of various application programs. Since the game program is relatively complex and there are many scenarios involved in the game, the embodiment of the present application takes the configuration data of the game as an example for detailed description. To facilitate the understanding of the present application, a configuration file processing method provided in the present application is first introduced in detail.
[0056] like Figure 1 As shown, it is a flowchart of the method for processing the configuration file provided in the embodiment of the present application, wherein the specific steps include:
[0057] S101, importing a configuration file of a target program based on an interactive component of an electronic device to form a configuration table, wherein the configuration table is expressed in a table structure, and the table structure has at least one of the following pre-sets: field type, field name, and field description.
[0058] In the process of game development and operation, numerical planners set a large amount of data to be filled in Excel tables, so that developers can implement related functions based on the data in the Excel tables. In the embodiment of the present application, the target program is the game program.
[0059] Through the interactive component of the electronic device, the configuration file of the target program is imported to form a configuration table. The configuration table is in the form of a table structure, and the table structure has at least one of the following pre-set field types, field names, and field descriptions. Preferably, the configuration file in the form of a table structure can also be directly imported.
[0060] Here, the interactive component of the electronic device is possessed by itself or is common to all electronic devices, so that the configuration file of the target program can be imported without installing other applications separately or obtaining authorization from other applications, which is convenient for operation. Preferably, the interactive component is a web management tool developed in Hypertext Preprocessor (PHP), such as various browsers.
[0061] Specifically, Figure 2 A flow chart of a method for forming a configuration table based on an interactive component of an electronic device importing a configuration file of a target program is shown, wherein the steps include S201-S203.
[0062] S201, based on the interactive component of the electronic device, obtaining import instructions transmitted by multiple users with import permissions.
[0063] S202: Import the configuration file corresponding to each import instruction based on the time sequence of each import instruction.
[0064] S203, forming a configuration table using the configuration file.
[0065] Considering that the processing method in the embodiment of the present application does not need to install other applications separately, and the configuration file can be imported only through the interactive component of the electronic device, therefore, in order to ensure the security of the imported configuration file, it is necessary to set certain import permissions, and before importing the configuration file, the import permissions need to be authenticated. For example, a specific account name is authorized in advance, and the user corresponding to the account name sets a password that only the user knows. When the user imports the configuration file based on the interactive component of the electronic device, the user's account name and password need to be authenticated, and the authentication is confirmed to be successful after the user enters the correct account name and password, and then the configuration file is imported.
[0066] In a specific implementation, multiple account names may be authorized, that is, multiple users may have the permission to import configuration files, thereby improving resource utilization and configuration efficiency.
[0067] Furthermore, after the interactive component of the electronic device obtains the import instructions transmitted by multiple users with import permissions, the configuration file corresponding to each import instruction is imported based on the time sequence of each import instruction. Specifically, the generation time of each import instruction is first determined; then, the time interval between the generation time of each import instruction and the current time is calculated, and the corresponding import instructions are arranged in order from large to small according to the time interval, and the configuration files corresponding to the import instructions are imported in sequence according to the order; then, the configuration table is formed using the configuration files.
[0068] Of course, when an import instruction is obtained or no other import instructions are obtained within a preset time period after the import instruction is obtained, the configuration file corresponding to the import instruction is directly imported to form a configuration table.
[0069] S102: export the data to be configured in the configuration file from the configuration table based on the format of the data to be configured.
[0070] In a specific implementation, the data to be configured may be specifically exported from the configuration table, such as exporting the data to be configured in the configuration file from the configuration table according to a preset format of the data to be configured, such as json, php array, plist, etc.
[0071] The exported data to be configured can be one or more. In the case where there are multiple data to be configured, refer to Figure 3 The method steps shown are to export the data to be configured in the configuration file from the configuration table based on the format of the data to be configured, and specifically include S301 and S302.
[0072] S301, extracting a separator symbol in a data format to be configured, wherein the separator symbol is preset.
[0073] S302: Determine the number of data to be configured based on the number of separator symbols.
[0074] In a specific implementation, the format of the data to be configured includes a preset separator symbol, and the separator symbol is used to distinguish adjacent data to be configured. The separator symbol can be symbols such as “|”, “,”, etc., and the embodiment of the present application does not specifically limit this.
[0075] For example, if you want to export a one-bit integer array int[], the content of the corresponding field in the configuration table is (A|B|C), and the exported content is [A, B, C], that is, the number of separators plus 1 is the number of data to be configured.
[0076] S103, synchronizing the data to be configured to the first server to support the running of the target program.
[0077] After the data to be configured is exported, the data to be configured is synchronized to the first server, that is, the server corresponding to the target program, so that the first server runs the corresponding functional logic, thereby achieving the purpose of running the target program.
[0078] The processing method provided in the embodiment of the present application can import the configuration file directly through the interactive component of the electronic device without the need to install other applications separately, which is easy to operate and has low maintenance costs. In addition, by selectively exporting the data to be configured in the format of the data to be configured, the data to be configured is synchronized to the first server, which means that the data to be configured in the first server can be modified in a targeted manner, thereby reducing the maintenance cost.
[0079] Furthermore, there are other programs with similar data to be configured as the target program, but the data to be configured between different programs are independent of each other. Figure 4 The method shown is used to configure the to-be-configured data of other programs, specifically including S401-S403.
[0080] S401: Determine whether there is a second server that meets a preset condition based on the to-be-configured data of the first server.
[0081] S402: If it exists, synchronize the data to be configured to the second server.
[0082] Among them, the method for determining whether there is a second server that meets the preset conditions is: judging whether the data to be configured required by the second server is the same as the data to be configured of the first server; if they are the same, determining that there is a second server that meets the preset conditions; if they are different, determining that there is no second server that meets the preset conditions.
[0083] When it is determined that there is a second server that meets the preset conditions, the data to be configured is synchronized to the second server, and there is no need to import the configuration files corresponding to other programs separately and then export them to the second server, which not only saves resources but also improves the configuration efficiency of other programs.
[0084] In a specific implementation, the configuration table is divided into multiple tabs; in the process of exporting the data to be configured based on the format of the data to be configured, the data to be configured can be exported from any tab or multiple tabs of the configuration table. In this process, when the numerical planner adjusts part of the data to be configured, there is no need for the developer to perform configuration operations. The numerical planner can synchronize the modified data to be configured to the first server by himself, which reduces the work of the developer and improves the configuration efficiency of the data to be configured.
[0085] Among them, multiple tabs can be divided according to the type of data to be configured, and multiple tabs can also be divided according to the amount of data to be configured, etc., which is not specifically limited in the embodiments of the present application.
[0086] The present application also provides Figure 5 The processing method shown specifically includes S501 and S502.
[0087] S501, saving the data format to be configured.
[0088] S502: Export the data to be configured next time based on the format of the data to be configured.
[0089] After exporting the data to be configured in the configuration file, the format of the data to be configured is saved. When exporting the data to be configured next time, it can be exported based on the saved format of the data to be configured, without manually selecting or entering the format of the data to be configured, thereby improving configuration efficiency and ensuring the accuracy of the exported data to be configured.
[0090] Considering that there may be multiple users with import permissions in the embodiment of the present application, in order to avoid repeated imports of the same configuration files, resulting in a waste of resources, the embodiment of the present application also provides the following Figure 6 The processing method shown specifically includes S601 and S602.
[0091] S601, saving the data to be configured.
[0092] S602: Compare the exported data to be configured for a preset number of times to determine the difference data between the data to be configured for a preset number of times.
[0093] S603, displaying the difference data in a specific manner, wherein the specific manner includes a specific color and a specific font.
[0094] Furthermore, after exporting the data to be configured in the configuration file, the data to be configured can also be saved. When the numerical planner or developer needs to view the data to be configured multiple times, the data to be configured of the preset number of historical exports can be directly retrieved and compared.
[0095] After comparing the preset number of data to be configured, the difference data between the preset number of data to be configured is determined, and the difference data is displayed in a specific way, so that the numerical planner can further optimize the data to be configured and avoid the problem of resource waste caused by repeatedly importing the same configuration file. The specific way includes specific colors and specific fonts.
[0096] Based on the same inventive concept, the second aspect of the present application also provides a configuration file processing device corresponding to the configuration file processing method. Since the principle of solving the problem by the device in the present application is similar to the above-mentioned configuration file processing method of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0097] Figure 7 A schematic diagram of a configuration file processing device provided in an embodiment of the present application is shown, specifically comprising:
[0098] An import module 701 is configured to import a configuration file of a target program based on an interactive component of an electronic device to form a configuration table, wherein the configuration table is in the form of a table structure, and the table structure has at least one of the following presets: a field type, a field name, and a field description;
[0099] An export module 702 configured to export the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
[0100] The first synchronization module 703 is configured to synchronize the data to be configured to the first server to support the running of the target program.
[0101] In yet another embodiment, the import module 701 is specifically configured as follows:
[0102] Based on the interactive component of the electronic device, obtaining the import instructions transmitted by multiple users with import permissions;
[0103] Importing the configuration file corresponding to each of the import instructions based on the time sequence of each of the import instructions;
[0104] A configuration table is formed using the configuration file.
[0105] In yet another embodiment, the export module 702 is specifically configured as follows:
[0106] Extracting a separator symbol in the data format to be configured, wherein the separator symbol is preset;
[0107] The number of the data to be configured is determined based on the number of the separation symbols.
[0108] In yet another embodiment, the processing device further comprises:
[0109] A determination module 704 is configured to determine whether there is a second server that meets a preset condition based on the to-be-configured data of the first server;
[0110] The second synchronization module 705 synchronizes the data to be configured to the second server if the configuration location exists.
[0111] In yet another embodiment, the determination module 704 is specifically configured as follows:
[0112] Determining whether the to-be-configured data required by the second server is the same as the to-be-configured data of the first server;
[0113] If they are the same, it is determined that there is a second server that meets the preset condition.
[0114] In another embodiment, the configuration table is divided into a plurality of tabs; the export module 702 is further specifically configured as follows:
[0115] Based on the format of the data to be configured, the data to be configured is exported from any one tab or multiple tabs of the configuration table.
[0116] In yet another embodiment, the processing device further includes a saving module 706, which is configured to:
[0117] Saving the data format to be configured;
[0118] The next export of the data to be configured is performed based on the format of the data to be configured.
[0119] In yet another embodiment, the comparison module 707 is configured to:
[0120] Saving the data to be configured;
[0121] Comparing the exported data to be configured for a preset number of times, and determining the difference data between the data to be configured for the preset number of times;
[0122] The difference data is displayed in a specific manner, wherein the specific manner includes a specific color and a specific font.
[0123] In the embodiment of the present application, the configuration file can be imported directly through the interactive component of the electronic device without the need to install other applications separately, which is easy to operate and has low maintenance costs. In addition, the data to be configured can be selectively exported in the format of the data to be configured and synchronized to the first server, which means that the data to be configured in the first server can be modified in a targeted manner, thereby reducing maintenance costs.
[0124] An embodiment of the present application provides an electronic device. The structural diagram of the electronic device can be as follows: Figure 8 As shown, at least a memory 801 and a processor 802 are included, the memory 801 stores a computer program, and the processor 802 implements the method provided by any embodiment of the present disclosure when executing the computer program on the memory 801. Exemplarily, the steps of the electronic device computer program are as follows S11 to S13:
[0125] S11, importing a configuration file of a target program based on an interactive component of the electronic device to form a configuration table, wherein the configuration table is expressed in a table structure, and the table structure has at least one of the following pre-set fields: a field type, a field name, and a field description;
[0126] S12, exporting the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
[0127] S13, synchronizing the data to be configured to the first server to support the running of the target program.
[0128] When the processor forms a configuration table by importing a configuration file of a target program based on an interactive component of an electronic device stored in an execution memory, the processor also executes the following computer program: based on the interactive component of the electronic device, obtaining import instructions transmitted by multiple users with import permissions; importing the configuration file corresponding to each import instruction based on the time sequence of each import instruction; and forming a configuration table using the configuration file.
[0129] When the processor exports the data to be configured in the configuration file from the configuration table based on the format of the data to be configured stored in the execution memory, it also executes the following computer program: extracting the separator symbol in the format of the data to be configured, wherein the separator symbol is preset; and determining the number of the data to be configured based on the number of the separator symbols.
[0130] When executing the processing method stored in the memory, the processor also executes the following computer program: based on the data to be configured of the first server, determining whether there is a second server that meets the preset conditions; if so, synchronizing the data to be configured to the second server.
[0131] When the processor executes the data to be configured based on the first server stored in the execution memory to determine whether there is a second server that meets the preset conditions, the processor also executes the following computer program: judging whether the data to be configured required by the second server is the same as the data to be configured of the first server; if they are the same, determining that there is a second server that meets the preset conditions.
[0132] The configuration table is divided into multiple tabs; when the processor exports the data to be configured in the configuration file from the configuration table based on the format of the data to be configured stored in the execution memory, it also executes the following computer program: based on the format of the data to be configured, export the data to be configured from any tab or multiple tabs of the configuration table.
[0133] When executing the processing method stored in the memory, the processor further executes the following computer program: saving the format of the data to be configured; and exporting the data to be configured next time based on the format of the data to be configured.
[0134] When executing the processing method stored in the memory, the processor also executes the following computer program: saving the data to be configured; comparing the exported data to be configured for a preset number of times to determine the difference data between the data to be configured for the preset number of times; and displaying the difference data in a specific manner, wherein the specific manner includes a specific color and a specific font.
[0135] In the embodiment of the present application, the configuration file can be imported directly through the interactive component of the electronic device without the need to install other applications separately, which is easy to operate and has low maintenance costs. Moreover, the data to be configured is selectively exported through the format of the data to be configured and synchronized to the first server, which means that the data to be configured in the first server can be modified in a targeted manner, thereby reducing maintenance costs.
[0136] An embodiment of the present application provides a storage medium, which is a computer-readable medium and stores a computer program. When the computer program is executed by a processor, the method provided by any embodiment of the present application is implemented, including the following steps S21 to S23:
[0137] S21, importing a configuration file of a target program based on an interactive component of the electronic device to form a configuration table, wherein the configuration table is expressed in a table structure, and the table structure has at least one of the following pre-set fields: a field type, a field name, and a field description;
[0138] S22, exporting the data to be configured in the configuration file from the configuration table based on the format of the data to be configured;
[0139] S23, synchronizing the data to be configured to the first server to support the running of the target program.
[0140] When the computer program is executed by the processor to form a configuration table by importing the configuration file of the target program based on the interactive component of the electronic device, the processor specifically executes the following steps: based on the interactive component of the electronic device, obtaining import instructions transmitted by multiple users with import permissions; importing the configuration file corresponding to each import instruction based on the time sequence of each import instruction; and forming a configuration table using the configuration file.
[0141] When the computer program is executed by the processor to export the data to be configured in the configuration file from the configuration table based on the format of the data to be configured, the processor also executes the following steps: extracting the separator symbols in the format of the data to be configured, wherein the separator symbols are preset; and determining the number of the data to be configured based on the number of the separator symbols.
[0142] When the computer program is executed by the processor to execute the processing method, the processor also executes the following steps: based on the data to be configured of the first server, determine whether there is a second server that meets the preset conditions; if so, synchronize the data to be configured to the second server.
[0143] When the computer program is executed by the processor to determine whether there is a second server that meets the preset conditions based on the data to be configured of the first server, the processor specifically executes the following steps: determining whether the data to be configured required by the second server is the same as the data to be configured of the first server; if they are the same, determining that there is a second server that meets the preset conditions.
[0144] The configuration table is divided into multiple tabs; when the computer program is executed by the processor to export the data to be configured in the configuration file from the configuration table based on the format of the data to be configured, the processor specifically executes the following steps: based on the format of the data to be configured, export the data to be configured from any tab or multiple tabs of the configuration table.
[0145] When the computer program is executed by the processor to perform the processing method, the processor specifically executes the following steps: saving the format of the data to be configured; and exporting the data to be configured next time based on the format of the data to be configured.
[0146] When the computer program is executed by the processor to perform the processing method, the processor specifically performs the following steps: saving the data to be configured; comparing the exported data to be configured for a preset number of times to determine the difference data between the data to be configured for the preset number of times; displaying the difference data in a specific manner, wherein the specific manner includes a specific color and a specific font.
[0147] In the embodiment of the present application, the configuration file can be imported directly through the interactive component of the electronic device without the need to install other applications separately, which is easy to operate and has low maintenance costs. Moreover, the data to be configured is selectively exported through the format of the data to be configured and synchronized to the first server, which means that the data to be configured in the first server can be modified in a targeted manner, thereby reducing maintenance costs.
[0148] Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to, various media that can store program codes, such as a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk. Optionally, in this embodiment, the processor executes the method steps recorded in the above-mentioned embodiment according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment can refer to the examples described in the above-mentioned embodiment and the optional implementation mode, and this embodiment is not repeated here. Obviously, it should be understood by those skilled in the art that the above-mentioned modules or steps of the present application can be implemented with a general computing device, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented with executable program codes of computing devices, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.
[0149] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. The elements in the claims will be interpreted broadly based on the language adopted in the claims, and are not limited to the examples described in this specification or during the implementation of the application, and the examples will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.
[0150] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. For example, those of ordinary skill in the art can use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the application. This should not be interpreted as an intention that a disclosed feature that does not require protection is necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a specific disclosed embodiment. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently used as a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present application should be determined with reference to the attached claims and the full scope of equivalent forms granted by these claims.
[0151] Multiple embodiments of the present application are described in detail above, but the present application is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications to the embodiments based on the concept of the present application, and these variations and modifications should all fall within the scope of protection required by the present application.
Claims
1. A method for processing a configuration file, characterized in that: include: A configuration file of a target program is imported into the interactive component of the electronic device to form a configuration table, wherein the configuration table is in the form of a table structure, and the table structure has at least one of the following presets: a field type, a field name, and a field description, and the target program is a game program; Based on the format of the data to be configured, exporting the data to be configured in the configuration file from the configuration table; Synchronizing the data to be configured to the first server to support the running of the target program; Based on the data to be configured of the first server, determining whether there is a second server that meets a preset condition, the second server corresponding to other programs similar to the data to be configured of the target program; If so, synchronizing the data to be configured to the second server; The determining, based on the to-be-configured data of the first server, whether there is a second server meeting a preset condition comprises: Determining whether the to-be-configured data required by the second server is the same as the to-be-configured data of the first server; If they are the same, it is determined that there is a second server that meets the preset condition.
2. The processing method according to claim 1, characterized in that: The configuration table is formed by importing the configuration file of the target program based on the interactive component of the electronic device, including: Based on the interactive component of the electronic device, obtaining the import instructions transmitted by multiple users with import permissions; Importing the configuration file corresponding to each of the import instructions based on the time sequence of each of the import instructions; A configuration table is formed using the configuration file.
3. The processing method according to claim 1, characterized in that: The data to be configured is one or more; and the step of exporting the data to be configured in the configuration file from the configuration table based on the format of the data to be configured includes: Extracting a separator symbol in the data format to be configured, wherein the separator symbol is preset; The number of the to-be-configured data is determined based on the number of the separation symbols.
4. The processing method according to claim 1, characterized in that: The configuration table is divided into multiple tabs; The step of exporting the data to be configured in the configuration file from the configuration table based on the format of the data to be configured includes: Based on the format of the data to be configured, the data to be configured is exported from any one tab or multiple tabs of the configuration table.
5. The processing method according to claim 1 or 4, characterized in that: Also includes: Saving the data format to be configured; The next export of the data to be configured is performed based on the format of the data to be configured.
6. The processing method according to claim 1 or 4, characterized in that: Also includes: Saving the data to be configured; Comparing the exported data to be configured for a preset number of times, and determining the difference data between the data to be configured for the preset number of times; The difference data is displayed in a specific manner, wherein the specific manner includes a specific color and a specific font.
7. A configuration file processing device, characterized in that: include: An import module configured to import a configuration file of a target program based on an interactive component of the electronic device to form a configuration table, wherein the configuration table is in the form of a table structure, and the table structure has at least one of the following presets: a field type, a field name, and a field description, and the target program is a game program; An export module configured to export the data to be configured in the configuration file from the configuration table based on the format of the data to be configured; A first synchronization module configured to synchronize the data to be configured to a first server to support the operation of the target program; a determination module configured to determine whether there is a second server that meets a preset condition based on the data to be configured of the first server, the second server corresponding to other programs similar to the data to be configured of the target program; A second synchronization module, which synchronizes the data to be configured to the second server if the configuration location exists; The specific configuration of the determination module is: Determining whether the to-be-configured data required by the second server is the same as the to-be-configured data of the first server; If they are the same, it is determined that there is a second server that meets the preset condition.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the processing method steps described in any one of claims 1 to 6.
Citation Information
Patent Citations
Data exporting method and device
CN110059305A