Game resource data processing method and device

By loading the basic resource data after the game program is run and starting the download instruction of the subcontracted resource data, the subcontracted resource data is downloaded in the encoding order, and the game experience problem caused by players waiting for resource download is solved, and efficient game resource data processing and download.

CN112473144BActive Publication Date: 2025-02-21CHONGQING PERFECT WORLD INTERACTIVE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011303911.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-19
Publication Date
2025-02-21
Estimated Expiration
2040-11-19

AI Technical Summary

Technical Problem

In the prior art, players need to spend time waiting for the download of game resource data, which affects the processing efficiency of game resource data, making the player's gaming experience poor during resource download.

Method used

By obtaining the installation package data of the game program, the installation package data includes basic resource data and a compressed package list carrying encoding order, loading the basic resource data and starting the download instruction of the subcontracting resource data, and downloading the subcontracting resources in sequence according to the encoding order data.

Benefits of technology

It realizes that the processing efficiency and download speed of game resource data are improved without affecting the player's gaming experience, and reduces the space occupation of game resource data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112473144B_ABST
    Figure CN112473144B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for processing game resource data, which relates to the field of data processing technology. It can allow players to experience early game resources while retaining basic game resources, without the need for players to waste time waiting for the download of all game resource data, thereby improving the game experience of players during resource download. The method includes: obtaining installation package data of a game program, wherein the installation package data includes basic resource data and a compressed package list carrying a coding order, wherein the compressed package list records the download order of sub-packaged resource data, and the basic resource data and the sub-packaged resource data form the game resource data of the game program; in response to the running instruction of the game program, the basic resource data is loaded, and the download instruction of the sub-packaged resource data is started; based on the download instruction of the sub-packaged resource data, the sub-packaged resource data in the compressed package list is downloaded in sequence according to the coding order.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data processing, and in particular to a method and device for processing game resource data. Background Art

[0002] With the continuous development of online games, more and more abundant game resources are constantly being developed, making online games attract more and more users.

[0003] In the related art, a game installation package is a collection of self-compressible files, which includes all the game resource data required for game installation. By obtaining the game installation package and then starting the game program, you can experience the game. Usually, all the game resource data of the game installation package takes up a lot of space. After many players pay attention to the game through advertisements or other channels, they need to spend a long time downloading the game package. Some players even give up downloading the game resource package directly due to the space occupied by the package. In order to allow users to obtain the game installation package faster, the game installation package does not contain or contains a small amount of game resource data required for game installation. After obtaining the game installation package and then starting the game program, the game resource data is downloaded. However, due to the space occupied by the game resource data, players still need to spend time waiting for the resource download, which affects the processing efficiency of the game resource data, making the player's game experience poor during the resource download. Summary of the invention

[0004] In view of this, the present application provides a method and device for processing game resource data, the main purpose of which is to solve the problem in the prior art that players need to spend time waiting for resource downloads, which affects the processing efficiency of game resource data and makes the player's gaming experience poor during resource downloads.

[0005] According to a first aspect of the present application, a method for processing game resource data is provided, comprising:

[0006] Acquire installation package data of the game program, wherein the installation package data includes basic resource data and a compressed package list carrying a coding order, wherein the compressed package list records a download order of sub-package resource data, and the basic resource data and the sub-package resource data form game resource data of the game program;

[0007] In response to the running instruction of the game program, the basic resource data is loaded, and the download instruction of the sub-package resource data is started;

[0008] Based on the download instruction of the sub-package resource data, the sub-package resource data in the compressed package list is downloaded in sequence according to the encoding sequence.

[0009] In another embodiment, before obtaining the installation package data of the game program, the method further includes:

[0010] Get the loading order of game resource data during game running;

[0011] The loading order of the game resource data is utilized to split the game resource data into basic resource data and sub-package resource data, and the downloading order of the sub-package resource data is defined.

[0012] In another embodiment, the sub-package resource data includes scene resource data and map resource data, and the downloading order of defining the sub-package resource data specifically includes:

[0013] Based on the priority order of scenes during the running of the game, define the download order of the scene resource data in the sub-package resource data;

[0014] The map resource data is used as the tail resource, and the downloading order of the map resource data in the sub-package resource data is defined to be after the scene resource data.

[0015] In another embodiment, after downloading the sub-package resource data in the compressed package list in sequence according to the encoding sequence based on the download instruction of the sub-package resource data, the method further includes:

[0016] In response to a loading instruction of sub-package resource data in a game program, determining whether the map resource data in the preset sub-package resource data has been loaded;

[0017] If so, it is determined that the loading of the scene resource data in the preset sub-package resource data is complete.

[0018] In another embodiment, the scene resource data includes common resource data of game characters and attribute resource data of each game character, and the downloading order of the scene resource data in the sub-package resource data is defined based on the priority order of the scenes during the game running process, specifically including:

[0019] Based on the priority order of the scenes during the game running process, obtaining the loading order of the common resource data of the game characters and the attribute resource data of each game character in the scene;

[0020] The downloading order of the scene resource data in the sub-packaged resource data is defined by utilizing the loading order of the common resource data of the game characters and the attribute resource data of each game character in the scene.

[0021] In another embodiment, after downloading the sub-package resource data in the compressed package list in sequence according to the encoding sequence based on the download instruction of the sub-package resource data, the method further includes:

[0022] In response to a loading instruction of preset sub-package resource data in the game program, judging whether the download of the preset sub-package resource data is completed according to the download progress of the sub-package resource data;

[0023] If yes, then display the map resource data in the preset sub-package resource data;

[0024] Otherwise, the map resource data in other sub-package resource data downloaded in the download process is displayed.

[0025] In another embodiment, after downloading the sub-package resource data in the compressed package list in sequence according to the encoding sequence based on the download instruction of the sub-package resource data, the method further includes:

[0026] In response to a loading instruction of preset sub-package resource data in the game program, determining whether the download process of the game program reaches the download sequence of the preset sub-package resource data;

[0027] If so, after the preset sub-package resource data is downloaded, the preset sub-package resource data is loaded;

[0028] Otherwise, a resource downloader is created to execute separate downloading of the preset sub-package resource data through the resource downloader, and after the downloading of the preset sub-package resource data is completed, the preset sub-package resource data is loaded.

[0029] In another embodiment, traversing the sub-package resource data in the compressed list according to the encoding order, and downloading the sub-package resource data in the compressed package list according to the download flag in the download status record specifically includes:

[0030] Traversing the sub-packaged resource data in the compression list according to the encoding order, and detecting the download flag in the download status record;

[0031] If the download flag indicates that the download has been completed, the download status of the sub-package resource data is determined by comparing the digital difference between the package body version number and the sub-package version number;

[0032] If the download flag is detected as incomplete download, a download instruction for the sub-package resource data is initiated, and a download status of the sub-package resource data is monitored;

[0033] Determining the download status of the sub-package resource data by comparing the digital difference between the package body version number and the sub-package version number specifically includes:

[0034] If the digital difference between the package body version number and the sub-package version number is greater than a preset threshold, the download instruction of the sub-package resource data is started, and the download status of the sub-package resource data is monitored;

[0035] If the numerical difference between the package body version number and the sub-package version number is less than or equal to a preset threshold, the running instruction of the sub-package resource data is started.

[0036] According to a second aspect of the present application, a device for processing game resource data is provided, comprising:

[0037] A first acquisition unit is used to acquire installation package data of the game program, wherein the installation package data includes basic resource data and a compressed package list carrying a coding order, wherein the compressed package list records a download order of sub-package resource data, and the basic resource data and the sub-package resource data form game resource data of the game program;

[0038] An operating unit, configured to load the basic resource data and initiate a download instruction of the sub-package resource data in response to an operating instruction of the game program;

[0039] The downloading unit is used to download the sub-package resource data in the compressed package list in sequence according to the encoding sequence based on the download instruction of the sub-package resource data.

[0040] In another embodiment, the apparatus further comprises:

[0041] A second acquisition unit is used to acquire the loading order of game resource data during the game running process before acquiring the installation package data of the game program;

[0042] A definition unit is used to split the game resource data into basic resource data and sub-package resource data by utilizing the loading order of the game resource data, and define the downloading order of the sub-package resource data.

[0043] In another embodiment, the sub-packaged resource data includes scene resource data and map resource data, and the definition unit includes:

[0044] A first definition module, used to define the downloading order of the scene resource data in the sub-package resource data based on the priority order of the scenes during the game running process;

[0045] The second definition module is used to use the map resource data as the tail resource and define the downloading order of the map resource data in the sub-package resource data to be after the scene resource data.

[0046] In another embodiment, the apparatus further comprises:

[0047] A first judgment unit is used to judge whether the map resource data in the preset sub-package resource data has been loaded after the sub-package resource data in the compressed package list is downloaded in sequence according to the encoding sequence in response to the loading instruction of the sub-package resource data in the game program;

[0048] The first judgment unit is further configured to determine that if yes, the loading of the scene resource data in the preset sub-package resource data is complete.

[0049] In another embodiment, the scene resource data includes common resource data of game characters and attribute resource data of each game character, and the second definition module includes:

[0050] An acquisition submodule, used for acquiring the order of loading the common resource data of the game characters and the attribute resource data of each game character in the scene based on the priority order of the scenes during the game running process;

[0051] A definition submodule is used to define the downloading order of the scene resource data in the sub-packaged resource data by utilizing the loading order of the common resource data of the game characters and the attribute resource data of each game character in the scene.

[0052] In another embodiment, the apparatus further comprises:

[0053] A second judgment unit is used for, after downloading the sub-package resource data in the compressed package list in sequence according to the encoding sequence in accordance with the download instruction based on the sub-package resource data, responding to a loading instruction of the preset sub-package resource data in the game program, judging whether the download of the preset sub-package resource data is completed according to the download progress of the sub-package resource data;

[0054] a display unit, configured to display the map resource data in the preset sub-package resource data;

[0055] The display unit is further used to display the map resource data in other sub-package resource data downloaded in the download process.

[0056] In another embodiment, the apparatus further comprises:

[0057] A third judgment unit is used to judge whether the download process of the game program reaches the download sequence of the preset sub-package resource data in response to the loading instruction of the preset sub-package resource data in the game program after the sub-package resource data in the compressed package list is downloaded in sequence according to the encoding sequence based on the download instruction of the sub-package resource data;

[0058] a loading unit, configured to load the preset sub-package resource data after the preset sub-package resource data is downloaded;

[0059] The creating unit is used for otherwise creating a resource downloader to execute separate downloading of the preset sub-package resource data through the resource downloader, and loading the preset sub-package resource data after downloading of the preset sub-package resource data is completed.

[0060] In another embodiment, the downloading unit includes:

[0061] A reading module, used for reading the download status record of the sub-package resource data in the compressed package list based on the download instruction of the sub-package resource data;

[0062] The download module is used to traverse the sub-package resource data in the compression list according to the encoding order, and download the sub-package resource data in the compression package list according to the download flag in the download status record.

[0063] In another embodiment, the download module includes:

[0064] A detection submodule, used for traversing the sub-packaged resource data in the compression list according to the encoding order, and detecting the download flag in the download status record;

[0065] A determination submodule, for determining the download status of the sub-package resource data by comparing the digital difference between the package body version number and the sub-package version number if the download flag indicates that the download has been completed;

[0066] A monitoring submodule, for detecting that if the download flag is not completed, then starting the download instruction of the sub-package resource data, and monitoring the download status of the sub-package resource data;

[0067] The determination submodule is specifically used to start the download instruction of the sub-package resource data if the digital difference between the package body version number and the sub-package version number is greater than a preset threshold, and monitor the download status of the sub-package resource data;

[0068] The determination submodule is further specifically used to start the running instruction of the sub-package resource data if the digital difference formed by the package body version number and the sub-package version number is less than or equal to a preset threshold.

[0069] According to a third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in the first aspect when executing the computer program.

[0070] According to a fourth aspect of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0071] By means of the above technical scheme, the present application provides a method and device for processing game resource data. Compared with the current existing method which needs to spend time waiting for the game resource data to be downloaded before processing the game resource data, the present application obtains the installation package data of the game program, wherein the game installation package data includes basic resource data and a compressed package list carrying a coding order, and the size of the basic resources can be increased or decreased at will to form installation package data of different sizes, thereby improving the flexibility of game resource allocation. After the game program is running, by loading the basic resource data and starting the download instruction of the sub-packaged resource data, the basic resource data retains the resource data of the early stage of the game, without the need to spend time waiting for the resource download, and allows the player to experience the early game resources while continuously downloading the sub-packaged resource data in the coding order, without affecting the player's game experience during the resource download period. The sub-packaged resource data forms a compressed package list in the coding order, so that the game gives priority to downloading the compressed package with the front coding while loading the basic resource data, thereby forming an ecological cycle of game resources, which can reduce the space occupied by the game resource data and improve the processing efficiency of the game resource data.

[0072] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0074] Figure 1 A flowchart of a method for processing game resource data provided by an embodiment of the present application is shown;

[0075] Figure 2 A schematic flow chart showing another method for processing game resource data provided by an embodiment of the present application;

[0076] Figure 3 A schematic diagram showing the structure of game resource data provided by an embodiment of the present application is shown;

[0077] Figure 4 A flowchart of a process for downloading sub-packaged resource data provided by an embodiment of the present application is shown;

[0078] Figure 5 A flowchart of a sub-package resource data switching process provided by an embodiment of the present application is shown;

[0079] Figure 6 A flowchart of a process for processing game resource data provided by an embodiment of the present application is shown;

[0080] Figure 7 A schematic diagram showing the structure of a device for processing game resource data provided by an embodiment of the present application is shown;

[0081] Figure 8 A schematic diagram showing the structure of another device for processing game resource data provided by an embodiment of the present application is shown;

[0082] Fig. 9 A schematic diagram showing the structure of another device for processing game resource data provided by an embodiment of the present application is shown;

[0083] Fig.10 A schematic diagram of the device structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0084] Now the content of the present invention will be discussed with reference to several exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and thus implement the content of the present invention, rather than implying any limitation on the scope of the present invention.

[0085] As used herein, the term "including" and variations thereof are to be interpreted as open-ended terms meaning "including but not limited to." The term "based on" is to be interpreted as "based, at least in part, on." The terms "one embodiment" and "an embodiment" are to be interpreted as "at least one embodiment." The term "another embodiment" is to be interpreted as "at least one other embodiment."

[0086] Normally, all the game resource data in the game installation package takes up a lot of space. After many players have noticed the game through advertisements or other channels, they need to spend a long time downloading the game package. Some players even give up downloading the game resource package directly due to the space occupied by the package. In order to allow users to obtain the game installation package faster, the game installation package does not contain or contains a small amount of game resource data required for game installation. After obtaining the game installation package and launching the game program, the game resource data is downloaded. However, due to the space occupied by the game resource data, players still need to spend time waiting for the resource download, which affects the processing efficiency of the game resource data and makes the player's gaming experience poor during the resource download period.

[0087] In order to solve this problem, this embodiment provides a method for processing game resource data, such as Figure 1 As shown, the method is applied to the client of the game application, and includes the following steps:

[0088] 101. Obtain the installation package data of the game program.

[0089] Among them, the installation package data of the game program is the data that needs to be loaded during the game operation, which can usually be downloaded from the application platform or application website. The installation package data includes basic resource data and a compressed package list carrying a coding order. The compressed package list records the download order of the sub-package resource data. Here, the basic resource data and the sub-package resource data are both resource data needed to be used during the game process. The two form the game resource data. The basic resource data involves early game resources, such as resources such as users logging into the game interface, registering a game account, and entering the game homepage. The sub-package resource data is the resource data in the game resource data except the basic resource data.

[0090] Normally, during the running of a game program, each game character will follow the game's guidance process to perform various operations such as game tasks to experience different functional gameplays in the game. Since the resource data of each functional gameplay in the game will take up a lot of space, players do not need to experience all functional gameplays in the early stage of downloading the game program's installation package, or some game gameplays are not available in the early stage. Here, the resource data involving the early functional gameplay of the game will be put into the game program's installation package data as basic resource data, and the resource data of other functional gameplays will be put into the compressed package list as sub-package resource data, which can be downloaded later during the running of the game program, saving space occupied by the installation package data while not affecting the player's gaming experience during the download of game resources.

[0091] It is understandable that in order to improve the flexibility of the early game play functions, the size of the basic resource data in the game resource data can be adjusted according to the actual application scenario requirements. For example, if the game application scenario is more complex and requires more types of early game functions, the data capacity corresponding to the basic resource data in the game resource data can be appropriately increased. Conversely, the data capacity corresponding to the basic resource data in the game resource data can be appropriately reduced.

[0092] Specifically, in the process of putting the sub-packaged resource data into the compressed package list, in order to improve the download efficiency, the download order of the sub-packaged resource data can be determined according to the loading order of the sub-packaged resource data corresponding to the gameplay functions. Here, the sub-packaged resource data can be compressed into multiple compressed packages in advance, and a compressed package list with a coding order is formed, so that in the subsequent process of running the game program, the sub-packaged resource data with a higher loading order priority will be downloaded first.

[0093] The executor of this embodiment can be a device or equipment for processing game resource data, which can be configured on the client of the game application. The client can obtain the installation package data of the game program from the application platform or the game platform. The installation package data includes the basic resource data involved in the early gameplay, and compresses the sub-packaged resource data scattered in the later stage of the game into multiple compressed packages to form a compressed package list, thereby reducing the space occupied by the resource data that needs to be loaded, solving the problem of slow download speed caused by multiple files, and allowing players to experience the basic resource data of the early stage of the game to the greatest extent.

[0094] 102. In response to a running instruction of the game program, the basic resource data is loaded, and a download instruction of the sub-package resource data is started.

[0095] Since the basic resource data can support the early game play functions, and the sub-packaged resource data involves other game play functions, during the running of the game program, players can experience the early game play by loading the basic resource data. While the players are experiencing the early game play functions, the download of the sub-packaged resource data is started. This can supplement the resource data of other game play functions at the fastest download speed without affecting the players' experience of the early game play functions, thereby ensuring the processing efficiency of the game resource data.

[0096] In an embodiment of the present invention, the instructions for loading basic resource data and starting the download of sub-packaged resource data are executed simultaneously. Since many operating behaviors are involved in the game process, each operating behavior will involve different resource data. Under normal circumstances, the basic resource data can meet the operating behaviors of players in the initial stage of downloading the game. For the situation where the operating behavior involves sub-packaged resource data, it cannot be determined whether the corresponding sub-packaged resource data has been downloaded. After starting the download instruction of the sub-packaged resource data, the download status of the sub-packaged resource data can be monitored, and the corresponding sub-packaged resource data can be loaded according to the download status of the sub-packaged resource data, or the download priority order of the sub-packaged resource data can be adjusted.

[0097] 103. Based on the download instruction of the sub-package resource data, download the sub-package resource data in the compressed package list in sequence according to the encoding order.

[0098] Among them, the encoding order of the sub-packaged resource data is the downloading order of the sub-packaged resource data. Considering the triggering order of the game scenes and / or the loading order of the resource objects during the game running process, the game scenes triggered first and / or the resource objects loaded first should be downloaded first.

[0099] It should be noted that the download status of the sub-package resource data determines the gameplay functions that players can experience. The downloaded sub-package resource data can be decompressed to a local directory so that when the game resources of the corresponding scene are triggered, the downloaded sub-package resource data can be loaded using the local directory to enter the corresponding game scene. For the sub-package resource data that has not been downloaded, players cannot experience the game resources of the corresponding scene. The download priority order can be adjusted for the game resources of the corresponding scene. The player can also stay in the current game scene where the sub-package resource data has been downloaded or jump to other game scenes where the sub-package resources have been downloaded, and jump to the corresponding game scene after the download of the sub-package resource data is completed. For example, basic resource data enables players to enter game scenes A1 and A2, and downloaded sub-package resource data enables players to enter game scenes B2 and B3. If game scene A3 has not yet been downloaded, if the player triggers game scene A3 in game scene A2, the client will intercept the entry of game scene A3 and allow the player to stay in the current game scene A2 or jump to game scene A1. Of course, the download priority order for game scene A3 can also be adjusted to speed up the player's entry into game scene A3, and after the sub-package resource data corresponding to game scene A3 is downloaded, a reminder can be sent to the player to inform the player that game scene A3 has been downloaded.

[0100] When the game scene jumps from A1 to A3, the present invention determines that the map resources of the A3 scene have not been loaded, that is, the scene resources of the A3 scene have not been loaded. The present invention will use the gameplay interception method to intercept the pop-up confirmation box from the A1 scene to the A3 scene, and at the same time pop up the resource loading progress table of the A3 scene to prompt the user of the resource download situation. In addition, while using the gameplay interception logic, the priority of the A3 scene in the sub-packet download is started, and the sub-packet corresponding to the A3 scene is adjusted to the highest priority state.

[0101] The method for processing game resource data provided in the embodiment of the present application is compared with the current method in which time is spent waiting for the game resource data to be downloaded before processing the game resource data. The present application obtains the installation package data of the game program, and the game installation package data includes basic resource data and a compressed package list carrying a coding order, and the size of the basic resources can be increased or reduced at will to form installation package data of different sizes, thereby improving the flexibility of game resource allocation. After the game program is running, by loading the basic resource data and starting the download instruction of the sub-packaged resource data, the basic resource data retains the resource data of the early stage of the game, without the need to waste time waiting for the resource download, and allows players to experience the early game resources while continuously downloading the sub-packaged resource data in the coding order, without affecting the player's game experience during the resource download period. The sub-packaged resource data forms a compressed package list in the coding order, so that the game gives priority to downloading the compressed package with the front coding while loading the basic resource data, thereby forming an ecological cycle of game resources, which can reduce the space occupied by the game resource data and improve the processing efficiency of the game resource data.

[0102] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, this embodiment provides another method for processing game resource data, such as Figure 2 As shown, the method includes:

[0103] 201. Obtain the loading order of game resource data during game running.

[0104] Among them, game resource data refers to all data that needs to be loaded during the game operation, which usually occupies a large storage space. Since the game resource data involves a large number of game scenes and resource objects in the game scenes, the game scenes can include page scenes involved in the game process, such as login scenes, field scenes, special scenes, etc. Each game scene contains different resource objects, such as game characters, character special effects, textures, game videos, sounds, etc.

[0105] Generally, game scenes and resource objects in game scenes will perform corresponding game tasks according to the guidance process when the game is running, such as game login tasks, game learning tasks, game upgrade tasks, etc. By using the guidance process information of game objects when the game is running, the resource objects that the game scene depends on and the order in which the resource objects are loaded when the game is running can be determined. Based on the order in which the resource objects are loaded when the game is running, the loading order of game resource data during the game running process can be defined. For example, background images, game characters, etc. are loaded first in the game scene, followed by character special effects, sounds, etc.

[0106] 202. Split the game resource data into basic resource data and sub-package resource data by using the loading order of the game resource data, and define the downloading order of the sub-package resource data.

[0107] In the example of the present invention, since the basic resource data is the resource data with the highest order in the game experience, it is usually loaded first during the game running process, while the sub-package resource data is loaded later and can be loaded later during the game running process. Specifically, the loading order of the resource objects can be used to select the game resource data with the loading order before the preset value as the basic resource data, and the data part of the game resource data except the basic resource data as the sub-package resource data; further based on the loading order of the game resource data, the download order of the sub-package resource data is determined, and the download order of the sub-package resource data is formed into a compressed package list carrying the encoding order.

[0108] Specifically, in the process of forming a compressed package list carrying a coding order from the download order of the sub-packaged resource data, the download order of the sub-packaged resource data can be used to split the sub-packaged resource data into multiple resource data packets with fixed capacity values; and the multiple resource data packets with fixed capacity values ​​are compressed to form a compressed package list carrying a coding order.

[0109] In actual application scenarios, such as Figure 3 As shown, a loading order list of game resources can be exported according to the loading order of game resource data during game operation, and the exported list file can be analyzed. The map resources are used as game scenes, and the resource objects loaded after entering the map are used as object resources that the game scene depends on. The order of resource objects in the map is defined. For example, map A contains resource data as A1, A2, A3, ..., and the map resource itself is placed at the end as An. Other resource objects are deduced by analogy. Further, the basic resource data in the game resource data is determined according to the special rules of the game. Here, the basic resource data can be set according to the time limit of the game, and the basic resource data can also be set according to the upgrade limit of the game. For example, since the game is upgraded every day, when the main task is completed and reaches a certain stage, the task cannot be collected and can only be continued the next day, or the daily activities in the game are fixed, and other game activities can only be continued the next day, or the game task needs to reach a certain level before the next stage of the game task can be executed. Here, the resource data required for the game content on the first day can be used as the basic resource data, and the resource data required for the game content below the preset game level can also be used as the basic resource data. The other resource data in the game resource data is used as sub-package resource data. The content of the basic resource data is not limited here and can be adjusted according to actual needs.

[0110] In the example of the present invention, the sub-packaged resource data includes scene resource data and map resource data. Specifically, in the process of defining the download order of the sub-packaged resource data, the scene resource data has a higher priority. The download order of the scene resources in the sub-packaged resource data can be defined based on the priority order of the scenes during the game running process. The map resource data has a lower priority. The map resource data can be used as the tail resource, and the download order of the map resource data in the sub-packaged resource data is defined to be after the scene resource data.

[0111] It can be understood that the download order of scene resource data is before the map resource data. Specifically, during the running of the game, it is possible to determine whether the corresponding scene resource data has been loaded based on the loading status of the map resource data. If the map resource data has not been loaded, the corresponding scene resource data cannot be displayed. If the map resource data has been loaded, the scene resource data that is downloaded before the map resource data must have been downloaded, and the corresponding scene resource data can be displayed.

[0112] As an implementation scenario for defining the loading order of sub-packaged resource data, since the common resources of different game characters and the attribute resources unique to each game character need to be considered when loading the game, the scene resource data includes the common resource data of the game characters and the attribute resource data of each game character. Specifically, the loading order of the common resource data of the game characters and the attribute resource data of each game character in the scene can be obtained based on the priority order of the scene during the game running process, and the loading order of the common resource data of the game characters and the attribute resource data of each game character in the scene is further used to define the download order of the scene resource data in the sub-packaged resource data. For example, game characters A1-A3 share game resource data M, which can be used by game characters A1-A3 after loading. Game resource data N is the attribute resource data unique to game character A2. For characters A1-A3, the loading order of common resource data M is before the attribute resource data N. If the loading order of game character A4 in the scene is before game characters A1-A3, then the loading order of the common resource data of game character A4 is before the common resource data M.

[0113] Taking the game resource data as an example, it can be specified that each compressed package is 100M, and the resource data is compressed and packaged in ZIP mode according to the priority order of loading the resource data to obtain an ordered compressed package list and multiple compressed package files.

[0114] Assume that the basic resource data includes: A1, A2, A3, ..., An, B1, B2

[0115] Then the download order of the sub-package resource data is: B3, B4, ..., Bn, C1, C2, C3, ..., Cn, ..., unordered resources

[0116] No. 1 compressed package: B3, B4, ..., Bn, C1 (about 100M)

[0117] No. 2 compressed package: C2, C3, ..., C10 (about 100M)

[0118] No. 3 compressed package: C11, C23, ..., Cn, ... (about 100M)

[0119] …

[0120] No. N-1 compressed package: unordered resources (about 100M)

[0121] Number N compressed package: the last unordered resources (less than 100M)

[0122] 203. Obtain installation package data of the game program.

[0123] It should be noted that the installation package data here only contains basic resource data and a compressed package list with a coding order to support the execution of the initial gameplay functions of the game. For the later gameplay functions, the sub-packaged resource data can be downloaded according to the coding order in the compressed package list during the running of the game program, thereby improving the download efficiency of game resources.

[0124] 204. In response to the running instruction of the game program, load the basic resource data and start the download instruction of the sub-package resource data.

[0125] Since the basic resource data is in the installation package data of the game program, it does not need to be downloaded and can be directly loaded and used, and the sub-package resource data is not in the installation package data of the game program. During the process of loading the basic resource data, the download instruction of the sub-package resource data can be started to download the compressed package formed by the sub-package resource data according to the encoding order.

[0126] In the embodiment of the present invention, by compressing the scattered sub-package resource data into multiple compressed packages, the size of the resources that need to be loaded is reduced, and the problem of slow downloading caused by too many files is solved, thereby improving the download efficiency of the sub-package resource data, allowing players to experience the basic resource data to the maximum extent. When the compressed packages with forward numbers have been downloaded, the players can continue to experience the newly added gameplay functions, forming an ecological cycle of game experience.

[0127] Furthermore, in order to improve the download efficiency of sub-packaged resource data, a breakpoint resume mechanism can be used during the compressed package download process. When the compressed package download is interrupted, the downloaded compressed package is saved locally and the download is continued from the previous compressed package progress when it is downloaded again.

[0128] It is understandable that if the download speed is too fast and frequent I / O reading and writing take up too many device resources, the download speed can be limited when the compressed package is downloaded, and the corresponding speed limit can be set according to the different configurations of the player's device to ensure the smoothness of the player's gaming experience.

[0129] 205. Based on the download instruction of the sub-package resource data, read the download status record of the sub-package resource data in the compressed package list.

[0130] In an embodiment of the present invention, since the sub-packaged resource data in the compressed package list may encounter various situations during the download process, the sub-packaged resource data may form different download states. By reading the download state records of the sub-packaged resource data in the compressed package list, the sub-packaged resource data in different download states are processed and the corresponding processing logic is triggered, thereby improving the flexibility of downloading the sub-packaged resource data.

[0131] Specifically, the sub-package resource data can be stored at any time during the download process, and the download status of the sub-package resource data can be obtained when the game program is restarted. When the download progress of the sub-package resource data is slow, the player may be stuck in a certain gameplay function. The processing logic of the game scene jump can be triggered to allow the game process to continue to execute, and jump to the corresponding game scene after the download of the sub-package resource data of the gameplay is completed. There is no need for the player to pay attention to the download status of the sub-package resource all the time, so as to realize the adaptive adjustment of the game scene according to the download progress of the sub-package resource data. Here, a jump prompt can be set for the corresponding gameplay when downloading the sub-package resource data, so that the player can understand the download status of the game resources at the first time and experience the game resources of the latest gameplay in time.

[0132] 206. Traverse the sub-package resource data in the compressed list according to the encoding order, and download the sub-package resource data in the compressed package list according to the download flag in the download status record.

[0133] Since the sub-package resource data in the compressed package list may encounter various situations during the download process, resulting in different download statuses of the sub-package resource data, the sub-package resource data in the compressed list may be traversed in encoding order, and the download flag in the download status record may be detected, which may indicate whether the sub-package resource data has been downloaded. If the download flag indicates that the download has been completed, it indicates that all the sub-package resource data has been downloaded. However, in order to verify the download status of the sub-package resource data, the download status of the sub-package resource data may be determined by comparing the digital difference between the package body version number and the sub-package version number. If the download flag indicates that the download has not been completed, it indicates that the sub-package resource data still needs to be downloaded, and the download instruction of the sub-package resource data may be started, and the download status of the sub-package resource data may be monitored.

[0134] It can be understood that the package version number is the version number set in the installation package data of the game program, and the sub-package version number is the package version number recorded when all the sub-package resource data have been downloaded. If the numerical difference between the package version number and the sub-package version number is greater than the preset threshold, it means that the sub-package resource data needs to be downloaded again, and the download instruction of the sub-package resource data is further initiated, and the download status of the sub-package resource data is monitored; if the numerical difference between the package version number and the sub-package version number is less than or equal to the preset threshold, it means that the sub-package resource data has been downloaded, and the running instruction of the sub-package resource data is initiated.

[0135] Specifically in the download scenario of sub-packaged resource data, such as Figure 4 As shown, after the download instruction of the sub-package resource data is started, the download status record of the sub-package resource data is read, and the download flag is detected. If the download flag is that the download is complete, the digital difference value formed by the package version number and the sub-package version number is compared. If the difference value is large, it is necessary to download the sub-package resource data again, and the download instruction of the sub-package resource data is started. If the difference value is not large, the running instruction of the sub-package resource data is started. If the download flag is that the download is not complete, the download instruction of the sub-package resource data is started until all the sub-package resource data are downloaded.

[0136] Furthermore, when it is necessary to switch game resources during the game, it is usually predicted whether the game resources have been downloaded. If the download is complete, the corresponding game scene can be entered. If not, the entry into the corresponding game scene will be blocked, and the game will stay in the current game scene, or other game scenes that have been downloaded will be experienced. In order to ensure the accuracy of the game operation, it can respond to the loading instruction of the preset sub-package resource data in the game program, and judge whether the preset resource data has been downloaded according to the download process of the sub-package resource data; if so, it means that the current sub-package resource data has been downloaded, and the map resource data in the preset sub-package resource data is further displayed; otherwise, it means that the sub-package resource has not been downloaded, and the entry into the map resources in the preset sub-package resource data is blocked, and the map resources in other sub-package resource data that have been downloaded during the download process are displayed.

[0137] In specific application scenarios, when players need to switch maps during the game, they can determine whether the map resources have been downloaded. If the download is complete, they can enter the map resources. If not, they will stay on the current map or jump to other downloaded map resources. The game running process here can be understood as a tree structure, with the root being the game, the branches being the map, and the leaves being the gameplay functions. The gameplay functions rely on map resources, so map resources are the tail resources. Whether the corresponding scene resource data has been downloaded can be determined by determining whether there is map resource data.

[0138] Furthermore, when a game resource needs to be loaded during game operation, but the compressed package to which the game resource belongs has not been downloaded, it may be because the loading order of the game resource data has not yet been reached, or the loading order of the game resource data is late, so that the sub-package resource data in the corresponding compressed package has not been downloaded during the game operation. For example, when a new player encounters an old player, the game scene of the old player's character needs to be displayed. For example, the equipment resources on the old player may be late-stage gameplay resources of the game. For example, after the old player installs a new sub-package resource, the late-stage gameplay resources of the game program need to be loaded. In order to ensure the correctness of the game logic, in response to the loading instruction of the preset sub-package resource data in the game program, according to the download process of the sub-package resource data, it can be judged whether the download process of the preset sub-package resource data reaches the download order of the preset sub-package resource data. If so, after the preset sub-package resource data is downloaded, the preset sub-package resource data is loaded. Otherwise, it is explained that the preset sub-package resource data is the sub-package resource data that has not reached the download order in the operation of the game program. In order to let the player experience the gameplay of the sub-package resource data as soon as possible, a resource downloader is further created to perform a separate download of the preset sub-package resource data through the resource downloader, and then download the preset sub-package resource data in advance, so as to adaptively adjust the download order of the sub-package resource data according to the player's needs, and after the preset sub-package resource data is downloaded, the preset sub-package resource data is loaded, so as to improve the flexibility of the game resource data download process. The resource downloader can download the preset resources separately as compressed packages, or download the compressed package where the preset resources are located, which is not limited here.

[0139] Specifically in the switching scenario of sub-package resource data, such as Figure 5 As shown, during the game, players can switch game resources or perform other operations on the current game resources. When switching game resources, for example, when switching map operations, it is determined whether the switched game resources exist. If so, the switched map resources are entered. If not, the current map resources are stayed, and the corresponding game resources are experienced by performing player operations. When other operations on the current map resources are performed, the corresponding resource objects are fed back for other operations.

[0140] In actual application scenarios, such as Figure 6As shown, the processing process of game resource data in the embodiment of the present invention may include but is not limited to the following implementation methods. When the game program is started, on the one hand, basic resource data is loaded, the basic resource data is processed, and the account is logged in. If there is no character, the character creation interface is entered, the default birth map is entered, and the early basic resource data is experienced. If there is a character, the casting interface is entered, and after selecting the character, it is determined whether the character exists in the map resources. If it exists, the default birth map is entered, otherwise, the previous map is entered to experience the early basic resource data. On the other hand, the sub-package resource data is continuously downloaded and saved locally. While experiencing the early basic resource data, the completed sub-package resource data is loaded and the unfinished sub-package resource data is downloaded to improve the player's gaming experience during resource download.

[0141] Further, as Figure 1 and Figure 2 The specific implementation of the method, the embodiment of the present application provides a device for processing game resource data, such as Figure 7 As shown, the device includes: a first acquisition unit 301, an operation unit 302, and a downloading unit 303.

[0142] The first acquisition unit 301 may be used to acquire installation package data of the game program, wherein the installation package data includes basic resource data and a compressed package list carrying a coding order, wherein the compressed package list records a download order of sub-package resource data, and the basic resource data and the sub-package resource data form game resource data of the game program;

[0143] The running unit 302 may be used to load the basic resource data and start the downloading instruction of the sub-package resource data in response to the running instruction of the game program;

[0144] The downloading unit 303 may be configured to download the sub-package resource data in the compressed package list in sequence according to the encoding sequence based on the download instruction of the sub-package resource data.

[0145] The device for processing game resource data provided by the embodiment of the present invention is compared with the current existing method in which time is spent waiting for the game resource data to be downloaded before processing the game resource data. The present application obtains the installation package data of the game program, and the game installation package data includes basic resource data and a compressed package list carrying a coding order, and the size of the basic resources can be increased or reduced at will to form installation package data of different sizes, thereby improving the flexibility of game resource allocation. After the game program is running, by loading the basic resource data and starting the download instruction of the sub-package resource data, the basic resource data retains the resource data of the early stage of the game, without the need to waste time waiting for the resource download, so that the player can experience the early game resources while continuously downloading the sub-package resource data in the coding order, without affecting the player's game experience during the resource download period. The sub-package resource data forms a compressed package list in the coding order, so that the game gives priority to downloading the compressed package with the front coding while loading the basic resource data, thereby forming an ecological cycle of game resources, which can reduce the space occupied by the game resource data and improve the processing efficiency of the game resource data.

[0146] In specific application scenarios, such as Figure 8 As shown, the device also includes:

[0147] The second acquisition unit 304 may be used to acquire the loading order of game resource data during the game running process before acquiring the installation package data of the game program;

[0148] The definition unit 305 may be used to split the game resource data into basic resource data and sub-package resource data by utilizing the loading order of the game resource data, and define the downloading order of the sub-package resource data.

[0149] In specific application scenarios, such as Figure 8 As shown, the sub-package resource data includes scene resource data and map resource data, and the definition unit 305 includes:

[0150] The first definition module 3051 may be used to define the downloading order of the scene resource data in the sub-package resource data based on the priority order of the scenes during the game running process;

[0151] The second definition module 3052 may be used to take the map resource data as the tail resource and define the downloading order of the map resource data in the sub-package resource data to be after the scene resource data.

[0152] In specific application scenarios, such as Figure 8 As shown, the device also includes:

[0153] The first judgment unit 306 may be configured to judge whether the map resource data in the preset sub-package resource data has been loaded after the sub-package resource data in the compressed package list is downloaded in sequence according to the encoding sequence in response to the loading instruction of the sub-package resource data in the game program;

[0154] The first determining unit 306 may also be configured to determine that if yes, the loading of the scene resource data in the preset sub-package resource data is complete.

[0155] In specific application scenarios, such as Figure 8 As shown, the scene resource data includes the common resource data of the game characters and the attribute resource data of each game character, and the second definition module 3052 includes:

[0156] The acquisition submodule 30521 can be used to acquire the order in which the common resource data of the game characters and the attribute resource data of each game character are loaded in the scene based on the priority order of the scenes during the game running process;

[0157] The definition submodule 30522 can be used to define the downloading order of the scene resource data in the sub-packaged resource data by using the loading order of the common resource data of the game characters and the attribute resource data of each game character in the scene.

[0158] In specific application scenarios, such as Figure 8 As shown, the downloading unit 303 includes:

[0159] The reading module 3031 may be used to read the download status record of the sub-package resource data in the compressed package list based on the download instruction of the sub-package resource data;

[0160] The download module 3032 may be used to traverse the sub-package resource data in the compression list according to the encoding order, and download the sub-package resource data in the compression list according to the download flag in the download status record.

[0161] In specific application scenarios, such as Figure 8 As shown, the download module 332 includes:

[0162] The detection submodule 30321 may be used to traverse the sub-packaged resource data in the compression list according to the encoding order and detect the download flag in the download status record;

[0163] The determination submodule 30322 may be used to determine the download status of the sub-package resource data by comparing the digital difference between the package body version number and the sub-package version number if the download flag indicates that the download has been completed;

[0164] The monitoring submodule 30323 may be used to detect if the download flag indicates that the download is not completed, then start the download instruction of the sub-package resource data, and monitor the download status of the sub-package resource data;

[0165] The determining submodule 30322 may be specifically configured to start a download instruction for the subpackage resource data if the digital difference between the package body version number and the subpackage version number is greater than a preset threshold, and monitor the download status of the subpackage resource data;

[0166] The determination submodule 30322 may be specifically configured to start the running instruction of the sub-package resource data if the numerical difference between the package body version number and the sub-package version number is less than or equal to a preset threshold.

[0167] In specific application scenarios, such as Figure 8 As shown, the device also includes:

[0168] The second judgment unit 307 may be configured to, after downloading the sub-package resource data in the compressed package list in sequence according to the encoding sequence in response to the loading instruction of the preset sub-package resource data in the game program, judge whether the download of the preset sub-package resource data is completed according to the download progress of the sub-package resource data;

[0169] A display unit 308 may be used to display the map resource data in the preset sub-package resource data if yes;

[0170] The display unit 308 may also be used to display the map resource data in other sub-package resource data downloaded in the download process.

[0171] In specific application scenarios, such as Fig. 9 As shown, the device also includes:

[0172] The third judgment unit 309 may be configured to judge whether the download process of the game program reaches the download sequence of the preset sub-package resource data in response to the loading instruction of the preset sub-package resource data in the game program after the sub-package resource data in the compressed package list is downloaded in sequence according to the encoding sequence based on the download instruction of the sub-package resource data;

[0173] The loading unit 310 may be configured to load the preset sub-package resource data after the preset sub-package resource data is downloaded;

[0174] The creation unit 311 may be used to create a resource downloader to perform a separate download of the preset sub-package resource data through the resource downloader, and load the preset sub-package resource data after the download of the preset sub-package resource data is completed.

[0175] It should be noted that for other corresponding descriptions of the functional units involved in the device for processing game resource data provided in this embodiment, reference can be made to Figure 1-Figure 2 The corresponding description in will not be repeated here.

[0176] Based on the above Figure 1-Figure 2 The method shown in the embodiment of the present application accordingly provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned Figure 1-Figure 2 The method for processing game resource data shown.

[0177] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0178] Based on the above Figure 1-Figure 2 The method shown, and Figure 7-Figure 9 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides a physical device for processing game resource data, which can be a computer, a smart phone, a tablet computer, a smart watch, a server, or a network device, etc. The physical device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1-Figure 2 The method for processing game resource data shown.

[0179] Optionally, the physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.

[0180] In an exemplary embodiment, see Fig. 9 The physical device 400 includes a communication bus, a processor, a memory and a communication interface, and may also include an input / output interface and a display device, wherein each functional unit can communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the painting mounting method in the above embodiment.

[0181] Those skilled in the art will appreciate that the physical device structure for processing game resource data provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0182] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device for the store search information processing, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the physical device for information processing.

[0183] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware platforms, or by hardware. By applying the technical solution of the present application, compared with the current existing methods, after the game program is run, the present application loads the basic resource data and starts the download instruction of the sub-packaged resource data. The basic resource data retains the resource data of the early stage of the game, and there is no need to waste time waiting for resource downloads. It allows players to experience the early game resources while continuously downloading the sub-packaged resource data in the coding order, without affecting the game experience of players during resource downloads. The sub-packaged resource data forms a compressed package list in the coding order, so that the game gives priority to downloading the compressed package with the front coding while loading the basic resource data, forming an ecological cycle of game resources, which can reduce the space occupied by game resource data and improve the processing efficiency of game resource data.

[0184] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.

[0185] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.

Claims

1. A method for processing game resource data, characterized in that: include: Acquire installation package data of the game program, wherein the installation package data includes basic resource data and a compressed package list carrying a coding order, wherein the compressed package list records a download order of sub-package resource data, and the basic resource data and the sub-package resource data form game resource data of the game program; In response to the running instruction of the game program, the basic resource data is loaded, and the download instruction of the sub-package resource data is started, wherein the basic resource data is used to support the early game play function, and the sub-package resource is used to support other game play functions; Based on the download instruction of the sub-package resource data, the sub-package resource data in the compressed package list is downloaded in sequence according to the encoding order, wherein when the sub-package resource data is downloaded, other game play modes are downloaded at the fastest download speed without affecting the player's experience of the early game play functions.

2. The method according to claim 1, characterized in that Before obtaining the installation package data of the game program, the method further includes: Get the loading order of game resource data during game running; The loading order of the game resource data is utilized to split the game resource data into basic resource data and sub-package resource data, and the downloading order of the sub-package resource data is defined.

3. The method according to claim 2, characterized in that The sub-package resource data includes scene resource data and map resource data, and the downloading order of defining the sub-package resource data specifically includes: Based on the priority order of scenes during the running of the game, define the download order of the scene resource data in the sub-package resource data; The map resource data is used as the tail resource, and the downloading order of the map resource data in the sub-package resource data is defined to be after the scene resource data.

4. The method according to claim 3, characterized in that After the download instruction based on the sub-package resource data sequentially downloads the sub-package resource data in the compressed package list according to the encoding sequence, the method further includes: In response to a loading instruction of sub-package resource data in the game program, determining whether the map resource data in the preset sub-package resource data has been loaded; If so, it is determined that the loading of the scene resource data in the preset sub-package resource data is complete.

5. The method according to claim 3, characterized in that: The scene resource data includes the common resource data of the game characters and the attribute resource data of each game character. The download order of the scene resource data in the sub-package resource data is defined based on the priority order of the scenes during the game running process, specifically including: Based on the priority order of the scenes during the game running process, obtaining the loading order of the common resource data of the game characters and the attribute resource data of each game character in the scene; The downloading order of the scene resource data in the sub-packaged resource data is defined by utilizing the loading order of the common resource data of the game characters and the attribute resource data of each game character in the scene.

6. The method according to claim 3, characterized in that After the download instruction based on the sub-package resource data sequentially downloads the sub-package resource data in the compressed package list according to the encoding sequence, the method further includes: In response to a loading instruction of preset sub-package resource data in the game program, judging whether the download of the preset sub-package resource data is completed according to the download progress of the sub-package resource data; If yes, then display the map resource data in the preset sub-package resource data; Otherwise, the map resource data in other sub-package resource data downloaded in the download process is displayed.

7. The method according to any one of claims 1 to 6, characterized in that After the download instruction based on the sub-package resource data sequentially downloads the sub-package resource data in the compressed package list according to the encoding sequence, the method further includes: In response to a loading instruction of preset sub-package resource data in the game program, determining whether the download process of the game program reaches the download sequence of the preset sub-package resource data; If so, after the preset sub-package resource data is downloaded, the preset sub-package resource data is loaded; Otherwise, a resource downloader is created to execute separate downloading of the preset sub-package resource data through the resource downloader, and after the downloading of the preset sub-package resource data is completed, the preset sub-package resource data is loaded.

8. The method according to any one of claims 1 to 6, characterized in that The download instruction based on the sub-package resource data sequentially downloads the sub-package resource data in the compressed package list according to the encoding order, specifically including: Based on the download instruction of the sub-package resource data, read the download status record of the sub-package resource data in the compressed package list; The sub-package resource data in the compressed list is traversed in the encoding order, and the sub-package resource data in the compressed package list is downloaded according to the download flag in the download status record.

9. The method according to claim 8, characterized in that The step of traversing the sub-package resource data in the compressed list according to the encoding order and downloading the sub-package resource data in the compressed package list according to the download flag in the download status record specifically includes: Traversing the sub-packaged resource data in the compression list according to the encoding order, and detecting the download flag in the download status record; If the download flag indicates that the download has been completed, the download status of the sub-package resource data is determined by comparing the digital difference between the package body version number and the sub-package version number; If the download flag is detected as incomplete download, a download instruction for the sub-package resource data is initiated, and a download status of the sub-package resource data is monitored; Determining the download status of the sub-package resource data by comparing the digital difference between the package body version number and the sub-package version number specifically includes: If the digital difference between the package body version number and the sub-package version number is greater than a preset threshold, the download instruction of the sub-package resource data is started, and the download status of the sub-package resource data is monitored; If the numerical difference between the package body version number and the sub-package version number is less than or equal to a preset threshold, the running instruction of the sub-package resource data is started.

10. A device for processing game resource data, characterized in that: include: A first acquisition unit is used to acquire installation package data of the game program, wherein the installation package data includes basic resource data and a compressed package list carrying a coding order, wherein the compressed package list records a download order of sub-package resource data, and the basic resource data and the sub-package resource data form game resource data of the game program; An operating unit, configured to load the basic resource data and initiate a download instruction of sub-package resource data in response to an operating instruction of the game program, wherein the basic resource data is used to support early game play functions, and the sub-package resource is used to support other game play functions; The download unit is used to download the sub-package resource data in the compressed package list in sequence according to the encoding order based on the download instruction of the sub-package resource data, wherein when the sub-package resource data is downloaded, other game play modes are downloaded at the fastest download speed without affecting the player's experience of the early game play functions.

Citation Information

Patent Citations

  • Technical method for subpackage downloading of mobile game

    CN109513213A