Method and device for checking art resource file, electronic device and storage medium

文档序号:177558 发布日期:2021-11-02 浏览:38次 中文

阅读说明:本技术 美术资源文件的检查方法及装置、电子设备、存储介质 (Method and device for checking art resource file, electronic device and storage medium ) 是由 陈厚文 徐亮 杨克敏 于 2021-08-02 设计创作,主要内容包括:本申请提供了一种美术资源文件的检查方法及装置、电子设备、存储介质,其中,方法包括:响应在终端设备的图形用户界面上针对存储在终端设备的第一美术资源文件的编辑操作,确定第一美术资源文件对应的目标美术资源;检查目标美术资源对应的存储在服务器的第二美术资源文件的第二版本号与第一美术资源文件的第一版本号是否一致;若不一致,则在图形用户界面显示更新页面,更新页面包括更新控件,更新控件用于指示对第一美术资源文件进行更新;可以实现在开发编辑时,当第一版本号与第二版本号不一致时,提示用户进行更新,以确保用户开发编辑的版本号是最新的,避免后续编辑完成提交至服务器端出现版本冲突,进而避免服务器美术资源文件出现错误。(The application provides a method and a device for checking art resource files, electronic equipment and a storage medium, wherein the method comprises the following steps: responding to the editing operation on a graphical user interface of the terminal equipment aiming at a first art resource file stored in the terminal equipment, and determining a target art resource corresponding to the first art resource file; checking whether a second version number of a second art resource file stored in the server corresponding to the target art resource is consistent with a first version number of the first art resource file; if the first art resource file is inconsistent with the first art resource file, displaying an updating page on the graphical user interface, wherein the updating page comprises an updating control, and the updating control is used for indicating to update the first art resource file; the method and the device can prompt the user to update when the first version number is inconsistent with the second version number during development and editing so as to ensure that the version number developed and edited by the user is up-to-date, avoid version conflict when follow-up editing is finished and submitted to a server, and further avoid errors of the server art resource file.)

1. An inspection method for an art resource file, the method comprising:

responding to an editing operation aiming at a first art resource file on a graphical user interface of terminal equipment, and determining a target art resource corresponding to the first art resource file; the first art resource file is stored in the terminal equipment;

checking whether a second version number of a second art resource file corresponding to the target art resource is consistent with a first version number of the first art resource file; the second art resource file is stored in a server;

and if not, displaying an update page on the graphical user interface, wherein the update page comprises an update control used for indicating to update the first art resource file.

2. The method of claim 1, further comprising:

and under the condition that the first version number is consistent with the second version number, updating the first art resource file according to the editing operation.

3. The method of claim 1, wherein after the graphical user interface displays the update page, the method further comprises:

responding to the selection operation of the updating control, and visually displaying the first art resource file, the second art resource file and a basic art resource file of the first art resource file which is not processed by the editing operation in the updating page;

responding to a selection operation aiming at the first art resource file, the second art resource file or the basic art resource file, and determining the art resource file corresponding to the selection operation as a target art resource file;

and updating the first art resource file into the target art resource file, and updating the first version number to be consistent with the second version number.

4. The method of claim 3, wherein in response to a selection operation for the first or second or base art resource files, determining an art resource file corresponding to the selection operation as a target art resource file, further comprises:

in response to a selection operation for the first or second or base art resource file, displaying a confirmation window in the update page, the confirmation window including a confirmation control and prompt information; the prompt information is used for indicating an influence result of determining the art resource file corresponding to the selection operation as a target resource file;

and responding to the selection operation aiming at the determination control, and determining the art resource file corresponding to the selection operation as a target resource file.

5. The method of claim 1, wherein determining the target art resource corresponding to the first art resource file in response to an edit operation on a graphical user interface of the terminal device for the first art resource file further comprises:

and sending first feedback information to a server, wherein the first feedback information comprises the information of the first art resource file and the information of a user corresponding to the terminal equipment.

6. The method of claim 5, further comprising:

receiving second feedback information sent by a server, wherein the second feedback information comprises information of other users who execute editing operation aiming at the art resource file corresponding to the target art resource;

displaying the second feedback information in the graphical user interface.

7. The method of claim 2, further comprising:

responding to the selection operation of a submission control in the graphical user interface, and performing preset rule check on the first art resource file to obtain a corresponding check result;

and if the checking result is that the first art resource file passes, sending the first art resource file to a server so as to cover a second art resource file in the server.

8. The method of claim 2, further comprising:

in response to a selection operation for a submit control in the graphical user interface, displaying a submit page on the graphical user interface; the submission page comprises a plurality of art resource files stored by the terminal equipment;

responding to the selection operation of one or more art resource files in the plurality of art resource files, determining the art resource file corresponding to the selection operation as an art resource file to be submitted, and performing corresponding preset rule check on the art resource file to be submitted to obtain a corresponding check result;

and sending the inspection result to a server for passing through the corresponding art resource file to be submitted so as to cover the art resource file corresponding to the same art resource in the server and the art resource file to be submitted.

9. An apparatus for inspecting an art resource file, the apparatus comprising:

the first response module is used for responding to the editing operation aiming at the first art resource file on the graphical user interface of the terminal equipment and determining the target art resource corresponding to the first art resource file; the first art resource file is stored in the terminal equipment;

the version checking module is used for checking whether a second version number of a second art resource file corresponding to the target art resource is consistent with a first version number of the first art resource file; the second art resource file is stored in a server;

and the updating prompting module is used for displaying an updating page on the graphical user interface if the first art resource file is inconsistent with the second art resource file, wherein the updating page comprises an updating control which is used for indicating to update the first art resource file.

10. An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the method of inspecting an art resource file according to any one of claims 1 to 8.

11. A computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the inspection method for art resource files according to any one of claims 1 to 8.

Technical Field

The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for inspecting an art resource file, an electronic device, and a storage medium.

Background

In the game item production, the production of art resources is an important component link of game production. In the process of manufacturing game items, the times of modifying and submitting art resource files are quite frequent, and art resource files in a remote version warehouse (server) are easy to be wrong. Especially in a team where multiple persons cooperate, it is often difficult for an artist to ensure that the version of an art resource file developed and edited by the artist is the latest version, and when the art resource file developed and edited by the artist is not the latest version, the art resource file in the remote version repository may be mistaken after being submitted to the remote version repository. If the artistic resource file has errors, the method not only can cause the final display of wrong artistic expression in the game, but also can cause the phenomenon of flash back of a game client under serious conditions, thereby hindering the development process; during the agile development period of the project, the development efficiency of other functional members of the project group can be seriously hindered.

Disclosure of Invention

In view of the above problems, the present application is proposed to provide an inspection method and apparatus, an electronic device, and a storage medium for an art resource file that overcome or at least partially solve the above problems, including:

a method of inspecting an art resource file, the method comprising:

responding to an editing operation aiming at a first art resource file on a graphical user interface of terminal equipment, and determining a target art resource corresponding to the first art resource file; the first art resource file is stored in the terminal equipment;

checking whether a second version number of a second art resource file corresponding to the target art resource is consistent with a first version number of the first art resource file; the second art resource file is stored in a server;

and if not, displaying an update page on the graphical user interface, wherein the update page comprises an update control used for indicating to update the first art resource file.

Optionally, the method further comprises:

and under the condition that the first version number is consistent with the second version number, updating the first art resource file according to the editing operation.

Optionally, after the graphical user interface displays the update page, the method further includes:

responding to the selection operation of the updating control, and visually displaying the first art resource file, the second art resource file and a basic art resource file of the first art resource file which is not processed by the editing operation in the updating page;

responding to a selection operation aiming at the first art resource file, the second art resource file or the basic art resource file, and determining the art resource file corresponding to the selection operation as a target art resource file;

and updating the first art resource file into the target art resource file, and updating the first version number to be consistent with the second version number.

Optionally, the determining, in response to a selection operation for the first art resource file, the second art resource file, or the basic art resource file, that the art resource file corresponding to the selection operation is a target art resource file further includes:

in response to a selection operation for the first or second or base art resource file, displaying a confirmation window in the update page, the confirmation window including a confirmation control and prompt information; the prompt information is used for indicating an influence result of determining the art resource file corresponding to the selection operation as a target resource file;

and responding to the selection operation aiming at the determination control, and determining the art resource file corresponding to the selection operation as a target resource file.

Optionally, the determining, in response to an editing operation on a graphical user interface of a terminal device for a first art resource file, a target art resource corresponding to the first art resource file further includes:

and sending first feedback information to a server, wherein the first feedback information comprises the information of the first art resource file and the information of a user corresponding to the terminal equipment.

Optionally, the method further comprises:

receiving second feedback information sent by a server, wherein the second feedback information comprises information of other users who execute editing operation aiming at the art resource file corresponding to the target art resource;

displaying the second feedback information in the graphical user interface.

Optionally, the method further comprises:

responding to the selection operation of a submission control in the graphical user interface, and performing preset rule check on the first art resource file to obtain a corresponding check result;

and if the checking result is that the first art resource file passes, sending the first art resource file to a server so as to cover a second art resource file in the server.

Optionally, the method further comprises:

in response to a selection operation for a submit control in the graphical user interface, displaying a submit page on the graphical user interface; the submission page comprises a plurality of art resource files stored by the terminal equipment;

responding to the selection operation of one or more art resource files in the plurality of art resource files, determining the art resource file corresponding to the selection operation as an art resource file to be submitted, and performing corresponding preset rule check on the art resource file to be submitted to obtain a corresponding check result;

and sending the inspection result to a server for passing through the corresponding art resource file to be submitted so as to cover the art resource file corresponding to the same art resource in the server and the art resource file to be submitted.

An apparatus for inspecting art resource files, the apparatus comprising:

the first response module is used for responding to the editing operation aiming at the first art resource file on the graphical user interface of the terminal equipment and determining the target art resource corresponding to the first art resource file; the first art resource file is stored in the terminal equipment;

the version checking module is used for checking whether a second version number of a second art resource file corresponding to the target art resource is consistent with a first version number of the first art resource file; the second art resource file is stored in a server;

and the updating prompting module is used for displaying an updating page on the graphical user interface if the first art resource file is inconsistent with the second art resource file, wherein the updating page comprises an updating control which is used for indicating to update the first art resource file.

Optionally, the apparatus further comprises:

and the editing and updating module is used for updating the first art resource file according to the editing operation under the condition that the first version number is consistent with the second version number.

Optionally, the apparatus further comprises:

a second response module, configured to visually display, in response to a selection operation for the update control, the first art resource file, the second art resource file, and a base art resource file of the first art resource file that is not processed by the editing operation in the update page;

a third response module, configured to determine, in response to a selection operation for the first art resource file, the second art resource file, or the basic art resource file, an art resource file corresponding to the selection operation as a target art resource file;

and the version updating module is used for updating the first art resource file into the target art resource file and updating the first version number to be consistent with the second version number.

Optionally, the third response module further includes:

a confirmation window display module, configured to display a confirmation window in the update page in response to a selection operation for the first artistic resource file, the second artistic resource file, or the basic artistic resource file, where the confirmation window includes a confirmation control and prompt information; the prompt information is used for indicating an influence result of determining the art resource file corresponding to the selection operation as a target resource file;

and the secondary confirmation module is used for responding to the selection operation aiming at the determination control and determining the art resource file corresponding to the selection operation as a target resource file.

Optionally, the apparatus further comprises:

the information sending module is used for sending first feedback information to a server, wherein the first feedback information comprises information of the first art resource file and information of a user corresponding to the terminal equipment.

Optionally, the apparatus further comprises:

the information receiving module is used for receiving second feedback information sent by the server, wherein the second feedback information comprises information of other users who execute editing operation aiming at the art resource file corresponding to the target art resource;

and the information display module is used for displaying the second feedback information in the graphical user interface.

Optionally, the apparatus further comprises:

the first inspection module is used for responding to selection operation of a submission control in the graphical user interface and performing preset rule inspection on the first art resource file to obtain a corresponding inspection result;

and the first submission module is used for sending the first art resource file to a server to cover a second art resource file in the server if the check result is that the first art resource file passes.

Optionally, the apparatus further comprises:

a submit page display module, configured to display a submit page on the graphical user interface in response to a selection operation for a submit control in the graphical user interface; the submission page comprises a plurality of art resource files stored by the terminal equipment;

the second inspection module is used for responding to selection operation of one or more art resource files in the plurality of art resource files, determining the art resource file corresponding to the selection operation as an art resource file to be submitted, and performing corresponding preset rule inspection on the art resource file to be submitted to obtain a corresponding inspection result;

and the second submission module is used for sending the inspection result to a server through the corresponding art resource file to be submitted so as to cover the art resource file corresponding to the same art resource in the server and the art resource file to be submitted.

An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program when executed by the processor implementing the steps of the method for inspecting art resource files as described above.

A computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of the inspection method for art resource files as described above.

The application has the following advantages:

in the embodiment of the application, a target art resource corresponding to a first art resource file stored in a terminal device is determined by responding to the editing operation on a graphical user interface of the terminal device aiming at the first art resource file; checking whether a second version number of a second art resource file stored in a server corresponding to the target art resource is consistent with a first version number of the first art resource file; if not, displaying an update page on the graphical user interface, wherein the update page comprises an update control used for indicating to update the first art resource file; when the user develops and edits based on the locally-stored first art resource file, when the first version number of the first art resource file is inconsistent with the second version number of the corresponding second art resource file stored by the server, the user is prompted to update the locally-stored first art resource file, so that the version number of the locally-stored first art resource file is up to date, the conflict of the version submitted to the server end by the completion of subsequent editing is avoided, and further the error of the art resource file in the server is avoided.

Drawings

In order to more clearly illustrate the technical solutions of the present application, the drawings needed to be used in the description of the present application will be briefly introduced below, and it is apparent 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 that other drawings can be obtained according to the drawings without inventive labor.

Fig. 1 is a flowchart illustrating steps of a method for inspecting art resource files according to an embodiment of the present disclosure;

fig. 2 is a flowchart illustrating steps of a method for inspecting an art resource file according to an embodiment of the present disclosure;

fig. 3 is a block diagram of an apparatus for inspecting art resource files according to an embodiment of the present disclosure.

Detailed Description

In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description. It is to be understood that the embodiments described are only a few embodiments of the present application and not all 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 game item production, art resources may include tile resources (Textures), material resources (Materials), Static grids (Static Mesh), skeletal grids (skelestalmesh), special Effects (Effects), and the like. The art resource file is a file storing art resource data.

In game item production, art resource production is an important component link of game production and is generally completed by a plurality of art developers. A plurality of art developers generally work together through a server. And developing and editing the same art resource by a plurality of art developers based on respective local art resource files, submitting the local art resource files to the server after the editing is finished, and updating the art resource files in the server. Since each art developer has the authority to submit its local art resource file to the server, it often happens that one art developer submits its local art resource file to the server, so that the art resource file in the server is updated. And other art developers cannot know the updating information of the art resource file in the server at the same time, so that the version number of the art resource file developed and edited by other art developers is not the latest, and when the other art developers submit the local art resource file to the server, version conflict exists, so that errors exist in the art resource file in the server.

Illustratively, when the art developer a and the art developer B develop and edit the same art resource at the same time, the version number of the local art resource file developed and edited by the art developer a and the art developer B is consistent with the version number of the original art resource file in the server, and the version number at this time is denoted as V1. When the art developer a finishes editing, the local art resource file a is obtained, and when the art developer a submits the local art resource file a to the version server, the original art resource file in the server can be updated to the art resource file a because the corresponding version number of the original art resource file in the server is V1 and is consistent with the version number of the local art resource file a, and the version number of the original art resource file in the server can be updated to V2 from V1 while the file is updated. At this time, the version number of the local art resource file developed and edited by the art developer B is still V1, when the art developer B finishes editing, the local art resource file B is obtained, and if the art developer B submits the local art resource file B to the server, since the version number of the art resource file in the server is V2 and is inconsistent with the version number V1 of the local art resource file B, a version conflict may occur, which may cause an error in the art resource file in the server.

In view of the above existing problems, an embodiment of the present application provides an inspection method for art resource files, which determines a target art resource corresponding to a first art resource file stored in a terminal device by responding to an editing operation on a graphical user interface of the terminal device for the first art resource file; checking whether a second version number of a second art resource file stored in a server corresponding to the target art resource is consistent with a first version number of the first art resource file; if not, displaying an update page on the graphical user interface, wherein the update page comprises an update control used for indicating to update the first art resource file; when the user develops and edits based on the locally-stored first art resource file, when the first version number of the first art resource file is inconsistent with the second version number of the corresponding second art resource file stored by the server, the user is prompted to update the locally-stored first art resource file, so that the version number of the locally-stored first art resource file is up to date, the conflict of the version submitted to the server end by the completion of subsequent editing is avoided, and further the error of the art resource file in the server is avoided.

The following describes in detail an inspection method for an art resource file provided in the present application with a specific example.

Referring to fig. 1, a method for checking an art resource file according to an embodiment of the present application is shown, where the method is applied to a terminal device, and the method specifically includes the following steps:

step 101, responding to an editing operation on a graphical user interface of terminal equipment aiming at a first art resource file, and determining a target art resource corresponding to the first art resource file; the first art resource file is stored in the terminal device.

A game item will typically include a plurality of art assets, one for each art asset file. A graphical user interface capable of editing operations can be provided by the above-described terminal device (not limited to a smart terminal or a portable terminal). By editing the first art resource file stored in the terminal device on the graphical user interface, the target art resource corresponding to the first art resource file can be determined.

Specifically, when the first art resource file is selected as a file to be edited, the target art resource corresponding to the first art resource file can be determined.

102, checking whether a second version number of a second art resource file corresponding to the target art resource is consistent with a first version number of the first art resource file; the second art resource file is stored in a server.

In the scene of a multi-person collaborative development project, each user can edit the art resource file stored locally and then submit the edited art resource file to the server so as to update the art resource file stored by the server. In the process of editing the locally-stored first art resource file by the user, the second version number of the second art resource file of the target art resource corresponding to the first art resource file in the server is obtained in real time, and whether the first version number of the first art resource file is consistent with the second version number of the second art resource file is checked. The method and the device can avoid the situation that the edition number of the locally stored art resource file edited by the user is inconsistent with the edition number of the art resource file stored by the server, so that the edition conflict is generated when the edition is submitted to the server, and the art resource file in the server has errors.

When the first version number is consistent with the second version number, the first art resource file can be updated according to the received editing operation for the first art resource file.

Specifically, before the first art resource file enters the editing mode, the first art resource file may be backed up, and since the backed-up first art resource file is not subjected to the editing operation, the backed-up first art resource file is used as the basic art resource file. And then, editing the first art resource file, and updating the first art resource file according to the editing operation.

Optionally, the process of checking whether the second version number of the second art resource file corresponding to the target art resource is consistent with the first version number of the first art resource file may include:

acquiring configuration information, wherein the configuration information comprises a first directory position where a first art resource file is located and a second directory position where a second art resource file is located;

obtaining a first version number from a first directory location and a second version number from a second directory location;

and comparing whether the first version number is consistent with the second version number.

In this embodiment, the configuration information may be set by the user according to actual needs. Generally, a plurality of art resource files belonging to the same project are stored in the same directory location, and the art resource files and version number information thereof are also stored in the same directory location. When setting the configuration information, a user needs to determine a first directory location where the first art resource file is located and a second directory location where the second art resource file is located, and set the first directory location and the second directory location as the configuration information. When the configuration information is determined, a first version number may be determined from a first directory location of the configuration information and a second version number may be determined from a second directory location of the configuration information, and then the first version number and the second version number may be compared for consistency.

Optionally, before the obtaining of the preset configuration information, the method may further include:

and if the configuration information does not exist, generating configuration prompt information, wherein the configuration prompt information is used for indicating a user to set the configuration information.

In this embodiment, before the preset configuration information is acquired, it is determined whether the configuration information exists, and if the configuration information does not exist, configuration prompt information may be generated to prompt a user to set the configuration information.

Optionally, the obtaining preset configuration information may further include:

and if the configuration information is failed to be acquired, generating configuration prompt information to prompt a user to set the configuration information.

In this embodiment, the configuration information may be automatically acquired first, and if the acquisition fails, configuration prompt information may be generated to prompt a user to set the configuration information.

Further, after generating the configuration prompt message, the method may further include:

checking the received initial configuration information;

and when the verification is successful, determining the initial configuration information as the configuration information.

In this embodiment, the configuration information input by the user in the process of setting the configuration information is determined as initial configuration information, after the initial configuration information is received, the initial configuration information is verified, and if the verification is successful, the initial configuration information is determined as final configuration information; when the verification fails, the verification failure information can be displayed to prompt the user to reset the configuration information. The information of the verification failure may include a reason of the verification failure, so that the user may pertinently reset the configuration information, and the efficiency of setting the configuration information is improved.

For example, the configuration prompt information may include an input box to which the configuration information is to be input, receive an input operation for the input box, determine the initial configuration information, and verify the initial configuration information, where the specific content of the verification may include verifying whether a directory location in the initial configuration information is legal. And after the verification is passed, generating configuration information so as to determine the first version number and the second version number according to the configuration information, and comparing whether the first version number is consistent with the second version number.

And 103, if the two art resource files are not consistent, displaying an update page on the graphical user interface, wherein the update page comprises an update control, and the update control is used for indicating to update the first art resource file.

Generally, an art resource file is a binary file, and a binary file is a file that is serialized in a stream format, and there is no concept of a line, and it is difficult to perform processing such as merging using a text file processing tool (for example, SVN merge). Therefore, when the first version number is detected to be inconsistent with the second version number, the first art resource file and the second art resource file are indicated to have version conflict, and at the moment, an updating page can be displayed on the graphical user interface to remind a user of timely handling the conflict.

The user can come to realize the update to first fine arts resource file through triggering the renewal control in the update page to make the first version number of first fine arts resource file update to unanimous with the second version number of second fine arts resource file, the version conflict appears when submitting first fine arts resource file to the server after avoiding follow-up editing to accomplish, and then avoids fine arts resource file in the server to take place the mistake.

In an optional embodiment, the update page may be displayed on an upper layer of the graphical user interface, and the receiving of the editing operation for the first art resource file may be suspended while the update page is displayed. It is to be appreciated that the user cannot perform an editing operation on the first art resource file when the updated page appears.

Further, in an optional embodiment of the present application, after the step 102, the method further includes:

responding to the selection operation of the updating control, and visually displaying the first art resource file, the second art resource file and a basic art resource file of the first art resource file which is not processed by the editing operation in the updating page;

responding to a selection operation aiming at the first art resource file, the second art resource file or the basic art resource file, and determining the art resource file corresponding to the selection operation as a target art resource file;

and updating the first art resource file into the target art resource file, and updating the first version number to be consistent with the second version number.

Because the art resource file is a binary file, the art resource file cannot be directly opened for viewing. Therefore, when the selection operation for the update control is detected, the first art resource file, the second art resource file and the basic art resource file are visually displayed in the update page, so that the difference of different art resource files can be conveniently checked, a user can conveniently select the optimal art resource file as the target art resource file, and the editing operation can be continuously executed based on the target art resource file. Optionally, in the process of visually displaying, the first art resource file, the second art resource file, and the basic art resource file may be respectively converted into corresponding visual pictures by an art resource conversion tool, where the visual pictures may include dynamic pictures and static pictures.

Specifically, when the art resource file corresponding to the selected operation is the first art resource file, the first art resource file is determined as the target art resource file, the first art resource file is updated to be the target art resource file, and meanwhile the first version number is updated to be consistent with the second version number. At this time, the first art resource file on which the user continues to perform the editing operation is identical to the first art resource file before the update. That is, when the first art resource file is selected, the first art resource file is not changed due to the updating operation, but the first version number of the first art resource file is updated, which is equivalent to ignoring the modified content of the second art resource file by other users.

And when the art resource file corresponding to the selection operation is the second art resource file, determining the second art resource file as the target art resource file, updating the first art resource file as the target art resource file, and updating the first version number to be consistent with the second version number. At this time, the first art resource file and the second art resource file on which the user continues to perform the editing operation are identical. That is, when the second art resource file is selected, the second art resource file covers the locally stored first art resource file as a new first art resource file; it is equivalent to abandon the first art resource file before updating.

And when the art resource file corresponding to the operation is selected as the basic art resource file, determining the basic art resource file as the target art resource file, updating the first art resource file as the target art resource file, and updating the first version number to be consistent with the second version number. At this time, the first art resource file on which the user continues to perform the editing operation is identical to the base art resource file. That is, when the basic art resource file is selected, the basic art resource file will overwrite the first art resource file as a new first art resource file; the method is equivalent to abandoning the first art resource file before updating, and meanwhile ignoring the modification content of the second art resource file by other users.

In an optional embodiment of the application, the determining, in response to a selection operation for the first art resource file, the second art resource file, or the basic art resource file, that the art resource file corresponding to the selection operation is the target art resource file may further include:

responding to the selection operation aiming at the first art resource file, the second art resource file or the basic art resource file, and displaying a confirmation window in the updating page, wherein the confirmation window comprises a confirmation control and prompt information; the prompt information is used for indicating an influence result of determining the art resource file corresponding to the selection operation as the target resource file;

and responding to the selection operation aiming at the determination control, and determining the art resource file corresponding to the selection operation as the target resource file.

In this embodiment, in order to prevent the erroneous operation, when the selection operation of the selection operation for the first art resource file or the second art resource file or the basic art resource file is received, the confirmation window may be displayed to provide the user with an opportunity of the secondary confirmation.

Specifically, the confirmation window may include a confirmation control and prompt information, where the prompt information is used to indicate that the art resource file corresponding to the selection operation is determined as the influence result of the target art resource file. For example, when the art resource file corresponding to the operation is selected as the second art resource file, the prompt information may specifically be: the first art resource file will be overwritten by the second art resource file. When the art resource file corresponding to the selection operation is the first art resource file, the prompt information may specifically be: the second art resource file will be ignored. When the art resource file corresponding to the selection operation is the basic art resource file, the prompt information may specifically be: the first art resource file is covered by the basic art resource file, and the modified content of the first art resource file at this time and the content of the second art resource file are ignored.

Further, in an optional embodiment of the present application, the determining, in response to an editing operation on the graphical user interface of the terminal device for the first art resource file, a target art resource corresponding to the first art resource file may further include:

and sending first feedback information to the server, wherein the first feedback information comprises information of the first art resource file and information of a user corresponding to the terminal equipment.

In this embodiment, when an editing operation for the first art resource file is detected, first feedback information is sent to the server, where the first feedback information includes information of the first art resource file and information of a user corresponding to the terminal device. The information of the first art resource file may be a file name of the first art resource file, and the information of the user may be a user account, and the like.

Correspondingly, the responding to the editing operation on the graphical user interface of the terminal device for the first art resource file to determine the target art resource corresponding to the first art resource file may further include:

receiving second feedback information sent by the server, wherein the second feedback information comprises information of other users who execute editing operation aiming at art resource files corresponding to the target art resources;

and displaying the second feedback information in the graphical user interface.

In this embodiment, the server may receive feedback information sent by each user through a terminal device corresponding to the user, determine an art resource file currently processed by each user, further count information of all users of the art resource currently processed, and send information of other users except user information in the first feedback information to the terminal device sending the first feedback information from the counted information of all users. It should be noted that the server may also send the information of all the users who count the current processing target art resources to the terminal devices corresponding to the users of all the users, respectively.

Illustratively, when the information of the first art resource file in the first feedback information is the file name of the first art resource file, since the art resource files corresponding to the same art resource generally have the same file name, that is, the file name of the first art resource file is the same as the file name of the second art resource file, and the file name of the first art resource file is the same as the file name of the third art resource file corresponding to the target art resource stored in the terminal device corresponding to the other user. For the purpose of distinction, the file name of the first art resource file is determined as the target file name. The server may receive feedback information sent by a plurality of users, and then count information of each user in the feedback information including the target file name to obtain a user set, where the user set includes information of a user who is editing the art resource file of the target file name currently. And then sending the user set to the terminal equipment corresponding to the information of each user in the user set, or sending the information of other users except the terminal equipment corresponding to the information of each user in the user combination.

Optionally, when an editing operation ending instruction for the first art file is detected, sending editing ending information to the server, where the editing ending information includes information of the first art resource file and information of a user corresponding to the device terminal, so as to ensure accuracy of counting, by the server, information of all users of the currently processed art resource.

When the second feedback information sent by the server is received, the second feedback information is displayed on the graphical user interface, so that the user can conveniently know the current editing state of the target art resource processed by the user, the second feedback information can be better monitored and communicated with other users who process the target art resource simultaneously, and the possibility that the art resource files corresponding to the target art resource are edited by a plurality of users simultaneously to cause conflict is further reduced.

Further, in an optional embodiment of the present application, the method may further include:

in response to the selection operation of the submission control in the graphical user interface, performing preset rule check on the first art resource file to obtain a corresponding check result;

and if the checking result is that the second art resource file passes, sending the first art resource file to the server to cover the second art resource file in the server.

In this embodiment, when the first art resource file is edited, the user may trigger the submission control to submit the first art resource file to the server. In order to prevent that an error occurs in an art resource file in a server when an operation of selecting a submission control is detected, in this embodiment, a preset rule check is started on a first art resource file, and when a check result corresponding to the preset rule check is passed, the first art resource file is sent to the server to cover a second art resource file corresponding to the first art resource file in the server.

When the preset rule check result does not pass, corresponding error information can be displayed on the graphical user interface, so that a user can modify the first art resource file in a targeted manner according to the displayed error information, and the modification efficiency is improved. After the modification is completed, the user can trigger the submission control again to submit the first art resource file to the server.

Further, in an optional embodiment of the present application, the method may further include:

in response to a selection operation for a submission control in the graphical user interface, displaying a submission page on the graphical user interface; submitting a plurality of art resource files stored in the page including the terminal equipment;

responding to the selection operation of one or more art resource files in the plurality of art resource files, determining the art resource file corresponding to the selection operation as an art resource file to be submitted, and performing corresponding preset rule check on the art resource file to be submitted to obtain a corresponding check result;

and sending the corresponding art resource file to be submitted as a check result to the server so as to cover the art resource file corresponding to the same art resource with the art resource file to be submitted in the server.

In this embodiment, when a selection operation for the submission control is detected, the submission page can be displayed, the submission page includes a plurality of art resource files stored by the terminal device, the plurality of art resource files stored by the terminal device can be submitted simultaneously, and the efficiency of submitting the art resource files is improved.

Generally, a plurality of art resource files displayed in the submission page are stored in the same directory location of the terminal device, where the directory location may specifically be the first directory location in the configuration information, so that a plurality of art resource files of the same project can be submitted simultaneously.

In the embodiment of the application, when the user edits the art resource file stored in the terminal device, whether the version number of the art resource file to be edited/being edited is consistent with the version number of the corresponding art resource file stored in the server or not can be automatically checked, so that the possibility of resource conflict when the version number is submitted to the server is reduced, and the development efficiency is improved.

In addition, in the embodiment of the application, when the publication is checked to be inconsistent, the user can conveniently select the optimal art resource file by visually displaying each art resource file, and the blindness of the user in solving the version conflict problem is avoided.

Furthermore, in the embodiment of the application, when the user edits the local art resource file, the information of other users who edit the same art resource currently can be displayed to the terminal device corresponding to the user, so that the user can conveniently communicate and cooperate with other users, the possibility of conflict is further reduced, and the development efficiency is submitted.

Finally, in the embodiment of the application, before the locally stored art resource file is submitted to the server, the corresponding preset rule check can be performed on the art resource file to be submitted, so that the simplicity and the hysteresis of pre-commit and post-commit checks of a conventional version management tool can be compensated, the phenomenon that an error art resource file is submitted to the server to pollute the server, the phenomenon that other functional personnel of a project are hindered from normally developing a game can be avoided, and the agile development efficiency can be improved.

In order to make the technical solutions of the present application more clearly understood by those skilled in the art, the following will exemplarily describe the embodiments of the present application with reference to fig. 2.

In this example, the method may be performed by an apparatus for inspecting an art resource file, which may be implemented in software and/or hardware, and which may be installed in an art editor in the form of a plug-in.

Step 201, after the art editor is started, the inspection device of the art resource file is loaded.

When a user (art developer) makes a art resource file, the art editor needs to be opened, and after the art editor is opened, the art resource file is automatically loaded.

In step 202, the inspection apparatus for art resource files detects configuration information.

After the inspection device for the art resource files is loaded, whether corresponding configuration information exists is automatically detected, if not, a user is prompted to set the configuration information, and the configuration information can comprise a user account number, a local directory where the local art resource files are located and a server directory where the server art resource files corresponding to the local art resource files are located. After the user completes the setting of the configuration information, the configuration information set by the user can be verified, and the verification process can include verifying whether the local directory and the server directory are legal or not.

And if the corresponding configuration information exists and/or the user successfully completes the setting of the configuration information, initializing by using the configured information.

In step 203, the art resource file inspection device detects whether the local resource file is consistent with the version number of the corresponding server resource file according to the configuration information.

The inspection device of the art resource file is automatically connected with the server, and registers and synchronizes the information of the user to the server according to the information which can represent the unique user such as the user account number in the configuration information; and simultaneously, respectively acquiring the local version number of the local resource file and the warehouse version number of the server resource file according to the local directory and the server directory in the configuration information, and judging whether the local version number and the warehouse version number are consistent. The local resource file and the server resource file correspond to the same art resource.

And step 204, if the two are not consistent, prompting the user to update.

And when the local version number is not consistent with the warehouse version number, the local resource file is not the latest version, an updating page is displayed in the screen, and the updating page comprises an updating control to prompt a user to update the local resource file and the local version number.

Before the user clicks the update control, the update page does not disappear, namely the update page is consistently displayed on the uppermost layer of the screen before the update page receives the operation of clicking the update control by the user, and the user is prevented from executing editing operation on the local resource file.

In step 205, the art resource file inspection device receives an operation of clicking the update control by the user, and visually displays the local resource file, the server resource file, and the original resource file corresponding to the local resource file.

Since the art resource files are non-text files, it is difficult to directly view differences between the resource files. The local resource files, the server resource files and the original resource files are visually displayed through a visualization tool, so that a user can quickly and intuitively determine the difference among the resource files, and the optimal resource file is selected to update the local resource files.

When the user selects the server resource file, the server resource file is used for covering the local resource file, and the coverage range comprises the content of the local resource file modified by the user.

When the user selects the local resource file, the updated content of the server resource file is ignored, i.e., the server resource file is overwritten when the local resource file is submitted to the server.

When the user selects the original resource file, the original resource file is used for covering the local resource file, the coverage range comprises the content of the local resource file modified by the user, and meanwhile, the updated content of the server resource file is ignored.

Generally, in order to avoid the wrong resource file selection caused by the user misoperation, when the user selects the target resource file, a confirmation box can be displayed, and information about the influence of the target resource file selected by the user can be displayed in the confirmation box, so that the influence of the operation can be clarified by the user.

And step 206, receiving editing operation aiming at the local resource file under the condition that the local version number is consistent with the warehouse version number, synchronizing the occupation information of the edited local resource file to the server, and receiving feedback information of the server, wherein the feedback information comprises the occupation information of other users corresponding to the edited local resource file.

Under the condition that the local version number is consistent with the warehouse version number, a user can edit the local resource file; for convenience of distinguishing, the local resource file edited by the user is recorded as a target local resource file, and a server resource file in the server corresponding to the target local resource file is recorded as a target server resource file. The inspection device for the art resource files can send first feedback information to the server at regular time, and the first feedback information is used for representing that the target local resource files are occupied by the user. For the server, the server can receive feedback information sent by the inspection devices of the art resource files installed in different art editors, so that the server can determine which users are editing the local resource files corresponding to the target server resource file currently, that is, which users occupy the local resource files corresponding to the target server resource file, and send the user information of the local resource files occupying the target server resource file to the inspection devices of the art resource files corresponding to the users occupying the local resource files corresponding to the target server resource file respectively, so that when each user edits the local resource files, the server can know which users are also editing the local resource files corresponding to the same server resource file currently. Therefore, a plurality of users who process the same art resource at the same time can effectively communicate, and whether the users edit the same art resource first or later can reduce the resource file conflict.

And step 207, the art resource file inspection device receives the operation of clicking the submission control by the user, performs corresponding preset rule inspection on the local resource file to be submitted, and submits the local resource file to be submitted which passes the inspection to the server.

After the user finishes editing the local resource file, the user can click the submission control displayed on the screen to submit the local resource file to the server.

After the user clicks the submission control, the inspection device for the art resource files can provide a submission panel, and the submission panel can display the resource files in the states of modification, deletion, addition and the like in the local directory so that the user can select the local resource files to be submitted. After the local resource file to be submitted is determined, a local preset rule check is performed, specifically including checking whether the local resource file to be submitted is compliant and whether the performance meets the requirements, for example, checking whether the picture size and the picture name meet the requirements. The local resource files passing the check can be submitted to a server; and displaying error information causing the failed inspection for the local resource files which are not passed by the inspection so that the user can modify the corresponding local resource files based on the error information, and after the modification is completed, continuing to execute the submission process of the step.

It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.

Referring to fig. 3, a block diagram of an embodiment of an apparatus for inspecting art resource files according to the present application is shown, where the apparatus may specifically include the following modules:

the first response module 301 is configured to respond to an editing operation on a graphical user interface of a terminal device for a first art resource file, and determine a target art resource corresponding to the first art resource file; the first art resource file is stored in the terminal equipment;

the version checking module 302 is configured to check whether a second version number of a second art resource file corresponding to the target art resource is consistent with a first version number of the first art resource file; the second art resource file is stored in a server;

and the update prompting module 303 is configured to display an update page on the graphical user interface if the first art resource file is inconsistent with the second art resource file, where the update page includes an update control, and the update control is used to instruct to update the first art resource file.

In an embodiment of the present application, the apparatus further includes:

and the editing and updating module is used for updating the first art resource file according to the editing operation under the condition that the first version number is consistent with the second version number.

In an embodiment of the present application, the apparatus further includes:

a second response module, configured to visually display, in response to a selection operation for the update control, the first art resource file, the second art resource file, and a base art resource file of the first art resource file that is not processed by the editing operation in the update page;

a third response module, configured to determine, in response to a selection operation for the first art resource file, the second art resource file, or the basic art resource file, an art resource file corresponding to the selection operation as a target art resource file;

and the version updating module is used for updating the first art resource file into the target art resource file and updating the first version number to be consistent with the second version number.

In an embodiment of the application, the third response module further includes:

a confirmation window display module, configured to display a confirmation window in the update page in response to a selection operation for the first artistic resource file, the second artistic resource file, or the basic artistic resource file, where the confirmation window includes a confirmation control and prompt information; the prompt information is used for indicating an influence result of determining the art resource file corresponding to the selection operation as a target resource file;

and the secondary confirmation module is used for responding to the selection operation aiming at the determination control and determining the art resource file corresponding to the selection operation as a target resource file.

In an embodiment of the present application, the apparatus further includes:

the information sending module is used for sending first feedback information to a server, wherein the first feedback information comprises information of the first art resource file and information of a user corresponding to the terminal equipment.

In an embodiment of the present application, the apparatus further includes:

the information receiving module is used for receiving second feedback information sent by the server, wherein the second feedback information comprises information of other users who execute editing operation aiming at the art resource file corresponding to the target art resource;

and the information display module is used for displaying the second feedback information in the graphical user interface.

In an embodiment of the present application, the apparatus further includes:

the first inspection module is used for responding to selection operation of a submission control in the graphical user interface and performing preset rule inspection on the first art resource file to obtain a corresponding inspection result;

and the first submission module is used for sending the first art resource file to a server to cover a second art resource file in the server if the check result is that the first art resource file passes.

In an embodiment of the present application, the apparatus further includes:

a submit page display module, configured to display a submit page on the graphical user interface in response to a selection operation for a submit control in the graphical user interface; the submission page comprises a plurality of art resource files stored by the terminal equipment;

the second inspection module is used for responding to selection operation of one or more art resource files in the plurality of art resource files, determining the art resource file corresponding to the selection operation as an art resource file to be submitted, and performing corresponding preset rule inspection on the art resource file to be submitted to obtain a corresponding inspection result;

and the second submission module is used for sending the inspection result to a server through the corresponding art resource file to be submitted so as to cover the art resource file corresponding to the same art resource in the server and the art resource file to be submitted.

For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.

The embodiment of the application also discloses electronic equipment, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the method for checking the art resource file are realized.

The embodiment of the application also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the method for inspecting the art resource file are realized.

The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.

As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.

The method and the device for inspecting art resource files, the electronic device and the storage medium provided by the application are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for a person 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.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:实景娱乐服务器管理系统

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类