A resource allocation precision method, device, server and storage medium

By calling the preset plug-in in the resource configuration accurate method to parse and compare the resource files of different versions, the problem that the existing technology cannot obtain specific differences between files is solved, and detailed resource file differences analysis and query are realized.

CN113743084BActive Publication Date: 2025-03-14TENCENT TECH SHANGHAI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010469531.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-28
Publication Date
2025-03-14
Estimated Expiration
2040-05-28

AI Technical Summary

Technical Problem

The prior art cannot effectively obtain the specific differences between files of different versions, and it is inconvenient to view the comparison results of resource files, especially when comparing blueprint files, configuration table files and map resource files.

Method used

Provides a method of accurate resource configuration. By calling the preset resource configuration precision plug-in, different versions of resource files are parsed and compared to obtain accurate resource file configuration results. This method includes obtaining the resource file of the target application, parsing and comparing the resource file, and generating differential results.

Benefits of technology

It realizes detailed analysis and comparison of the blueprint files, configuration table files and map resource files in different versions of resource files to obtain specific differential results, which is convenient for users to query and analyze.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113743084B_ABST
    Figure CN113743084B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a precise resource configuration method, which is applied to a client, including: obtaining a first resource file of a first version and a second resource file of a second version of a target application; the first and second resource files include at least one of resource files such as a blueprint file, a configuration table, and a texture / material file; calling a preset precise resource configuration plug-in to parse the resource file to obtain a first and a second parsed file, the first and the second parsed file being of the same type of comparable text format; comparing the first and the second parsed files to obtain a precise result of the resource file configuration of the target application. Based on the fact that the prior art is unable to compare blueprint files, configuration table files, and texture / material files, the present application provides a precise resource configuration plug-in, which can be used to parse and compare resource files of different versions, and obtain precise resource file configuration results of the differences in resource files of different versions, which is convenient for users to query.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, server and storage medium for accurate resource allocation. Background Art

[0002] Currently, when testers test game projects developed based on various engines, in order to save testing workload, they will conduct precise testing on the different resources that have changed between different game versions. The previous solution was to use svn log to obtain the changed game resource files, and then compare the differences between the version resource files, but only regular text file formats such as txt and xls can be compared.

[0003] Therefore, the results obtained by the existing technical solutions are relatively rough, and it is impossible to parse and compare the resource files of some engines, obtain the specific differences between resource files of different versions, and it is inconvenient to view the comparison results of the resource files. Summary of the invention

[0004] The embodiments of the present application provide a precise resource configuration method, device, server and storage medium, which are intended to solve the problem that the specific differences between different versions of files cannot be obtained and the viewing is inconvenient under the existing technology.

[0005] In a first aspect, the present application provides a resource configuration precision method, which is applied to a client, and the method comprises:

[0006] Obtain a first resource file of a first version of a target application;

[0007] Obtaining a second resource file of the second version of the target application, wherein the first resource file and the second resource file include resource files of the same type, and the first resource file and the second resource file include at least one of a blueprint file, a configuration table, and a texture resource / material file;

[0008] Calling a preset resource configuration precision plug-in to parse the first resource file and the second resource file respectively to obtain a first parsed file and a second parsed file, wherein the first parsed file and the second parsed file are in the same type of comparable text format;

[0009] The first parsed file and the second parsed file are compared to obtain accurate resource file configuration results of the first version and the second version of the target application.

[0010] In some embodiments of the present application, before calling the preset resource configuration precision plug-in, the method further includes:

[0011] Get the project path of the resource file that needs to be parsed and compared;

[0012] According to the project path, searching in the target application for a call command of the resource configuration precision plug-in;

[0013] The calling of the preset resource configuration precision plug-in includes:

[0014] The preset resource configuration precision plug-in is called according to the calling command.

[0015] In some embodiments of the present application, the first resource file includes a first blueprint file, and the second resource file includes a second blueprint file;

[0016] The first resource file and the second resource file are parsed respectively to obtain a first parsed file and a second parsed file, including:

[0017] Parsing the first blueprint file to obtain a first blueprint parsed file;

[0018] Parsing the second blueprint file to obtain a second blueprint parsed file;

[0019] The comparing the first parsed file and the second parsed file to obtain accurate resource file configuration results of the first version and the second version of the target application includes:

[0020] Obtaining a blueprint file in which the second blueprint parsed file is newly added, deleted or modified compared to the first blueprint parsed file;

[0021] For the modified blueprint files, the blueprint files of the same data type are compared to obtain the accurate result of the blueprint configuration between the first blueprint parsing file and the second blueprint parsing file.

[0022] In some embodiments of the present application, the first resource file includes a first configuration table file, and the second resource file includes a second configuration table file;

[0023] The parsing of the first resource file and the second resource file to obtain a first parsed file and a second parsed file includes:

[0024] Parsing the first configuration table file, and exporting the first configuration table file into a first configuration table parsed file in a target format;

[0025] Parsing the second configuration table file, and exporting the second configuration table file into a second configuration table parsed file in a target format;

[0026] The comparing the first parsed file and the second parsed file to obtain accurate resource file configuration results of the first version and the second version of the target application includes:

[0027] The first configuration table parsing file and the second configuration table parsing file are compared to obtain an accurate result of the configuration table between the first configuration table file and the second configuration table file.

[0028] In some embodiments of the present application, the first resource file includes a first texture / material file, and the second resource file includes a second texture / material file, and the second texture / material file is a resource file obtained after the first texture / material file changes;

[0029] The parsing of the first resource file and the second resource file to obtain a first parsed file and a second parsed file includes:

[0030] Obtain all resource files that reference the first texture / material file to parse the first texture file;

[0031] Obtain all resource files that reference the second texture / material file and parse the file for the second texture;

[0032] The comparing the first parsed file and the second parsed file to obtain accurate resource file configuration results of the first version and the second version of the target application includes:

[0033] Comparing the first texture parsing file with the second texture parsing file, obtaining a texture / material file modified between the first texture parsing file and the second texture parsing file;

[0034] Determine whether the modified second texture parsing file is a target type file;

[0035] If so, the modified second texture parsing file is output.

[0036] In a second aspect, the present application provides a precise resource configuration method, applied to a server, the method comprising:

[0037] Get the query command for accurate query configuration results;

[0038] According to the query command, the configuration accurate result is obtained in the configuration accurate result database;

[0039] Configure the target path corresponding to the query command;

[0040] According to the target path, the target configuration precise results under the target path are filtered out from the configuration precise results;

[0041] Output and display the precise results of the target configuration.

[0042] In a third aspect, the present application provides a resource configuration precision device, which is applied to a client.

[0043] include:

[0044] A first acquisition module, the first acquisition module is used to acquire a first resource file of a first version of a target application;

[0045] A second acquisition module, the second acquisition module is used to acquire a second resource file of the second version of the target application, the first resource file and the second resource file include resource files of the same type, and the first resource file and the second resource file include at least one of a blueprint file, a configuration table, and a texture resource / material file;

[0046] A calling module, the calling module is used to call a preset resource configuration precision plug-in, parse the first resource file and the second resource file respectively, and obtain a first parsed file and a second parsed file, wherein the formats of the first parsed file and the second parsed file are the same type of comparable text formats;

[0047] A configuration precision module is used to compare the first parsed file and the second parsed file to obtain the precise configuration results of the resource files of the first version and the second version of the target application.

[0048] In some embodiments of the present application, the first resource file includes a first blueprint file, and the second resource file includes a second blueprint file;

[0049] The calling module is used to: parse the first blueprint file to obtain a first blueprint parsing file;

[0050] Parsing the second blueprint file to obtain a second blueprint parsed file;

[0051] The configuration precision module is used to: obtain the blueprint files that are added, deleted or modified in the second blueprint parsing file compared with the first blueprint parsing file; for the modified blueprint files, the blueprint files of the same data type are compared to obtain the blueprint configuration precision result between the first blueprint parsing file and the second blueprint parsing file.

[0052] In some embodiments of the present application, the first resource file includes a first configuration table file, and the second resource file includes a second configuration table file;

[0053] The calling module is specifically used to: parse the first configuration table file, and export the first configuration table file into a first configuration table parsed file in a target format;

[0054] Parsing the second configuration table file, and exporting the second configuration table file into a second configuration table parsed file in a target format;

[0055] The configuration precision module is specifically used to compare the first configuration table parsing file with the second configuration table parsing file to obtain a configuration table precision result between the first configuration table file and the second configuration table file.

[0056] In a fourth aspect, the present application provides a resource configuration precision module, which is applied to a server, and the device includes:

[0057] A third acquisition module, the third acquisition module is used to obtain a query command for querying configuration accurate results;

[0058] A fourth acquisition module, the fourth acquisition module is used to acquire the configuration accurate result in the configuration accurate result database according to the query command;

[0059] A path configuration module, the path configuration module is used to configure the target path corresponding to the query command;

[0060] A screening module, the screening module is used to screen the target configuration precise results under the target path from the configuration precise results according to the target path;

[0061] A display module is used to output and display the target configuration accuracy result.

[0062] In a fifth aspect, the present application provides a server, the server comprising:

[0063] one or more processors;

[0064] Memory; and

[0065] One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor according to any one of the aforementioned methods for precise resource allocation.

[0066] In a sixth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute any of the aforementioned methods for precise resource allocation.

[0067] In the embodiment of the present application, based on the fact that the existing technology is unable to compare blueprint files, configuration table files, and map resource files, a precise resource configuration plug-in is provided. The plug-in can be used to parse and compare blueprint files, configuration table files, and map resource files in different versions of resource files, and obtain precise resource file configuration results including differences between different versions of resource files, which is convenient for users to query. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0069] Figure 1 A schematic diagram of a scenario of a precise resource configuration system provided in an embodiment of the present application;

[0070] Figure 2 A schematic diagram of a flow chart of an embodiment of a method for accurate resource allocation provided in an embodiment of the present application;

[0071] Figure 3 A schematic diagram of an embodiment of a blueprint variable value provided in an embodiment of the present application;

[0072] Figure 4 A schematic diagram of an embodiment of a blueprint object attribute value provided in an embodiment of the present application;

[0073] Figure 5 A schematic diagram of an embodiment of a texture resource file referenced by the present application;

[0074] Figure 6 This is a schematic diagram of an embodiment of the attribute type of the blueprint parsed by this application;

[0075] Figure 7 A schematic diagram of an embodiment of an accurate result of a blueprint configuration provided in an embodiment of the present application;

[0076] Figure 8 A schematic diagram of an embodiment of an accurate result configuration table provided in an embodiment of the present application;

[0077] Fig. 9 A schematic diagram of an embodiment of an accurate result of configuring a texture / material file provided in an embodiment of the present application;

[0078] Fig.10 A schematic diagram of an embodiment of a summary table of resource files that have changed provided by this application;

[0079] Fig.11 A summary of the resource files that have changed for this application Figure 1 Schematic diagram of the embodiment;

[0080] Fig.12 A flowchart of another embodiment of the configuration precision method provided by the present application;

[0081] Fig.13 A schematic diagram of an embodiment of configuration accurate result generation and query provided by the present application;

[0082] Fig.14 A schematic diagram of an embodiment of a precise resource allocation device provided in this application;

[0083] Fig.15 A schematic diagram of another embodiment of the precise resource allocation device provided in this application;

[0084] Fig.16 A schematic diagram of the structure of a server involved in an embodiment of the present application. Specific embodiments

[0085] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0086] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0087] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.

[0088] Embodiments of the present application provide a method, device, server, and storage medium for accurate resource configuration.

[0089] See also Figure 1 , Figure 1 Schematic diagram of a scenario of a precise resource configuration system provided in an embodiment of the present application. The precise resource configuration system may include a client 100 and a server 200. The client 100 and the server 200 are connected via a network. A precise resource configuration device is integrated in the server 200. The server 200 may be a work platform server (i.e., a server loaded with a work platform). Figure 1 In the server, the client 100 can access the server 200.

[0090] In the embodiment of the present invention, the server 200 is mainly used to obtain a first resource file of a first version of a target application; obtain a second resource file of a second version of a target application, the first resource file and the second resource file include resource files of the same type, and the first resource file and the second resource file include at least one of a blueprint file, a configuration table and a texture resource file; call a preset resource configuration precision plug-in to parse the first resource file and the second resource file respectively to obtain a first parsed file and a second parsed file, the format of the first parsed file and the second parsed file are the same type of comparable text format; compare the first parsed file and the second parsed file to obtain the precise resource file configuration results of the first version and the second version of the target application.

[0091] In the embodiment of the present invention, the server 200 can be an independent server, or a server network or server cluster composed of servers. For example, the server 200 described in the embodiment of the present invention includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of a plurality of servers. Among them, the cloud server is composed of a large number of computers or network servers based on cloud computing (Cloud Computing). In the embodiment of the present invention, communication between the server and the client can be achieved through any communication method, including but not limited to mobile communications based on the 3rd Generation Partnership Project (3GPP), Long Term Evolution (LTE), Worldwide Interoperability for Microwave Access (WiMAX), or computer network communications based on TCP / IP Protocol Suite (TCP / IP), User Datagram Protocol (UDP) and the like.

[0092] It is understandable that the client 100 used in the embodiment of the present invention can be understood as a client device, which includes both receiving and transmitting hardware, that is, a device with receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such client devices may include: cellular or other communication devices, which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The specific client 100 can be a desktop terminal or a mobile terminal, and the client 100 can be one of a mobile phone, a tablet computer, a laptop computer, etc.

[0093] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer servers, or server network connections, as shown in Figure 1 Only one server and two clients are shown. It can be understood that the resource allocation precision system can also include one or more other servers, and / or one or more clients connected to the server network, which is not specifically limited here.

[0094] In addition, if Figure 1 As shown, the precise resource configuration system may further include a memory 300 for storing data, such as a precise resource configuration result database, in which precise resource configuration results for resource files of different versions are stored, and the object data may include precise blueprint resource configuration results for blueprint files, precise configuration table resource configuration results for configuration table files, precise texture file resource configuration results for texture files, and other precise resource configuration results; the precise resource configuration database may also store multiple types of data, such as blueprint file data, configuration table file data, or texture / material file data, etc.

[0095] It should be noted that Figure 1 The scenario diagram of the precise resource configuration system shown is only an example. The precise resource configuration system and scenario described in the embodiment of the present invention are intended to more clearly illustrate the technical solution of the embodiment of the present invention, and do not constitute a limitation on the technical solution provided by the embodiment of the present invention. Ordinary technicians in this field can know that with the evolution of the precise resource configuration system and the emergence of new business scenarios, the technical solution provided by the embodiment of the present invention is also applicable to similar technical problems.

[0096] The following is a detailed description in conjunction with a specific embodiment. In this embodiment, the description will be made from the perspective of a precise resource configuration device, which can be specifically integrated in the client 100 .

[0097] An embodiment of the present application provides a precise resource configuration method, which includes: obtaining a first resource file of a first version of a target application; obtaining a second resource file of a second version of the target application, the first resource file and the second resource file include resource files of the same type, and the first resource file and the second resource file include at least one of a blueprint file, a configuration table, and a texture resource / material file; calling a preset precise resource configuration plug-in to parse the first resource file and the second resource file respectively to obtain a first parsed file and a second parsed file, the format of the first parsed file and the second parsed file being a comparable text format of the same type; comparing the first parsed file and the second parsed file to obtain precise resource file configuration results for the first version and the second version of the target application.

[0098] To facilitate understanding of the embodiments of the present invention, several basic concepts that will be introduced in the description of the embodiments of the present invention are first introduced here:

[0099] The version control system (Subversion, SVN) is a commonly used open source version control system. As an open source version control system, SVN manages data that changes over time. These data are placed in a central data repository (Repository). This repository is very similar to an ordinary file server, but it remembers every change to the file. In this way, the file can be restored to an old version, or the change history of the file can be browsed. SVNlog is the log file of SVN. The existing technical solution obtains the difference of version resources by comparing the log files corresponding to different versions of SVN.

[0100] See also Figure 2 , is a flow chart of an embodiment of a method for accurate resource configuration provided in an embodiment of the present application, the accurate resource configuration method includes:

[0101] 21. Obtain a first resource file of a first version of a target application.

[0102] The target application may be an installed application in a computer device, such as a game application, and the first version of the target application is a version corresponding to the target application, such as target application 1.0.

[0103] In an embodiment of the present application, obtaining the first resource file of the first version of the target application can be triggered after obtaining the user's precise resource configuration instruction. Specifically, a menu or option corresponding to "precise resource configuration" can be set on the client. When the user clicks the menu or option corresponding to "precise resource configuration", an instruction for the user to perform precise resource configuration can be generated. After obtaining the precise resource configuration instruction, the first resource file of the first version of the target application can be obtained.

[0104] 22. Obtain a second resource file of the second version of the target application.

[0105] The second version is also a version corresponding to the target application, and the second version is different from the first version. For example, the first version of the target application is target application 1.0, and the second version of the target application may be target application 2.0.

[0106] The first version and the second version may be consecutive versions of the target application. For example, the second version is a version released at an adjacent time to the first version (with no other versions in between). The first version and the second version may be adjacent major versions of the target application (with some minor improved versions in between). For example, the first version of the target application may be target application 1.0, and the second version of the target application may be target application 2.0. However, between target application 1.0 and target application 2.0, there may be target application function 1.1, target application 1.2, etc.

[0107] In addition, the first resource file and the second resource file include resource files of the same type. For example, the first resource file and the second resource file both include resource files of file type a, file type b, and file type c, so that subsequent analysis and comparison can be directly performed accordingly.

[0108] Due to the existing technical solutions, after obtaining the difference resource files between different versions, only the specific difference values ​​can be obtained from the regular text files such as txt and xls in the difference resource files. Some files related to configuration in the engine, such as the blueprint class and configuration table that drive the game logic, cannot be directly compared. It can only be known that the resource file has changed, but not the changes in the specific attribute configuration in the resource. And for art resources such as textures and materials, it is only known that a certain texture or material resource has changed, but it is impossible to know the changes in other resource files that depend on the resource caused by the changes in the texture or material.

[0109] The embodiment of the present application can mainly solve the problem of automatic comparison of resource files that cannot be compared, such as blueprint files, configuration tables, and texture resource / material files. Therefore, in the embodiment of the present application, the first resource file and the second resource file may include at least one of the blueprint files, configuration tables, and texture resource / material files.

[0110] It can be understood that the first resource file and the second resource file are not limited to several types of resource files such as blueprint files, configuration tables, and texture resources / material files. In some embodiments of the present application, the first resource file and the second resource file may also include other types of resource files, such as conventional resource files in formats such as txt and xls, which are not specifically limited here.

[0111] 23. Call the preset resource configuration precision plug-in to parse the first resource file and the second resource file respectively to obtain a first parsed file and a second parsed file. The formats of the first parsed file and the second parsed file are the same type of comparable text formats.

[0112] Specifically, the resource configuration precision plug-in can parse and identify non-text resource files (such as blueprint files, configuration tables, and texture resource files).

[0113] In some embodiments of the present application, before calling the preset resource configuration precise plug-in, the method also includes: obtaining the project path of the resource file that needs to be parsed and compared; according to the project path, searching for the calling command of the resource configuration precise plug-in in the target application; and calling the preset resource configuration precise plug-in may include: calling the preset resource configuration precise plug-in according to the calling command.

[0114] Specifically, in some embodiments of the present application, it may be necessary to first obtain the path of the target application and the project path of the resource file that needs to be parsed. After obtaining the project path, the call command of the resource configuration precision plug-in can be found in the target application according to the project path. The preset resource configuration precision plug-in needs to be called using the call command that calls the plug-in, that is, as long as the command to call the resource configuration precision plug-in is obtained, the resource configuration precision plug-in can be called according to the command, and then the resource files of different versions can be compared.

[0115] In some embodiments of the present application, some commands in the UE4 engine can be directly called, and these commands can be customized. Specifically, a command for parsing resource files can be written, and calling this command can parse the resource files. Specifically, the Commandlet command line in the UE4 engine can be used to call the resource configuration precision plug-in. Among them, the format of calling the Commandlet command line is:

[0116] [UE4Editor-Cmd.exe path] [uproject path]-run = [Commandlet name]-parameters of this Commandlet

[0117] Different resource files are stored in different paths. If you want to call the resource configuration precision plug-in, you also need to obtain the path of the resource configuration precision plug-in now to call the preset resource configuration precision plug-in according to the path.

[0118] After obtaining the preset resource configuration precision plug-in, the plug-in can be used to parse resource files between different versions. In some embodiments of the present application, the first resource file under the first version and the second resource file under the second version of the target application can include at least one of a blueprint file, a configuration table file, and a texture resource file.

[0119] Among them, the Blueprint Class, generally abbreviated as Blueprint, is a visual game script, that is, you can create scripts through a visual interface, that is, connect nodes, events, functions and variables together through wires. It allows content creators to easily add functions based on existing gameplay classes. Blueprints are created visually in the Unreal Editor, without writing code, and will be saved as classes in the content package. Figure 3 As shown, it is a schematic diagram of an embodiment of a blueprint variable value provided in an embodiment of the present application. Figure 3 The "position", "transformation" and "scale" in the blueprint are vector attributes, while the "variable name" can be a string attribute of the blueprint, and in Figure 3 The specific attribute values ​​corresponding to the vector attributes and string attributes of the blueprint are also included. Figure 4 As shown, it is a schematic diagram of an embodiment of a blueprint object attribute value provided in an embodiment of the present application. Figure 4 In the example, "Mesh" can be an object property of the blueprint, and "Skeletal Mesh" can be obtained by referencing the skeletal network object "Card Network", and Figure 4 The blueprint object attributes are included in the attribute values. By using the accurate resource configuration method provided in the embodiment of the present application, the attributes of the blueprint file and the attribute values ​​corresponding to the blueprint file can be obtained intuitively and effectively.

[0120] The configuration table (DataTable) file is a game configuration table, in which some configuration information data will be dynamically loaded and assigned to corresponding objects or variables when the game project is running, so as to play a role in the game.

[0121] Texture resource files represent a resource file that will be referenced by multiple other resource files, which can greatly reduce the time of creating applications and save manpower and material resources. Figure 5 As shown, it is a schematic diagram of an embodiment of the texture resource file referenced by the present application. Figure 5It can be seen that a texture file can be referenced by multiple other resource files, and the referenced texture resource file can continue to be referenced by other resource files, that is, a reference chain can be formed between texture resource files. Therefore, if the underlying texture resource file changes, all texture resource files that reference the texture resource file will change.

[0122] Specifically, textures Q1, Q2, and Q3 all reference texture Q4, which in turn references texture Q5, and texture Q6 references texture Q3. If texture Q5 changes, texture Q4, which references texture Q5, will change; and textures Q1, Q2, and Q3 all reference texture Q4. If texture Q4 changes, textures Q1, Q2, and Q3 will all change. Similarly, texture Q6, which references texture Q3, will also change.

[0123] 24. Compare the first parsed file and the second parsed file to obtain accurate resource file configuration results of the first version and the second version of the target application.

[0124] The precise resource configuration method provided in the embodiment of the present application, based on the fact that the existing technology is unable to compare blueprint files, configuration table files, and texture / material files, by providing a precise resource configuration plug-in, can be used to parse and compare blueprint files, configuration table files, and texture / material files in resource files of different versions, and obtain precise resource file configuration results including differences between resource files of different versions, which is convenient for users to query.

[0125] The precise resource configuration method provided by the present application can be used to compare the differences between different versions of game files, that is, the target application described in the embodiment of the present application can be a game application based on Unreal Engine 4 (UE4), or a game application based on the unity engine. Specifically, when the tester is testing a game project developed based on Unreal Engine 4 (UE4), the game project is frequently iterated; the tester sometimes knows where the modification is, but does not know how large the scope of the impact is. Usually, either the test scope is set small, omitted, or the test scope is too large, and too much cost is paid. Therefore, in order to save the test workload, the different resources with changes between different game versions will be accurately tested. The test method under the prior art is to use a dynamic login log (svn log) to obtain the changed game resource files, and then compare the differences in the version resource files, but can only compare conventional text file formats such as txt and xls. For some files related to configuration in the UE4 engine, such as the blueprint class and configuration table that drive the game logic, it is impossible to directly compare them. It can only be known that the resource file has changed, but it is impossible to know the changes in the specific attribute values ​​in the resource.

[0126] Therefore, the present application provides a precise resource configuration method, which can compare resource files such as blueprint classes that cannot be compared under the existing technology, and obtain the differences between different version files.

[0127] In some embodiments of the present application, it is necessary to compare the differences between resource files of different versions, so it is necessary to first obtain the first resource file corresponding to the first version of the target application and the second resource file corresponding to the second version; wherein the first resource file and the second resource file should be resource files of different versions of the same application or under the same path, otherwise they cannot be compared; that is, the first resource file and the second resource file include resource files of the same type. Specifically, the first resource file and the second resource can include at least one of a blueprint file, a configuration table file, and a texture resource / material file.

[0128] In some embodiments of the present application, the first resource file and the second resource file may include one or more of a blueprint file, a configuration table file, and a texture resource / material file. In a specific embodiment of the present application, the first resource file may include a first blueprint file, and the second resource file may include a second blueprint file. Then, respectively parsing the first resource file and the second resource file to obtain a first parsed file and a second parsed file may include: parsing the first blueprint file to obtain a first blueprint parsed file; parsing the second blueprint file to obtain a second blueprint parsed file.

[0129] After parsing the first blueprint file and the second blueprint file respectively, in some embodiments of the present application, the first parsed file and the second parsed file are compared to obtain accurate results of resource file configuration of the first version and the second version of the target application, which may include: obtaining the blueprint files that are newly added, deleted or modified in the second blueprint parsed file compared to the first blueprint parsed file; for the modified blueprint files, blueprint files of the same data type are compared to obtain accurate results of the blueprint configuration between the first blueprint parsed file and the second blueprint parsed file.

[0130] Specifically, in the UE4 engine, you can use blueprint files to configure some numerical variable values, and you can also use blueprint files to configure object attribute values ​​such as materials, skeleton meshes, and static mesh resources. Comparing the differences between resource files before different versions mainly compares the changes in blueprint variables and object attribute configuration values ​​between different versions. Using this configuration precision plug-in, you can parse blueprint files between different versions and obtain various types of data files, such as Figure 6As shown, it is a schematic diagram of an embodiment of the attribute type of the blueprint parsed by this application. Specifically, it is possible to obtain numerical data, character data, enumeration data, object data, structure data, array data, etc. in the blueprint file, and obtain the attribute value corresponding to each data.

[0131] After parsing the blueprint files of different versions, the data of the same data type in the blueprint files can be matched to obtain the difference values ​​of the blueprint files of different versions. Specifically, the attribute values ​​corresponding to the data of the same data type in the blueprint files can be compared. By comparing the attribute values, the difference can be obtained more simply and specifically.

[0132] That is, the first blueprint parsing file and the second blueprint parsing file are compared to obtain the blueprint files that are newly added, deleted or modified in the second blueprint parsing file compared to the first blueprint parsing file. After obtaining these modified blueprint files, the data files of the same data type in these modified blueprint files can be compared. That is, in the modified blueprint files, by comparing the data files corresponding to the same data type and the attribute values ​​corresponding to each of these data files, the precise result of the blueprint configuration between the first blueprint parsing file and the second blueprint parsing file can be obtained. Specifically, the precise result of the blueprint configuration between the first blueprint parsing file and the second blueprint parsing file can be to compare the specific differences in the attribute values ​​between the data files corresponding to the same data type in the first blueprint parsing file and the second blueprint parsing file, save the first blueprint parsing file and the second blueprint parsing file whose attribute values ​​are changed, and save the attribute values ​​of the data in the first blueprint file and the attribute values ​​of the data in the second blueprint parsing file.

[0133] like Figure 7 As shown, it is a schematic diagram of an embodiment of the blueprint configuration provided by the embodiment of the present application, in Figure 7 In this method, users can not only intuitively see the differences between blueprint files of different SVN versions of resource files, but also determine the path of the changed blueprint file, as well as which versions of the blueprint files have differences, and the specific time of obtaining the differences. Users can use the method provided by this application to directly and intuitively and efficiently obtain the differences between blueprint files of different SVN versions.

[0134] Specifically, in Figure 7 In the output, it can be seen that the output resource configuration precision results include the blueprint configuration precision results, the configuration table configuration precision results and the map / material file configuration precision results. Figure 7 The following shows the exact result of the configuration of the blueprint. Figure 7It also includes the path A / of the svn file and the version 37595-38195 corresponding to the svn path, that is, the files with svn versions 37595-38195 have changed. Figure 7 It also includes the name of the blueprint B, and the blueprint path C / corresponding to blueprint B; it can also show the time when different versions of svn files were created or modified, the type of change to the blueprint, and the specific time when the operator obtained the accurate results of the blueprint configuration.

[0135] In a specific embodiment of the present application, a specific variable in a blueprint parsing file can be obtained, and the attribute value of the variable in different versions of the blueprint parsing file will change. Specifically, the change can be that the attribute value of the variable corresponding to the first blueprint parsing file can be 0.3, while the attribute value of the variable corresponding to the second blueprint parsing file can be 0.4. At this time, by comparing the attribute value of the variable in the first blueprint parsing file and the second blueprint parsing file, it can be intuitively seen that the variable has changed and what the specific change is.

[0136] After determining the corresponding property values ​​of a specific variable in different versions of the blueprint files, it is necessary to output the name of the variable, output the corresponding property values ​​of the variable in different versions of the blueprint files, and determine the change type of the variable value. Specifically, the change type of the variable value can be: change.

[0137] In a specific embodiment of the present application, the blueprint configuration accurate result may be:

[0138] Variable name: m Variable value: Old value: 0.3 —> New value: 0.4 Variable value change type: Modify

[0139] Specifically, the precise result of the blueprint configuration represents: the variable value of the variable m in the first blueprint file is 0.3, while the variable value of the variable m in the second blueprint file is changed to 0.4; the variable value has been modified.

[0140] As described above, the specific property values ​​of the variables in different versions of blueprint files are output, and the variable names and variable value change types are output, so that users can more intuitively determine how the variables change in different versions of resource files.

[0141] In the embodiment of the present application, the differences between different blueprint files and different versions of blueprint files are saved in the form of json strings. Figure 7 The blueprint configuration precise results are displayed in the operation interface after the operator obtains the blueprint configuration precise results.

[0142] It should be noted that when comparing different versions of blueprint files, it is necessary to compare the attribute values ​​of files of the same data type in the blueprint files. At the same time, the path of the variable can also be output to facilitate users to query the changed variables.

[0143] In some embodiments of the present application, the first resource file may include a first configuration table file, and the second resource file may include a second configuration table file. In the following configuration table, the configuration table may include multiple identifications (Identity documents, IDs), and multiple game running states or game running events corresponding to the multiple IDs, and the content in the configuration table can be manually configured, that is, the correspondence between the ID and the event can be manually set. An ID can only represent one event, and the content in the configuration table in a certain version is fixed.

[0144]

[0145] In this embodiment, parsing the first resource file and the second resource file to obtain the first parsed file and the second parsed file may include: parsing the first configuration table file, exporting the first configuration table file into a first configuration table parsed file in a target format; parsing the second configuration table file, exporting the second configuration table file into a second configuration table file in a target format.

[0146] Specifically, the configuration precision plug-in can be used to parse the first resource file and the second resource file respectively. Specifically, the configuration precision plug-in is used to export the first configuration table file to a first configuration table parsing file in a target format, and to export the second configuration table file to a second configuration table parsing file in a target format. Then, the first configuration table parsing file and the second configuration table parsing file can be compared to obtain the configuration table configuration precision result between the first configuration table file and the second configuration table file.

[0147] Among them, the target format can be a txt or xls file, that is, the first configuration table file and the second configuration table file are exported to files in txt or xls format. That is, the specific contents of the first configuration table file and the second configuration table file are output as files in txt or xls format, and the first configuration table parsing file and the second configuration table parsing file in txt or xls format are obtained, so that subsequent comparison can be performed to obtain the accurate result of the configuration table configuration between the first configuration table file and the second configuration table file. Among them, the process of comparing the configuration table files in txt or xls format can refer to the existing technology and is not limited here.

[0148] It is understood that in an embodiment of the present application, the configuration table file can also be exported as a character-separated value (Comma-Separated Values, CSV) file, which stores table data (numbers and text) in plain text. Plain text means that the file is a sequence of characters and does not contain data that must be interpreted like binary numbers. The CSV file consists of an arbitrary number of records, and the records are separated by some kind of line break character; each record consists of fields, and the separators between fields are other characters or strings, the most common of which are commas or tabs. In an embodiment of the present application, the configuration table file cannot be exported as a file in word format, so that comparison cannot be made.

[0149] It should be noted that to compare configuration table files between different versions, you need to export the configuration table files to files of the same format before you can compare them. Files of different formats cannot be compared. Specifically, you can export all configuration table files to files in txt format and then compare them.

[0150] In an embodiment of the present application, after obtaining an accurate configuration result of the configuration table by comparing the configuration table parsing file of the same format, it is also necessary to save the accurate configuration result of the configuration table for user query. The accurate configuration result of the configuration table includes an ID and the event represented by the ID, and also includes changes in the event. Among them, changes in the event may include: adding, deleting or modifying.

[0151] like Figure 8 As shown, it is a schematic diagram of an embodiment of the configuration table configuration accurate result provided in the embodiment of the present application. Figure 8 In the config table, you can directly see the path of the changed configuration table and the svn version file corresponding to the changed configuration table file; in addition, you can also directly see the total number of configuration table row changes in the changed configuration table.

[0152] Specifically, in Figure 8 The configuration table configuration results are shown in Figure 8 The svn file path A and the changed svn file version 37595-38195 are also displayed. At the same time, the configuration table name E and the path C / of configuration table E are also displayed. At the same time, similar to the blueprint configuration precise result, the configuration table precise result also includes the creation or modification time of different versions of svn files, as well as the time when the operator obtains the configuration table precise result.

[0153] and Figure 8 The precise results of the configuration table also include the number of modified rows, the number of newly added rows, and the number of deleted rows in different versions of the configuration table.

[0154] In a specific embodiment of the present application, the configuration table configuration precision result may be:

[0155] ID: 1 Language: Successfully joined the team Datatable row change type: Add

[0156] Specifically, the configuration table configures the precise result representation: the event with ID 1 represents: "Successfully joined the team", and this event does not exist in the first configuration table file. A new event with ID 1 is added in the second configuration table file, and this event is "Successfully joined the team".

[0157] In another specific embodiment of the present application, the configuration table configuration precision result may also be:

[0158] ID: 3 Language: Old value: High Quality -> New value: Ultra High Datatable row change type: Modify

[0159] Specifically, the configuration table configuration accurate result represents: the event with ID 3 represents: "Old value: high quality -> new value: ultra high". That is, the event is "high quality" in the first configuration table file, and is changed to "ultra high" in the second configuration table file.

[0160] In some embodiments of the present application, the first resource file may include a first texture / material file, and the second resource file may include a second texture / material file. A texture / material file may be referenced by many other files, and when a texture / material file changes, all files that reference the changed texture / material file may change accordingly.

[0161] The precise resource configuration method provided by the present application can obtain all resource files that reference a certain texture / material file. Specifically, in some embodiments of the present application, the first resource file may include a first texture / material file, the second resource may include a second texture / material file, and the second texture / material file is a resource file obtained after the first texture / material file changes.

[0162] Parsing the first resource file and the second resource file to obtain the first parsed file and the second parsed file may include: obtaining all resource files that reference the first texture / material file, which is the first texture parsed file; obtaining all resource files that reference the second texture file, which is the second texture parsed file. Comparing the first parsed file and the second parsed file to obtain the accurate resource file configuration results of the first version and the second version of the target application may include: comparing the first texture parsed file and the second texture parsed file, obtaining the texture / material file that has been modified between the first texture parsed file and the second texture parsed file; determining whether the modified second texture parsed file is a target type file; if so, outputting the modified second texture parsed file.

[0163] Specifically, in an embodiment of the present application, a change in a texture / material file will cause all resource files that reference the texture / material file to change. In the first resource file, a change in the first texture / material file will cause other resource files that reference the first texture / material file to change; and the second texture / material file is the resource file obtained after the first texture / material file changes. Similarly, there will be many resource files that reference the second texture / material file, which will also cause other resource files that reference the second texture / material file to change. The precise resource configuration method provided in the embodiment of the present application obtains all resource files that reference the second texture resource by obtaining the precise function of the resource configuration precise plug-in, and these resource files are referred to as second texture parsing files.

[0164] In the above embodiment, since the second texture / material file is obtained after the first texture / material file changes, it is only necessary to obtain all resource files that reference the second texture / material file, and then all resource files that reference the second texture / material file can be obtained.

[0165] In some embodiments of the present application, the first parsed file and the second parsed file are compared to obtain accurate results of resource file configuration of the first version and the second version of the target application, which may include: comparing the first texture parsed file and the second texture parsed file to obtain the texture / material file that has been modified between the first texture parsed file and the second texture parsed file; determining whether the modified second texture parsed file is a target type file; if so, outputting the modified second texture parsed file.

[0166] Specifically, in an embodiment of the present application, since the second texture parsing file is all resource files that reference the second texture / material file, the first parsing file and the second parsing file are compared, and it is only necessary to determine whether the second texture parsing file is a file of the target type, and there is no need to determine the first texture / material file. The target type file may be a blueprint file, a skeleton file, a level file, a configuration table file, a data resource file, etc., that is, it is determined whether the second texture parsing file is one or more of a blueprint file, a skeleton file, a level file, a configuration table file, and a data resource file. If so, the second texture parsing file can be directly output, and the second texture parsing file can be stored for subsequent query.

[0167] However, in an embodiment of the present application, the changed texture files can also be displayed, so the first texture parsing file and the second texture parsing file can be compared to obtain the second texture / material file that has changed compared to the first texture / material file, and then output and save the modified texture / material file.

[0168] At the same time, it is also possible to determine whether the modified second texture parsing file is a target type file. If so, the modified second texture parsing file is output, which can reduce the data files that need to be saved and reduce the storage capacity.

[0169] In some embodiments of the present application, the method for obtaining reference resources provided in the UE4 engine source code can be used to obtain all resource files that reference the second texture file. The specific acquisition method can refer to the existing technology and is not limited here.

[0170] like Fig. 9 As shown, it is a schematic diagram of an embodiment of the present application embodiment for configuring accurate results of a texture / material file. Fig. 9 In the .svn file view, you can intuitively see the resource files that have changed between different versions of the svn file and the corresponding paths of the resource files; at the same time, you can also intuitively see the resource files that have changed due to the reference to the changed resource files, as well as the resource types of the resource files.

[0171] Specifically, in Fig. 9 The content displayed in is the resource-accurate result. The resource here refers to resource files such as textures / materials; that is, the resource-accurate result here is the configuration-accurate result of the texture / material resource files. Similar to the above-mentioned blueprint configuration-accurate result and data table configuration-accurate result, in Fig. 9It also includes the path of the svn file A / , and the corresponding versions of the changed svn files are 37595-38195; it also includes the time when different svn version files were created or modified, and the time when the operator obtained the accurate configuration results of the map / material resource file. Fig. 9 It also includes the name of the changed texture / material file F, and the resource path C / corresponding to the texture / material file.

[0172] In some embodiments of the present application, a specific output result of the second map parsing file may be:

[0173] Resource name: n1 Resource path: C1 / Resource type: Datatable

[0174] In the above embodiment, the output result represents: a resource file with a resource name of n1 is saved in the path C1 / , where the path C1 / may be / Content / Datatable / ItemTable, and the resource file n1 is a resource file of the Datatable type.

[0175] That is, in the embodiment of the present application, when outputting the second texture parsing file, it is necessary not only to output the specific resource file, but also to output the saving path of the second texture parsing file and the file type of the second texture parsing file.

[0176] In some other embodiments of the present application, the first resource file may include multiple types of blueprint files, configuration table files, and texture resource files; similarly, the second resource file may also include multiple types of blueprint files, configuration table files, and texture resource files. Since the second resource file is a resource file of the target application under another version obtained after modifying the first resource file, the file types of the first resource file and the second resource file are the same, that is, if the first resource file includes a blueprint file and a configuration table file, the second resource file will also include a blueprint file and a configuration table file; there will be no situation where the first resource file includes a blueprint file, but the second resource file does not include a blueprint file.

[0177] In an embodiment of the present application, after obtaining the first resource file corresponding to the first version of the target application and the second resource file corresponding to the second version, and comparing the first resource file and the second resource file to obtain a configuration precision result, it is also necessary to save the configuration precision result for subsequent query. Specifically, the configuration precision result can be saved in a database.

[0178] It should be noted that in the embodiments of the present application, for the changed blueprint files, configuration table files, and resource files such as textures / materials, by using the configuration precision method provided by the present application, not only can the svn version files corresponding to the changed resource files be obtained; the paths corresponding to the changed resource files can also be obtained, which is convenient for operators to quickly locate; at the same time, the specific changes that have occurred in the resource files and the types corresponding to the changes can also be obtained, and for texture / material files, operators can also obtain the resource files at the top of the reference chain that references the resource due to changes in art resources such as materials / textures. The aforementioned contents can be directly pushed to the operator after the configuration precision is completed through the method provided by the present application.

[0179] In some embodiments of the present application, the configuration precision method provided by the present application can also summarize and output the changes in the blueprint file, configuration table file, and texture / material file, so that the operator can view them conveniently. Fig.10 As shown, it is a schematic diagram of an embodiment of a summary table of resource files that have changed provided by this application. Fig.10 In the , operators can intuitively see the summary number of changes in blueprint files, configuration table files, map / material files, and the summary number of resource files that have changed in different versions of svn files.

[0180] like Fig.11 As shown, the resource files that have changed are summarized in the column chart provided by this application. Figure 1 Schematic diagram of the embodiment, Fig.11 In the figure, the horizontal axis represents different svn version numbers, and the horizontal axis represents the number of changed resource files. The bottom layer can be the number of modified files, that is, the dotted part in the figure can represent the total number of modified files in each version of the svn resource file compared with the previous version of the svn resource file; and the top layer, that is, the bold part, can represent the total number of deleted files in each version of the svn resource file compared with the previous version of the svn resource file; and the middle layer can represent the total number of newly added resource files in each version of the svn resource file compared with the previous version of the svn resource file. For any version of the resource file, it may or may not change compared with the previous version, and the changed resource files may not be the same, so in Fig.10 and Fig.11 In the example, the number of changes in some resource files will be zero, and the unchanged parts will not appear in the histogram.

[0181] This application also provides a configuration precision method, which is applied to the server, such as Fig.12FIG. 1 is a flow chart of another embodiment of the configuration precision method provided by the present application, and the method includes:

[0182] 1201. Query command for obtaining accurate results of query configuration.

[0183] 1202. According to the query command, obtain the configuration precision result in the configuration precision result database.

[0184] 1203. Configure the target path corresponding to the query command.

[0185] 1204. According to the target path, the target configuration precise results under the target path are filtered in the configuration precise results.

[0186] Specifically, the configuration precision method is applied to the system platform, and the user can query the configuration precision result on the system platform. In some embodiments of the present application, the system platform can be a Blue Shield platform, and the Blue Shield platform can provide a running environment for the client. At the same time, the UE4 engine needs to be installed on the client, so that the configuration precision plug-in based on the UE4 engine can be used to parse the resource file to obtain the difference.

[0187] In some embodiments of the present application, when a user needs to query for precise configuration results, he needs to first obtain a query command for querying precise accessory results. Only by obtaining the query command first can the precise configuration results in the precise configuration result database be obtained on the system platform according to the query command. If the user wants to obtain the precise configuration result corresponding to a specific resource file, he also needs to obtain the target path corresponding to the query command; according to the target path, the target configuration precise result under the target path can be filtered out from the precise configuration results.

[0188] In some embodiments of the present application, a query command for querying precise configuration results is used to obtain a target resource configuration precise result corresponding to a specific resource file. The query command can be used to directly query in the precise configuration results; or the path of a specific resource file in the resource file can be obtained according to the query command, and then the target configuration precise result can be obtained in the precise configuration results according to the path.

[0189] It should be noted that since the path can be used to query the precise configuration result corresponding to a specific resource file, when parsing to obtain the difference to generate and save the precise configuration result, the precise configuration result needs to be saved according to the path of the resource file to facilitate subsequent search.

[0190] like Fig.13As shown, it is a schematic diagram of an embodiment of the generation and query of accurate configuration results provided by the present application. In this embodiment, the user can set a scheduled check on the Blue Shield platform so that the Blue Shield platform can parse and compare resource files regularly. When the platform starts to parse resource files, it can call the Commandlet command line in the UE4 engine, and the command line can call the accurate resource configuration plug-in in the UE4 engine. The plug-in can be used to parse and compare various types of files such as blueprint files, configuration table files, or texture / material files, etc., to obtain accurate configuration results, and save the accurate configuration results in the database; until all file comparisons are completed.

[0191] The user can query the configuration precision results on the system platform side. Specifically, the user initiates a query command on the system platform side and configures the target path corresponding to the target resource file to be queried. The system platform can use the query command to obtain the configuration precision results in the database. The target path is used to filter out the target configuration precision results that need to be displayed from the configuration precision results, and the target configuration precision results are intuitively displayed on the system platform.

[0192] In the embodiments of the present application, the comparison and analysis results, i.e., the configuration accuracy results, can be output to the system platform for users to view more intuitively. Among them, the system platform will display the resource files between different versions, such as the number of resource files deleted, modified, and added; and the changes of different types of data files, such as blueprint files, configuration table files, or texture resource files, will be summarized and output. At the same time, the specific changes that have occurred in each resource file will also be output.

[0193] As shown in the following table, this is an embodiment of the precise resource configuration results output by the present application. It can be seen from the table that for the blueprint file, a total of 29 blueprint files have been modified in the blueprint file, while the number of newly added and deleted blueprint files is 0. For the configuration table file, there are four modified configuration table files, while the number of newly added and deleted configuration table files is 0. For the material file, the number of modified, newly added and deleted material files is 0. For the texture file, the number of modified texture files is 8, while 14 texture files are added and 40 texture files are deleted. It can be intuitively seen from the table that, using the precise configuration method provided by the present application, which paths of resource files have changed, as well as the summary of the changed resource files.

[0194] Classification Modify the number of blueprints New blueprints added Delete blueprint count Summarize data 29 0 0 Classification Modify the number of configuration tables Added number of configuration tables Delete configuration table number Summarize data 4 0 0 Classification Modify the number of materials New Materials Delete Material Number Summarize data 0 0 0 Classification Modify the number of textures Number of new textures added Number of deleted maps Summarize data 8 14 40

[0195] The present application also provides a precise resource allocation device, such as Fig.14As shown, it is a schematic diagram of an embodiment of a precise resource configuration device provided by the present application. The precise configuration device is applied to a client, and the precise configuration device includes:

[0196] The first acquisition module 1401 is used to acquire a first resource file of a first version of a target application.

[0197] The second acquisition module 1402 is used to obtain a second resource file of the second version of the target application, the first resource file and the second resource file include resource files of the same type, and the first resource file and the second resource file include at least one of a blueprint file, a configuration table file and a texture resource / material file.

[0198] The calling module 1403 is used to call the preset resource configuration precision plug-in to parse the first resource file and the second resource file respectively to obtain the first parsed file and the second parsed file. The formats of the first parsed file and the second parsed file are the same type of comparable text formats.

[0199] The configuration precision module 1404 is used to compare the first parsed file and the second parsed file to obtain the precise configuration results of the resource files of the first version and the second version of the target application.

[0200] In the embodiment of the present application, based on the fact that the existing technology is unable to compare blueprint files, configuration table files, and map resource / material files, a precise resource configuration device is provided and applied to the client. The plug-in is used to parse and compare blueprint files, configuration table files, and map resource / material files in different versions of resource files, so as to obtain precise resource file configuration results including the differences between different versions of resource files, which is convenient for users to query.

[0201] In some embodiments of the present application, the first resource file includes a first blueprint file, and the second resource file includes a second blueprint file; the calling module 1403 can be specifically used to parse the first blueprint file to obtain the first blueprint parsed file; parse the second blueprint file to obtain the second blueprint parsed file.

[0202] The configuration precision module 1404 can be specifically used to obtain the blueprint files that are newly added, deleted or modified in the second blueprint parsing file compared with the first blueprint parsing file; for the modified blueprint files, blueprint files of the same data type are compared to obtain the precise result of the blueprint configuration between the first blueprint parsing file and the second blueprint parsing file.

[0203] In some other embodiments of the present application, the first resource file includes a first configuration table file, and the second resource file includes a second configuration table file.

[0204] The calling module 1403 can be specifically used to parse the first configuration table file and export the first configuration table file into a first configuration table parsed file in a target format; parse the second configuration table file and export the second configuration table file into a second configuration table parsed file in a target format.

[0205] The configuration precision module 1404 can be specifically used to compare the first configuration table parsing file with the second configuration table parsing file to obtain the configuration precision result between the first configuration table file and the second configuration table file.

[0206] In some other embodiments of the present application, the first resource file includes a first texture / material file, and the second resource file includes a second texture / material file, wherein the second texture / material file is a resource file obtained after the first texture / material file changes.

[0207] The calling module 1403 can be used to obtain all resource files that reference the first texture / material file, which is the first texture parsing file; obtain all resource files that reference the second texture / material file, which is the second texture parsing file. The configuration precision module 1404 can be used to compare the first texture parsing file with the second texture parsing file, obtain the texture / material file that has been modified between the first texture parsing file and the second texture parsing file; determine whether the modified second texture parsing file is a target type file; if so, output the modified second texture parsing file.

[0208] The present application also provides a precise resource configuration device, which is applied to a server, such as Fig.15 As shown, it is a schematic diagram of another embodiment of the precise resource configuration device provided by the present application, and the precise resource configuration device may include:

[0209] The third acquisition module 1501 is used to obtain a query command for querying configuration accurate results;

[0210] The fourth acquisition module 1502 is used to acquire the configuration precision result in the configuration precision result database according to the query command;

[0211] Path configuration module 1503, the path configuration module 1503 is used to configure the target path corresponding to the query command;

[0212] The screening module 1504 is used to screen the target configuration precise results under the target path in the configuration precise results according to the target path;

[0213] Display module 1505, display module 1505 is used to output and display the target configuration accuracy result.

[0214] In the embodiments of the present application, based on the fact that the prior art is unable to compare blueprint files, configuration table files, and map resource / material files, a precise resource configuration device is provided and applied to a server, and the server is mounted on a system platform. A query command can be used to query a database storing precise resource configuration results, and a target path corresponding to the query command can be configured to obtain a precise target configuration result corresponding to the target path, and the precise target configuration result can be output and displayed on the system platform.

[0215] The embodiment of the present invention further provides a server, such as Fig.16 As shown, it shows a schematic diagram of the structure of the server involved in the embodiment of the present application, specifically:

[0216] The server may include one or more processing core processors 1601, one or more computer-readable storage media memories 1602, a power supply 1603, an input unit 1604, and other components. Those skilled in the art will appreciate that Fig. 9 The server structure shown in the figure does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0217] The processor 1601 is the control center of the server, and uses various interfaces and lines to connect various parts of the entire server. By running or executing software programs and / or modules stored in the memory 1602, and calling data stored in the memory 1602, the processor 1601 performs various functions of the server and processes data, thereby monitoring the server as a whole. Optionally, the processor 1601 may include one or more processing cores; preferably, the processor 1601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operation storage medium, user interface and application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1601.

[0218] The memory 1602 can be used to store software programs and modules. The processor 1601 executes various functional applications and data processing by running the software programs and modules stored in the memory 1602. The memory 1602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating storage medium, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the server, etc. In addition, the memory 1602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 1602 may also include a memory controller to provide the processor 1601 with access to the memory 1602.

[0219] The server also includes a power supply 1603 for supplying power to each component. Preferably, the power supply 1603 can be logically connected to the processor 1601 through a power management storage medium, so as to manage charging, discharging, and power consumption management through the power management storage medium. The power supply 1603 can also include any components such as one or more DC or AC power supplies, recharge storage media, power failure detection circuits, power converters or inverters, and power status indicators.

[0220] The server may further include an input unit 1604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0221] Although not shown, the server may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 1601 in the server will load the executable files corresponding to the processes of one or more applications into the memory 1602 according to the following instructions, and the processor 1601 will run the application stored in the memory 1602, thereby realizing various functions, as follows:

[0222] Obtain the first resource file of the first version of the target application. Obtain the second resource file of the second version of the target application, the first resource file and the second resource file include resource files of the same type, and the first resource file and the second resource file include at least one of a blueprint file, a configuration table, and a texture resource file. Call the preset resource configuration precision plug-in to parse the first resource file and the second resource file respectively to obtain a first parsed file and a second parsed file, the format of the first parsed file and the second parsed file are the same type of comparable text format. Compare the first parsed file and the second parsed file to obtain the precise resource file configuration results of the first version and the second version of the target application.

[0223] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0224] To this end, an embodiment of the present invention provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the resource configuration precision methods provided in the embodiments of the present invention. For example, the instructions can execute the following steps:

[0225] Obtain the first resource file of the first version of the target application. Obtain the second resource file of the second version of the target application, the first resource file and the second resource file include resource files of the same type, and the first resource file and the second resource file include at least one of a blueprint file, a configuration table, and a texture resource file. Call the preset resource configuration precision plug-in to parse the first resource file and the second resource file respectively to obtain a first parsed file and a second parsed file, the format of the first parsed file and the second parsed file are the same type of comparable text format. Compare the first parsed file and the second parsed file to obtain the precise resource file configuration results of the first version and the second version of the target application.

[0226] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0227] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0228] Since the instructions stored in the storage medium can execute the steps in any one of the precise resource configuration methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any one of the precise resource configuration methods provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0229] The above is a detailed introduction to a configuration precision method, device, server and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and embodiments of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific embodiments and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A precise resource allocation method, characterized in that: Applied to a client, the method comprises: Obtain a first resource file of a first version of a target application; Obtaining a second resource file of the second version of the target application, wherein the first resource file and the second resource file include resource files of the same type, and the first resource file and the second resource file include at least one of a blueprint file, a configuration table, and a texture resource / material file; Calling a preset resource configuration precision plug-in to parse the first resource file and the second resource file respectively to obtain a first parsed file and a second parsed file, wherein the first parsed file and the second parsed file are in the same type of comparable text format; Comparing the first parsed file with the second parsed file to obtain accurate resource file configuration results of the first version and the second version of the target application; Before calling the preset resource configuration precise plug-in, the method further includes: Get the project path of the resource file that needs to be parsed and compared; According to the project path, searching in the target application for a call command of the resource configuration precision plug-in; The calling of the preset resource configuration precision plug-in includes: The preset resource configuration precision plug-in is called according to the calling command.

2. The precise resource allocation method according to claim 1, characterized in that: The first resource file includes a first blueprint file, and the second resource file includes a second blueprint file; The first resource file and the second resource file are parsed respectively to obtain a first parsed file and a second parsed file, including: Parsing the first blueprint file to obtain a first blueprint parsed file; Parsing the second blueprint file to obtain a second blueprint parsed file; The comparing the first parsed file and the second parsed file to obtain accurate resource file configuration results of the first version and the second version of the target application includes: Obtaining a blueprint file in which the second blueprint parsed file is newly added, deleted or modified compared to the first blueprint parsed file; For the modified blueprint files, the blueprint files of the same data type are compared to obtain the accurate result of the blueprint configuration between the first blueprint parsing file and the second blueprint parsing file.

3. The precise resource allocation method according to claim 1, characterized in that: The first resource file includes a first configuration table file, and the second resource file includes a second configuration table file; The parsing of the first resource file and the second resource file to obtain a first parsed file and a second parsed file includes: Parsing the first configuration table file, and exporting the first configuration table file into a first configuration table parsed file in a target format; Parsing the second configuration table file, and exporting the second configuration table file into a second configuration table parsed file in a target format; The comparing the first parsed file and the second parsed file to obtain accurate resource file configuration results of the first version and the second version of the target application includes: The first configuration table parsing file and the second configuration table parsing file are compared to obtain an accurate result of the configuration table between the first configuration table file and the second configuration table file.

4. The precise resource allocation method according to claim 1, characterized in that: The first resource file includes a first texture / material file, and the second resource file includes a second texture / material file, where the second texture / material file is a resource file obtained after the first texture / material file changes; The parsing of the first resource file and the second resource file to obtain a first parsed file and a second parsed file includes: Obtain all resource files that reference the first texture / material file to parse the first texture file; Obtain all resource files that reference the second texture / material file and parse the file for the second texture; The comparing the first parsed file and the second parsed file to obtain accurate resource file configuration results of the first version and the second version of the target application includes: Comparing the first texture parsing file with the second texture parsing file, obtaining a texture / material file modified between the first texture parsing file and the second texture parsing file; Determine whether the modified second texture parsing file is a target type file; If so, the modified second texture parsing file is output.

5. A precise resource allocation method, characterized in that: Applied to a server, the precise configuration result is the precise configuration result according to any one of claims 1 to 4, and the method comprises: Get the query command for accurate query configuration results; According to the query command, the configuration accurate result is obtained in the configuration accurate result database; Configure the target path corresponding to the query command; According to the target path, the target configuration precise results under the target path are filtered out from the configuration precise results; Output and display the precise results of the target configuration.

6. A precise resource allocation device, characterized in that: Applied to a client, the device comprises: A first acquisition module, the first acquisition module is used to acquire a first resource file of a first version of a target application; A second acquisition module, the second acquisition module is used to acquire a second resource file of the second version of the target application, the first resource file and the second resource file include resource files of the same type, and the first resource file and the second resource file include at least one of a blueprint file, a configuration table, and a texture resource / material file; A calling module, the calling module is used to call a preset resource configuration precise plug-in, parse the first resource file and the second resource file respectively, and obtain a first parsed file and a second parsed file, wherein the format of the first parsed file and the second parsed file is the same type of comparable text format; the calling module is also used to obtain a project path of a resource file that needs to be parsed and compared, and according to the project path, search for a calling command of the resource configuration precise plug-in in the target application, and call the preset resource configuration precise plug-in according to the calling command; A configuration precision module is used to compare the first parsed file and the second parsed file to obtain the precise configuration results of the resource files of the first version and the second version of the target application.

7. The precise resource allocation device according to claim 6, characterized in that: The first resource file includes a first blueprint file, and the second resource file includes a second blueprint file; The calling module is used to: parse the first blueprint file to obtain a first blueprint parsing file; Parsing the second blueprint file to obtain a second blueprint parsed file; The configuration precision module is used to: obtain the blueprint files that are added, deleted or modified in the second blueprint parsing file compared with the first blueprint parsing file; for the modified blueprint files, the blueprint files of the same data type are compared to obtain the blueprint configuration precision result between the first blueprint parsing file and the second blueprint parsing file.

8. The precise resource allocation device according to claim 6, characterized in that: The first resource file includes a first configuration table file, and the second resource file includes a second configuration table file; The calling module is specifically used to: parse the first configuration table file, and export the first configuration table file into a first configuration table parsed file in a target format; Parsing the second configuration table file, and exporting the second configuration table file into a second configuration table parsed file in a target format; The configuration precision module is specifically used to compare the first configuration table parsing file with the second configuration table parsing file to obtain a configuration table precision result between the first configuration table file and the second configuration table file.

9. A precise resource allocation device, characterized in that: Applied to a server, the precise configuration result is the precise configuration result according to any one of claims 1 to 4, and the device comprises: A third acquisition module, the third acquisition module is used to obtain a query command for querying configuration accurate results; A fourth acquisition module, the fourth acquisition module is used to acquire the configuration accurate result in the configuration accurate result database according to the query command; A path configuration module, the configuration module is used to configure the target path corresponding to the query command; A screening module, the screening module is used to screen the target configuration precise results under the target path from the configuration precise results according to the target path; A display module is used to output and display the target configuration accuracy result.

Citation Information

Patent Citations

  • Game resource file analysis method and device, apparatus and storage medium

    CN110262976A