Method and device for accurately configuring resources, server and storage medium

文档序号:1922135 发布日期:2021-12-03 浏览:19次 中文

阅读说明:本技术 一种资源配置精准方法、装置、服务器及存储介质 (Method and device for accurately configuring resources, server and storage medium ) 是由 杨文� 陈瑞坤 楚培林 于 2020-05-28 设计创作,主要内容包括:本申请实施例公开了一种资源配置精准方法,应用于客户端,包括:获取目标应用第一版本的第一资源文件、第二版本的第二资源文件;第一和第二资源文件中包括蓝图文件、配置表和贴图/材质文件等资源文件中的至少一种;调用预设资源配置精准插件,对资源文件进行解析,得到第一和第二解析文件,第一和第二解析文件为同类型的可比对文本格式;对第一和第二解析文件进行比较,得到目标应用的资源文件配置精准结果。本申请在现有技术无法对蓝图文件、配置表文件和贴图/材质文件等比对的基础上,提供资源配置精准插件,可以利用该插件对不同版本的资源文件中进行解析和对比,得到不同版本资源文件的差异的资源文件配置精准结果,便于用户进行查询。(The embodiment of the application discloses a resource allocation accurate method, which is applied to a client and comprises the following steps: acquiring a first resource file of a first version and a second resource file of a second version of a target application; the first resource file and the second resource file comprise at least one of resource files such as a blueprint file, a configuration table and a mapping/texture file; calling a preset resource configuration accurate plug-in, and analyzing the resource file to obtain a first analysis file and a second analysis file, wherein the first analysis file and the second analysis file are of the same type and are in a comparable text format; and comparing the first analysis file with the second analysis file to obtain a resource file configuration accurate result of the target application. According to the method and the device, on the basis that the blueprint file, the configuration table file, the chartlet/material file and the like cannot be compared in the prior art, the resource configuration accurate plug-in is provided, the plug-in can be used for analyzing and comparing the resource files of different versions, the resource file configuration accurate results of the differences of the resource files of different versions are obtained, and the user can conveniently inquire the results.)

1. A resource allocation precision method is applied to a client side, and comprises the following steps:

acquiring a first resource file of a first version of a target application;

acquiring a second resource file of a second version of the target application, wherein the first resource file and the second resource file comprise resource files of the same type, and the first resource file and the second resource file comprise at least one of a blueprint file, a configuration table and a mapping resource/material file;

calling a preset resource configuration accurate plug-in, and analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file, wherein the formats of the first analysis file and the second analysis file are comparable text formats of the same type;

and comparing the first analysis file with the second analysis file to obtain a resource file configuration accurate result of the first version and the second version of the target application.

2. The method of claim 1, wherein prior to the invoking of the pre-set resource configuration precision plug-in, the method further comprises:

acquiring a project path of a resource file which needs to be analyzed and compared;

searching a calling command of the resource configuration accurate plug-in the target application according to the project path;

the calling of the preset resource configuration accurate plug-in includes:

and calling the preset resource configuration precision plug-in according to the calling command.

3. The method of claim 1, wherein the first resource file comprises a first blueprint file and the second resource file comprises a second blueprint file;

the analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file includes:

analyzing the first blueprint file to obtain a first blueprint analysis file;

analyzing the second blueprint file to obtain a second blueprint analysis file;

the comparing the first analysis file and the second analysis file to obtain the accurate resource file configuration result of the first version and the second version of the target application includes:

acquiring a blueprint file of which the second blueprint analysis file is newly added, deleted or modified compared with the first blueprint analysis file;

and comparing the blueprint files with the same data type in the modified blueprint files to obtain a blueprint configuration accurate result between the first blueprint analysis file and the second blueprint analysis file.

4. The method of claim 1, wherein the first resource file comprises a first configuration table file and the second resource file comprises a second configuration table file;

the analyzing the first resource file and the second resource file to obtain a first analysis file and a second analysis file includes:

analyzing the first configuration table file, and exporting the first configuration table file to be a first configuration table analysis file in a target format;

analyzing the second configuration table file, and exporting the second configuration table file to be a second configuration table analysis file in a target format;

the comparing the first analysis file and the second analysis file to obtain the accurate resource file configuration result of the first version and the second version of the target application includes:

and comparing the first configuration table analysis file with the second configuration table analysis file to obtain a configuration table configuration accurate result between the first configuration table file and the second configuration table file.

5. The method according to claim 1, wherein the first resource file comprises a first map/material file, the second resource file comprises a second map/material file, and the second map/material file is a resource file obtained after the first map/material file is changed;

the analyzing the first resource file and the second resource file to obtain a first analysis file and a second analysis file includes:

acquiring all resource files which refer to the first map/material file, and taking the resource files as a first map analysis file;

acquiring all resource files which refer to the second map/material file, and taking the resource files as a second map analysis file;

the comparing the first analysis file and the second analysis file to obtain the accurate resource file configuration result of the first version and the second version of the target application includes:

comparing the first mapping analysis file with the second mapping analysis file to obtain a mapping/material file modified between the first mapping analysis file and the second mapping analysis file;

judging whether the modified second mapping analysis file is a target type file or not;

and if so, outputting the modified second mapping analysis file.

6. A resource allocation precision method is applied to a server, and the method comprises the following steps:

acquiring a query command for querying a configuration accurate result;

acquiring the configuration accurate result from a configuration accurate result database according to the query command;

configuring a target path corresponding to the query command;

screening a target configuration accurate result under the target path from the configuration accurate results according to the target path;

and outputting and displaying the target configuration accurate result.

7. An apparatus for precise resource allocation, applied to a client, the apparatus comprising:

the first obtaining module is used for obtaining a first resource file of a first version of a target application;

a second obtaining module, configured to obtain a second resource file of a second version of the target application, where 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 mapping resource/material file;

the calling module is used for calling a preset resource configuration accurate plug-in, analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file, and the formats of the first analysis file and the second analysis file are comparable text formats of the same type;

and the precise configuration module is used for comparing the first analysis file with the second analysis file to obtain precise resource file configuration results of the first version and the second version of the target application.

8. The resource allocation precision device of claim 7, wherein the first resource file comprises a first blueprint file and the second resource file comprises a second blueprint file;

the calling module is used for: analyzing the first blueprint file to obtain a first blueprint analysis file;

analyzing the second blueprint file to obtain a second blueprint analysis file;

the configuration precision module is used for: acquiring a blueprint file of which the second blueprint analysis file is newly added, deleted or modified compared with the first blueprint analysis file; and comparing the blueprint files with the same data type in the modified blueprint files to obtain a blueprint configuration accurate result between the first blueprint analysis file and the second blueprint analysis file.

9. The apparatus of claim 7, wherein the first resource file comprises a first configuration table file and the second resource file comprises a second configuration table file;

the calling module is specifically configured to: analyzing the first configuration table file, and exporting the first configuration table file to be a first configuration table analysis file in a target format;

analyzing the second configuration table file, and exporting the second configuration table file to be a second configuration table analysis file in a target format;

the configuration precision module is specifically configured to: and comparing the first configuration table analysis file with the second configuration table analysis file to obtain a configuration table configuration accurate result between the first configuration table file and the second configuration table file.

10. An apparatus for precise resource allocation, applied to a server, the apparatus comprising:

the third acquisition module is used for acquiring a query command for querying the accurate configuration result;

a fourth obtaining module, configured to obtain the configuration accurate result from a configuration accurate result database according to the query command;

the path configuration module is used for configuring a target path corresponding to the query command;

the screening module is used for screening a target configuration accurate result under the target path from the configuration accurate results according to the target path;

and the display module is used for outputting and displaying the target configuration accurate result.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a server, and a storage medium for resource allocation.

Background

At present, when testing game items developed based on various engines, testers can accurately test varied different resources among different game versions in order to save testing workload, and the conventional scheme is that svn log is used for acquiring varied game resource files and then the differences of the version resource files are compared, but only conventional text file formats such as txt, xls and the like can be compared.

Therefore, the results obtained by the existing technical scheme are rough, the resource files of some engines cannot be analyzed and compared, the specific differences among the resource files of different versions are obtained, and the comparison results of the resource files are inconvenient to check.

Disclosure of Invention

The embodiment of the application provides a method, a device, a server and a storage medium for resource configuration, and aims to solve the problems that in the prior art, specific differences among files of different versions cannot be obtained and the checking is inconvenient.

In a first aspect, the present application provides a method for accurately configuring resources, which is applied to a client, and the method includes:

acquiring a first resource file of a first version of a target application;

acquiring a second resource file of a second version of the target application, wherein the first resource file and the second resource file comprise resource files of the same type, and the first resource file and the second resource file comprise at least one of a blueprint file, a configuration table and a mapping resource/material file;

calling a preset resource configuration accurate plug-in, and analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file, wherein the formats of the first analysis file and the second analysis file are comparable text formats of the same type;

and comparing the first analysis file with the second analysis file to obtain a resource file configuration accurate result of the first version and the second version of the target application.

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

acquiring a project path of a resource file which needs to be analyzed and compared;

searching a calling command of the resource configuration accurate plug-in the target application according to the project path;

the calling of the preset resource configuration accurate plug-in includes:

and calling the preset resource configuration precision plug-in according to the calling command.

In some embodiments of the present application, the first resource file comprises a first blueprint file and the second resource file comprises a second blueprint file;

the analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file includes:

analyzing the first blueprint file to obtain a first blueprint analysis file;

analyzing the second blueprint file to obtain a second blueprint analysis file;

the comparing the first analysis file and the second analysis file to obtain the accurate resource file configuration result of the first version and the second version of the target application includes:

acquiring a blueprint file of which the second blueprint analysis file is newly added, deleted or modified compared with the first blueprint analysis file;

and comparing the blueprint files with the same data type in the modified blueprint files to obtain a blueprint configuration accurate result between the first blueprint analysis file and the second blueprint analysis file.

In some embodiments of the present application, the first resource file comprises a first configuration table file, and the second resource file comprises a second configuration table file;

the analyzing the first resource file and the second resource file to obtain a first analysis file and a second analysis file includes:

analyzing the first configuration table file, and exporting the first configuration table file to be a first configuration table analysis file in a target format;

analyzing the second configuration table file, and exporting the second configuration table file to be a second configuration table analysis file in a target format;

the comparing the first analysis file and the second analysis file to obtain the accurate resource file configuration result of the first version and the second version of the target application includes:

and comparing the first configuration table analysis file with the second configuration table analysis file to obtain a configuration table configuration accurate result between the first configuration table file and the second configuration table file.

In some embodiments of the present application, the first resource file includes a first map/material file, the second resource file includes a second map/material file, and the second map/material file is a resource file obtained after the first map/material file is changed;

the analyzing the first resource file and the second resource file to obtain a first analysis file and a second analysis file includes:

acquiring all resource files which refer to the first map/material file, and taking the resource files as a first map analysis file;

acquiring all resource files which refer to the second map/material file, and taking the resource files as a second map analysis file;

the comparing the first analysis file and the second analysis file to obtain the accurate resource file configuration result of the first version and the second version of the target application includes:

comparing the first mapping analysis file with the second mapping analysis file to obtain a mapping/material file modified between the first mapping analysis file and the second mapping analysis file;

judging whether the modified second mapping analysis file is a target type file or not;

and if so, outputting the modified second mapping analysis file.

In a second aspect, the present application provides a method for resource allocation precision, which is applied to a server, and the method includes:

acquiring a query command for querying a configuration accurate result;

acquiring the configuration accurate result from a configuration accurate result database according to the query command;

configuring a target path corresponding to the query command;

screening a target configuration accurate result under the target path from the configuration accurate results according to the target path;

and outputting and displaying the target configuration accurate result.

In a third aspect, the present application provides a resource allocation precision device, which is applied to a client, and the device

The method comprises the following steps:

the first obtaining module is used for obtaining a first resource file of a first version of a target application;

a second obtaining module, configured to obtain a second resource file of a second version of the target application, where 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 mapping resource/material file;

the calling module is used for calling a preset resource configuration accurate plug-in, analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file, and the formats of the first analysis file and the second analysis file are comparable text formats of the same type;

and the precise configuration module is used for comparing the first analysis file with the second analysis file to obtain precise resource file configuration results of the first version and the second version of the target application.

In some embodiments of the present application, the first resource file comprises a first blueprint file and the second resource file comprises a second blueprint file;

the calling module is used for: analyzing the first blueprint file to obtain a first blueprint analysis file;

analyzing the second blueprint file to obtain a second blueprint analysis file;

the configuration precision module is used for: acquiring a blueprint file of which the second blueprint analysis file is newly added, deleted or modified compared with the first blueprint analysis file; and comparing the blueprint files with the same data type in the modified blueprint files to obtain a blueprint configuration accurate result between the first blueprint analysis file and the second blueprint analysis file.

In some embodiments of the present application, the first resource file comprises a first configuration table file, and the second resource file comprises a second configuration table file;

the calling module is specifically configured to: analyzing the first configuration table file, and exporting the first configuration table file to be a first configuration table analysis file in a target format;

analyzing the second configuration table file, and exporting the second configuration table file to be a second configuration table analysis file in a target format;

the configuration precision module is specifically configured to: and comparing the first configuration table analysis file with the second configuration table analysis file to obtain a configuration table configuration accurate result between the first configuration table file and the second configuration table file.

In a fourth aspect, the present application provides a resource allocation precision module, which is applied to a server, where the apparatus includes:

the third acquisition module is used for acquiring a query command for querying the accurate configuration result;

a fourth obtaining module, configured to obtain the configuration accurate result from a configuration accurate result database according to the query command;

the path configuration module is used for configuring a target path corresponding to the query command;

the screening module is used for screening a target configuration accurate result under the target path from the configuration accurate results according to the target path;

and the display module is used for outputting and displaying the target configuration accurate result.

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

one or more processors;

a memory; and

one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor in any of the foregoing resource configuration precision methods.

In a sixth aspect, the present application provides a computer readable storage medium having stored thereon a computer program, which is loaded by a processor to perform the resource allocation precision method of any of the preceding claims.

In the embodiment of the application, on the basis that the blueprint file, the configuration table file, the mapping resource file and the like cannot be compared in the prior art, by providing the resource configuration accurate plug-in, the plug-in can be used for analyzing and comparing the blueprint file, the configuration table file and the mapping resource file in the resource files of different versions, so as to obtain the resource file configuration accurate result including the difference between the resource files of different versions, and the user can conveniently inquire the result.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

Fig. 1 is a schematic view of a scene of a resource allocation precision system according to an embodiment of the present disclosure;

fig. 2 is a schematic flowchart of an embodiment of a method for accurately configuring resources according to an embodiment of the present disclosure;

FIG. 3 is a schematic diagram of an embodiment of values of a blueprint variable provided by an embodiment of the present application;

fig. 4 is a schematic diagram of an embodiment of a blueprint object attribute value provided in an embodiment of the present application;

FIG. 5 is a diagram of an embodiment of a map resource file reference provided by the present application;

FIG. 6 is a schematic diagram of an embodiment of the property types of blueprints analyzed by the present application;

FIG. 7 is a schematic diagram of an embodiment of an accurate result of a blueprint configuration provided by an embodiment of the present application;

FIG. 8 is a schematic diagram illustrating an embodiment of an accurate configuration result of a configuration table provided in an embodiment of the present application;

FIG. 9 is a diagram of an embodiment of a mapping/texture file configuration precision result provided in the present application;

FIG. 10 is a schematic diagram of an embodiment of a changed resource file summary provided by the present application;

FIG. 11 is a schematic diagram of an embodiment of a changed resource file summary histogram provided herein;

FIG. 12 is a schematic flow chart diagram illustrating another embodiment of a method for configuring precision provided herein;

FIG. 13 is a schematic diagram illustrating one embodiment of configuring accurate result generation and querying as provided herein;

FIG. 14 is a schematic diagram of an embodiment of a resource allocation precision apparatus provided in the present application;

FIG. 15 is a schematic diagram of another embodiment of a resource allocation precision apparatus provided in the present application;

fig. 16 is a schematic configuration diagram of a server according to an embodiment of the present application.

DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.

In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.

The embodiment of the application provides a method and a device for accurately configuring resources, a server and a storage medium.

Referring to fig. 1, fig. 1 is a schematic view of a scenario of a resource allocation precision system according to an embodiment of the present application, where the resource allocation precision system may include a client 100 and a server 200, the client 100 and the server 200 are connected through a network, a resource allocation precision device is integrated in the server 200, and the server 200 may be a work platform server (i.e., a server loaded with a work platform), such as the server in fig. 1, where the client 100 may access the server 200.

In the embodiment of the present invention, the server 200 is mainly used for acquiring a first resource file of a first version of a target application; acquiring a second resource file of a second version of the target application, wherein the first resource file and the second resource file comprise resource files of the same type, and the first resource file and the second resource file comprise at least one of a blueprint file, a configuration table and a mapping resource file; calling a preset resource configuration accurate plug-in, and analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file, wherein the formats of the first analysis file and the second analysis file are comparable text formats of the same type; and comparing the first analysis file with the second analysis file to obtain a resource file configuration accurate result of the first version and the second version of the target application.

In this embodiment of the present invention, the server 200 may be an independent server, or may be a server network or a server cluster composed of servers, for example, the server 200 described in this 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 constituted by a large number of computers or web servers based on cloud computing (CloudComputing). In the embodiment of the present invention, the server and the client may implement communication through any communication manner, including but not limited to mobile communication based on the third Generation Partnership Project (3 GPP), Long Term Evolution (LTE), Worldwide Interoperability for Microwave Access (WiMAX), or computer network communication based on the TCP/IP Protocol Suite (TCP/IP), User Datagram Protocol (UDP) Protocol, and the like.

It is to be understood that the client 100 used in the embodiments of the present invention may be understood as a client device, which includes both a device having receiving and transmitting hardware, i.e., a device having receiving and transmitting hardware capable of performing two-way communication over a two-way communication link. Such a client device may include: a cellular or other communication device having 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 may specifically be a desktop terminal or a mobile terminal, and the client 100 may specifically be one of a mobile phone, a tablet computer, a notebook computer, and the like.

Those skilled in the art will appreciate that the application environment shown in fig. 1 is only one application scenario related to the present invention, and does not constitute a limitation to the application scenario of the present invention, and that other application environments may further include more or less servers than those shown in fig. 1, or a server network connection relationship, for example, only 1 server and 2 clients are shown in fig. 1, and it is understood that the resource configuration precision system may further include one or more other servers, or/and one or more clients connected to a server network, and is not limited herein.

In addition, as shown in fig. 1, the resource allocation precision system may further include a memory 300, configured to store data, such as a resource allocation precision result database, where the resource allocation precision result database stores resource allocation precision results for resource allocation precision on resource files of different versions, and the object data may include a plurality of resource allocation precision results, such as a blueprint resource allocation precision result for resource allocation precision on a blueprint file, a configuration table resource allocation precision result for resource allocation precision on a configuration table file, and a chartlet file resource allocation precision result for resource allocation precision on a chartlet file; the resource allocation precision database may also be configured to store various types of data, such as blueprint file data, configuration table file data, or mapping/texture file data.

It should be noted that the scenario diagram of the resource configuration precision system shown in fig. 1 is only an example, and the resource configuration precision system and the scenario described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not form a limitation on the technical solution provided in the embodiment of the present invention.

The following is a detailed description of specific embodiments. In the present embodiment, a description will be made from the perspective of a resource allocation precision device, which may be specifically integrated in the client 100.

The embodiment of the application provides a resource allocation accurate method, which comprises the following steps: acquiring a first resource file of a first version of a target application; acquiring a second resource file of a second version of the target application, wherein the first resource file and the second resource file comprise resource files of the same type, and the first resource file and the second resource file comprise at least one of a blueprint file, a configuration table and a mapping resource/material file; calling a preset resource configuration accurate plug-in, and analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file, wherein the formats of the first analysis file and the second analysis file are comparable text formats of the same type; and comparing the first analysis file with the second analysis file to obtain a resource file configuration accurate result of the first version and the second version of the target application.

To facilitate an understanding of the embodiments of the present invention, a few basic concepts that will be introduced in the description of the embodiments of the present invention will be introduced first:

version control system (svn) is a commonly used version control system of open source code. Being an open source version control system, svn manages data that changes over time. These data are placed in a central Repository (Repository). This archive resembles a regular file server, but it keeps track of every file change. This allows the archive to be restored to the old version or to the history of changes in the viewed file. And svnlog is the log file of svn, and the difference of version resources is obtained by comparing the log files corresponding to different versions of svn in the prior art.

Please refer to fig. 2, which is a schematic flowchart illustrating an embodiment of a method for accurately configuring resources according to an embodiment of the present application, the method for accurately configuring resources includes:

21. a first resource file of a first version of a target application is obtained.

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

In the embodiment of the application, acquiring the first resource file of the first version of the target application may be triggered after acquiring a resource configuration accurate instruction performed by a user, specifically, a menu or an option corresponding to "resource configuration accurate" may be set at a client, when the user clicks the menu or the option corresponding to "resource configuration accurate", the resource configuration accurate instruction performed by the user may be generated, and after acquiring the resource configuration accurate instruction, the first resource file of the first version of the target application may be acquired.

22. And acquiring a second resource file of a second version of the target application.

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 1.0 of the target application, and the second version of the target application may be 2.0 of the target application.

The first and second versions may be successive versions of the target application, e.g. the second version is a temporally adjacent version (without any other intermediate version) of the first version, the first and second versions may be adjacent major versions of the target application (with some small improvements in between), e.g. the target application first version is target application 1.0, the second version may be target application 2.0, but there may also be target application function 1.1, target application 1.2, etc. between target application 1.0 and target application 2.0.

In addition, the first resource file and the second resource file comprise resource files of the same type, for example, the first resource file and the second resource file both comprise resource files of a file type a, a file type b and a file type c, so that subsequent talents are directly analyzed and compared correspondingly.

Due to the existing technical scheme, after the difference resource files of different versions are obtained, only the specific difference values of the txt, xls and other conventional text files in the difference resource files can be obtained, and for some files related to configuration in an engine, such as blueprints and configuration tables for driving game logic, direct comparison cannot be performed, only the change of the resource file can be known, but the change of the specific attribute configuration in the resource cannot be known. For art resources such as a map and a material, only a map or a material resource can be known to change, and changes of other resource files depending on the resource due to the changes of the map or the material cannot be known.

The embodiment of the present application can mainly solve the problem of automatic comparison of resource files that cannot be compared, such as a blueprint file, a configuration table, and a mapping resource/material file, and 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 file, the configuration table, and the mapping resource/material file.

It is to be understood that the first resource file and the second resource file are not limited to a blueprint file, a configuration table, a chartlet resource/material file, and the like, and 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 a conventional resource file existing in txt, xls, and the like, and the specific details are not limited herein.

23. Calling a preset resource configuration accurate plug-in, and analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file, wherein the formats of the first analysis file and the second analysis file are the same type of comparable text formats.

Specifically, the resource configuration accurate plug-in may be a resource configuration accurate plug-in that analyzes and identifies a non-text resource file (such as a blueprint file, a configuration table, and a chartlet resource file).

In some embodiments of the present application, before invoking the preset resource configuration precision plug-in, the method further includes: acquiring a project path of a resource file which needs to be analyzed and compared; searching a calling command of the resource configuration accurate plug-in the target application according to the project path; and calling the preset accurate plug-in for resource configuration may include: and calling the preset resource configuration accurate plug-in according to the calling command.

Specifically, in some embodiments of the present application, a path of a target application and a project path of a resource file that needs to be analyzed may be obtained first. After the project path is obtained, a call command of the resource configuration precision plug-in can be searched in the target application according to the project path. The preset resource configuration accurate plug-in needs to be called by using a calling command for calling the plug-in, namely, the resource configuration accurate plug-in can be called according to the command only by acquiring the command for calling the resource configuration accurate plug-in, and then resource files of different versions are compared.

In some embodiments of the present application, some commands in the UE4 engine may be invoked directly, and may be customized on their own. Specifically, a command for parsing the resource file may be written, and the resource file may be parsed by calling the command. In particular, the Commandlet command line in the UE4 engine may be utilized to invoke a resource configuration precision plug-in. The format of the command line for calling the Commandlet is as follows:

parameter of [ UE4Editor-cmd.exe path ] [ upward path ] -run ═ command name ] -this command

And different paths for storing the resource files are different, and if the resource configuration accurate plug-in is required to be called, the path of the resource configuration accurate plug-in is required to be obtained at present so as to call the preset resource configuration accurate plug-in according to the path.

After the preset accurate plug-in for resource configuration is obtained, the plug-in can be used for analyzing the resource files among different versions. In some embodiments of the present application, the target application may include at least one of a blueprint file, a configuration table file, and a map resource file in a first version and a second resource file in a second version.

The Blueprint Class (Blueprint Class) is generally abbreviated as Blueprint (Blueprint), and the Blueprint is a visual game script, namely, a script can be created through a visual interface, namely, nodes, events, functions and variables are connected together through connecting lines. Allowing content creators to easily add resources for functionality based on existing gameplay classes. Blueprints are created visually in the illusive editor, without the need to write code, and are saved as classes in the content package. As shown in fig. 3, an embodiment of values of a blueprint variable provided for an embodiment of the present application is schematically illustrated, where "location", transformation, and "scaling" in fig. 3 are vector attributes of the blueprint, and "variable name" may be a string attribute of the blueprint, and in fig. 3, specific attribute values corresponding to the vector attribute and the string attribute of the blueprint are also included. As shown in fig. 4, an embodiment of a blueprint object attribute value provided for the embodiment of the present application is shown, in fig. 4, a "grid" may be an object attribute of a blueprint, and a "skeleton grid body" may be obtained by referring to a skeleton network object "card network", and an attribute value of the blueprint object attribute is included in fig. 4. By using the resource allocation accurate method provided by the embodiment of the application, the attributes of the blueprint file and the attribute values corresponding to the blueprint file can be intuitively and effectively obtained.

And the configuration table (DataTable) file is a game configuration table, wherein some configuration information data can dynamically load assignment values to corresponding objects or variables during the running of game engineering, so that the game configuration table plays a role in the game.

The map resource file represents that one resource file can be referred by a plurality of other resource files, so that the time for creating the application can be greatly reduced, and manpower and material resources are saved. As shown in fig. 5, it is intended to illustrate an embodiment of reference to a map resource file provided by the present application, and in fig. 5, it can be seen that one map file may be referred to by a plurality of other resource files, and the referenced map resource file may be referred to by other resource files continuously, that is, a reference chain may be formed between the map resource files, so that if a change occurs in a map resource file at the bottom layer, all the map resource files referring to the map resource file may be changed.

Specifically, the map Q1, the map Q2 and the map Q3 are all reference maps Q4, the map Q4 is a reference map Q5, and the map Q6 is a reference map Q3. If the map Q5 changes, it will cause the map Q4 referring to the map Q5 to change; the map Q1, the map Q2 and the map Q3 are all reference maps Q4, and if the map Q4 changes, the map Q1, the map Q2 and the map Q3 change. Similarly, the tile Q6 referring to the tile Q3 may also change.

24. And comparing the first analysis file with the second analysis file to obtain a resource file configuration accurate result of the first version and the second version of the target application.

According to the resource allocation accurate method provided by the embodiment of the application, on the basis that the blueprint file, the configuration table file, the mapping/material file and the like cannot be compared in the prior art, the blueprint file, the configuration table file and the mapping/material file in the resource files of different versions can be analyzed and compared by using the plug-in unit through providing the resource allocation accurate plug-in unit, so that the resource file allocation accurate result comprising the difference among the resource files of different versions is obtained, and the user can conveniently inquire the result.

The resource allocation precision method provided by the present application can be used for comparing differences between different versions of game files, that is, the target application described in the embodiment of the present application may be a game application based on a Unreal 4 Engine (UE 4), or a game application based on a unity Engine. Specifically, when a tester tests a game item developed based on an Unreal 4 Engine (Unreal Engine4), the game item is iterated frequently; sometimes, the tester knows where the modification is, but does not know how large the influence range is, and usually, the test range is either small and omitted or too large and pays too much cost. Therefore, in order to save the testing workload, the testing method in the prior art can accurately test the varied different resources among different game versions, and the testing method in the prior art is to use a dynamic log (svn log) to obtain the varied game resource files and then compare the differences of the version resource files, but only compare the conventional text file formats such as txt, xls and the like. For some files related to configuration in the UE4 engine, such as blueprints and configuration tables driving game logic, there is no direct comparison, and it can only know that the resource file has changed, but cannot know the change of specific attribute values in the resource.

Therefore, the application provides an accurate resource allocation method, which can compare resource files such as blueprints and the like which cannot be compared in the prior art, and obtain differences among files of different versions.

In some embodiments of the present application, differences between resource files of different versions need to be compared, so that a first resource file corresponding to a first version and a second resource file corresponding to a second version of a target application need to be obtained first; the first resource file and the second resource file are resource files of different versions in the same application or the same path, otherwise, the first resource file and the second resource file cannot be compared; i.e. the first resource file and the second resource file comprise resource files of the same type. Specifically, the first resource file and the second resource file may include at least one of a blueprint file, a configuration table file, and a map resource/material file.

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 map resource/material file. In a particular 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. Analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file, which may include: analyzing the first blueprint file to obtain a first blueprint analysis file; and analyzing the second blueprint file to obtain a second blueprint analysis file.

After the first blueprint file and the second blueprint file are respectively analyzed, in some embodiments of the application, comparing the first analysis file with the second analysis file to obtain accurate resource file configuration results of the first version and the second version of the target application may include: acquiring a blueprint file of which the second blueprint analysis file is newly added, deleted or modified compared with the first blueprint analysis file; and comparing the blueprint files with the same data type in the modified blueprint files to obtain a blueprint configuration accurate result between the first blueprint analysis file and the second blueprint analysis file.

Specifically, the UE4 engine may use the blueprint file to configure variable values of some numerical types, and may also use the blueprint file to configure object attribute values such as material, skeleton grid, and static grid resources. The difference of resource files before different versions is mainly compared with the change of blueprint variables and object attribute configuration values among different versions. By using the configuration accurate plug-in, the blueprint files between different versions can be analyzed to obtain multiple types of data files, as shown in fig. 6, which is an embodiment illustration of the attribute type of the blueprint analyzed by the present application. Specifically, numerical data, character data, enumeration data, object data, structure data, array data, and the like in the blueprint file may be acquired, and attribute values corresponding to each data may be acquired.

After the blueprint files of different versions are analyzed, the data of the same data type in the blueprint files can be corresponded to obtain the difference values of the blueprint files of different versions. Specifically, attribute values corresponding to data of the same data type in the blueprint file can be compared, and differences can be obtained more simply and specifically by comparing the attribute values.

The first blueprint analysis file and the second blueprint analysis file are compared to obtain the blueprint file of which the second blueprint analysis file is newly added, deleted or modified compared with the first blueprint analysis file. After the modified blueprint files are obtained, data files belonging to the same data type in the modified blueprint files can be compared. In other words, for the modified blueprint files, the data files corresponding to the same data type and the attribute values corresponding to the data files are compared, so that a blueprint configuration accurate result between the first blueprint analysis file and the second blueprint analysis file can be obtained. Specifically, the accurate result of the blueprint configuration between the first blueprint analysis file and the second blueprint analysis file may be obtained by comparing a specific difference between attribute values of data files corresponding to the same data type in the first blueprint analysis file and the second blueprint analysis file, storing the first blueprint analysis file and the second blueprint analysis file, which have attribute values that are changed, and storing the attribute values of data in the first blueprint file and the attribute values of data in the second blueprint analysis file.

As shown in fig. 7, it is intended for an embodiment of the present application that the blueprint configuration is accurate, and in fig. 7, a user can intuitively see differences between resource files of different svn versions and occurrence of blueprint files; the path of the changed blueprint file can be determined, and the differences of the blueprint files of which versions occur can be determined, and the specific time for acquiring the differences. By using the method provided by the application, the user can intuitively and efficiently directly acquire the difference between the blueprint files of different svn versions.

Specifically, in fig. 7, it can be seen that the output accurate result of resource allocation includes an accurate result of blueprint allocation, an accurate result of allocation table allocation, and an accurate result of allocation of a chartlet/texture file, and at this time, the accurate result of allocation of blueprints is shown in fig. 7. FIG. 7 also includes path A/of the svn file and version 37595-38195 corresponding to the svn path, i.e. the file whose svn version is 37595-38195 has changed. Meanwhile, the name B of the blueprint and a blueprint path C/corresponding to the blueprint B are also included in the figure 7; meanwhile, the creation or modification time of different versions of the svn file, the change type of the blueprint and the specific time for an operator to obtain the accurate blueprint configuration result can be seen.

In a specific embodiment of the present application, a specific variable in the blueprint analysis file may be obtained, and the attribute value of the variable may change in blueprint analysis files of different versions. Specifically, the change may be that the attribute value of the variable corresponding to the first blueprint analysis file may be 0.3, and the attribute value of the variable corresponding to the second blueprint analysis file may be 0.4. At this time, by comparing the attribute values of the variable in the first blueprint analysis file and the second blueprint analysis file, it can be visually seen that the variable is changed and what the specific change is.

After determining the attribute values of a specific variable respectively corresponding to the different versions of the blueprint files, the name of the variable needs to be output, the attribute values of the variable respectively corresponding to the different versions of the blueprint files are output, and the change type of the variable value is determined. Specifically, the change types of the variable values may be: and (6) changing.

In one embodiment of the present application, the accurate result of the blueprint configuration may be:

variable name: the variable value of m is as follows: old value: 0.3- > new value: 0.4 variable value change type: modifying

Specifically, the accurate result of the blueprint configuration represents: the variable value of the variable m in the first blueprint file is 0.3, and the variable value of the variable m in the second blueprint file becomes 0.4; the variable values are modified.

As described above, specific attribute values of the variables in the blueprint files of different versions are output, and names of the variables and the variable value change types are output, so that a user can more intuitively determine how the variables change in the resource files of different versions.

In an embodiment of the application, the difference between the different blueprint files and the blueprint files of different versions is stored in a json character string form, and the accurate blueprint configuration result in fig. 7 is a display form of the accurate blueprint configuration result on the operation interface after the operator obtains the accurate blueprint configuration result.

It should be noted that, when comparing blueprint files of different versions, attribute values of files of the same data type in the blueprint files need to be compared. Meanwhile, the variable path can be output, so that a user can conveniently inquire the variable which changes.

In some embodiments of the present application, the first resource file may comprise a first configuration table file and the second resource file may comprise a second configuration table file. In the following configuration table, the configuration table may include a plurality of Identifiers (IDs) and a plurality of game running states or game running events corresponding to the plurality of IDs, respectively, and the contents in the configuration table may be configured manually, that is, the correspondence between the IDs and the events may be set manually. An ID can only represent an event, and the contents of the configuration table in a certain version are fixed.

In this embodiment, parsing the first resource file and the second resource file to obtain a first parsed file and a second parsed file may include: and analyzing the first configuration table file, and exporting the first configuration table file to be a first configuration table analysis file in a target format. And analyzing the second configuration table file, and exporting the second configuration table file into a second configuration table file in a target format.

Specifically, the first resource file and the second resource file may be respectively parsed by using a configuration precision plug-in. Specifically, the configuration precision plug-in is used for exporting the first configuration table file to the first configuration table analysis file in the target format and exporting the second configuration table file to the second configuration table analysis file in the target format. And then, comparing the first configuration table analysis file with the second configuration table analysis file to obtain a configuration table configuration accurate result between the first configuration table file and the second configuration table file.

The target format may be a txt or xls file, that is, the first configuration table file and the second configuration table file are exported to be txt or xls format files. The specific contents in the first configuration table file and the second configuration table file are output as files in a txt or xls format, and a first configuration table analysis file and a second configuration table analysis file in the txt or xls format are obtained, so that subsequent comparison can be carried out, and a configuration table configuration accurate result between the first configuration table file and the second configuration table file is obtained. The prior art may be referred to for the process of comparing the txt or xls format configuration table files, and is not limited herein.

It is to be understood that, in the embodiments of the present application, the configuration table file may also be exported as a Comma-Separated Values (CSV) file, which stores the table data (numbers and text) in plain text. Plain text means that the file is a sequence of characters, containing no data that must be interpreted like binary digits. CSV files are composed of any number of records, and the records are separated by a certain linefeed character; each record is made up of fields, and separators between fields are other characters or strings, most commonly commas or tabs. In the embodiment of the application, the configuration table file cannot be exported to a word format file, so that comparison cannot be performed.

It should be noted that, when comparing configuration table files of different versions, the configuration table files need to be output as files of the same format to be compared, and files of different formats cannot be compared. Specifically, the configuration table files can be exported to txt format files, and then compared.

In the embodiment of the application, after the configuration table analysis files with the same format are compared to obtain the configuration table configuration accurate result, the configuration table configuration accurate result also needs to be stored, so that the user can conveniently inquire the configuration table configuration accurate result. The configuration table configuration precision result comprises an ID and an event represented by the ID, and also comprises a change of the event. Wherein, the change of the event occurrence may include: new, deleted or modified.

As shown in fig. 8, an embodiment of a configuration table configuration precision result provided in the embodiment of the present application is illustrated, and in fig. 8, a path of a changed configuration table and a svn version file corresponding to a changed configuration table file can be visually seen; in addition, the total number of changed configuration table rows in the changed configuration table can be visually seen.

Specifically, fig. 8 shows the configuration table configuration precision result, and fig. 8 also shows the path a of the svn file, and the version of the svn file that has changed is 37595-38195. Meanwhile, the name E of the configuration table and the path C/of the configuration table E are also shown. Meanwhile, similar to the accurate result of the blueprint configuration, the accurate result of the configuration table also includes the creation or modification time of the svn files of different versions, and the time for the operator to obtain the accurate result of the configuration table configuration.

And the precise result of the configuration table in fig. 8 further includes the number of modified rows, the number of newly added rows, and the number of deleted rows in the configuration tables of different versions.

In an embodiment of the present application, the configuration table may be configured with the following accurate results:

ID: 1 Language: successfully joining team datatable row change type: adding new

Specifically, the configuration table configures the accurate result to represent: event with ID 1 represents: "successfully join the team" and the event does not exist in the first configuration table file, an event having an ID of 1 is newly added in the second configuration table file, and the event is "successfully join the team".

In another embodiment of the present application, the configuration table may further include:

ID: 3 Language: old value: high quality- > new value: ultra high data row change type: modifying

Specifically, the configuration table configures the accurate result to represent: event with ID 3 represents: "old value: high quality- > new value: ultra-high. I.e. the event is "high quality" in the first configuration table file and modified to be "ultra high" in the second configuration table file.

In some embodiments of the present application, the first resource file may comprise a first map/material file and the second resource file may comprise a second map/material file. When the map/material file changes, all files referencing the changed map/material file change correspondingly.

The resource allocation accurate method provided by the application can acquire all resource files referring to a certain map/material file. Specifically, in some embodiments of the present application, the first resource file may include a first map/material file, the second resource may include a second map/material file, and the second map/material file is a resource file obtained after the first map/material file is changed.

Analyzing the first resource file and the second resource file to obtain a first analysis file and a second analysis file may include: acquiring all resource files which refer to the first map/material file, and taking the resource files as a first map analysis file; and acquiring all resource files which refer to the second map file, and taking the resource files as a second map analysis file. Comparing the first analysis file with the second analysis file to obtain an accurate result of the resource file configuration of the first version and the second version of the target application, may include: comparing the first mapping analysis file with the second mapping analysis file to obtain a mapping/material file modified between the first mapping analysis file and the second mapping analysis file; judging whether the modified second mapping analysis file is a target type file or not; and if so, outputting the modified second mapping analysis file.

Specifically, in embodiments of the present application, a change to a map/texture file causes a change to all resource files that reference the map/texture file. In the first resource file, the change of the first map/material file can cause the change of other resource files which refer to the first map/material file; the second map/material file is the resource file obtained after the first map/material file is changed, and many resource files refer to the second map/material file, which may cause other resource files referring to the second map/material file to be changed. According to the resource allocation accurate method provided by the embodiment of the application, all resource files which refer to the second map resource are obtained by obtaining the accurate function of the resource allocation accurate plug-in, and the resource files are called second map analysis files.

In the above embodiment, since the second map/material file is obtained by changing the first map/material file, all resource files referencing the second map/material file only need to be obtained, and thus all resource files referencing the second map/material file can be obtained.

In some embodiments of the present application, comparing the first parsing file and the second parsing file to obtain an accurate result of resource file configuration of the first version and the second version of the target application may include: comparing the first mapping analysis file with the second mapping analysis file to obtain a mapping/material file modified between the first mapping analysis file and the second mapping analysis file; judging whether the modified second mapping analysis file is a target type file or not; and if so, outputting the modified second mapping analysis file.

Specifically, in the embodiment of the present application, since the second map resolution file is all resource files referencing the second map/material file, comparing the first resolution file with the second resolution file only needs to determine whether the second map resolution file is a target type file, and does not need to determine the first map/material file. The target type file may be a blue map file, a bone file, a level file, a configuration table file, a data resource file, and the like, that is, it is determined whether the second map parsing file is one or more of the blue map file, the bone file, the level file, the configuration table file, and the data resource file. If yes, the second mapping analysis file can be directly output, and the second mapping analysis file is stored for subsequent query.

However, in the embodiment of the present application, the changed mapping file may also be displayed, so that the first mapping analysis file and the second mapping analysis file may be compared to obtain a file in which the second mapping/material is changed compared to the first mapping/material file, and then the modified mapping/material file is output and stored.

Meanwhile, whether the modified second mapping analysis file is the target type file can be judged, if yes, the modified second mapping analysis file is output, and therefore data files needing to be stored can be reduced, and storage capacity is reduced.

In some embodiments of the present application, all resource files referencing the second map file may be obtained by using the method for obtaining referenced resources provided in the source code of the UE4 engine, and the specific obtaining method may refer to the prior art and is not limited herein.

As shown in fig. 9, an embodiment of a configuration precision result for a map/texture file provided in the embodiment of the present application is schematically shown, and in fig. 9, a resource file and a path corresponding to the resource file, which have changed between svn files of different versions, can be visually seen; meanwhile, the resource file which changes due to the fact that the resource file which changes is quoted and the resource type of the resource file can be visually seen.

Specifically, the content shown in fig. 9 is a resource precision result, where the resource refers to a resource file such as a map/texture; that is, the resource precision result here is the configuration precision result of the map/texture resource file. Similar to the accurate result of the blueprint configuration and the accurate result of the data table configuration, fig. 9 also includes a path a/of the svn file, and the version corresponding to the changed svn file is 37595-38195; the time for creating or modifying different svn version files and the time for obtaining the configuration accurate result of the map/material resource file by the operator are also included. Meanwhile, the name F of the changed map/material file and the resource path C/corresponding to the map/material file are also included in FIG. 9.

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

resource name: n1 resource path: c1/resource type: data table

In the above embodiment, the output result represents: a resource file with the resource name n1 is stored under the path C1/where the path C1/can be/Content/data/ItemTable, and the resource file n1 is a data type resource file.

That is, in the embodiment of the present application, when outputting the second map parsing file, not only the specific resource file but also the saving path of the second map parsing file and the file type of the second map parsing file need to be output.

In other embodiments of the present application, the first resource file may include a plurality of blueprint files, configuration table files, and map resource files; similarly, the second resource file may also include a plurality of blueprint files, configuration table files, and map resource files. The second resource file is a resource file of the target application under another version obtained after the first resource file is modified, so that the file types of the first resource file and the second resource file are the same, namely if the first resource file comprises a blueprint file and a configuration table file, the second resource file also comprises the blueprint file and the configuration table file; the situation that the first resource file comprises the blueprint file and the second resource file does not comprise the blueprint file can not occur.

In the embodiment of the application, after a first resource file corresponding to a first version of a target application and a second resource file corresponding to a second version are obtained and the first resource file and the second resource file are compared to obtain a configuration accurate result, the configuration accurate result needs to be stored for subsequent query. Specifically, the configuration precision result may be saved in a database (database).

It should be noted that, in the embodiment of the present application, for resource files such as a changed blueprint file, a configuration table file, and a map/material, by using the configuration precision method provided by the present application, not only the svn version file corresponding to the changed resource file can be obtained; the path corresponding to the changed resource file can be obtained, so that the operator can conveniently and quickly position the resource file; meanwhile, the specific change of the resource file and the type corresponding to the change can be obtained, and for the map/material file, an operator can also obtain the resource file which refers to the topmost change of the reference chain of the resource and is caused by the change of art resources such as the material/map. The foregoing contents can be directly pushed to an operator by the method provided in the present application after the configuration is accurate.

In some embodiments of the present application, the configuration precision method provided by the present application may further summarize and output changes occurring in the blueprint file, the configuration table file, and the map/material file, so as to facilitate checking by an operator. As shown in fig. 10, it is a schematic view of an embodiment of the changed resource file summary table provided in the present application, in fig. 10, an operator can visually see the changed summary in the blueprint file, the configuration table file, the map/material file, and the changed resource file summary in the svn files of different versions.

As shown in fig. 11, a schematic diagram of an embodiment of a changed resource file summary histogram provided by the present application is shown, in fig. 11, an abscissa represents different svn version numbers, and an abscissa represents the number of changed resource files, wherein a bottom layer may be the number of modified files, that is, a dotted line portion in the diagram may represent the total number of modified files in each version of svn resource files compared to the previous version of svn resource files; the highest layer, i.e., the thickened 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; the middle layer may represent the total number of resource files added 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, the resource file may be changed or may not be changed compared to the previous version of the resource file, and the changed resource files are not necessarily the same, so in fig. 10 and 11, the number of changed resource files is zero, and no part of the histogram that is not changed appears.

The present application further provides a configuration precision method, which is applied to a server, and as shown in fig. 12, is a schematic flow diagram of another embodiment of the configuration precision method provided by the present application, and the method includes:

1201. and acquiring a query command for querying the configuration accurate result.

1202. And acquiring a configuration accurate result from the configuration accurate result database according to the query command.

1203. And configuring a target path corresponding to the query command.

1204. And screening a target configuration accurate result under the target path from the configuration accurate results according to the target path.

Specifically, the configuration precision method is applied to a system platform, and a user can query a configuration precision result on the system platform. In some embodiments of the present application, the system platform may be a blue shield platform, and the blue shield platform may provide a running environment for the client. Meanwhile, a UE4 engine needs to be installed on the client, so that the resource file can be analyzed and differentiated by using a configuration precision plug-in based on the UE4 engine.

In some embodiments of the application, when a user needs to perform query of a configuration accurate result, a query command for querying the accurate result of an accessory needs to be obtained first, and only by obtaining the query command first, the configuration accurate result in the configuration accurate result database can be obtained on a system platform according to the query command. If the user wants to obtain an accurate configuration result corresponding to a specific resource file, a corresponding target path under the query command also needs to be obtained; and screening out a target configuration accurate result under the target path from the configuration accurate results according to the target path.

In some embodiments of the present application, a query command for querying the configuration accurate result is used to obtain a target resource configuration accurate result corresponding to a specific resource file, and the query command may be used to directly query the configuration accurate result; or a path of a specific resource file in the resource files can be obtained according to the query command, and then a target configuration accurate result can be obtained from the configuration accurate result according to the path.

It should be noted that, since the path may be used to query the configuration accurate result corresponding to a specific resource file, when analyzing to obtain the difference to generate the configuration accurate result and storing the configuration accurate result, the configuration accurate result needs to be stored according to the path of the resource file, which is convenient for subsequent searching.

As shown in fig. 13, it is intended for an embodiment of configuring accurate result generation and query provided by the present application, in this embodiment, a user may set a timing check on a blue shield platform, so that the blue shield platform analyzes and compares resource files at regular time. When the platform starts to analyze the resource file, a Commandlet command line in the UE4 engine can be called, the command line can call a resource configuration accurate plug-in the UE4 engine, various types of files such as a blueprint file, a configuration table file or a map/material file can be analyzed and compared by using the plug-in, a configuration accurate result is obtained, and the configuration accurate result is stored in a database; until all the file comparisons are finished.

Specifically, the user initiates a query command on the system platform side, and configures a target path corresponding to a target resource file to be queried, so that the system platform can acquire a configuration accurate result in the database by using the query command. And screening out the target configuration accurate results to be displayed from the configuration accurate results by using the target path, and visually displaying the target configuration accurate results on the system platform.

In the embodiment of the application, the comparison and analysis results, namely the configuration accurate results, can be output to the system platform, so that the user can check more intuitively. Wherein, the system platform can show the quantity of deleted, modified and added resource files among different versions; and summarizing and outputting the modification of different types of data files, such as blueprint files, configuration table files or mapping resource files. At the same time, it is also output which changes have occurred specifically for each resource file.

As shown in the following table, an embodiment of the precise resource allocation result output by the present application is shown. It can be seen from the table that for the blueprint files, a total of 29 blueprint files in the blueprint files are modified, and the added and deleted blueprint files are both 0. For the configuration table files, the number of configuration table files that are modified is four, and the number of configuration table files that are added and deleted is 0. For the material file, the material file which is modified, newly added and deleted is 0. For the map file, the number of the map files to be modified is 8, 14 map files are newly added, and 40 map files are deleted. It can be seen from the table that by using the configuration precision method provided by the application, the resource files under which paths are changed and the changed resource files are summarized.

Classification Modifying blueprint numbers Newly added blueprint number Deleting blueprint numbers
Summary data 29 0 0
Classification Modifying configuration table number Adding configuration table number Deleting configuration table numbers
Summary data 4 0 0
Classification Modifying material prime number Number of newly added material Deleting material numbers
Summary data 0 0 0
Classification Modifying the number of pictures Newly added number of pictures Deleting the number of pictures
Summary data 8 14 40

As shown in fig. 14, an embodiment of the apparatus for precisely configuring a resource provided by the present application is schematically illustrated, and the apparatus for precisely configuring a resource is applied to a client, and includes:

a first obtaining module 1401, where the first obtaining module 1401 is configured to obtain a first resource file of which a target should be a first version.

The second obtaining module 1402, the second obtaining module 1402 is configured to obtain a second resource file of a second version of the target application, where 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 map resource/material file.

The calling module 1403 is used for calling the preset accurate resource configuration plug-in, analyzing the first resource file and the second resource file respectively, and obtaining a first analysis file and a second analysis file, wherein formats of the first analysis file and the second analysis file are the same type of comparable text formats.

And the precise configuration module 1404, where the precise configuration module 1404 is configured to compare the first analysis file with the second analysis file to obtain precise resource file configuration results of the first version and the second version of the target application.

In the embodiment of the application, on the basis that the blueprint file, the configuration table file, the mapping resource/material file and the like cannot be compared in the prior art, the resource configuration precision device is provided and applied to the client, the plug-in is utilized to analyze and compare the blueprint file, the configuration table file and the mapping resource/material file in the resource files of different versions, so that a resource file configuration precision result comprising the difference among the resource files of different versions is obtained, and the user can conveniently inquire.

In some embodiments of the present application, the first resource file comprises a first blueprint file and the second resource file comprises a second blueprint file; the calling module 1403 may be specifically configured to analyze the first blueprint file to obtain the first blueprint analysis file; and analyzing the second blueprint file to obtain a second blueprint analysis file.

The configuration precision module 1404 may be specifically configured to obtain a blueprint file in which the second blueprint analysis file is newly added, deleted, or modified compared with the first blueprint analysis file; and comparing the blueprint files with the same data type in the modified blueprint files to obtain a blueprint configuration accurate result between the first blueprint analysis file and the second blueprint analysis file.

In still other embodiments of the present application, the first resource file comprises a first configuration table file and the second resource file comprises a second configuration table file.

The calling module 1403 is specifically configured to parse the first configuration table file, and export the first configuration table file into a first configuration table parsing file in a target format; and analyzing the second configuration table file, and exporting the second configuration table file to be a second configuration table analysis file in a target format.

The configuration precision module 1404 may be specifically configured to compare the first configuration table parsing file and the second configuration table parsing file to obtain a configuration table configuration precision result between the first configuration table file and the second configuration table file.

In some embodiments of the present application, the first resource file includes a first map/texture file, and the second resource file includes a second map/texture file, where the second map/texture file is a resource file obtained after the first map/texture file is changed.

The calling module 1403 may be specifically configured to obtain all resource files referencing the first map/material file, and use the resource files as a first map parsing file; and acquiring all resource files which refer to the second map/material file as a second map analysis file. The configuration precision module 1404 may be specifically configured to compare the first map parsing file with the second map parsing file to obtain a map/material file modified between the first map parsing file and the second map parsing file; judging whether the modified second mapping analysis file is a target type file or not; and if so, outputting the modified second mapping analysis file.

The present application further provides a resource allocation precision device, which is applied to a server, as shown in fig. 15, and is a schematic view of another embodiment of the resource allocation precision device provided by the present application, the resource allocation precision device may include:

the third obtaining module 1501, the third obtaining module 1501 is configured to obtain a query command for querying a configuration precision result;

a fourth obtaining module 1502, where the fourth obtaining module 1502 is configured to obtain a configuration precision result from the configuration precision result database according to the query command;

a path configuration module 1503, wherein the path configuration module 1503 is configured to configure a target path corresponding to the query command;

the screening module 1504 is used for screening a target configuration accurate result under the target path from the configuration accurate results according to the target path;

the display module 1505, the display module 1505 is used for outputting and displaying the target configuration precision result.

In the embodiment of the application, on the basis that the prior art cannot compare the blueprint file, the configuration table file, the chartlet resource/material file and the like, the resource configuration precision device is provided and applied to the server, and the server is loaded on the system platform, so that the database storing the resource configuration precision result can be queried by using the query command, the target path corresponding to the query command is configured at the same time, the target configuration precision result corresponding to the target path is obtained, and the target configuration precision result is output and displayed on the system platform.

An embodiment of the present invention further provides a server, as shown in fig. 16, which shows a schematic structural diagram of a server according to an embodiment of the present application, specifically:

the server may include components such as a processor 1601 for one or more processing cores, memory 1602 for one or more computer-readable storage media, power source 1603, and input unit 1604. Those skilled in the art will appreciate that the server architecture shown in FIG. 9 does not constitute a limitation on the servers, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components. Wherein:

the processor 1601 is a control center of the server, connects various parts of the entire server by various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 1602 and calling data stored in the memory 1602, thereby performing overall monitoring of the server. Optionally, processor 1601 may include one or more processing cores; preferably, the processor 1601 may integrate an application processor, which mainly handles operations of storage media, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1601.

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

The server further includes a power source 1603 for supplying power to each component, and preferably, the power source 1603 may be logically connected to the processor 1601 via a power management storage medium, so that functions of managing charging, discharging, power consumption management and the like are realized via the power management storage medium. The power source 1603 may further include any component of one or more dc or ac power sources, rechargeable storage media, power failure detection circuitry, power converters or inverters, power status indicators, and the like.

The server may also include an input unit 1604 that may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

Although not shown, the server may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 1601 in the server loads the executable file corresponding to the process of one or more application programs into the memory 1602 according to the following instructions, and the processor 1601 runs the application programs stored in the memory 1602, so as to implement various functions as follows:

a first resource file of a first version of a target application is obtained. And acquiring a second resource file of a second version of the target application, wherein the first resource file and the second resource file comprise resource files of the same type, and the first resource file and the second resource file comprise at least one of a blueprint file, a configuration table and a mapping resource file. Calling a preset resource configuration accurate plug-in, and analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file, wherein the formats of the first analysis file and the second analysis file are the same type of comparable text formats. And comparing the first analysis file with the second analysis file to obtain a resource file configuration accurate result of the first version and the second version of the target application.

It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.

To this end, 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 allocation precision methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:

a first resource file of a first version of a target application is obtained. And acquiring a second resource file of a second version of the target application, wherein the first resource file and the second resource file comprise resource files of the same type, and the first resource file and the second resource file comprise at least one of a blueprint file, a configuration table and a mapping resource file. Calling a preset resource configuration accurate plug-in, and analyzing the first resource file and the second resource file respectively to obtain a first analysis file and a second analysis file, wherein the formats of the first analysis file and the second analysis file are the same type of comparable text formats. And comparing the first analysis file with the second analysis file to obtain a resource file configuration accurate result of the first version and the second version of the target application.

The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.

Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.

Since the instructions stored in the storage medium may execute the steps in any resource allocation precision method provided in the embodiment of the present invention, beneficial effects that can be achieved by any resource allocation precision method provided in the embodiment of the present invention may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.

The above detailed description is provided for a configuration precision method, apparatus, server and storage medium provided in the embodiments of the present application, and specific embodiments are applied in the present application to explain the principles and embodiments of the present application, and the description of the above embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

29页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种文本质量评价系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!