Sub-package resource downloading method and device, storage medium, and electronic device

By obtaining subcontracted resource data, searching for virtual paths, determining dependencies and generating target identification lists, the problem of low resource download freedom and high maintenance complexity in the existing technology is solved, and detailed resource separation and cross-platform are achieved. Compatible, optimizing player gaming experience.

CN113797553BActive Publication Date: 2024-08-27NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111092583.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-17
Publication Date
2024-08-27
Estimated Expiration
2041-09-17

AI Technical Summary

Technical Problem

The existing game sub-packaging download method results in low resource download freedom and high maintenance complexity. You cannot freely choose to download a single resource file within the game, and the differentiated processing of game files on different platforms increases maintenance complexity and risks.

Method used

By obtaining subcontracted resource data, searching for virtual paths, determining dependencies, generating a target identification list, performing conversion and update processing, generating a patch list for download, supporting expansion of different platforms, and optimizing resource separation and downloading experience.

Benefits of technology

It achieves detailed separation of resources such as fashion, scenes, firearms, etc., reduces the size of the download patch list, avoids crashes caused by missing resources, and solves the maintenance complexity and risks caused by differentiated subcontracting downloads on different platforms. Optimized player gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113797553B
    Figure CN113797553B
Patent Text Reader

Abstract

The present disclosure belongs to the field of computer technology, and relates to a method and device for downloading sub-packaged resources of a game application, a storage medium, and an electronic device. The method includes: obtaining sub-packaged resource data, and searching for a virtual path for storing the sub-packaged resource data according to a resource identifier in the sub-packaged resource data; determining the dependency of the sub-packaged resource data according to the virtual path, and generating a target identifier list for the sub-packaged resource data according to the dependency; converting and updating the sub-packaged resource data and the target identifier list to obtain a patch list including the target identifier list for downloading. The sub-packaged resource data of the present disclosure is meticulously divided into a single file level, which does not affect the experience of other game content, thereby reducing the size of the downloaded patch list. The patch list is extended to various platforms to solve the problems of high maintenance complexity and the risk of non-approval caused by differentiated sub-packaged downloads on different platforms, and also reduces the complexity of testing and optimizes the player's gaming experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method for downloading sub-packaged resources of a game application, a device for downloading sub-packaged resources of a game application, a computer-readable storage medium, and an electronic device. Background Art

[0002] With the popularity of computers and mobile terminals, games have become an increasingly common form of entertainment. As the scale of the game market continues to expand, competition in the game industry is becoming increasingly fierce, and excellent game content has become the core competitiveness of various game producers. As a result, the size of the game package has increased rapidly, resulting in players taking too long to download patches, which has reduced player retention rates. At present, a method of sub-packaging downloads is in the form of the first package (sub-package) + small patch + second-stage patch. That is, the first package contains all the code in the game, but the sub-package itself only contains the functions of creating an account and displaying a character. Players can only create characters on the selected server in the sub-package interface. Other game content can only be experienced after a new round of large patch downloads.

[0003] The patch logic of this sub-package download method is complex and difficult to test. In addition, due to the use of segmented patches, it is not possible to freely choose to download a single resource file in the game. In addition, the first package cannot experience the game content, and the player's gaming experience is reduced. In addition, the game files of Android and IOS are different, and different sub-packages need to be processed for different platforms, which increases the complexity of maintenance. In addition, there is a risk of failure to pass the review of the IOS system.

[0004] In view of this, there is an urgent need in the art to develop a new method and device for downloading sub-packaged resources of game applications.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the present disclosure is to provide a method for downloading sub-packaged resources for game applications, a device for downloading sub-packaged resources for game applications, a computer-readable storage medium and an electronic device, thereby at least to a certain extent overcoming the technical problems of low resource downloading freedom and high maintenance complexity caused by the limitations of related technologies.

[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0008] According to a first aspect of an embodiment of the present invention, a method for downloading sub-packaged resources of a game application is provided, the method comprising:

[0009] Acquire sub-package resource data, and search for a virtual path storing the sub-package resource data according to a resource identifier in the sub-package resource data;

[0010] Determining the dependency relationship of the sub-package resource data according to the virtual path, and generating a target identification list of the sub-package resource data according to the dependency relationship;

[0011] The sub-packaging resource data and the target identification list are converted and updated to obtain a patch list including the target identification list for downloading.

[0012] In an exemplary embodiment of the present invention, the obtaining of sub-package resource data includes:

[0013] Get the resource subcontracting form;

[0014] The resource sub-packaging table is subjected to table conversion processing to obtain sub-packaging resource data.

[0015] In an exemplary embodiment of the present invention, the step of determining the dependency relationship of the sub-packetized resource data according to the virtual path includes:

[0016] When the sub-package resource data is not scene resource data, determining the dependency relationship of the sub-package resource data according to the virtual path in the resource warehouse file;

[0017] When the sub-package resource data is scene resource data, the dependency relationship of the sub-package resource data is determined in the target file according to the virtual path.

[0018] In an exemplary embodiment of the present invention, the dependency relationship includes a dependent relationship and a dependent relationship.

[0019] The step of generating a target identification list of the sub-packaged resource data according to the dependency relationship includes:

[0020] Performing unique dependency determination on the dependent relationship and the dependent relationship to obtain a dependency result;

[0021] The sub-package resource data is subjected to elimination and update processing according to the dependency result to obtain updated sub-package resource data, and a target identification list is generated according to the updated sub-package resource data.

[0022] In an exemplary embodiment of the present invention, the step of generating a target identifier list of the sub-packaged resource data according to the dependency relationship includes:

[0023] Generate an initial identification list of the sub-package resource data according to the dependency relationship, and obtain a system identification corresponding to the sub-package resource data;

[0024] The initial identifier list is updated by using the system identifier to obtain a target identifier list.

[0025] In an exemplary embodiment of the present invention, the step of generating a target identifier list of the sub-packaged resource data according to the dependency relationship includes:

[0026] Obtaining a target field in the sub-package resource data, and obtaining a target parameter of the patch list;

[0027] The target parameter is updated using the target field, and a target identification list of the sub-packaged resource data is generated using the updated target field and the dependency relationship.

[0028] In an exemplary embodiment of the present invention, the downloading includes:

[0029] Obtaining the original file in the patch list, and performing a subscription update process on the information summary value to obtain the target file;

[0030] The target file is compressed to obtain an updated patch list, so as to download the updated patch list.

[0031] According to a second aspect of an embodiment of the present invention, there is provided a device for downloading sub-packaged resources of a game application, comprising:

[0032] A path determination module is configured to obtain sub-package resource data and search for a virtual path storing the sub-package resource data according to a resource identifier in the sub-package resource data;

[0033] A list generating module, configured to determine the dependency relationship of the sub-package resource data according to the virtual path, and generate a target identification list of the sub-package resource data according to the dependency relationship;

[0034] The sub-package download module is configured to convert and update the sub-package resource data and the target identification list to obtain a patch list including the target identification list for downloading.

[0035] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor and a memory; wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method for downloading sub-packaged resources of a game application in any of the above exemplary embodiments is implemented.

[0036] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for downloading sub-packaged resources of a game application in any of the above exemplary embodiments is implemented.

[0037] It can be seen from the above technical solutions that the method for downloading sub-packaged resources of a game application, the device for downloading sub-packaged resources of a game application, the computer storage medium, and the electronic device in the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:

[0038] In the method and device provided by the exemplary embodiment of the present disclosure, the obtained sub-package resource data can be finely divided into a single file level, and resources such as fashions, scenes, guns and skins can be freely separated without affecting the experience of other game content, thereby reducing the size of the downloaded patch list. In addition, the target identification list generated according to the dependency relationship can avoid the flash back caused by missing resources in the game. Extending the patch list including the target identification list to various platforms also solves the problems of high maintenance complexity and the risk of non-approval caused by differentiated sub-package downloads on different platforms, while also reducing the complexity of testing and optimizing the player's gaming experience in sub-package resource downloads.

[0039] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0041] Figure 1 A schematic diagram schematically illustrates a flow chart of a method for downloading sub-packaged resources of a game application in an exemplary embodiment of the present disclosure;

[0042] Figure 2 A schematic diagram schematically illustrates a flow chart of a method for acquiring sub-package resource data in an exemplary embodiment of the present disclosure;

[0043] Figure 3 A schematic diagram of an interface for schematically illustrating a method for searching a virtual path for storing sub-packaged resource data according to a resource identifier in an exemplary embodiment of the present disclosure;

[0044] Figure 4 A flowchart schematically illustrates a method for determining dependency relationships of sub-packaged resource data in an exemplary embodiment of the present disclosure;

[0045] Figure 5 A schematic diagram schematically illustrates a flow chart of a method for generating a target identification list according to a dependency relationship in an exemplary embodiment of the present disclosure;

[0046] Figure 6 A schematic diagram of an interface for generating a target identification list in an exemplary embodiment of the present disclosure is schematically shown;

[0047] Figure 7 A schematic diagram schematically illustrates a flow chart of a method for updating a target identification list in an exemplary embodiment of the present disclosure;

[0048] Figure 8 A schematic diagram schematically illustrates an interface of a target identification list of an Android system in an exemplary embodiment of the present disclosure;

[0049] Fig. 9 A schematic diagram schematically illustrates a flow chart of a method for generating a target identification list according to a target field in an exemplary embodiment of the present disclosure;

[0050] Fig.10 A schematic diagram schematically shows the result of the modified patch_md5 in an exemplary embodiment of the present disclosure;

[0051] Fig.11 A flowchart schematically illustrating a method for downloading a patch list in an exemplary embodiment of the present disclosure;

[0052] Fig.12 A schematic diagram schematically shows a logic diagram of performing association judgment on various resource sets in an exemplary embodiment of the present disclosure;

[0053] Fig.13 The following is a schematic diagram of an interface of a sub-package resource UI in an exemplary embodiment of the present disclosure;

[0054] Fig.14 A schematic diagram schematically illustrates a flow chart of a method for downloading sub-packaged resources of a game application in an application scenario in an exemplary embodiment of the present disclosure;

[0055] Fig.15 A schematic diagram schematically shows the structure of a device for downloading sub-packaged resources of a game application in an exemplary embodiment of the present disclosure;

[0056] Fig.16 Schematically illustrating an electronic device for implementing a method for downloading sub-packaged resources of a game application in an exemplary embodiment of the present disclosure;

[0057] Fig.17 A computer-readable storage medium for implementing a method for downloading sub-packaged resources of a game application in an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0058] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0059] The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects.

[0060] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities.

[0061] With the popularity of computers and mobile terminals, games have become an increasingly common form of entertainment. As the scale of the game market continues to expand, competition in the game industry is becoming increasingly fierce, and excellent game content has become the core competitiveness of various game producers. As a result, the size of the game package has increased rapidly, resulting in players taking too long to download patches, which has reduced player retention rates. Currently, a method of sub-packaging downloads is in the form of the first package (sub-package) + small patch + second patch. That is, the first package contains all the code in the game, but the sub-package itself only contains the functions of creating an account and displaying a character. Players can only create characters on the selected server in the sub-package interface. Other game content can only be experienced after a new round of large patch downloads.

[0062] The patch logic of this sub-package download method is complex and difficult to test. In addition, due to the use of segmented patches, it is not possible to freely choose to download a single resource file in the game. In addition, the first package cannot experience the game content, and the player's gaming experience is reduced. In addition, the game files of Android and IOS are different, and different sub-packages need to be processed for different platforms, which increases the complexity of maintenance. In addition, there is a risk of failure to pass the review of the IOS system.

[0063] In view of the problems existing in the related art, the present disclosure proposes a method for downloading sub-packaged resources of a game application. Figure 1 A flowchart of a method for downloading sub-packaged resources for a game application is shown. Figure 1 As shown, the method for downloading sub-packaged resources of a game application includes at least the following steps:

[0064] Step S110: Acquire sub-package resource data, and search for a virtual path storing the sub-package resource data according to a resource identifier in the sub-package resource data.

[0065] Step S120: Determine the dependency relationship of the sub-package resource data according to the virtual path, and generate a target identification list of the sub-package resource data according to the dependency relationship.

[0066] Step S130: convert and update the sub-package resource data and the target identification list to obtain a patch list including the target identification list for downloading.

[0067] In an exemplary embodiment of the present disclosure, the acquired sub-package resource data can be finely divided into a single file level, and resources such as fashions, scenes, guns and skins can be freely separated without affecting the experience of other game content, thereby reducing the size of the downloaded patch list. In addition, the target identification list generated according to the dependency relationship can avoid the occurrence of flashbacks due to missing resources in the game. Extending the patch list including the target identification list to various platforms also solves the problems of high maintenance complexity and the risk of non-approval caused by differentiated sub-package downloads on different platforms, while also reducing the complexity of testing and optimizing the player's gaming experience in sub-package resource downloads.

[0068] The following is a detailed description of each step of the method for downloading sub-packaged resources for game applications.

[0069] In step S110, sub-package resource data is obtained, and a virtual path storing the sub-package resource data is searched according to a resource identifier in the sub-package resource data.

[0070] In an exemplary embodiment of the present disclosure, the sub-package resource data may be obtained by classifying all resources in the game. For example, a simple classification of game resources may obtain types such as game scenes, characters, special effects, UI (User Interface) resources, data tables, and script files. Furthermore, the sub-package resource data may be resource data of a Messiah file system or sub-package resource data of other file systems, which is not specifically limited in the exemplary embodiment.

[0071] In an alternative embodiment, Figure 2 A flow chart of a method for obtaining sub-package resource data is shown, such as Figure 2 As shown, the method at least includes the following steps: In step S210, a resource sub-packaging table is obtained.

[0072] By controlling the game process and analyzing the project requirements, we can know that some resources are necessary when users just enter the game, some resources are not used at the beginning, or some resources are necessary for all players to play the game, and some resources are only used when players have their own needs, etc. Therefore, according to the evaluation results of the resource size, we can select the appropriate sub-package resource name and fill it into the table to obtain the resource sub-package table.

[0073] In step S220, table conversion processing is performed on the resource sub-packaging table to obtain sub-packaging resource data.

[0074] After the resource sub-packaging table is obtained, the resource sub-packaging table may be converted into a table. Specifically, the table conversion process may be to convert the resource sub-packaging table in a table form into data, that is, sub-packaging resource data.

[0075] In this exemplary embodiment, corresponding subpackage resource data can be obtained based on the acquired resource subpackage table, so that the acquisition of subpackage resource data is subject to strict and careful demand analysis and process control, and is more closely and uniformly aligned with the game content, further ensuring the game entertainment experience of players at different stages or needs.

[0076] After obtaining the sub-package resource data, you can further find the virtual path that stores the sub-package resource data.

[0077] Since the sub-package resource data includes the mod (Modification, game module) and target field of the sub-package resource, the mod is the resource identifier. Therefore, the virtual path for storing the sub-package resource can be found according to the mod in the sub-package resource data, such as the sub-package of fashion or gun skin resources.

[0078] Specifically, the virtual path for storing the sub-package resource data may be obtained by searching for data data related to the mod in the sub-package resource data.

[0079] Figure 3 The schematic diagram of the interface of the method for searching the virtual path for storing the sub-package resource data according to the resource identifier is shown as follows: Figure 3 As shown, when the name of the clothing resource is Santa Rider's Top, the virtual path related to the clothing set can be obtained by querying the relevant data.

[0080] In step S120, the dependency relationship of the sub-packaged resource data is determined according to the virtual path, and a target identification list of the sub-packaged resource data is generated according to the dependency relationship.

[0081] In an exemplary embodiment of the present disclosure, after the virtual path storing the sub-packet resource data is found, the dependency relationship of the sub-packet resource can be determined according to the virtual path.

[0082] In an alternative embodiment, Figure 4 A flow chart of a method for determining the dependency relationship of sub-package resource data is shown, such as Figure 4 As shown, the method at least includes the following steps: in step S410, when the sub-packaged resource data is not scene resource data, the dependency relationship of the sub-packaged resource data is determined according to the virtual path in the resource warehouse file.

[0083] Based on the unique GUID (Globally Unique Identifier) ​​file characteristics of the Messiah file system (i.e., each resource file is represented by a unique GUID), all resource files corresponding to the resource warehouse file are searched according to the virtual path. The resource.repository file in the Messiah file system records the corresponding attributes of each GUID file. Among them, the Deps attribute represents which other GUID files the GUID file depends on, and it can also determine which GUID file these dependent GUID files are dependent on, that is, the dependency relationship. Therefore, calculating all resource.repository files in the resource warehouse file can obtain the dependency relationship and the dependent relationship of all GUID files.

[0084] In step S420, when the sub-package resource data is scene resource data, the dependency relationship of the sub-package resource data is determined in the target file according to the virtual path.

[0085] For the sub-package download of scene resource data, the corresponding resources of objects in the entire scene can be scanned according to the virtual path, that is, the ilevel file of the corresponding scene defines which objects are referenced to obtain the corresponding dependencies.

[0086] In this exemplary embodiment, for different sub-package resource data, corresponding dependency relationships can be determined through different files. The dependency relationships are determined with high accuracy, providing a data basis for sub-package resource downloading.

[0087] After the dependency relationship of the sub-packaged resource data is determined, a target identification list of the sub-packaged resource data may be generated according to the dependency relationship.

[0088] In an optional embodiment, the dependency relationship includes a dependent relationship and a dependent relationship. Figure 5 A flow chart of a method for generating a target identification list according to a dependency relationship is shown, as shown in Figure 5 As shown, the method at least includes the following steps: In step S510, a unique dependency determination is performed on the dependent relationship and the dependent relationship to obtain a dependency result.

[0089] Specifically, by comparing the relationship between the virtual path and all resource files related to a certain fashion, recursively search for the GUID list of all dependencies corresponding to the virtual path in all resource files. Furthermore, a recursive method is used to determine whether each resource and its dependencies in all dependent resource files are only referenced by the current GUID list of all dependencies. In other words, it is ensured that the dependent resource files will not be referenced by other resource files in the package, so as to avoid the problem of missing files in the game causing crashes.

[0090] Among them, for the sub-package download of scene resources, the same recursive method can be used to obtain the GUID list of all dependent resources corresponding to each resource file, and then determine the reference relationship between each resource and its dependencies. In addition, it is necessary to ensure that these resources will not be referenced in other scenes or scripts outside the sub-package resources. In other words, it is necessary to recursively determine the relationship between references and dependencies in different scenes. According to the virtual path referenced by the script, the corresponding GUID list of all dependencies is obtained, and then it is determined whether the resources to be sub-packaged exist in the GUID list corresponding to the script. Finally, a GUID list corresponding to each resource mod is obtained that does not affect the game content outside the sub-package resources.

[0091] In step S520, the sub-package resource data is subjected to elimination and update processing according to the dependency result to obtain updated sub-package resource data, and a target identifier list is generated according to the updated sub-package resource data.

[0092] After performing unique dependency determination on the dependent relationship and the dependent relationship to obtain the corresponding dependency result, when the dependency result is a dependent relationship or the dependent relationship also includes references to other resource files, the subpackage resource data corresponding to the resource files referenced by other places can be removed from the corresponding GUID list to obtain updated subpackage resource data, and the GUID list composed of the updated subpackage resource data is the target identification list.

[0093] Figure 6 A schematic diagram of the interface for generating a target identification list is shown, Figure 6 As shown, A can be a GUID list consisting of all sub-package resource data corresponding to the fashion A to be sub-packaged, that is, an identification list, and B is the dependency of resource files in the GUID list of fashion A. Among them, resource a has dependencies on resource files a1, a2, and a3, and resource c has dependencies on resource files a, c1, and c2. That is, file a is also referenced by resource c, but this is an internal reference in its own GUID list and is allowed.

[0094] C can be the GUID list of all resources of unpackaged costume B, and D is the dependency of resource files in the GUID list of costume B. Among them, the dependency of d resource and e resource also includes a1 resource, that is, a1 resource is referenced by some resources in costume B, then the dependency of a resource in costume A has been referenced by other costumes. If the dependency a1 of a resource is still used as subpackage resource data, then this part of the resources will not be downloaded when downloading the patch. If the player uses costume B, it will crash due to the lack of related resources. Therefore, the a1 resource can be removed from the GUID list of costume A to ensure that it will not affect other game content.

[0095] In this exemplary embodiment, a target identification list is generated by making a unique dependency determination on the dependency relationship. The target identification list can separate the associated resources as much as possible, and ensure that the game crashes and flashbacks due to the lack of associated files of normal game content will not occur. In addition, adding, deleting and modifying the target identification list will not affect the overall game experience, and it also provides developers with a solution entry for flexible adjustment of requirements.

[0096] Generally, for resources that are not platform specific, they only need to be generated once and can be stored in a folder marked with the common identifier. However, both Texture and Physics resources need to be differentiated for different platforms. For example, Android texture formats include etc2 and etc1, while iOS texture formats include pvr, astc, and dxtc, so textures must be compressed using different methods based on the needs of different platforms. However, the corresponding GUIDs are the same at the beginning, except that a specific suffix will be added to indicate the compression format, which means that different platforms are differentiated.

[0097] Therefore, due to the mechanism of the Messiah file system, the GUID names of resource files on different platforms will have different suffixes added to the original GUID, so the generated identification list can be updated.

[0098] In an alternative embodiment, Figure 7 A flow chart of a method for updating a target identification list is shown. Figure 7 As shown, the method at least includes the following steps: In step S710, an initial identification list of sub-package resource data is generated according to the dependency relationship, and a system identification corresponding to the sub-package resource data is obtained.

[0099] The dependency result is obtained by performing unique dependency determination on the dependent relationship and the dependent relationship.

[0100] Specifically, by comparing the relationship between the virtual path and all resource files related to a certain fashion, recursively search for the GUID list of all dependencies corresponding to the virtual path in all resource files. Furthermore, a recursive method is used to determine whether each resource and its dependencies in all dependent resource files are only referenced by the current GUID list of all dependencies. In other words, it is ensured that the dependent resource files will not be referenced by other resource files in the package, so as to avoid the problem of missing files in the game causing crashes.

[0101] Among them, for the sub-package download of scene resources, the same recursive method can be used to obtain the GUID list of all dependent resources corresponding to each resource file, and then determine the reference relationship between each resource and its dependencies. In addition, it is necessary to ensure that these resources will not be referenced in other scenes or scripts outside the sub-package resources. In other words, it is necessary to recursively determine the relationship between references and dependencies in different scenes. According to the virtual path referenced by the script, the corresponding GUID list of all dependencies is obtained, and then it is determined whether the resources to be sub-packaged exist in the GUID list corresponding to the script. Finally, a GUID list corresponding to each resource mod is obtained that does not affect the game content outside the sub-package resources.

[0102] According to the dependency result, the sub-package resource data is eliminated and updated to obtain updated sub-package resource data, and an initial identification list is generated according to the updated sub-package resource data.

[0103] After performing unique dependency determination on the dependent relationship and the dependent relationship to obtain the corresponding dependency result, when the dependency result is a dependent relationship or the dependent relationship also includes references to other resource files, the subpackage resource data corresponding to the resource files referenced by other places can be removed from the corresponding GUID list to obtain updated subpackage resource data, and the GUID list composed of the updated subpackage resource data is the initial identification list.

[0104] Further, a system identifier corresponding to the sub-packaged resource data is obtained. The system identifier may be an identifier representing different platforms. For example, .2 may be a system identifier of an Android system, and .4 may be a system identifier of an IOS system. In addition, there may be other forms of system identifiers, which are not specifically limited in this exemplary embodiment.

[0105] Specifically, the suffix .2 represents the compressed format of etc1 or etc2 of the sticker, that is, it represents the sticker of Android. The suffix .4 represents the compressed format of astc, that is, it represents the sticker of IOS. In step S720, the initial identification list is updated by using the system identification to obtain the target identification list.

[0106] After the initial identification list is generated and the system identification is obtained, the identification list can be updated according to the system to which the GUID in the initial identification list applies.

[0107] Specifically, after obtaining the initial identification list, it is only necessary to determine whether the resources in the current patch_list are in the obtained GUID list after removing the suffix, that is, after the system identification. If so, replace the GUID in the original initial identification list with this suffixed GUID to obtain the target identification list, and finally put this new identification list as a new mods into the patch_list. Therefore, in the patch download step, it is only necessary to determine whether the GUID name of the resource file to be downloaded is in the GUID list in the new mods. If it exists, it will not be downloaded, and the purpose of subpackaging can be achieved.

[0108] Figure 8 The following is a schematic diagram of the target identification list interface of the Android system: Figure 8As shown in the figure, the common identifier indicates that the GUID is applicable to both Android and IOS systems, and the GUID with the android identifier is only applicable to the Android system. Therefore, the target identifier list obtained by updating the initial identifier list with the system identifier can achieve the purpose of expanding the target identifier list to modify the resource list of all platforms without affecting the modification of the entire patch process.

[0109] It is worth noting that the Android system stickers represented by the suffix .2 and the iOS system stickers represented by the suffix .4 can be compressed from the same original stickers, so if the suffix is ​​removed, the GUID is the same. Based on this, a patch_list extended to different platforms can be obtained based on an original GUID list, and it is only necessary to determine whether the GUID list in the generated different patch_list files exists in the original GUID list after removing the suffix. If so, replace the original GUID to change it to the resource file corresponding to the platform.

[0110] Among them, patching is to convert the used resource files into data with GUID as key and the md5 value and size corresponding to the resource file as value.

[0111] In this exemplary embodiment, the system identifier is used to obtain a list of target identifiers that meet the needs of different platforms. There is no need to separately maintain the sub-packaging content of each platform, and there is no need for players to change the game package. The entire sub-packaging process is imperceptible to players, and the gaming effect is better.

[0112] In addition, in order to meet the resource sub-packaging download requirements of servers such as the co-research server, you can also modify patch_md5 without affecting the modification of the entire patching process, so as not to affect the sub-packaging requirements of other servers.

[0113] In step S130, the sub-packaging resource data and the target identification list are converted and updated to obtain a patch list including the target identification list for downloading.

[0114] In an exemplary embodiment of the present disclosure, after obtaining the target identification list, the sub-packaging resource data and the target identification list may be converted and updated, that is, the patch list patch_list is modified based on the target identification list.

[0115] Therefore, it is necessary to nest and modify patch_list in the normal patch_list process.

[0116] It is worth noting that you cannot modify the patch_list after patching. Specifically, this will destroy the md5 value of the patch_list file, causing detection failure when downloading the patch. Secondly, you also need to modify the patch_list of different platforms in all folders related to the version at the same time to prevent conflicts. Finally, if the normal patching process is changed, it will also increase the risk to a certain extent.

[0117] Therefore, the patch_hook method can be used to convert and update the sub-package resource data and target identification list by utilizing the hook mechanism (a new code can be called before or after any step of patching) without changing any patching code.

[0118] Therefore, before the normal patching process finally generates patch_md5, the code for modifying patch_list can be called to modify the existing patch_list, that is, to add the target identifier list to patch_list to obtain a patch list including the target identifier list.

[0119] In addition, the parameters for generating the target identification list can be modified according to the settings of the patch list to meet the resource sub-packaging download requirements of the co-research service.

[0120] In an alternative embodiment, Fig. 9 A flow chart of a method for generating a target identification list according to a target field is shown. Fig. 9 As shown, the method at least includes the following steps: In step S910, the target field in the sub-packaging resource data is obtained, and the target parameter of the patch list is obtained.

[0121] According to the patching mechanism of the Messiah file system, some set parameters are modified in patch_config so that the final parameter modification is reflected in the metadata in patch_md5. Therefore, the target parameter patch_config of the patch list can be obtained.

[0122] Furthermore, since the sub-package resource data also includes a special field of the co-research service server, the special field can be obtained as the target field.

[0123] In step S920, the target parameters are updated using the target field, and a target identification list of the sub-packaged resource data is generated using the updated target field and the dependency relationship.

[0124] After obtaining the target field and target parameters, the target field can be written into the target parameter of patch_config to indicate which resource mods the co-research server needs to subpackage, so as to generate a target identification list of subpackaged resource data according to the dependency relationship, and at the same time, use the target field to modify the corresponding patch_md5 to obtain the corresponding target identification list.

[0125] Fig.10 The result diagram of the modified patch_md5 is shown as follows: Fig.10 As shown, BdvpFO is the flag field of the co-research service. Reading this field indicates that the sub-package download of the co-research service server is required. The following 3001 is the ID (Identity document) corresponding to the sub-package download resource. Therefore, reading this ID in patch_list can get the corresponding GUID list.

[0126] In this exemplary embodiment, by updating the target parameters through the target field, a target identification list that meets the resource subpackaging download requirements of the co-research service server can be obtained, thereby achieving the effect of realizing subpackaging download of new content according to the corresponding fields of the co-research service server without affecting the subpackaging process of other servers.

[0127] Furthermore, after generating a patch list including a target identification list, the player can download the patch list.

[0128] In an alternative embodiment, Fig.11 A flowchart of a method for downloading a patch list is shown. Fig.11 As shown, the method at least includes the following steps: In step S1110, the original file in the patch list is obtained, and the information summary value is updated to obtain the target file.

[0129] When a patch is released for players to download, the release code of the Messiah file system will modify the patch_md5 file of the release platform to achieve the purpose of updating the patch. Among them, the content of the next_patch_md5 file is the folder name of the new patch, indicating which patch is pre-downloaded.

[0130] Therefore, when publishing code to modify the patch_md5 file, a line of code to modify the next_patch_md5 file can be added to the original file to obtain the target file.

[0131] In step S1120, the target file is compressed to obtain the updated patch list, so as to download the updated patch list.

[0132] After obtaining the target file, you can copy the patch_md5 file into the compressed file and upload it together before packaging the target file into the compressed file of the patch. This will allow the game client to access the new patch content, that is, the patch list, and download it.

[0133] In this exemplary embodiment, by performing scheduled update processing and file compression processing on the original file, a patch list for players to download can be obtained without manually modifying the file content, avoiding the risks caused by misoperation, and allowing the game client to perceive the download content in advance, which is more player-friendly.

[0134] Based on the preparation of the sub-package resource downloading method of the game application in steps S110 - S130 , the code of the game client can realize the dynamic sub-package downloading function.

[0135] First, based on modifying the patch download code, all resource lists and GUID lists of sub-package downloads can be obtained by reading the patch_list file on the server. In order to ensure that the addition, deletion, and modification of the resources corresponding to the GUID list of the sub-package download have no effect on the entire game content, that is, even if a resource in a sub-package resource mod is removed, modified, or added due to the game version content, it will not cause abnormalities in the game content, such as crashes caused by missing resource files or modifications to the content of a resource, but the resource in the sub-package has not been changed, it is necessary to associate and judge the resource collections that have been downloaded and the resource collections that have not been downloaded in the sub-package content, as well as the collection of all resource files.

[0136] Fig.12 A logical diagram showing the association judgment of various resource collections is shown, such as Fig.12 As shown, A represents the resource set that has been downloaded, B represents the resource set that has not been downloaded, and C represents the set of all resource files.

[0137] Among them, there may be common resources between Set A and Set B, but if these resources change, they also need to be updated and downloaded. The sub-packaged resources that are not downloaded in the game do not need to be additionally judged and downloaded each time a patch is downloaded, so Set B can be reduced by Set A to obtain the unique resources of Set B, and then Set C can be used to reduce the unique resources of Set B. This resource is the part that is compared with the local files of the game client each time a patch is downloaded to determine whether the md5 and size have changed, and then the file is updated. This ensures that no matter how the resources in Set A and Set B change, it will not affect the integrity of the entire game content and the effect of the game experience.

[0138] In addition, a UI for sub-packaging resources can also be provided in the game. Fig.13 The following is a schematic diagram of the UI for sub-packaging resources: Fig.13 As shown, players can actively download certain resource mods to enrich the gaming experience without affecting the experience of other game content. When the lobby is idle, you can access the content of the next_patch_md5 file on the server and the local patch timestamp to determine whether there is a new patch. If there is a new patch, you can download the patch file on the node to the specified folder based on the patch_md5 file. When the patch_md5 file is officially released, you only need to compare whether the file to be downloaded exists in the specified folder. When it exists in the specified folder, you can directly copy it to the patch folder to skip the download step and enter the game directly. For the package body of the co-research server, you only need to download exclusive sub-package resources according to the data in the metadata in patch_md5 to realize the dynamic sub-package download function and optimize the player's user experience.

[0139] The following is a detailed description of the method for downloading sub-packaged resources of a game application in an embodiment of the present disclosure in conjunction with an application scenario.

[0140] Fig.14 The flowchart of the method for downloading sub-packaged resources of a game application in an application scenario is shown as follows: Fig.14 As shown, in step S1410, a table is planned.

[0141] By controlling the game process and analyzing the project requirements, planners can know that some resources are necessary when users just enter the game, some resources are not used at the beginning, or some resources are necessary for all players to play the game, and some resources are only used when players have their own needs, etc. Therefore, planners can select appropriate sub-package resource names based on the evaluation results of resource size and fill them into the table to obtain the resource sub-package table.

[0142] After the resource sub-packaging table is obtained, the resource sub-packaging table may be converted into a table. Specifically, the table conversion process may be to convert the resource sub-packaging table in a table form into data, that is, sub-packaging resource data.

[0143] After obtaining the sub-package resource data, you can further find the virtual path that stores the sub-package resource data.

[0144] Since the sub-package resource data includes the mod and target fields of the sub-package resource, the mod is the resource identifier. Therefore, the virtual path for storing the sub-package resource can be found according to the mod in the sub-package resource data, such as the sub-package of fashion or gun skin resources.

[0145] Specifically, the virtual path for storing the sub-package resource data may be obtained by searching for data data related to the mod in the sub-package resource data.

[0146] After finding the virtual path storing the sub-package resource data, the dependency relationship of the sub-package resource can be determined according to the virtual path.

[0147] When the subpackaged resource data is not scene resource data, the dependency relationship of the subpackaged resource data is determined in the resource warehouse file according to the virtual path.

[0148] Based on the unique GUID (Globally Unique Identifier) ​​file characteristics of the Messiah file system (i.e., each resource file is represented by a unique GUID), all resource files corresponding to the resource warehouse file are searched according to the virtual path. The resource.repository file in the Messiah file system records the corresponding attributes of each GUID file. Among them, the Deps attribute represents which other GUID files the GUID file depends on, and it can also determine which GUID file these dependent GUID files are dependent on, that is, the dependency relationship. Therefore, calculating all resource.repository files in the resource warehouse file can obtain the dependency relationship and the dependent relationship of all GUID files.

[0149] When the sub-packaged resource data is scene resource data, the dependency relationship of the sub-packaged resource data is determined in the target file according to the virtual path.

[0150] For the sub-package download of scene resource data, the corresponding resources of objects in the entire scene can be scanned according to the virtual path, that is, the ilevel file of the corresponding scene defines which objects are referenced to obtain the corresponding dependencies.

[0151] In step S1420, obtain the GUID list corresponding to each mod.

[0152] After the dependency relationship of the sub-packaged resource data is determined, a target identification list of the sub-packaged resource data may be generated according to the dependency relationship.

[0153] The dependency result is obtained by performing unique dependency determination on the dependent relationship and the dependent relationship.

[0154] Specifically, by comparing the relationship between the virtual path and all resource files related to a certain fashion, recursively search for the GUID list of all dependencies corresponding to the virtual path in all resource files. Furthermore, a recursive method is used to determine whether each resource and its dependencies in all dependent resource files are only referenced by the current GUID list of all dependencies. In other words, it is ensured that the dependent resource files will not be referenced by other resource files in the package, so as to avoid the problem of missing files in the game causing crashes.

[0155] Among them, for the sub-package download of scene resources, the same recursive method can be used to obtain the GUID list of all dependent resources corresponding to each resource file, and then determine the reference relationship between each resource and its dependencies. In addition, it is necessary to ensure that these resources will not be referenced in other scenes or scripts outside the sub-package resources. In other words, it is necessary to recursively determine the relationship between references and dependencies in different scenes. According to the virtual path referenced by the script, the corresponding GUID list of all dependencies is obtained, and then it is determined whether the resources to be sub-packaged exist in the GUID list corresponding to the script. Finally, a GUID list corresponding to each resource mod is obtained that does not affect the game content outside the sub-package resources.

[0156] According to the dependency result, the sub-package resource data is eliminated and updated to obtain updated sub-package resource data, and a target identification list is generated according to the updated sub-package resource data.

[0157] After performing unique dependency determination on the dependent relationship and the dependent relationship to obtain the corresponding dependency result, when the dependency result is a dependent relationship or the dependent relationship also includes references to other resource files, the subpackage resource data corresponding to the resource files referenced by other places can be removed from the corresponding GUID list to obtain updated subpackage resource data, and the GUID list composed of the updated subpackage resource data is the target identification list.

[0158] For example, A can be a GUID list consisting of all sub-package resource data corresponding to the fashion item A to be sub-packaged, that is, an identification list, and B is the dependency of resource files in the GUID list of fashion item A. Among them, resource a has dependencies on resource files a1, a2, and a3, and resource c has dependencies on resource files a, c1, and c2. That is, file a is also referenced by resource c, but this is an internal reference in its own GUID list and is allowed.

[0159] C can be the GUID list of all resources of unpackaged costume B, and D is the dependency of resource files in the GUID list of costume B. Among them, the dependency of d resource and e resource also includes a1 resource, that is, a1 resource is referenced by some resources in costume B, then the dependency of a resource in costume A has been referenced by other costumes. If the dependency a1 of a resource is still used as subpackage resource data, then this part of the resources will not be downloaded when downloading the patch. If the player uses costume B, it will crash due to the lack of related resources. Therefore, the a1 resource can be removed from the GUID list of costume A to ensure that it will not affect other game content.

[0160] In step S1430, patch_list is modified.

[0161] After obtaining the target identification list, the sub-package resource data and the target identification list may be converted and updated, that is, the patch list patch_list is modified based on the target identification list.

[0162] Therefore, it is necessary to nest and modify patch_list in the normal patch_list process.

[0163] It is worth noting that you cannot modify the patch_list after patching. Specifically, this will destroy the md5 value of the patch_list file, causing detection failure when downloading the patch. Secondly, you also need to modify the patch_list of different platforms in all folders related to the version at the same time to prevent conflicts. Finally, if the normal patching process is changed, it will also increase the risk to a certain extent.

[0164] Therefore, the patch_hook method can be used to convert and update the sub-package resource data and target identification list by utilizing the hook mechanism (a new code can be called before or after any step of patching) without changing any patching code.

[0165] Therefore, before the normal patching process finally generates patch_md5, the code for modifying patch_list can be called to modify the existing patch_list, that is, to add the target identifier list to patch_list to obtain a patch list including the target identifier list.

[0166] Due to the mechanism of the Messiah file system, the GUID names of resource files on different platforms will have different suffixes added to the original GUID, so the generated identification list can be updated.

[0167] An initial identification list of the sub-package resource data is generated according to the dependency relationship, and a system identification corresponding to the sub-package resource data is obtained.

[0168] The dependency result is obtained by performing unique dependency determination on the dependent relationship and the dependent relationship.

[0169] Specifically, by comparing the relationship between the virtual path and all resource files related to a certain fashion, recursively search for the GUID list of all dependencies corresponding to the virtual path in all resource files. Furthermore, a recursive method is used to determine whether each resource and its dependencies in all dependent resource files are only referenced by the current GUID list of all dependencies. In other words, it is ensured that the dependent resource files will not be referenced by other resource files in the package, so as to avoid the problem of missing files in the game causing crashes.

[0170] Among them, for the sub-package download of scene resources, the same recursive method can be used to obtain the GUID list of all dependent resources corresponding to each resource file, and then determine the reference relationship between each resource and its dependencies. In addition, it is necessary to ensure that these resources will not be referenced in other scenes or scripts outside the sub-package resources. In other words, it is necessary to recursively determine the relationship between references and dependencies in different scenes. According to the virtual path referenced by the script, the corresponding GUID list of all dependencies is obtained, and then it is determined whether the resources to be sub-packaged exist in the GUID list corresponding to the script. Finally, a GUID list corresponding to each resource mod is obtained that does not affect the game content outside the sub-package resources.

[0171] According to the dependency result, the sub-package resource data is eliminated and updated to obtain updated sub-package resource data, and an initial identification list is generated according to the updated sub-package resource data.

[0172] After performing unique dependency determination on the dependent relationship and the dependent relationship to obtain the corresponding dependency result, when the dependency result is a dependent relationship or the dependent relationship also includes references to other resource files, the subpackage resource data corresponding to the resource files referenced by other places can be removed from the corresponding GUID list to obtain updated subpackage resource data, and the GUID list composed of the updated subpackage resource data is the initial identification list.

[0173] Further, a system identifier corresponding to the sub-packaged resource data is obtained. The system identifier may be an identifier representing different platforms. For example, / 1 may be a system identifier of an Android system, and / 2 may be a system identifier of an IOS system. In addition, there may be other forms of system identifiers, which are not specifically limited in this exemplary embodiment.

[0174] The initial identification list is updated using the system identification to obtain a target identification list.

[0175] After the initial identification list is generated and the system identification is obtained, the identification list can be updated according to the system to which the GUID in the initial identification list applies.

[0176] Specifically, after obtaining the initial identification list, it is only necessary to determine whether the resources in the current patch_list are in the obtained GUID list after removing the suffix, that is, after the system identification. If so, replace the GUID in the original initial identification list with this GUID with the suffix to obtain the target identification list, and finally put this new identification list as a new mods into the patch_list. Therefore, in the patch download step, it is only necessary to determine whether the GUID name of the resource file to be downloaded is in the GUID list in the new mods. If it exists, it will not be downloaded, and the purpose of subpackaging can be achieved, thereby achieving the purpose of expanding the target identification list to modify the resource list of all platforms without affecting the modification of the entire patching process.

[0177] In step S1440, patch_md5 is modified.

[0178] Without affecting the modification of the entire patching process, patch_md5 can be modified to meet the resource sub-packaging download requirements of the co-research server, thereby not affecting the sub-packaging requirements of other servers.

[0179] According to the patching mechanism of the Messiah file system, some set parameters are modified in patch_config so that the final parameter modification is reflected in the metadata in patch_md5. Therefore, the target parameter patch_config of the patch list can be obtained.

[0180] Furthermore, since the sub-package resource data also includes a special field of the co-research service server, the special field can be obtained as the target field.

[0181] The target parameters are updated using the target fields, and a target identifier list of the sub-package resource data is generated using the updated target fields and dependency relationships.

[0182] After obtaining the target field and target parameters, the target field can be written into the target parameter of patch_config to indicate which resource mods the co-research server needs to subpackage, so as to generate a target identification list of subpackaged resource data according to the dependency relationship, and at the same time, use the target field to modify the corresponding patch_md5 to obtain the corresponding target identification list.

[0183] In step S1450, next_patch_md5 is modified.

[0184] When a patch is released for players to download, the release code of the Messiah file system will modify the patch_md5 file of the release platform to achieve the purpose of updating the patch. Among them, the content of the next_patch_md5 file is the folder name of the new patch, indicating which patch is pre-downloaded.

[0185] Therefore, when publishing code to modify the patch_md5 file, a line of code to modify the next_patch_md5 file can be added to the original file to obtain the target file.

[0186] The updated patch list is compressed on the target file, so as to download the updated patch list.

[0187] After obtaining the target file, you can copy the patch_md5 file into the compressed file and upload it together before packaging the target file into the compressed file of the patch. This will allow the game client to access the new patch content, that is, the patch list, and download it.

[0188] Specifically, the patch download of the game is done by packaging the resource files of different platforms into a zip file and uploading it to a server, which then distributes it to each download node to decompress and store it on the download node. Each publish is to package the resource files and the corresponding patch_list file together and upload them to the server, and then modify the patch_md5 file on the server.

[0189] The patch_md5 file is stored on the server. When the patch_md5 file contains the relevant information of a new patch, it indicates that a new patch exists and is ready to be downloaded. These resource files will be immediately distributed to the corresponding download nodes.

[0190] In the previous processing flow, except for the patch_md5 file and the patch_list file, players can access other contents in the resource files, but they cannot download them immediately. Only when the patch_md5 file and the patch_list file are manually updated and released on the maintenance day, that is, the patch_md5 file and the patch_list file are set to be accessible to the external network, the player's client can know that the patch_md5 file has been updated, and therefore download the new resource file according to the patch_list file.

[0191] For step S1450, in order to allow players to download resource files before maintenance, a method for the next_patch_md5 file can be provided. Specifically, before packaging and uploading, the patch_md5 file is also put into the compressed package for uploading, and when modifying the patch_md5 file on the server, a line of code for modifying the next_patch_md5 file can be added, and the file is not originally on the server.

[0192] In addition, the next_patch_md5 file can point to the name (timestamp) of the new patch folder, and then the file can be put out in advance and set to be accessible to the external network, and then the patch download mechanism can be modified so that the client can determine whether the next_patch_md5 file on the server is updated every time it is idle. When the next_patch_md5 file is updated, the next_patch_md5 file on the server is searched, and since the patch_md5 file has been uploaded, the patch can be downloaded in advance based on the patch_md5 file and patch_list file in the folder. It is worth noting that the patch file is downloaded to a special local directory at this time, and only when it is officially maintained and updated will it be compared and updated to avoid repeated downloads.

[0193] In step S1460, dynamic sub-packet downloading requirements are implemented.

[0194] First, based on modifying the patch download code, all resource lists and GUID lists of sub-package downloads can be obtained by reading the patch_list file on the server. In order to ensure that the addition, deletion, and modification of the resources corresponding to the GUID list of the sub-package download have no effect on the entire game content, that is, even if a resource in a sub-package resource mod is removed, modified, or added due to the game version content, it will not cause abnormalities in the game content, such as crashes caused by missing resource files or modifications to the content of a resource, but the resource in the sub-package has not been changed, it is necessary to associate and judge the resource collections that have been downloaded and the resource collections that have not been downloaded in the sub-package content, as well as the collection of all resource files.

[0195] For example, there may be common resources between Set A and Set B, but if these resources change, they also need to be updated and downloaded. However, sub-packaged resources that are not downloaded in the game do not need to be additionally judged and downloaded each time a patch is downloaded, so Set B can be reduced by Set A to obtain resources unique to Set B, and then Set C can be used to reduce resources unique to Set B. These resources are the ones that are compared with the local files of the game client each time a patch is downloaded to determine whether the md5 and size have changed, and then the files are updated. This ensures that no matter how the resources in Set A and Set B change, the integrity of the entire game content and the effect of the game experience will not be affected.

[0196] In addition, a UI for sub-packaging resources can be provided in the game.

[0197] Players can actively download certain resource mods to enrich the gaming experience without affecting the experience of other game content. When the lobby is idle, you can access the content of the next_patch_md5 file on the server and the local patch timestamp to determine whether there is a new patch. If there is a new patch, you can download the patch file on the node to the specified folder according to the patch_md5 file. When the patch_md5 file is officially released, you only need to compare whether the file to be downloaded exists in the specified folder. When it exists in the specified folder, you can directly copy it to the patch folder to skip the download step and enter the game directly. For the package body of the co-research server, you only need to download exclusive sub-package resources according to the data in the metadata in patch_md5 to realize the dynamic sub-package download function and optimize the player's user experience.

[0198] In the exemplary embodiment of the present disclosure, the obtained sub-package resource download method of the game application can be finely divided into a single file level, and resources such as fashion, scenes, guns and skins can be freely separated without affecting the experience of other game content, thereby reducing the size of the downloaded patch list. In addition, the target identification list generated according to the dependency relationship can avoid the flash back caused by missing resources in the game. The patch list including the target identification list is extended to various platforms, which also solves the problem of high maintenance complexity and the risk of non-approval caused by differentiated sub-package downloads on different platforms. At the same time, it also reduces the complexity of testing and optimizes the player's gaming experience in sub-package resource downloads.

[0199] In addition, in an exemplary embodiment of the present disclosure, a device for downloading sub-packaged resources of a game application is also provided. Fig.15 The schematic diagram of the structure of the device for downloading sub-packaged resources of game applications is shown in FIG. Fig.15As shown, the sub-package resource downloading device 1500 for game applications may include: a path determination module 1510, a list generation module 1520 and a sub-package downloading module 1530. Among them:

[0200] The path determination module 1510 is configured to obtain the sub-package resource data and search for the virtual path storing the sub-package resource data according to the resource identifier in the sub-package resource data; the list generation module 1520 is configured to determine the dependency of the sub-package resource data according to the virtual path and generate a target identifier list of the sub-package resource data according to the dependency; the sub-package download module 1530 is configured to convert and update the sub-package resource data and the target identifier list to obtain a patch list including the target identifier list for downloading.

[0201] In an exemplary embodiment of the present invention, the obtaining of sub-package resource data includes:

[0202] Get the resource subcontracting form;

[0203] The resource sub-packaging table is subjected to table conversion processing to obtain sub-packaging resource data.

[0204] In an exemplary embodiment of the present invention, the step of determining the dependency relationship of the sub-packetized resource data according to the virtual path includes:

[0205] When the sub-package resource data is not scene resource data, determining the dependency relationship of the sub-package resource data according to the virtual path in the resource warehouse file;

[0206] When the sub-package resource data is scene resource data, the dependency relationship of the sub-package resource data is determined in the target file according to the virtual path.

[0207] In an exemplary embodiment of the present invention, the dependency relationship includes a dependent relationship and a dependent relationship.

[0208] The step of generating a target identification list of the sub-packaged resource data according to the dependency relationship includes:

[0209] Performing unique dependency determination on the dependent relationship and the dependent relationship to obtain a dependency result;

[0210] The sub-package resource data is subjected to elimination and update processing according to the dependency result to obtain updated sub-package resource data, and a target identification list is generated according to the updated sub-package resource data.

[0211] In an exemplary embodiment of the present invention, the step of generating a target identifier list of the sub-packaged resource data according to the dependency relationship includes:

[0212] Generate an initial identification list of the sub-package resource data according to the dependency relationship, and obtain a system identification corresponding to the sub-package resource data;

[0213] The initial identifier list is updated by using the system identifier to obtain a target identifier list.

[0214] In an exemplary embodiment of the present invention, the step of generating a target identifier list of the sub-packaged resource data according to the dependency relationship includes:

[0215] Obtaining a target field in the sub-package resource data, and obtaining a target parameter of the patch list;

[0216] The target parameter is updated using the target field, and a target identification list of the sub-packaged resource data is generated using the updated target field and the dependency relationship.

[0217] In an exemplary embodiment of the present invention, the downloading includes:

[0218] Obtaining the original file in the patch list, and performing a subscription update process on the information summary value to obtain the target file;

[0219] The target file is compressed to obtain an updated patch list, so as to download the updated patch list.

[0220] The specific details of the above-mentioned sub-package resource downloading device 1500 for game applications have been described in detail in the corresponding sub-package resource downloading method for game applications, so they will not be repeated here.

[0221] It should be noted that, although several modules or units of the sub-packaging resource downloading device 1500 for game applications are mentioned in the above detailed description, such division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0222] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0223] Refer to the following Fig.16 16A and 16B are used to describe an electronic device 1600 according to such an embodiment of the present invention. Fig.16 The electronic device 1600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0224] like Fig.16As shown, the electronic device 1600 is in the form of a general computing device. The components of the electronic device 1600 may include, but are not limited to: the at least one processing unit 1610, the at least one storage unit 1620, a bus 1630 connecting different system components (including the storage unit 1620 and the processing unit 1610), and a display unit 1640.

[0225] The storage unit stores program codes, which can be executed by the processing unit 1610, so that the processing unit 1610 executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.

[0226] The storage unit 1620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 1621 and / or a cache memory unit 1622 , and may further include a read-only memory unit (ROM) 1623 .

[0227] The storage unit 1620 may also include a program / utility 1624 having a set (at least one) of program modules 1625, such program modules 1625 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0228] Bus 1630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0229] The electronic device 1600 may also communicate with one or more external devices 1800 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1600, and / or communicate with any device that enables the electronic device 1600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1650. Furthermore, the electronic device 1600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1660. As shown, the network adapter 1660 communicates with other modules of the electronic device 1600 via a bus 1630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0230] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure 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.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0231] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0232] refer to Fig.17 As shown, a program product 1700 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0233] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0234] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0235] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0236] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0237] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A method for downloading sub-packaged resources of a game application, characterized in that: The method comprises: Acquire sub-package resource data, and search for a virtual path storing the sub-package resource data according to a resource identifier in the sub-package resource data; Determining the dependency relationship of the sub-package resource data according to the virtual path, and generating a target identification list of the sub-package resource data according to the dependency relationship; Convert and update the sub-package resource data and the target identification list to obtain a patch list including the target identification list for downloading; The downloading comprises: Obtaining the original file in the patch list, and performing a subscription update process on the information summary value to obtain the target file; Performing file compression processing on the target file to obtain an updated patch list, so as to download the updated patch list; The dependency relationship includes a dependent relationship and a dependent relationship, and the step of generating a target identifier list of the sub-packaged resource data according to the dependency relationship includes: Performing unique dependency determination on the dependent relationship and the dependent relationship to obtain a dependency result; when the dependency result includes the dependent relationship or the dependent relationship and also includes references to other resource files, removing the subpackage resource data referenced by the other resource files from the GUID list corresponding to the subpackage resource data to obtain updated subpackage resource data, and generating a target identification list based on the updated subpackage resource data.

2. The method for downloading sub-packaged resources of a game application according to claim 1, characterized in that: The obtaining of sub-package resource data includes: Get the resource subcontracting form; The resource sub-packaging table is subjected to table conversion processing to obtain sub-packaging resource data.

3. The method for downloading sub-packaged resources of a game application according to claim 1, characterized in that: The step of determining the dependency relationship of the sub-packetized resource data according to the virtual path includes: When the sub-package resource data is not scene resource data, determining the dependency relationship of the sub-package resource data according to the virtual path in the resource warehouse file; When the sub-package resource data is scene resource data, the dependency relationship of the sub-package resource data is determined in the target file according to the virtual path.

4. The method for downloading sub-packaged resources of a game application according to claim 1, characterized in that: The step of generating a target identification list of the sub-packaged resource data according to the dependency relationship includes: Generate an initial identification list of the sub-package resource data according to the dependency relationship, and obtain a system identification corresponding to the sub-package resource data; The initial identifier list is updated by using the system identifier to obtain a target identifier list.

5. The method for downloading sub-packaged resources of a game application according to claim 1, characterized in that: The step of generating a target identification list of the sub-packaged resource data according to the dependency relationship includes: Obtaining a target field in the sub-package resource data, and obtaining a target parameter of the patch list; The target parameter is updated using the target field, and a target identification list of the sub-packaged resource data is generated using the updated target field and the dependency relationship.

6. A device for downloading sub-packaged resources of a game application, characterized in that: include: A path determination module is configured to obtain sub-package resource data and search for a virtual path storing the sub-package resource data according to a resource identifier in the sub-package resource data; A list generating module, configured to determine the dependency relationship of the sub-package resource data according to the virtual path, and generate a target identification list of the sub-package resource data according to the dependency relationship; A sub-package download module is configured to convert and update the sub-package resource data and the target identification list to obtain a patch list including the target identification list for downloading; The downloading comprises: Obtaining the original file in the patch list, and performing a subscription update process on the information summary value to obtain the target file; Performing file compression processing on the target file to obtain an updated patch list, so as to download the updated patch list; The dependency relationship includes a dependent relationship and a dependent relationship, and the step of generating a target identifier list of the sub-packaged resource data according to the dependency relationship includes: Performing unique dependency determination on the dependent relationship and the dependent relationship to obtain a dependency result; when the dependency result includes the dependent relationship or the dependent relationship and also includes references to other resource files, removing the subpackage resource data referenced by the other resource files from the GUID list corresponding to the subpackage resource data to obtain updated subpackage resource data, and generating a target identification list based on the updated subpackage resource data.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for downloading sub-packaged resources of a game application described in any one of claims 1 to 5 is implemented.

8. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to execute the method for downloading sub-packaged resources of a game application as described in any one of claims 1 to 5 by executing the executable instructions.