CN111782263B - Game packaging processing method and device - Google Patents

Game packaging processing method and device Download PDF

Info

Publication number
CN111782263B
CN111782263B CN202010711689.4A CN202010711689A CN111782263B CN 111782263 B CN111782263 B CN 111782263B CN 202010711689 A CN202010711689 A CN 202010711689A CN 111782263 B CN111782263 B CN 111782263B
Authority
CN
China
Prior art keywords
game
target
format file
file
target 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.)
Active
Application number
CN202010711689.4A
Other languages
Chinese (zh)
Other versions
CN111782263A (en
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010711689.4A priority Critical patent/CN111782263B/en
Publication of CN111782263A publication Critical patent/CN111782263A/en
Application granted granted Critical
Publication of CN111782263B publication Critical patent/CN111782263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a processing method and device for game packaging. The method comprises the following steps: determining the type of a resource package to be generated, wherein the type comprises a game patch type or a game whole package type; if the type is the game patch type, packaging the game resources according to a first packaging strategy to generate a first target format file, and generating a game patch package according to the first target format file; if the type is the game whole package type, packaging the game resources according to a second packaging strategy to generate a first target format file and a second target format file, and generating a game whole package according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file, and the second target format file is a set of the game resources. Through the method and the device, the problem of low efficiency of packing games in the related art is solved.

Description

Game packaging processing method and device
Technical Field
The application relates to the technical field of game development, in particular to a game packaging processing method and device.
Background
The gaming industry has developed rapidly, with the inclusion of games ranging from the first few tens of M, 100M, to the current few G. If the playing method is updated, the material is added, and if the whole package is updated, the network speed of the mobile network or the WIFI limits the speed of downloading the package, so that updating the package once can take tens of minutes and consume more traffic. The player does not accept such an update and a dynamic update, also known as a game patch update, occurs. When entering the game, the game patch is downloaded to update the game. How quickly to generate a game patch is a consideration for game developers.
In the prior art, game patches are generated in two ways.
The first way is: because the game engine limits the format of the read script and resource, the game engine reads the game resource by generating an NPK file (a packaged format containing the script or resource). At present, an npk file is generated, and a map file is also generated, wherein the map-suffixed file records information of all files, including a file hash value (hash), a file size (size) and the like. And obtaining the changed resource by comparing the previous file with the current file. Another, more general approach, derives changed resources by the SVN obtaining information between two submissions. The NPK is generated by the first mode, and can be directly used for whole package, and meanwhile, other generated files are used for comparing and obtaining required patch files. Because the NPK file must be generated to generate the patch file, when the resource amount is huge, the NPK generation is a very slow operation, often takes tens of minutes, the corresponding test time is prolonged, and the cost is high.
Aiming at the problem of lower efficiency of game packing in the related art, no effective solution is proposed at present.
Disclosure of Invention
The main purpose of the application is to provide a processing method and a processing device for game packaging, so as to solve the problem of lower efficiency of game packaging in the related technology.
To achieve the above object, according to one aspect of the present application, there is provided a processing method of game packaging. The method comprises the following steps: determining the type of a resource package to be generated, wherein the type comprises a game patch type or a game whole package type; if the type is the game patch type, packaging game resources according to a first packaging strategy to generate a first target format file, and generating a game patch package according to the first target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file; and if the type is the game whole package type, packaging the game resources according to a second packaging strategy to generate a first target format file and a second target format file, and generating a game whole package according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file, and the second target format file is a set of the game resources.
Further, the first target format file includes a file name and an ID, the method comprising, prior to generating the game patch from the first target format file; and if at least two IDs corresponding to the file names in the first target format file are the same, controlling and modifying the file names corresponding to the same IDs so as to control and generate game patches containing different IDs.
Further, the method further comprises: generating a resource package file according to the first target format file and/or the second target format file; acquiring an operating system type, and configuring compiling options according to the operating system type to obtain target compiling options; selecting engine branches and compiling parameters through a visualization tool to obtain target engines and target compiling parameters; and executing automation operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters.
Further, the automation operation includes an automation compiling operation, an automation uploading operation and an automation backup operation, and executing the automation operation on the resource package file and the target engine according to the target compiling option and the target compiling parameter includes: responding to an execution instruction triggered by an execution button in the visualization tool, and executing automatic compiling operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters to generate an installation package; performing an automated upload operation on the installation package by the visualization tool; and executing automatic backup operation on the symbol table through the visualization tool.
Further, after performing an automated compiling operation on the resource package file and the target engine according to the target compiling option, the target compiling parameter, generating an installation package, the method further comprises: performing automated reinforcement, automated signing and automated uploading operations on the installation package using the visualization tool; and carrying out automatic uploading operation on the symbol table.
Further, performing an automated upload operation on the symbol table includes: if the version number of the symbol table to be uploaded is known, inputting the version number of the symbol table to be uploaded, and automatically uploading the symbol table to be uploaded; if the version number of the symbol table to be uploaded is unknown, inputting a first query instruction to query all symbol table version numbers in a system, determining the version number of the symbol table to be uploaded from all symbol table version numbers in the system, inputting the version number of the symbol table to be uploaded, and automatically uploading the symbol table to be uploaded.
To achieve the above object, according to one aspect of the present application, there is provided a processing apparatus for game packaging, the apparatus comprising: a determining unit, configured to determine a type of a resource package to be generated, where the type includes a game patch type or a game whole package type; the first generation unit is used for packing game resources according to a first packing strategy under the condition that the type is the game patch type, generating a first target format file, and generating a game patch package according to the first target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file; and the second generating unit is used for packing the game resources according to a second packing strategy under the condition that the type is the game whole package type, generating a first target format file and a second target format file, and generating a game whole package according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file, and the second target format file is a set of the game resources.
Further, the first target format file includes a file name and an ID, and the apparatus includes, prior to generating the game patch from the first target format file; and the modifying unit is used for controlling and modifying the file names corresponding to the same ID if at least two IDs corresponding to the file names respectively exist in the first target format file so as to control and generate game patches containing different IDs.
In order to achieve the above object, according to one aspect of the present application, there is provided a nonvolatile storage medium including a stored program, wherein the program executes the processing method of game package of any one of the above.
To achieve the above object, according to one aspect of the present application, there is provided a processor for executing a program, wherein the program executes the processing method of game packaging as described in any one of the above.
Through the application, the following steps are adopted: determining the type of a resource package to be generated, wherein the type comprises a game patch type or a game whole package type; if the type is a game patch type, packaging game resources according to a first packaging strategy to generate a first target format file, and generating a game patch package according to the first target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file; if the type is the game whole package type, the game resources are packaged according to a second packaging strategy, a first target format file and a second target format file are generated, and the game whole package is generated according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file, and the second target format file is a collection of the game resources, so that the problem of lower efficiency of game packaging in the related art is solved, time consumed by game packaging is saved, and the technical effect of improving the game packaging efficiency is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
FIG. 1 is a flow chart of a method of processing game packaging provided in accordance with an embodiment of the present application;
FIG. 2 is a schematic diagram of an automated generation and processing installation package operation page provided in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of an installation package consolidation and signing operation interface provided in accordance with an embodiment of the present application;
FIG. 4 is a schematic diagram of a symbol table upload operation interface provided according to an embodiment of the present application; and
fig. 5 is a schematic diagram of a processing device for game packaging provided according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the application, a processing method of game packaging is provided.
FIG. 1 is a flow chart of a method of processing game packaging according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, determining the type of the resource package to be generated, wherein the type comprises a game patch type or a game whole package type.
Step S102, if the type is a game patch type, packaging the game resources according to a first packaging strategy to generate a first target format file, and generating a game patch package according to the first target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file.
It should be noted that, before the game resource is packaged according to the first packaging policy, the source code of the packaging tool may be modified, and the parameters of the packaging tool may be increased, so that the game resource is packaged by using the processed packaging tool to generate only the first target format file.
Step S103, if the type is a game whole package type, packaging the game resources according to a second packaging strategy to generate a first target format file and a second target format file, and generating a game whole package according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file, and the second target format file is a set of the game resources.
In the game design and development process, scenes in the game and the like are usually manufactured into special game resources, such as maps in the game, pictures in the game and the like, and corresponding game resources are loaded by reading the game resources in the game running process. Because the game engine limits the format of the read script and the resource, the game resource is packaged by a packaging tool, so that a file which can be read normally by the game engine is generated, wherein the packaging tool can be an npkpack. After the npkpack tool performs the packing process on the game resource, the npk file (corresponding to the second target format file) corresponding to the game resource, the map file (corresponding to the first target format file) corresponding to the npk file, and other files are generated. Wherein, the npk file is a format of a scattered game resource set and is used for a game engine to read the resources inside; the npk file does not contain any file name of the original resource, and only records the ID of the file so as to prevent the file from being cracked, wherein the ID of the file is a numerical value calculated by a hash algorithm of the file path and the file name; the map file contains information of all files in the npk file, including file names and IDs. The npk file cannot be directly opened and read, but the map file can be directly read, and because the IDs and the file names in the map file are in one-to-one correspondence with the IDs in the npk file, the map file can be used for inquiring which files are in the npk file.
In the embodiment of the application, when the resource package generation type is determined to be the game patch type, only the map file (corresponding to the first target format file) of the game resource is generated according to the first package policy, but not the npk file (corresponding to the second target format file) of the game resource, and the game patch package is generated according to the map file of the game resource. Because the npk file of the game resource is not required to be generated in the process of generating the game patch, the time consumed for generating the game patch package is greatly reduced, and the efficiency of generating the game patch is improved.
If the game package needs to be issued to the player or generation of res.npk is needed, then the game package is generated according to the npk file corresponding to the game resource and the map file corresponding to the npk file. It should be noted that, since the frequency of generating the whole game package is very low by adopting the method provided in the embodiment of the present application, the time consumed is not so much.
Therefore, through the steps, the problem of lower efficiency of packing games in the related art is solved, the time consumed by packing games is saved, and the technical effect of improving the packing efficiency of games is achieved.
Optionally, in the processing method of game packaging provided in the embodiment of the present application, the first target format file includes a file name and an ID, and before generating the game patch according to the first target format file, the method includes; if at least two file names respectively corresponding to the same ID exist in the first target format file, controlling and modifying the file names corresponding to the same ID so as to control and generate the game patch containing different IDs.
The map file corresponding to the game resource npk file contains all file information in the npk file, including file names and IDs, and because the IDs are numerical values calculated by a hash algorithm of file paths and file names, a certain number of files (for example, file A and file B) exist on a certain probability, the same numerical values are obtained through the algorithm, when the game takes the file A from the npk file in operation, the content is obtained according to the ID of the file A, and because the ID of the file B is equal to the ID of the file A, the content of the file B is obtained at probability, and the game can cause interface abnormality or game flash back after taking the wrong content. Therefore, before generating the game patch according to the first target format file, the map file is generated, whether the same ID exists in the map file is judged, and if the same ID exists, the conflicting file names are modified according to the ID.
Optionally, in the processing method of game package provided in the embodiment of the present application, the method further includes: generating a resource package file according to the first target format file and/or the second target format file; acquiring an operating system type, and configuring compiling options according to the operating system type to obtain target compiling options; selecting engine branches and compiling parameters through a visualization tool to obtain target engines and target compiling parameters; and executing automation operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters.
The operating system for running the game mainly comprises Windows, OSX, IOS and Android, wherein the Windows system is divided into Win32 and Win 64. The game engine needs to correspond to the operating system for running the game, and in order to enable the game to run on different operating systems, the game engine corresponding to the different operating systems respectively needs to be used in the game compiling process.
The compiling process of the game is mainly completed in a Windows system and an OSX system, and usually, the compiling process of the game which can be operated in a Win32 environment can only be operated in the Windows operating system, the compiling process of the game which can be operated in an IOS and an OSX environment can only be operated in the OSX operating system, and the compiling process of the game which can be operated in an Android environment can be operated in the Windows operating system or the OSX operating system.
In order to avoid using a Windows system and an OSX system simultaneously in the game compiling process, one of the Windows system or the OSX system is used, so that game engines capable of running in a Win32 system, an IOS system, an OSX system and an Android system can be respectively generated.
In order to realize automatic processing of complex game packaging work and avoid manual repeated input of instructions, the method and the device integrate a plurality of related processes of compiling by using a visualization tool and provide a visualized man-machine interaction interface for operation. The visualization tool may be Jenkins, as shown in fig. 2, and the engine branches and parameters related to compiling may be selected through a man-machine interaction interface provided by Jenkins, so as to obtain the target engine and the target engine parameters. For example, an execution button is arranged in a man-machine interaction interface provided by Jenkins, after an engine branch and parameters related to compiling are selected to obtain a target engine and target engine parameters, an execution instruction is triggered by clicking the execution button, and a Jenkins tool responds to the trigger instruction to execute automatic operation on a resource package file and the target engine.
Optionally, in the processing method for game package provided in the embodiment of the present application, the automation operation includes an automation compiling operation, an automation uploading operation and an automation backup operation, and executing the automation operation on the resource package file and the target engine according to the target compiling option and the target compiling parameter includes: responding to an execution instruction triggered by an execution button in the visualization tool, and executing automatic compiling operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters to generate an installation package; performing an automated upload operation on the installation package by the visualization tool; an automated backup operation is performed on the symbol table by the visualization tool.
In the game testing and online process, including steps of generating an installation package, uploading the installation package, backing up a symbol table and the like, usually, the operations are executed by inputting complex instructions by technicians, and the process consumes labor and increases the time cost of game development. In order to realize the automatic execution of the steps of generating an installation package, uploading the installation package and backing up a symbol table, the integrated processing is carried out on the steps by using a visualization tool, wherein the visualization tool can be Jenkins, the Jenkins provides a man-machine interaction interface after the integrated processing, through the interface, a user can select engine branch parameters, parameters related to the steps of generating the installation package, uploading the installation package and backing up the symbol table can be selected, and an execution button in the man-machine interaction interface is clicked, and an integrated Jenkins system responds to an execution instruction triggered by the execution button to execute automatic compiling operation according to a set parameter resource package file and a target engine so as to generate the installation package; and executing automatic uploading operation on the generated installation package and executing automatic backup operation on the symbol table.
Optionally, in the processing method for game package provided in the embodiment of the present application, after performing an automated compiling operation on a resource package file and a target engine according to a target compiling option and a target compiling parameter, generating an installation package, the method further includes: performing automated reinforcement, automated signing, and automated upload operations on the installation package using the visualization tool; and carrying out automatic uploading operation on the symbol table.
In the issuing link of the game, reinforcement, signature and uploading are needed to be carried out on the game installation package, the reinforcement, signature and uploading processes of the installation package are integrated by using the visualization tool to replace the process of executing the steps through complex commands in the prior art, automatic processing on the reinforcement, signature and uploading processes of the installation package is achieved, the visualization tool can be Jenkins, and a Jenkins man-machine interaction interface after the integration processing can be shown in figure 3.
Optionally, in the processing method for game packaging provided in the embodiment of the present application, performing an automatic uploading operation on the symbol table includes: if the version number of the symbol table to be uploaded is known, inputting the version number of the symbol table to be uploaded, and automatically uploading the symbol table to be uploaded; if the version number of the symbol table to be uploaded is unknown, inputting a first query instruction to query all the symbol table version numbers in the system, determining the version number of the symbol table to be uploaded from all the symbol table version numbers in the system, inputting the version number of the symbol table to be uploaded, and automatically uploading the symbol table to be uploaded.
Because games are typically flash backed, it is necessary to upload symbol tables to the platform where the data is collected in order to track the flash backs and analyze where the flash backs are. In general, in three game-operating platforms (Win 32, android, IOS), symbol tables are located in different paths, parameters are different, symbol table versions are numerous, and operations of manually querying symbol table versions and uploading symbol tables are very troublesome and time-consuming. The method and the device realize automatic operation of symbol table version number inquiry and symbol table uploading, under the condition that the version is not known, the symbol table can be automatically uploaded by inputting a first inquiry instruction (for example '0.0.0') for inquiry, and inputting the version number (for example '1.1.20') of the symbol table to be uploaded again after finding the corresponding version number of the symbol table to be uploaded. The operator interface for automated lookup of symbol table version numbers and upload of symbol tables may be as shown in fig. 4.
In summary, in the processing method of game package provided in the embodiment of the present application, the type of the resource package to be generated is determined, where the type includes a game patch type or a game whole package type; if the type is a game patch type, packaging game resources according to a first packaging strategy to generate a first target format file, and generating a game patch package according to the first target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file; if the type is the game whole package type, the game resources are packaged according to a second packaging strategy, a first target format file and a second target format file are generated, and the game whole package is generated according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file, and the second target format file is a collection of the game resources, so that the problem of lower efficiency of game packaging in the related art is solved, time consumed by game packaging is saved, and the technical effect of improving the game packaging efficiency is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a processing device for game packaging, and the processing device for game packaging can be used for executing the processing method for game packaging. The following describes a processing device for game packaging provided in an embodiment of the present application.
Fig. 5 is a schematic diagram of a processing device for game packaging according to an embodiment of the present application. As shown in fig. 5, the apparatus includes: a determining unit 501, a first generating unit 502 and a second generating unit 503.
Specifically, the determining unit 501 is configured to determine a type of a resource package to be generated, where the type includes a game patch type or a game whole package type;
a first generating unit 502, configured to, in a case where the type is a game patch type, package game resources according to a first packaging policy, and generate a first target format file, where the first target format file is used to record information of all game resources in the first target format file; generating a game patch package according to the first target format file;
and a second generating unit 503, configured to, in the case that the type is a game whole package type, package the game resources according to a second packaging policy, generate a first target format file and a second target format file, and generate a game whole package according to the first target format file and the second target format file, where the first target format file is used to record information of all the game resources in the first target format file, and the second target format file is a collection of the game resources.
In summary, in the processing device for game package provided in the embodiment of the present application, the determining unit 501 determines the type of the resource package to be generated, where the type includes the type of the game patch or the type of the entire package of the game; the first generating unit 502 packages game resources according to a first packaging policy under the condition that the type is a game patch type, and generates a first target format file, wherein the first target format file is used for recording information of all game resources in the first target format file; generating a game patch package according to the first target format file; the second generating unit 503 packages the game resources according to a second packaging policy under the condition that the type is the game whole package type, generates a first target format file and a second target format file, and generates a game whole package according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file, and the second target format file is a set of the game resources; the problem of lower efficiency to the game packing in the correlation technique is solved, the time that the game packing consumed is saved, and the technical effect of improving the game packing efficiency is achieved.
Optionally, in the processing device for game packaging provided in the embodiment of the present application, the first target format file includes a file name and an ID, and before generating the game patch according to the first target format file, the device includes; and the modifying unit is used for controlling and modifying the file names corresponding to the same ID if at least two file names respectively corresponding to the same ID exist in the first target format file so as to control and generate the game patch containing different IDs.
Optionally, in the processing device for game packaging provided in the embodiment of the present application, the device further includes: the third generating unit is used for generating a resource package file according to the first target format file and/or the second target format file; the first acquisition unit is used for acquiring the type of the operating system, configuring the compiling options according to the type of the operating system and obtaining target compiling options; the second acquisition unit is used for selecting engine branches and compiling parameters through the visualization tool to obtain target engines and target compiling parameters; and the first execution unit is used for executing automation operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters.
Optionally, in the processing device for game packaging provided in the embodiment of the present application, the automation operation includes an automation compiling operation, an automation uploading operation, and an automation backup operation, and the first execution unit includes: the response module is used for responding to an execution instruction triggered by an execution button in the visualization tool, executing automatic compiling operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters, and generating an installation package; the first execution module is used for executing automatic uploading operation on the installation package through the visualization tool; and the second execution module is used for executing automatic backup operation on the symbol table through the visualization tool.
Optionally, in the processing device for game packaging provided in the embodiment of the present application, the device further includes: the second execution unit is used for executing automatic compiling operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters, and executing automatic reinforcement, automatic signature and automatic uploading operation on the installation package by using the visualization tool after generating the installation package; and the second uploading unit is used for carrying out automatic uploading operation on the symbol table.
Optionally, in the processing device for game packaging provided in the embodiment of the present application, the second uploading unit includes: the first input module is used for inputting the version number of the symbol table to be uploaded under the condition that the version number of the symbol table to be uploaded is known, and automatically uploading the symbol table to be uploaded; the second input module is used for inputting the first query instruction to query all the symbol table version numbers in the system under the condition that the version numbers of the symbol tables to be uploaded are unknown, determining the version numbers of the symbol tables to be uploaded from all the symbol table version numbers in the system, inputting the version numbers of the symbol tables to be uploaded, and automatically uploading the symbol tables to be uploaded.
The processing device for game package includes a processor and a memory, the determining unit 501, the first generating unit 502, the second generating unit 503, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The inner core can be provided with one or more than one, the problem of lower efficiency of game packing in the related art is solved by adjusting the inner core parameters, the time consumed by game packing is saved, and the technical effect of improving the game packing efficiency is achieved.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a nonvolatile storage medium, and a program is stored on the nonvolatile storage medium, and the program is executed by a processor to realize the processing method of game packaging.
The embodiment of the invention provides a processor which is used for running a program, wherein the processing method of game packaging is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes the following steps when executing the program: determining the type of a resource package to be generated, wherein the type comprises a game patch type or a game whole package type; if the type is the game patch type, packaging game resources according to a first packaging strategy to generate a first target format file, and generating a game patch package according to the first target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file; and if the type is the game whole package type, packaging the game resources according to a second packaging strategy to generate a first target format file and a second target format file, and generating a game whole package according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file, and the second target format file is a set of the game resources.
The processor also realizes the following steps when executing the program: the first target format file including a file name and an ID, the method comprising, prior to generating the game patch from the first target format file; and if at least two IDs corresponding to the file names in the first target format file are the same, controlling and modifying the file names corresponding to the same IDs so as to control and generate game patches containing different IDs.
The processor also realizes the following steps when executing the program: the method further comprises the steps of: generating a resource package file according to the first target format file and/or the second target format file; acquiring an operating system type, and configuring compiling options according to the operating system type to obtain target compiling options; selecting engine branches and compiling parameters through a visualization tool to obtain target engines and target compiling parameters; and executing automation operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters.
The processor also realizes the following steps when executing the program: the automation operation comprises an automation compiling operation, an automation uploading operation and an automation backup operation, and the executing the automation operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters comprises the following steps: responding to an execution instruction triggered by an execution button in the visualization tool, and executing automatic compiling operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters to generate an installation package; performing an automated upload operation on the installation package by the visualization tool; and executing automatic backup operation on the symbol table through the visualization tool.
The processor also realizes the following steps when executing the program: after performing automated compiling operations on the resource package file and the target engine according to the target compiling options and the target compiling parameters, generating an installation package, the method further comprises: performing automated reinforcement, automated signing and automated uploading operations on the installation package using the visualization tool; and carrying out automatic uploading operation on the symbol table.
The processor also realizes the following steps when executing the program: the automatic uploading operation of the symbol table comprises the following steps: if the version number of the symbol table to be uploaded is known, inputting the version number of the symbol table to be uploaded, and automatically uploading the symbol table to be uploaded; if the version number of the symbol table to be uploaded is unknown, inputting a first query instruction to query all symbol table version numbers in a system, determining the version number of the symbol table to be uploaded from all symbol table version numbers in the system, inputting the version number of the symbol table to be uploaded, and automatically uploading the symbol table to be uploaded. The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: determining the type of a resource package to be generated, wherein the type comprises a game patch type or a game whole package type; if the type is the game patch type, packaging game resources according to a first packaging strategy to generate a first target format file, and generating a game patch package according to the first target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file; and if the type is the game whole package type, packaging the game resources according to a second packaging strategy to generate a first target format file and a second target format file, and generating a game whole package according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the first target format file, and the second target format file is a set of the game resources.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: the first target format file including a file name and an ID, the method comprising, prior to generating the game patch from the first target format file; and if at least two IDs corresponding to the file names in the first target format file are the same, controlling and modifying the file names corresponding to the same IDs so as to control and generate game patches containing different IDs.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: generating a resource package file according to the first target format file and/or the second target format file; acquiring an operating system type, and configuring compiling options according to the operating system type to obtain target compiling options; selecting engine branches and compiling parameters through a visualization tool to obtain target engines and target compiling parameters; and executing automation operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: the automation operation comprises an automation compiling operation, an automation uploading operation and an automation backup operation, and the executing the automation operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters comprises the following steps: responding to an execution instruction triggered by an execution button in the visualization tool, and executing automatic compiling operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters to generate an installation package; performing an automated upload operation on the installation package by the visualization tool; and executing automatic backup operation on the symbol table through the visualization tool.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: after performing automated compiling operations on the resource package file and the target engine according to the target compiling options and the target compiling parameters, generating an installation package, the method further comprises: performing automated reinforcement, automated signing and automated uploading operations on the installation package using the visualization tool; and carrying out automatic uploading operation on the symbol table.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: the automatic uploading operation of the symbol table comprises the following steps: if the version number of the symbol table to be uploaded is known, inputting the version number of the symbol table to be uploaded, and automatically uploading the symbol table to be uploaded; if the version number of the symbol table to be uploaded is unknown, inputting a first query instruction to query all symbol table version numbers in a system, determining the version number of the symbol table to be uploaded from all symbol table version numbers in the system, inputting the version number of the symbol table to be uploaded, and automatically uploading the symbol table to be uploaded.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, 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, 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.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that 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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, 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, 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.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (8)

1. A method of processing game packaging, the method comprising:
determining the type of a resource package to be generated, wherein the type comprises a game patch type or a game whole package type;
if the type is the game patch type, packaging game resources according to a first packaging strategy to generate a first target format file, and generating a game patch package according to the first target format file;
if the type is the game whole package type, packaging the game resources according to a second packaging strategy to generate a first target format file and a second target format file, and generating a game whole package according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the second target format file, and the second target format file is a set of the game resources; wherein, when generating the game patch package, the second target format file is not required to be generated;
wherein the first target format file includes a file name and an ID, the method comprising, prior to generating the game patch from the first target format file: and if at least two IDs corresponding to the file names in the first target format file are the same, controlling and modifying the file names corresponding to the same IDs so as to control and generate game patches containing different IDs.
2. The method according to claim 1, wherein the method further comprises:
generating a resource package file according to the first target format file and/or the second target format file;
acquiring an operating system type, and configuring compiling options according to the operating system type to obtain target compiling options;
selecting engine branches and compiling parameters through a visualization tool to obtain target engines and target compiling parameters;
and executing automation operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters.
3. The method of claim 2, wherein the automation operations include an automation compilation operation, an automation upload operation, and an automation backup operation, and wherein performing automation operations on the resource package file and the target engine according to the target compilation options, target compilation parameters comprises:
responding to an execution instruction triggered by an execution button in the visualization tool, and executing automatic compiling operation on the resource package file and the target engine according to the target compiling options and the target compiling parameters to generate an installation package;
performing an automated upload operation on the installation package by the visualization tool;
And executing automatic backup operation on the symbol table through the visualization tool.
4. The method of claim 3, wherein after performing automated compilation operations on the resource package file and a target engine according to the target compilation options, target compilation parameters, generating an installation package, the method further comprises:
performing automated reinforcement, automated signing and automated uploading operations on the installation package using the visualization tool;
and carrying out automatic uploading operation on the symbol table.
5. The method of claim 4, wherein automatically uploading the symbol table comprises:
if the version number of the symbol table to be uploaded is known, inputting the version number of the symbol table to be uploaded, and automatically uploading the symbol table to be uploaded;
if the version number of the symbol table to be uploaded is unknown, inputting a first query instruction to query all symbol table version numbers in a system, determining the version number of the symbol table to be uploaded from all symbol table version numbers in the system, inputting the version number of the symbol table to be uploaded, and automatically uploading the symbol table to be uploaded.
6. A processing device for game packaging, the device comprising:
A determining unit, configured to determine a type of a resource package to be generated, where the type includes a game patch type or a game whole package type;
the first generation unit is used for packing game resources according to a first packing strategy to generate a first target format file and generating a game patch package according to the first target format file under the condition that the type is the game patch type;
the second generating unit is used for packaging the game resources according to a second packaging strategy under the condition that the type is the game whole package type, generating a first target format file and a second target format file, and generating a game whole package according to the first target format file and the second target format file, wherein the first target format file is used for recording information of all the game resources in the second target format file, and the second target format file is a set of the game resources; wherein, when generating the game patch package, the second target format file is not required to be generated;
wherein the first target format file includes a file name and an ID, and the apparatus includes, prior to generating the game patch from the first target format file: and the modifying unit is used for controlling and modifying the file names corresponding to the same ID if at least two IDs corresponding to the file names respectively exist in the first target format file so as to control and generate game patches containing different IDs.
7. A nonvolatile storage medium, characterized in that the storage medium includes a stored program, wherein the program executes the game package processing method of any one of claims 1 to 5.
8. A processor for running a program, wherein the program runs a processing method of game packaging according to any one of claims 1 to 5.
CN202010711689.4A 2020-07-22 2020-07-22 Game packaging processing method and device Active CN111782263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010711689.4A CN111782263B (en) 2020-07-22 2020-07-22 Game packaging processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010711689.4A CN111782263B (en) 2020-07-22 2020-07-22 Game packaging processing method and device

Publications (2)

Publication Number Publication Date
CN111782263A CN111782263A (en) 2020-10-16
CN111782263B true CN111782263B (en) 2024-01-23

Family

ID=72764772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010711689.4A Active CN111782263B (en) 2020-07-22 2020-07-22 Game packaging processing method and device

Country Status (1)

Country Link
CN (1) CN111782263B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0406028A2 (en) * 1989-06-30 1991-01-02 Digital Equipment Corporation Incremental compiler for source code development system
CN102314366A (en) * 2011-09-08 2012-01-11 福州博远无线网络科技有限公司 npk packaging tool and method for making and installing NPK format installation package of Android program
CN103002024A (en) * 2012-11-21 2013-03-27 用友软件股份有限公司 Application program upgrade system and application program upgrade method
US8862555B1 (en) * 2011-05-16 2014-10-14 Trend Micro Incorporated Methods and apparatus for generating difference files
CN105511889A (en) * 2016-01-15 2016-04-20 珠海金山网络游戏科技有限公司 General game version incremental updating system and method
CN105573772A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Base station software version management method and devices
CN107205057A (en) * 2017-08-02 2017-09-26 无锡江南影视传播有限公司 A kind of game resource update method, device and client
CN107643895A (en) * 2017-09-29 2018-01-30 郑州云海信息技术有限公司 A kind of Software package method and apparatus
CN109298881A (en) * 2018-08-30 2019-02-01 百度在线网络技术(北京)有限公司 Automatic packaging data method, device, equipment and computer readable storage medium
CN109634612A (en) * 2018-12-04 2019-04-16 浙江数链科技有限公司 Continuous integrating method, system, computer equipment and storage medium
CN109672534A (en) * 2017-10-16 2019-04-23 腾讯科技(深圳)有限公司 Processing method, device, storage medium and the electronic device of Internet resources
CN110442377A (en) * 2019-08-13 2019-11-12 网易(杭州)网络有限公司 Service packs generation method, using update method, device and electronic equipment
CN111064712A (en) * 2019-11-29 2020-04-24 珠海金山网络游戏科技有限公司 Game resource packaging method and system
CN111221559A (en) * 2019-11-05 2020-06-02 北京达佳互联信息技术有限公司 Application updating method and device, storage medium, terminal and server
CN111258561A (en) * 2020-01-10 2020-06-09 北京慧博科技有限公司 Method for starting and monitoring software automatic compiling and deploying
CN111399896A (en) * 2020-03-16 2020-07-10 网易(杭州)网络有限公司 Patch acquisition method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7600225B2 (en) * 2003-07-21 2009-10-06 Microsoft Corporation System and method for intra-package delta compression of data
CN104252364B (en) * 2013-06-25 2017-09-12 腾讯科技(深圳)有限公司 Method, equipment and the system of incremental update

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0406028A2 (en) * 1989-06-30 1991-01-02 Digital Equipment Corporation Incremental compiler for source code development system
US8862555B1 (en) * 2011-05-16 2014-10-14 Trend Micro Incorporated Methods and apparatus for generating difference files
CN102314366A (en) * 2011-09-08 2012-01-11 福州博远无线网络科技有限公司 npk packaging tool and method for making and installing NPK format installation package of Android program
CN103002024A (en) * 2012-11-21 2013-03-27 用友软件股份有限公司 Application program upgrade system and application program upgrade method
CN105573772A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Base station software version management method and devices
CN105511889A (en) * 2016-01-15 2016-04-20 珠海金山网络游戏科技有限公司 General game version incremental updating system and method
CN107205057A (en) * 2017-08-02 2017-09-26 无锡江南影视传播有限公司 A kind of game resource update method, device and client
CN107643895A (en) * 2017-09-29 2018-01-30 郑州云海信息技术有限公司 A kind of Software package method and apparatus
CN109672534A (en) * 2017-10-16 2019-04-23 腾讯科技(深圳)有限公司 Processing method, device, storage medium and the electronic device of Internet resources
CN109298881A (en) * 2018-08-30 2019-02-01 百度在线网络技术(北京)有限公司 Automatic packaging data method, device, equipment and computer readable storage medium
CN109634612A (en) * 2018-12-04 2019-04-16 浙江数链科技有限公司 Continuous integrating method, system, computer equipment and storage medium
CN110442377A (en) * 2019-08-13 2019-11-12 网易(杭州)网络有限公司 Service packs generation method, using update method, device and electronic equipment
CN111221559A (en) * 2019-11-05 2020-06-02 北京达佳互联信息技术有限公司 Application updating method and device, storage medium, terminal and server
CN111064712A (en) * 2019-11-29 2020-04-24 珠海金山网络游戏科技有限公司 Game resource packaging method and system
CN111258561A (en) * 2020-01-10 2020-06-09 北京慧博科技有限公司 Method for starting and monitoring software automatic compiling and deploying
CN111399896A (en) * 2020-03-16 2020-07-10 网易(杭州)网络有限公司 Patch acquisition method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
腾讯bugly接入插件;xu_yanfeng;《https://forum.cocos.org/t/bugly/52947》;第4-5页 *

Also Published As

Publication number Publication date
CN111782263A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN108897724B (en) Function completion progress determining method and device
CN105468529A (en) Accurate traversal method and apparatus for UI controls of android application
CN106294113B (en) creation method and device based on programmable test service
CN111399840B (en) Module development method and device
JP7155626B2 (en) Field device commissioning system and field device commissioning method
CN111026080A (en) Hardware-in-loop test method and device for controller
CN116049207A (en) Application SQL script processing method and device, processor and electronic equipment
CN111813377A (en) Method and device for automatically generating application program
CN113296823A (en) Method, device, equipment and storage medium for generating resource configuration file
CN114661324A (en) Compiling and rendering method and device of special effect plug-in and storage medium
CN104252413A (en) Automatic script generation method, device and system
CN111782263B (en) Game packaging processing method and device
CN111382183A (en) Data query method and device
CN108062323B (en) Log reading method and device
CN112905443A (en) Test case generation method, device and storage medium
CN115987821A (en) Gateway routing test method and device
CN112130962B (en) Continuous delivery platform and method for deploying application system by using same
US20190114336A1 (en) System and method for design data analyzing
CN113919683A (en) Method and device for calculating process man-hour, storage medium and processor
CN112035308A (en) Method and device for generating system interface test table
CN112559444A (en) SQL (structured query language) file migration method and device, storage medium and equipment
CN116991427B (en) Application compiling method and device, computing equipment and storage medium
CN116501653B (en) Software regression testing method and device
CN111651194B (en) iOS-based adaptation method and device
CN115757088B (en) Fault injection method, device and equipment based on environment variable

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
GR01 Patent grant
GR01 Patent grant