CN110674090A - Resource file processing method and device - Google Patents

Resource file processing method and device Download PDF

Info

Publication number
CN110674090A
CN110674090A CN201910854390.1A CN201910854390A CN110674090A CN 110674090 A CN110674090 A CN 110674090A CN 201910854390 A CN201910854390 A CN 201910854390A CN 110674090 A CN110674090 A CN 110674090A
Authority
CN
China
Prior art keywords
map
resource
preset
resource file
format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910854390.1A
Other languages
Chinese (zh)
Inventor
王欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201910854390.1A priority Critical patent/CN110674090A/en
Publication of CN110674090A publication Critical patent/CN110674090A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Abstract

The embodiment of the invention provides a resource file processing method and device, wherein a resource file to be processed is obtained, a reference position for referring to a resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced are determined through a preset application programming interface, the resource to be replaced comprises material resources and/or topographic resources, the first map is in a first preset format, a second map in a second preset format corresponding to the first map is loaded at the reference position to replace the first map, and a target resource file is obtained, wherein the second preset format is different from the first preset format. Based on the processing, the conversion efficiency of the resource file can be improved.

Description

Resource file processing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a resource file processing method and device.
Background
With the rapid development of computer technology, technicians can generate objects in scenes displayed in applications, such as trees, roads, buildings, and the like in street scenes, through a map (Texture).
When a scene needs to be displayed, the application program can load the resource file of the scene. The resource file of the scene may generally include material resources that can embody color, texture, smoothness, transmittance, etc. of the surface of the object, and each material resource may include a plurality of maps. In addition, if the ground exists in the scene, the resource file may further include a terrain (Terrian) resource, the terrain resource may represent a state of ground elevation, and each terrain resource may also include a plurality of maps.
The map in the resource file of the scene is usually in a TGA (Targa, talgara) format, and since the storage space occupied by the TGA-format map is large, the TGA-format map can be converted into a format such as a PNG (Portable Network Graphics) format, which occupies a small storage space, in order to reduce the storage space occupied by the resource file. In one mode, a technician may replace the TGA-formatted maps included in the material resources and/or the terrain resources referred to in the resource file with the corresponding PNG-formatted maps one by one, however, if the scene is complicated, the number of the maps in the resource file of the scene is large, the operation of the technician is cumbersome, and the conversion efficiency of the resource file is reduced.
Disclosure of Invention
The embodiment of the invention aims to provide a resource file processing method and a resource file processing device so as to improve the conversion efficiency of resource files. The specific technical scheme is as follows:
in a first aspect, to achieve the above object, an embodiment of the present invention discloses a resource file processing method, where the method includes:
acquiring a resource file to be processed;
determining a reference position of a resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced through a preset application programming interface, wherein the resource to be replaced comprises a material resource and/or a terrain resource, and the first map is in a first preset format;
and loading a second map in a second preset format corresponding to the first map at the reference position to replace the first map to obtain a target resource file, wherein the second preset format is different from the first preset format.
Optionally, the number of the first maps is multiple;
before loading a second map in a second preset format corresponding to the first map at the reference position, the method further includes:
determining a first directory structure of each first map in a preset map folder, wherein the first directory structure is used for representing the storage position of each first map in the preset map folder;
and generating a target map folder in which second maps corresponding to the first maps are stored, wherein a second directory structure of each second map in the target map folder is consistent with the first directory structure.
Optionally, after loading a second map in a second preset format corresponding to the first map at the reference position, the method further includes:
and deleting the preset mapping folder, and loading the target resource file.
Optionally, the first preset format is a talgartga format, and the second preset format is a portable network graphics PNG format.
In a second aspect, to achieve the above object, an embodiment of the present invention discloses a resource file processing apparatus, where the apparatus includes:
the acquisition module is used for acquiring the resource file to be processed;
the determining module is used for determining a reference position for referring to a resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced through a preset application programming interface, wherein the resource to be replaced comprises a material resource and/or a terrain resource, and the first map is in a first preset format;
and the loading module is used for loading a second map in a second preset format corresponding to the first map at the reference position to replace the first map so as to obtain a target resource file, wherein the second preset format is different from the first preset format.
Optionally, the number of the first maps is multiple;
the device further comprises:
the processing module is used for determining a first directory structure of each first map in a preset map folder, wherein the first directory structure is used for representing the storage position of each first map in the preset map folder;
and generating a target map folder in which second maps corresponding to the first maps are stored, wherein a second directory structure of each second map in the target map folder is consistent with the first directory structure.
Optionally, the apparatus further comprises:
and the deleting module is used for deleting the preset mapping folder and loading the target resource file.
Optionally, the first preset format is a talgartga format, and the second preset format is a portable network graphics PNG format.
In another aspect of the present invention, to achieve the above object, an embodiment of the present invention further discloses an electronic device, where the electronic device includes:
a memory for storing a computer program;
a processor, configured to implement the resource file processing method according to the first aspect when executing the program stored in the memory.
In another aspect of the present invention, there is also provided a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium runs on a computer, the resource file processing method according to the first aspect is implemented.
In another aspect of the present invention, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the resource file processing method according to the first aspect.
The resource file processing method provided by the embodiment of the invention comprises the steps of obtaining a resource file to be processed, determining a reference position for referring to a resource to be replaced in the resource file to be processed and a first map included in the resource to be replaced through a preset application programming interface, wherein the resource to be replaced comprises a material resource and/or a topographic resource, the first map is in a first preset format, loading a second map in a second preset format corresponding to the first map at the reference position to replace the first map, and obtaining a target resource file, wherein the second preset format is different from the first preset format.
Based on the resource file processing method provided by the embodiment of the invention, the first map in the first preset format in the resource file to be processed can be automatically replaced by the corresponding second map in the second preset format, and compared with the prior art that technical personnel are required to replace the first maps in the resource file to be processed one by one, the resource file processing method can improve the conversion efficiency of the resource file.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a resource file processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of an example of a resource file processing method according to an embodiment of the present invention;
FIG. 3 is a block diagram of a resource file processing apparatus according to an embodiment of the present invention;
fig. 4 is a structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
In the prior art, if a scene is complex, the number of maps in the resource file of the scene is large, and if the format of the maps in the resource file needs to be modified, technicians need to replace the maps quoted in the resource file one by one, which is tedious to operate and can reduce the conversion efficiency of the resource file.
In order to solve the above problem, an embodiment of the present invention provides a resource file processing method, which may be applied to an electronic device, and the electronic device may edit a resource file of a scene.
The electronic equipment can obtain a resource file to be processed, and determine a reference position for referring to a resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced through a preset application programming interface, wherein the resource to be replaced comprises a material resource and/or a topographic resource, the first map is in a first preset format, then the electronic equipment can load a second map in a second preset format corresponding to the first map at the reference position to replace the first map, so that a target resource file is obtained, and the second preset format is different from the first preset format.
Based on the resource file processing method provided by the embodiment of the invention, the first map in the first preset format in the resource file to be processed can be automatically replaced by the corresponding second map in the second preset format, and compared with the prior art that technical personnel are required to replace the first maps in the resource file to be processed one by one, the resource file processing method can improve the conversion efficiency of the resource file.
The present invention will be described in detail with reference to specific examples.
Referring to fig. 1, fig. 1 is a flowchart of a resource file processing method provided in an embodiment of the present invention, where the method may be applied to an electronic device, and the method may include the following steps:
s101: and acquiring a resource file to be processed.
The resource file to be processed may be a resource file of a scene, and in actual operation, the resource file of the scene may also be referred to as an engineering file of the scene.
For example, the resource file to be processed may be a resource file of a game scene. The resource file to be processed can refer to material resources and can also refer to terrain resources, the material resources and the terrain resources can contain maps with different formats, and the maps can represent objects needing to be displayed in the scene.
In the embodiment of the present invention, in order to reduce the storage space occupied by the resource file to be processed, a technician often needs to replace a map included in a material resource and/or a terrain resource referred in the resource file to be processed, at this time, the technician may input the resource file to be processed to the electronic device, and accordingly, the electronic device may obtain the resource file to be processed.
S102: and determining a reference position for referring to the resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced through a preset application programming interface.
The resource to be replaced may include a material resource and/or a terrain resource, and the first map is in a first preset format.
In the embodiment of the present invention, after acquiring the resource file to be processed, the electronic device may analyze the resource file to be processed, and determine a resource to be replaced (i.e., a resource to be replaced in the embodiment of the present application) in the resource file to be processed according to an instruction of a technician.
In an implementation manner, if a technician only needs to replace a material resource in a resource file to be processed, an electronic device may determine, through an Application Programming Interface (API) corresponding to the material resource, the material resource referred to in the resource file to be processed, and further, the electronic device may also determine a reference position of the material resource and a map (i.e., a first map in an embodiment of the present Application) included in the material resource, where the determined material resource may be multiple, and a map included in one material resource may also be multiple.
In addition, if the technician only needs to replace the terrain resource in the resource file to be processed, the electronic device may determine, through the application programming interface corresponding to the terrain resource, the terrain resource referenced in the resource file to be processed, and further, the electronic device may also determine a reference position of the terrain resource and a first map included in the terrain resource, where the determined material resource may be multiple, and the map included in one terrain resource may also be multiple.
In addition, if the technician needs to replace the material resource and the terrain resource in the resource file to be processed, the electronic device may determine the material resource and the terrain resource referred in the resource file to be processed through the application programming interfaces corresponding to the material resource and the terrain resource, and further, the electronic device may also determine the respective reference positions of the material resource and the terrain resource, and the first maps included in each material resource and each terrain resource.
S103: and loading a second map in a second preset format corresponding to the first map at the reference position to replace the first map so as to obtain the target resource file.
The second preset format is different from the first preset format. For example, the first preset format may be a TGA format, and the second preset format may be a PNG (Portable Network Graphics) format.
In the embodiment of the present invention, after determining the reference position of the resource to be replaced in the resource file to be processed and the first map included in the resource to be replaced, the electronic device may load the second map at the reference position of the first map, and further, the second map may replace the original first map to obtain a new resource file (i.e., the target resource file in the embodiment of the present application).
Therefore, based on the resource file processing method provided by the embodiment of the invention, the first map in the first preset format in the resource file to be processed can be automatically replaced by the corresponding second map in the second preset format, and compared with the prior art, technicians are required to replace the first maps in the resource file to be processed one by one, so that the conversion efficiency of the resource file can be improved.
Alternatively, if the first preset format is a TGA format, the second preset format may be a PNG format.
It can be understood that, for the same map, the storage space occupied by the TGA format is much larger than that occupied by the PNG format, for example, the storage space occupied by the TGA format of 1.5G is about 500MB after the TGA format map is converted into the PNG format, so that if the TGA format map in the resource file to be processed is replaced by the PNG format map, the storage space occupied by the resource file to be processed can be reduced to a great extent, the maintenance efficiency of the resource file to be processed is improved, the bandwidth resource occupied by transmitting the resource file to be processed is saved, and the efficiency of transmitting the resource file to be processed is improved.
Optionally, to avoid data loss, if the first map is multiple, before S103, the method may further include the following steps:
step 1, determining a first directory structure of each first map in a preset map folder.
The first directory structure is used for representing the storage position of each first map in the preset map folder.
In the embodiment of the present invention, the electronic device may locally store a preset map folder, where the preset map folder is used to store each first map referenced in the resource file to be processed.
For example, a preset map folder may be represented by textores, and there may be a multi-level directory in the preset map folder, and each first map may be stored in a different directory according to a difference of a reference position of the first map in the resource file to be processed.
And step 2, generating a target map folder in which second maps corresponding to the first maps are stored.
And the second directory structure of each second map in the target map folder is consistent with the first directory structure.
In the embodiment of the present invention, the electronic device may invoke a format conversion application program, convert the first maps stored in the preset map folder into the second maps in the second preset format, and store the second maps in a new folder (i.e., a target map folder in the embodiment of the present application) according to the first directory structure.
In one implementation, each first map and the corresponding second map are named the same and have different suffixes used to represent the map format. Furthermore, for each first map, the electronic device may determine, from the target map folder, a map having the same name as the first map (i.e., a second map corresponding to the first map), and then, the electronic device may load, at a reference position of the first map, the determined second map corresponding to the first map to replace the first map.
For example, if the second preset format is the PNG format, the target map folder may be represented by Texture _ PNG.
Optionally, the method may further include the steps of: and deleting the preset mapping folder, and loading the target resource file.
In the embodiment of the invention, after the electronic device loads the second map corresponding to each first map, the preset map folder can be deleted, and the target resource file is loaded, so that a technician can view the effect of loading the target resource file to determine whether the conversion of the resource file to be processed is successful.
Referring to fig. 2, fig. 2 is a flowchart of an example of a resource file processing method according to an embodiment of the present invention, where the method may include the following steps:
s201: and acquiring a resource file to be processed.
S202: and determining a reference position for referring to the resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced through a preset application programming interface.
The resource to be replaced comprises a material resource and/or a terrain resource, and the first map is in a TGA format.
S203: and determining a first directory structure of each first map in the preset map folder.
The first directory structure is used for representing the storage position of each first map in the preset map folder.
S204: and generating a target map folder in which second maps corresponding to the first maps are stored.
And the second directory structure of each second map in the target map folder is consistent with the first directory structure, and the second preset format is a PNG format.
S205: and for each first map, loading a second map corresponding to the first map at the reference position of the first map to replace the first map so as to obtain the target resource file.
S206: and deleting the preset mapping folder, and loading the target resource file.
Corresponding to the embodiment of the method in fig. 1, referring to fig. 3, fig. 3 is a structural diagram of a resource file processing apparatus according to an embodiment of the present invention, where the apparatus includes:
an obtaining module 301, configured to obtain a resource file to be processed;
a determining module 302, configured to determine, through a preset application programming interface, a reference position in the resource file to be processed, where the reference position refers to a resource to be replaced, and a first map included in the resource to be replaced, where the resource to be replaced includes a material resource and/or a terrain resource, and the first map is in a first preset format;
a loading module 303, configured to load a second map in a second preset format corresponding to the first map at the reference position to replace the first map, so as to obtain a target resource file, where the second preset format is different from the first preset format.
Optionally, the number of the first maps is multiple;
the device further comprises:
the processing module is used for determining a first directory structure of each first map in a preset map folder, wherein the first directory structure is used for representing the storage position of each first map in the preset map folder;
and generating a target map folder in which second maps corresponding to the first maps are stored, wherein a second directory structure of each second map in the target map folder is consistent with the first directory structure.
Optionally, the apparatus further comprises:
and the deleting module is used for deleting the preset mapping folder and loading the target resource file.
Optionally, the first preset format is a talgartga format, and the second preset format is a portable network graphics PNG format.
Based on the resource file processing device provided by the embodiment of the invention, the first map in the first preset format in the resource file to be processed can be automatically replaced by the second map in the corresponding second preset format, and compared with the prior art that technical personnel are required to replace the first maps in the resource file to be processed one by one, the resource file processing device can improve the conversion efficiency of the resource file.
Referring to fig. 4, fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention, including a memory 401 and a processor 402, wherein,
a memory 401 for storing a computer program;
the processor 402, when executing the program stored in the memory 401, implements the following steps:
acquiring a resource file to be processed;
determining a reference position of a resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced through a preset application programming interface, wherein the resource to be replaced comprises a material resource and/or a terrain resource, and the first map is in a first preset format;
and loading a second map in a second preset format corresponding to the first map at the reference position to replace the first map to obtain a target resource file, wherein the second preset format is different from the first preset format.
For specific implementation and related explanation of each step of the method, reference may be made to the foregoing method embodiment, which is not described herein again.
The electronic device may be provided with a communication interface for realizing communication between the electronic device and another device.
The processor, the communication interface, and the memory are configured to communicate with each other via a communication bus, where the communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
The embodiment of the invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the computer-readable storage medium runs on a computer, the computer is enabled to execute the resource file processing method provided by the embodiment of the invention.
Specifically, the resource file processing method includes:
acquiring a resource file to be processed;
determining a reference position of a resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced through a preset application programming interface, wherein the resource to be replaced comprises a material resource and/or a terrain resource, and the first map is in a first preset format;
and loading a second map in a second preset format corresponding to the first map at the reference position to replace the first map to obtain a target resource file, wherein the second preset format is different from the first preset format.
It should be noted that other implementation manners of the resource file processing method are the same as those of the foregoing method embodiment, and are not described herein again.
The embodiment of the invention also provides a computer program product containing instructions, which when running on a computer, enables the computer to execute the resource file processing method provided by the embodiment of the invention.
Specifically, the resource file processing method includes:
acquiring a resource file to be processed;
determining a reference position of a resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced through a preset application programming interface, wherein the resource to be replaced comprises a material resource and/or a terrain resource, and the first map is in a first preset format;
and loading a second map in a second preset format corresponding to the first map at the reference position to replace the first map to obtain a target resource file, wherein the second preset format is different from the first preset format.
It should be noted that other implementation manners of the resource file processing method are the same as those of the foregoing method embodiment, and are not described herein again.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described above in accordance with the embodiments of the invention may be generated, in whole or in part, when the computer program instructions described above are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is 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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A resource file processing method, characterized in that the method comprises:
acquiring a resource file to be processed;
determining a reference position of a resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced through a preset application programming interface, wherein the resource to be replaced comprises a material resource and/or a terrain resource, and the first map is in a first preset format;
and loading a second map in a second preset format corresponding to the first map at the reference position to replace the first map to obtain a target resource file, wherein the second preset format is different from the first preset format.
2. The method of claim 1, wherein the first map is plural;
before loading a second map in a second preset format corresponding to the first map at the reference position, the method further includes:
determining a first directory structure of each first map in a preset map folder, wherein the first directory structure is used for representing the storage position of each first map in the preset map folder;
and generating a target map folder in which second maps corresponding to the first maps are stored, wherein a second directory structure of each second map in the target map folder is consistent with the first directory structure.
3. The method of claim 2, wherein after loading the second map in the second preset format corresponding to the first map at the reference location, the method further comprises:
and deleting the preset mapping folder, and loading the target resource file.
4. The method as recited in claim 1 wherein said first predetermined format is a talgartga format and said second predetermined format is a portable network graphics, PNG, format.
5. An apparatus for processing resource files, the apparatus comprising:
the acquisition module is used for acquiring the resource file to be processed;
the determining module is used for determining a reference position for referring to a resource to be replaced in the resource file to be processed and a first map contained in the resource to be replaced through a preset application programming interface, wherein the resource to be replaced comprises a material resource and/or a terrain resource, and the first map is in a first preset format;
and the loading module is used for loading a second map in a second preset format corresponding to the first map at the reference position to replace the first map so as to obtain a target resource file, wherein the second preset format is different from the first preset format.
6. The apparatus of claim 5, wherein the first map is plural;
the device further comprises:
the processing module is used for determining a first directory structure of each first map in a preset map folder, wherein the first directory structure is used for representing the storage position of each first map in the preset map folder;
and generating a target map folder in which second maps corresponding to the first maps are stored, wherein a second directory structure of each second map in the target map folder is consistent with the first directory structure.
7. The apparatus of claim 5, further comprising:
and the deleting module is used for deleting the preset mapping folder and loading the target resource file.
8. The apparatus as recited in claim 5 wherein said first predetermined format is a tall plus TGA format and said second predetermined format is a portable network graphics, PNG, format.
9. An electronic device comprising a memory and a processor, wherein,
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-4.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN201910854390.1A 2019-09-10 2019-09-10 Resource file processing method and device Pending CN110674090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910854390.1A CN110674090A (en) 2019-09-10 2019-09-10 Resource file processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910854390.1A CN110674090A (en) 2019-09-10 2019-09-10 Resource file processing method and device

Publications (1)

Publication Number Publication Date
CN110674090A true CN110674090A (en) 2020-01-10

Family

ID=69077190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910854390.1A Pending CN110674090A (en) 2019-09-10 2019-09-10 Resource file processing method and device

Country Status (1)

Country Link
CN (1) CN110674090A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254183A (en) * 2021-06-09 2021-08-13 北京字节跳动网络技术有限公司 Resource processing method and device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108537861A (en) * 2018-04-09 2018-09-14 网易(杭州)网络有限公司 Textures generation method, device, equipment and storage medium
CN109189524A (en) * 2018-08-09 2019-01-11 北京金山安全软件有限公司 Image resource generation method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108537861A (en) * 2018-04-09 2018-09-14 网易(杭州)网络有限公司 Textures generation method, device, equipment and storage medium
CN109189524A (en) * 2018-08-09 2019-01-11 北京金山安全软件有限公司 Image resource generation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CGJOY_WANDO: ""关于3dsmax script批量换贴图"", 《WWW.CGJOY.COM》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254183A (en) * 2021-06-09 2021-08-13 北京字节跳动网络技术有限公司 Resource processing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US9720614B2 (en) Allocating storage for cloned data
CN105867947A (en) Data processing method and device after upgrades of preset applications
US9652220B2 (en) Zero down-time deployment of new application versions
US20190018974A1 (en) Method and system for wirelessly connecting devices
CN104461504A (en) Managing method of terminal application program
CN109656889B (en) File system implementation method, device, equipment and storage medium based on block chain
CN107239392A (en) A kind of method of testing, device and terminal
KR102409355B1 (en) Method and apparatus for outputting information
CN111143446A (en) Data structure conversion processing method and device of data object and electronic equipment
CN107835986B (en) Data operation method of electronic equipment and electronic equipment
CN108255989B (en) Picture storage method and device, terminal equipment and computer storage medium
CN110309239B (en) Visual map editing method and device
CN114138558A (en) Object storage method and device, electronic equipment and storage medium
CN110674090A (en) Resource file processing method and device
KR102141749B1 (en) APP program execution method and device
CN109472540B (en) Service processing method and device
US9626371B2 (en) Attribute selectable file operation
CN115562686A (en) Lightweight packaging method, system, terminal and storage medium for Springboot project
CN104598554A (en) Webpage page loading method and device
CN111596997B (en) UI information request method, device, terminal and storage medium
CN113051105A (en) Data processing method, device, equipment and storage medium
CN112527276A (en) Data updating method and device in visual programming tool and terminal equipment
CN111061468A (en) Mapping method and device
CN109739812A (en) Method and device for displaying resource files
CN111625192B (en) Metadata object access method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200110