CN113181652A - Game resource packaging method, system, device and storage medium - Google Patents

Game resource packaging method, system, device and storage medium Download PDF

Info

Publication number
CN113181652A
CN113181652A CN202110445578.8A CN202110445578A CN113181652A CN 113181652 A CN113181652 A CN 113181652A CN 202110445578 A CN202110445578 A CN 202110445578A CN 113181652 A CN113181652 A CN 113181652A
Authority
CN
China
Prior art keywords
resource
game
priority
resources
generated
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.)
Granted
Application number
CN202110445578.8A
Other languages
Chinese (zh)
Other versions
CN113181652B (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.)
Shenzhen Taiaiwan Technology Co ltd
Original Assignee
Shenzhen Taiaiwan Technology 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 Shenzhen Taiaiwan Technology Co ltd filed Critical Shenzhen Taiaiwan Technology Co ltd
Priority to CN202110445578.8A priority Critical patent/CN113181652B/en
Publication of CN113181652A publication Critical patent/CN113181652A/en
Application granted granted Critical
Publication of CN113181652B publication Critical patent/CN113181652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6009Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a game resource packaging method, a system, equipment and a storage medium, wherein the method comprises the following steps: obtaining game resources required by game operation from a preset resource list; packing the game resources with the same resource package name to generate a resource package named by the resource package name; and dividing the generated resource packets according to the priority of the resource packets to generate at least one resource packet set. The invention improves the efficiency and accuracy of packaging the game resources.

Description

Game resource packaging method, system, device and storage medium
Technical Field
The invention relates to the technical field of online games, in particular to a game resource packaging method, a system, equipment and a storage medium.
Background
The game resources refer to models, textures, prefabricated parts, audio clips and even whole scenes used in game development, the game resource package is a set of game resources which can be loaded during game running, and some related game resources are generally packed into one game resource package, so that the game resources are convenient to load during running.
At present, game resources required by game operation are packed through manual operation, and when the number of the game resources is too large, the problem of wrong and missed packing of the game resources is easy to occur.
Disclosure of Invention
The embodiment of the application provides a game resource packaging method, a game resource packaging system, game resource packaging equipment and a storage medium, and aims to solve the technical problem that game resource packaging is easy to miss and miss when game resources are manually packaged.
The embodiment of the application provides a game resource packaging method, which comprises the following steps:
obtaining game resources required by game operation from a preset resource list;
packing the game resources with the same resource package name to generate a resource package named by the resource package name;
dividing the generated resource packets according to the priority of the resource packets to generate at least one resource packet set, wherein the priority of the resource packets is determined according to the priority of the game resources.
In an embodiment, before the step of obtaining the game resource required by the game running from the preset resource list, the method further includes:
acquiring a configuration file of a game;
testing the game according to the configuration file, and generating a test file after the game test is finished;
determining the same resources in the test file and the configuration file as the game resources required by game running;
and adding the game resources required by game running into the preset resource list.
In one embodiment, the game resource includes a primary game resource and a dependent resource of the primary game resource, and after the step of adding the game resource required for game execution to the preset resource list, the method further includes:
acquiring the loading time of the main game resource and the dependent resource of the main game resource from the test file;
and setting the priority of the main game resource and the priority of the dependent resource of the main game resource according to the loading time.
In an embodiment, before the step of packaging the game resources with the same resource package name and generating the resource package named by the resource package name, the method further includes:
traversing the acquired main game resources;
comparing the traversed priority of the current main game resource with the priority of a resource packet to be generated, wherein the initial priority of the resource packet to be generated is a default priority;
and when the priority of the current main game resource is greater than the priority of the resource packet to be generated, updating the priority of the resource packet to be generated according to the priority of the current main game resource.
In an embodiment, before the step of packaging the game resources with the same resource package name and generating the resource package named by the resource package name, the method further includes:
when the priority of the current main game resource is smaller than or equal to the priority of the resource packet to be generated, acquiring the dependent resource of the current main game resource;
and updating the priority of the resource packet to be generated according to the priority of the dependent resource of the current main game resource.
In an embodiment, the step of updating the priority of the resource package to be generated according to the priority of the dependent resource of the current primary game resource includes:
traversing the acquired dependent resources of the current main game resources;
comparing the priority of the dependent resource of the current main game resource with the priority of the resource packet to be generated;
and when the priority of any dependent resource of the current main game resource is greater than the priority of the resource packet to be generated, updating the priority of the resource packet to be generated according to the maximum priority of the dependent resource of the current main game resource.
In an embodiment, the step of dividing the generated resource packets according to the priority of the resource packets to generate at least one resource packet set includes:
acquiring a priority interval where the priority of each resource packet is located;
and dividing the generated resource packets into at least one resource packet set according to the priority interval in which each resource packet is positioned, wherein the resource packets positioned in the same priority interval are positioned in the same resource packet set.
In addition, to achieve the above object, the present invention further provides a game resource packaging system, including:
the resource acquisition module is used for acquiring game resources required by game operation from a preset resource list;
the resource packing module is used for packing the game resources with the same resource package name and generating a resource package named by the resource package name;
and the resource packet dividing module is used for dividing the generated resource packets according to the priority of the resource packets to generate at least one resource packet set, wherein the priority of the resource packets is determined according to the priority of the game resources.
Further, to achieve the above object, the present invention also provides a computer device comprising: the game resource packaging method comprises a memory, a processor and a game resource packaging program which is stored on the memory and can run on the processor, wherein the steps of the game resource packaging method are realized when the game resource packaging program is executed by the processor.
In addition, to achieve the above object, the present invention also provides a storage medium having a game resource packaging program stored thereon, the game resource packaging program, when executed by a processor, implementing the steps of the game resource packaging method described above.
The technical scheme of the game resource packaging method, the system, the equipment and the storage medium provided by the embodiment of the application at least has the following technical effects or advantages:
the technical scheme that game resources required by game operation are obtained from a preset resource list, the game resources with the same resource pack names are packed to generate resource packs named by the resource pack names, and the generated resource packs are divided according to the priority of the resource packs to generate at least one resource pack set is adopted, so that the technical problem that game resources are packed manually and are easy to miss is solved, and the efficiency and accuracy of game resource packing are improved.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a game resource packaging method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a game resource packaging method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a game resource packaging method according to a third embodiment of the present invention;
FIG. 5 is a functional block diagram of the game resource packaging system of the present invention.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of a computer device.
As shown in fig. 1, the computer apparatus may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the computer device architecture shown in FIG. 1 is not intended to be limiting of computer devices and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a game resource packaging program. Among these, an operating system is a program that manages and controls the hardware and software resources of a computer device, a game resource wrapper program, and the execution of other software or programs.
In the computer apparatus shown in fig. 1, the user interface 1003 is mainly used for connecting a terminal, and performing data communication with the terminal; the network interface 1004 is mainly used for the background server and performs data communication with the background server; the processor 1001 may be used to invoke a game resource packaging program stored in the memory 1005.
In this embodiment, the computer device includes: a memory 1005, a processor 1001, and a game resource packaging program stored on said memory 1005 and executable on said processor, wherein:
when the processor 1001 calls the game resource packaging program stored in the memory 1005, the following operations are performed:
obtaining game resources required by game operation from a preset resource list;
packing the game resources with the same resource package name to generate a resource package named by the resource package name;
dividing the generated resource packets according to the priority of the resource packets to generate at least one resource packet set, wherein the priority of the resource packets is determined according to the priority of the game resources.
When the processor 1001 calls the game resource packaging program stored in the memory 1005, the following operations are also performed:
acquiring a configuration file of a game;
testing the game according to the configuration file, and generating a test file after the game test is finished;
determining the same resources in the test file and the configuration file as the game resources required by game running;
and adding the game resources required by game running into the preset resource list.
The game resources include a master game resource and a dependent resource of the master game resource, and when the processor 1001 calls the game resource packaging program stored in the memory 1005, the following operations are further performed:
acquiring the loading time of the main game resource and the dependent resource of the main game resource from the test file;
and setting the priority of the main game resource and the priority of the dependent resource of the main game resource according to the loading time.
When the processor 1001 calls the game resource packaging program stored in the memory 1005, the following operations are also performed:
traversing the acquired main game resources;
comparing the traversed priority of the current main game resource with the priority of a resource packet to be generated, wherein the initial priority of the resource packet to be generated is a default priority;
and when the priority of the current main game resource is greater than the priority of the resource packet to be generated, updating the priority of the resource packet to be generated according to the priority of the current main game resource.
When the processor 1001 calls the game resource packaging program stored in the memory 1005, the following operations are also performed:
when the priority of the current main game resource is smaller than or equal to the priority of the resource packet to be generated, acquiring the dependent resource of the current main game resource;
and updating the priority of the resource packet to be generated according to the priority of the dependent resource of the current main game resource.
When the processor 1001 calls the game resource packaging program stored in the memory 1005, the following operations are also performed:
traversing the acquired dependent resources of the current main game resources;
comparing the priority of the dependent resource of the current main game resource with the priority of the resource packet to be generated;
and when the priority of any dependent resource of the current main game resource is greater than the priority of the resource packet to be generated, updating the priority of the resource packet to be generated according to the maximum priority of the dependent resource of the current main game resource.
When the processor 1001 calls the game resource packaging program stored in the memory 1005, the following operations are also performed:
acquiring a priority interval where the priority of each resource packet is located;
and dividing the generated resource packets into at least one resource packet set according to the priority interval in which each resource packet is positioned, wherein the resource packets positioned in the same priority interval are positioned in the same resource packet set.
The embodiments of the present invention provide an embodiment of a game resource packaging method, and it should be noted that, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a sequence different from that shown here, the game resource packaging method is applied to game resource packaging, and may also be applied to other resource packaging, and the following embodiments take game resources as examples for description.
As shown in fig. 2, in a first embodiment of the present application, a game resource packaging method of the present application includes the following steps:
step S210: and obtaining game resources required by game running from a preset resource list.
In this embodiment, the resource list is preset, and a plurality of game resources are stored in the resource list, and the game resources are game resources required by game operation. Game resources, also referred to as game files, refer to models (e.g., character models, monster models, etc.), textures, preforms, audio clips, and even entire scenes, etc., used in game development. The game resources required by game running are game resources required to be loaded during game running, for example, after a game is started, the game needs to enter a game homepage, if the game homepage needs to display a star-sky-figure interface containing a game name, the game resources for realizing the star-sky-figure interface containing the game name need to be acquired from a resource list, and the game resources are game resources required by game running.
Specifically, before obtaining the game resource required by the game running from the preset resource list, the game resource required by the game running may be added to the preset resource list through the following steps, which specifically include:
step a: a configuration file for the game is obtained.
Step b: and testing the game according to the configuration file, and generating a test file after the game testing is finished.
Step c: and determining the same resources in the test file and the configuration file as the game resources required by game running.
Step d: and adding the game resources required by game running into the preset resource list.
The configuration file of the game comprises all game resources of the game and an index file of game running, wherein all game resources of the game comprise game resources required by the game running and game resources unnecessary for the game running, a game design sequence is recorded in the index file, and the game can be run according to the index file when the game is tested. After the configuration file is obtained, the game is tested according to the configuration file, namely, the whole game is run according to the index file according to the game design sequence, and after the complete running of the game is finished, the completion of the game testing is indicated, so that the test file of the whole game is generated. The test file includes the same game resources and loading time as those in the configuration file, additional generated other game resources and loading time, and the like. Further, comparing the game resources included in the test file with the game resources included in the configuration file, if the same game resources exist in both the test file and the configuration file, determining the same game resources in both the test file and the configuration file as the game resources required by game running, and adding the game resources required by game running into a preset resource list.
Step S220: and packaging the game resources with the same resource package name to generate a resource package named by the resource package name.
The game resources added in the resource list are stored in the folder, the resource package names of the resource packages to be generated are determined according to the folder names of the folder, and the names of the resource packages of the same resource package to be generated by using the game resources in the same file or the names of the resource packages of the same resource package to be generated by using the game resources at the beginning of the same or a designated character string in the same file are preset. For convenience of understanding, the resource package to be generated is recorded as a resource package to be generated, and the resource package name of the resource package to be generated is also the resource package name of the resource package to be generated.
In this embodiment, after obtaining a game resource required by game running from a resource list, determining a resource package name of a resource package to be generated according to a folder name of a folder stored in the game resource, packaging game resources having the same resource package name, and generating a resource package named with the resource package name, where the resource package name is the resource package name of the resource package to be generated. For example, the game resources obtained from the resource list include tank soldier 1, tank soldier 2, tank soldier 3, river 1 and so on, wherein, the storage path of tank soldier 1, tank soldier 2 and tank soldier 3 is the tank soldier folder, so need pack tank soldier 1, tank soldier 2 and tank soldier 3, the resource package name of the resource package of packing generation is the tank soldier.
Step S230: and dividing the generated resource packets according to the priority of the resource packets to generate at least one resource packet set.
In this embodiment, before the resource package is generated, the priority of the resource package to be generated is determined according to the priority of the game resource having the same resource package name, that is, the priority of the resource package is determined according to the priority of the game resource, and then the above step S220 is performed. The priority of the game resources is determined according to the loading time of the game resources required by the game running in the test file, the loading time of the game resources is higher in the front, and otherwise, the priority is lower. The game resources comprise main game resources and dependent resources of the main game resources, the main game resources refer to resources which must be used when the game runs, for example, the game sets that a game player needs to beat a monster A to enter a second stage of a first stage of a game, and then the monster A is one of main game resources in the game. The primary game resource has a dependency relationship with the dependent resource of the primary game resource, e.g., the primary game resource is also monster a, the sound of monster a needs to reference sound B, and then sound B is the dependent resource of monster a.
Specifically, the priority determination mode of the game resources is as follows: acquiring a main game resource and the loading time of a dependent resource of the main game resource from a test file; the priority of the primary game resource and the priority of the dependent resources of the primary game resource are set according to the loading time. After the test file is generated, the test file records the loading time of the main game resource and the dependent resource of the main game resource, and the priority of the main game resource and the dependent resource of the main game resource is set according to the sequence of the loading time of the main game resource and the dependent resource of the main game resource. For example, the map 1 main game resource is loaded at the 1 st time point, the map 2 main game resource is loaded at the 2 nd time point, the 1 st time point is earlier than the 2 nd time point, the priority of the map 1 main game resource is higher than that of the map 2 main game resource, if the game is loaded only with the map 1 main game resource and the map 2 main game resource, the priority of the map 1 main game resource is set to be 1, the priority of the map 2 main game resource is set to be 2, and correspondingly, the resource-dependent priority setting modes of the map 1 main game resource and the map 2 main game resource are the same as the priority setting modes of the map 1 main game resource and the map 2 main game resource.
Before the game is online, the resource packet set corresponding to each game level needs to be configured according to the preset game level, that is, after the game is online, the corresponding resource packet set is downloaded and loaded according to the game level of the game player. The resource packet set is an additional Content download packet (DLC). After the resource packet is generated, the generated resources comprise a plurality of resource packets, each resource packet is different, and each resource packet corresponds to a priority of the resource packet. Specifically, all resource packets are sequentially sorted in descending order according to priority, and the generated resource packets are sequentially divided into at least one DLC (digital logic control) combination based on the sorting result and the preset game level. Wherein the larger the numerical value of the priority, the smaller the priority. When the number of resource packets is particularly small, the generated resource packets can be sequentially divided into one DLC, and when the number of resource packets is large, the generated resource packets can be sequentially divided into a plurality of DLC, and each resource packet set corresponds to a corresponding game level. After the game is on line, downloading the corresponding DLC for the game player according to the game level of the game player, and then continuing to download a new DLC for the game player when the game corresponding to the DLC reaches the set game level before the game player, so that the game player continues to experience the game in the new stage.
According to the technical scheme, the game resources required by game running are obtained from the preset resource list, the game resources with the same resource package names are packaged, the resource packages named by the resource package names are generated, the generated resource packages are divided according to the priority of the resource packages, and at least one resource package set is generated.
As shown in fig. 3, in the second embodiment of the present application, based on the first embodiment, step S220 includes the following steps before:
step S221: and traversing the acquired main game resources.
In this embodiment, after the main game resources are acquired from the resource list, each acquired main game resource is traversed according to the sequence of acquiring the main game resources, that is, the priority of each acquired main game resource is referred to set the priority of the resource packet to be generated.
Step S222: and comparing the traversed priority of the current main game resource with the priority of the resource packet to be generated.
Step S223: and when the priority of the current main game resource is greater than the priority of the resource packet to be generated, updating the priority of the resource packet to be generated according to the priority of the current main game resource.
Specifically, according to the sequence of acquiring the main game resources, the traversed priority of the current main game resource and the priority of the resource packet to be generated are sequentially compared, wherein the initial priority of the resource packet to be generated is a default priority, and is generally 0, and 0 represents the lowest priority. And if the traversed priority of the current main game resource is greater than the priority of the resource packet to be generated, updating the priority of the resource packet to be generated according to the priority of the current main game resource. For example, if the current primary game resource is the first primary game resource obtained, the priority of the first primary game resource is used to replace the initial priority of the resource package to be generated, that is, the initial priority of the resource package to be generated is changed to the priority of the first primary game resource, then the second primary game resource is continuously obtained, if the priority of the second primary game resource is greater than the priority of the current resource package to be generated, that is, the priority of the second primary game resource is greater than the priority of the first primary game resource, the priority of the second primary game resource is used to replace the priority of the current resource package to be generated, the third primary game resource is continuously obtained, and step S222 is executed in a loop.
Step S224: and when the priority of the current main game resource is less than or equal to the priority of the resource packet to be generated, acquiring the dependent resource of the current main game resource.
Step S225: and updating the priority of the resource packet to be generated according to the priority of the dependent resource of the current main game resource.
In this embodiment, after the priority of the resource package to be generated is updated by using the priority of the first master game resource, if the priority of the current master game resource acquired from the resource list is less than or equal to the priority of the resource package to be generated, the dependent resource of the current master game resource is acquired from the resource list, and the priority of the resource package to be generated is updated according to the priority of the dependent resource of the current master game resource.
Specifically, updating the priority of the resource package to be generated according to the priority of the dependent resource of the current main game resource includes:
step e: and traversing the acquired dependent resources of the current main game resources.
Step f: and comparing the priority of the dependent resource of the current main game resource with the priority of the resource packet to be generated.
Step g: and when the priority of any dependent resource of the current main game resource is greater than the priority of the resource packet to be generated, updating the priority of the resource packet to be generated according to the maximum priority of the dependent resource of the current main game resource.
And sequentially comparing the traversed priority of the dependent resources of the current main game resources with the priority of the resource packet to be generated according to the sequence of obtaining the dependent resources of the current main game resources. If the traversed priority of any dependent resource of the current main game resource is larger than the priority of the current resource packet to be generated, the priorities of all dependent resources of the current main game resource are sequenced, then the maximum priority of all dependent resources of the current main game resource is selected, the priority of the current resource packet to be generated is updated by using the maximum priority of the dependent resource of the current main game resource, namely the initial priority of the current resource packet to be generated is changed into the maximum priority.
Further, if the dependent resources of the current primary game resource have a dependency relationship with the other primary game resources, the priority of the dependent resources is replaced with the priority of the current primary game resource if the priority of the current primary game resource is greater than the priorities of the other primary game resources.
According to the technical scheme, the priority of the current main game resource is obtained in a traversing mode, the priority of the current main game resource is compared with the priority of the resource packet to be generated, when the priority of the current main game resource is larger than the priority of the resource packet to be generated, the priority of the resource packet to be generated is updated according to the priority of the current main game resource, when the priority of the current main game resource is smaller than or equal to the priority of the resource packet to be generated, the dependent resource of the current main game resource is obtained, the priority of the resource packet to be generated is updated according to the priority of the dependent resource of the current main game resource, and therefore the priority of the resource packet to be generated is set quickly.
As shown in fig. 4, in the third embodiment of the present application, based on the first embodiment, step S230 includes the following steps:
step S230: and acquiring the priority interval of the priority of each resource packet.
In this example, the priority section is determined according to the game level of the game player, for example, when the game level of the game player is 1 to 20, the plurality of DLC corresponding to the priority section [1,10] is opened, and when the game player of 1 to 20 experiences the game, the game needs to download and sequentially run the plurality of DLC corresponding to the priority section [1,10 ]. After the resource packets are generated, the priority of each resource packet is obtained, and the priority interval of each resource packet is determined according to the priority of each resource packet.
Step S231: and dividing the generated resource packet into at least one resource packet set according to the priority interval of each resource packet.
After the priority interval of each resource packet is determined, all the generated resource packets are divided, namely the resource packets in the same priority interval are put into the same DLC. When the number of the resource packets is particularly small, the generated resource packets can be divided into one DLC, when the number of the resource packets is large, the generated resource packets can be sequentially divided into a plurality of DLC, and when the number of the DLC is large, each DLC corresponds to a different priority section. For example, the generated resource packets are divided into 2 DLC, the first DLC has a corresponding priority interval of [1,10], the first DLC has resource packets with priorities between 1 and 10, the second DLC has a corresponding priority interval of [11,20], and the first DLC has resource packets with priorities between 11 and 20. After the generated resource package is divided into DLCs, the corresponding DLC is downloaded and run according to the game level of the game player. For example, DLC1 is used between levels 1-20, DLC1 needs to be downloaded and run if the game player's level is 1, DLC2 is used between levels 21-20, and DLC2 needs to be downloaded and run if the game player's level is 21.
According to the technical scheme, the technical means of acquiring the priority interval of the priority of each resource package and dividing the generated resource package into at least one resource package set according to the priority interval of each resource package is adopted, so that the reasonable division of the resource packages is realized, the corresponding resource packages can be downloaded for the game players according to the game grades of the game players, and the space occupancy rate of the game terminal is favorably reduced.
As shown in fig. 5, the present application provides a game resource packaging system, including:
a resource obtaining module 310, configured to obtain game resources required by game operation from a preset resource list;
a resource packing module 320, configured to pack the game resources with the same resource package name, and generate a resource package named by the resource package name;
a resource packet dividing module 330, configured to divide the generated resource packets according to priorities of the resource packets to generate at least one resource packet set, where the priorities of the resource packets are determined according to priorities of the game resources.
Further, the game resource packaging system further includes:
the game testing unit is used for acquiring a configuration file of a game; testing the game according to the configuration file, and generating a test file after the game test is finished;
the resource determining unit is used for determining the same resource in the test file and the configuration file as the game resource required by game running;
and the information adding unit is used for adding the game resources required by game running into the preset resource list.
Further, the game resource includes a main game resource and a dependent resource of the main game resource, and the game resource packaging system further includes:
a time obtaining unit, configured to obtain, from the test file, the main game resource and loading time of a dependent resource of the main game resource;
and the priority setting unit is used for setting the priority of the main game resource and the priority of the dependent resource of the main game resource according to the loading time.
Further, the game resource packaging system further includes:
the first traversal unit is used for traversing the acquired main game resources;
the first comparison unit is used for comparing the traversed priority of the current main game resource with the priority of a resource packet to be generated, wherein the initial priority of the resource packet to be generated is a default priority;
and the priority updating unit is used for updating the priority of the resource packet to be generated according to the priority of the current main game resource when the priority of the current main game resource is greater than the priority of the resource packet to be generated.
Further, the priority updating unit is further configured to obtain a dependent resource of the current master game resource when the priority of the current master game resource is less than or equal to the priority of the resource packet to be generated; and updating the priority of the resource packet to be generated according to the priority of the dependent resource of the current main game resource.
Further, the priority updating unit, in updating the priority of the resource package to be generated according to the priority of the dependent resource of the current primary game resource, specifically includes:
the second traversal unit is used for traversing the acquired dependent resources of the current main game resources;
the second comparison unit is used for comparing the priority of the dependent resource of the current main game resource with the priority of the resource packet to be generated;
and the priority updating subunit is used for updating the priority of the resource packet to be generated according to the maximum priority of the dependent resource of the current main game resource when the priority of any dependent resource of the current main game resource is greater than the priority of the resource packet to be generated.
Further, the resource packet dividing module 330 includes:
an interval obtaining unit, configured to obtain a priority interval in which a priority of each resource packet is located;
and the resource packet dividing unit is used for dividing the generated resource packets into at least one resource packet set according to the priority interval in which each resource packet is positioned, wherein the resource packets positioned in the same priority interval are positioned in the same resource packet set.
The specific implementation of the game resource packaging system of the invention is basically the same as that of the above game resource packaging method, and is not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing 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.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A game resource packaging method is characterized by comprising the following steps:
obtaining game resources required by game operation from a preset resource list;
packing the game resources with the same resource package name to generate a resource package named by the resource package name;
dividing the generated resource packets according to the priority of the resource packets to generate at least one resource packet set, wherein the priority of the resource packets is determined according to the priority of the game resources.
2. The method for packaging game resources according to claim 1, wherein the step of obtaining the game resources required for game execution from the preset resource list further comprises:
acquiring a configuration file of a game;
testing the game according to the configuration file, and generating a test file after the game test is finished;
determining the same resources in the test file and the configuration file as the game resources required by game running;
and adding the game resources required by game running into the preset resource list.
3. The method for packaging game resources according to claim 2, wherein the game resources include a primary game resource and a dependent resource of the primary game resource, and after the step of adding the game resource required for game execution to the preset resource list, the method further comprises:
acquiring the loading time of the main game resource and the dependent resource of the main game resource from the test file;
and setting the priority of the main game resource and the priority of the dependent resource of the main game resource according to the loading time.
4. The method for packaging game resources according to claim 3, wherein the step of packaging the game resources having the same resource package name and generating the resource package named by the resource package name is preceded by the step of:
traversing the acquired main game resources;
comparing the traversed priority of the current main game resource with the priority of a resource packet to be generated, wherein the initial priority of the resource packet to be generated is a default priority;
and when the priority of the current main game resource is greater than the priority of the resource packet to be generated, updating the priority of the resource packet to be generated according to the priority of the current main game resource.
5. The method for packaging game resources according to claim 4, wherein the step of packaging the game resources having the same resource package name and generating the resource package named by the resource package name is preceded by the step of:
when the priority of the current main game resource is smaller than or equal to the priority of the resource packet to be generated, acquiring the dependent resource of the current main game resource;
and updating the priority of the resource packet to be generated according to the priority of the dependent resource of the current main game resource.
6. The method for packaging game resources according to claim 5, wherein the step of updating the priority of the resource package to be generated according to the priority of the dependent resources of the current primary game resource comprises:
traversing the acquired dependent resources of the current main game resources;
comparing the priority of the dependent resource of the current main game resource with the priority of the resource packet to be generated;
and when the priority of any dependent resource of the current main game resource is greater than the priority of the resource packet to be generated, updating the priority of the resource packet to be generated according to the maximum priority of the dependent resource of the current main game resource.
7. The method for packaging game resources according to claim 1, wherein the step of dividing the generated resource packages according to the priority of the resource packages to generate at least one resource package set comprises:
acquiring a priority interval where the priority of each resource packet is located;
and dividing the generated resource packets into at least one resource packet set according to the priority interval in which each resource packet is positioned, wherein the resource packets positioned in the same priority interval are positioned in the same resource packet set.
8. A game resource packaging system, comprising:
the resource acquisition module is used for acquiring game resources required by game operation from a preset resource list;
the resource packing module is used for packing the game resources with the same resource package name and generating a resource package named by the resource package name;
and the resource packet dividing module is used for dividing the generated resource packets according to the priority of the resource packets to generate at least one resource packet set, wherein the priority of the resource packets is determined according to the priority of the game resources.
9. A computer device, comprising: a memory, a processor, and a game resource packaging program stored on the memory and executable on the processor, the game resource packaging program when executed by the processor implementing the steps of the game resource packaging method of any of claims 1-7.
10. A storage medium having stored thereon a game resource packaging program that, when executed by a processor, implements the steps of the game resource packaging method of any one of claims 1-7.
CN202110445578.8A 2021-04-23 2021-04-23 Game resource packaging method, system, device and storage medium Active CN113181652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110445578.8A CN113181652B (en) 2021-04-23 2021-04-23 Game resource packaging method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110445578.8A CN113181652B (en) 2021-04-23 2021-04-23 Game resource packaging method, system, device and storage medium

Publications (2)

Publication Number Publication Date
CN113181652A true CN113181652A (en) 2021-07-30
CN113181652B CN113181652B (en) 2023-04-14

Family

ID=76978522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110445578.8A Active CN113181652B (en) 2021-04-23 2021-04-23 Game resource packaging method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN113181652B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149160A (en) * 2023-08-23 2023-12-01 浙江十勇士网络科技有限公司 Mobile phone game resource packaging method, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10222353A (en) * 1997-01-31 1998-08-21 Hitachi Ltd Method for generating program
CN105354049A (en) * 2015-09-29 2016-02-24 北京畅游天下网络技术有限公司 Resource loading method, apparatus and system for three-dimensional animation engine
CN110716760A (en) * 2018-07-13 2020-01-21 厦门雅基软件有限公司 Method and device for subpackaging game resources, electronic equipment and readable storage medium
CN111249744A (en) * 2020-01-19 2020-06-09 腾讯科技(深圳)有限公司 Resource loading method and device, storage medium and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10222353A (en) * 1997-01-31 1998-08-21 Hitachi Ltd Method for generating program
CN105354049A (en) * 2015-09-29 2016-02-24 北京畅游天下网络技术有限公司 Resource loading method, apparatus and system for three-dimensional animation engine
CN110716760A (en) * 2018-07-13 2020-01-21 厦门雅基软件有限公司 Method and device for subpackaging game resources, electronic equipment and readable storage medium
CN111249744A (en) * 2020-01-19 2020-06-09 腾讯科技(深圳)有限公司 Resource loading method and device, storage medium and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149160A (en) * 2023-08-23 2023-12-01 浙江十勇士网络科技有限公司 Mobile phone game resource packaging method, system and storage medium
CN117149160B (en) * 2023-08-23 2024-04-02 浙江十勇士网络科技有限公司 Mobile phone game resource packaging method, system and storage medium

Also Published As

Publication number Publication date
CN113181652B (en) 2023-04-14

Similar Documents

Publication Publication Date Title
CN109901838A (en) Front end development approach, device, equipment and storage medium based on modularization
CN101626391A (en) Method for processing resource of network game client
JP5669630B2 (en) Test case generation method, program and system
US7930167B2 (en) Videogame localization using language packs
CN112473144A (en) Game resource data processing method and device
CN101447994A (en) Method for downloading and playing multimedia file and equipment thereof
CN111367558B (en) Data updating method and device for application program
CN113181652B (en) Game resource packaging method, system, device and storage medium
CN107943707A (en) Test method, device and the storage medium and terminal of behavior tree
CN107908419A (en) A kind of AssetBundle update methods and device based on difference
CN110990001A (en) IVR (Interactive Voice response) process execution method and device
CN109947450A (en) System file upgrade method, device, mobile terminal and readable storage medium storing program for executing
CN104104645A (en) Cross-platform resource management method and system
CN113885935A (en) Resource packaging method and device, electronic equipment and computer readable storage medium
CN110377408A (en) A kind of starting method, apparatus, terminal and the medium of application program
CN109918188A (en) Switching method, device, electronic equipment and the storage medium of game mode
CN110347454A (en) Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium
CN107247611A (en) A kind of acceleration method and system of web game
CN108390916B (en) Picture downloading method and terminal
CN106334319B (en) Engineering file loading method and device
CN111586170B (en) Resource downloading method, device, equipment and computer readable storage medium
CN113961344A (en) Resource processing method and system
CN112882733A (en) Application updating method and device, electronic equipment and storage medium
CN111790146A (en) Resource management method, device, equipment and computer readable storage medium
CN108345461B (en) Application updating method and device and computer readable storage 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
GR01 Patent grant
GR01 Patent grant