Resource updating method, device, computer equipment and readable storage medium

By receiving update requests from terminal devices and comparing configuration file differences, and determining target update data, the problem of large amount of data and lengthy update process in the existing game update methods is solved, and convenient and efficient game resource updates are achieved.

CN112657196BActive Publication Date: 2024-11-08BEIJING PIXEL SOFTWARE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011516574.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-21
Publication Date
2024-11-08
Estimated Expiration
2040-12-21

AI Technical Summary

Technical Problem

The existing game update method requires that all data be sent to the user terminal device in packages, resulting in large amount of file data, lengthy update process and error-prone.

Method used

By receiving update requests issued by the terminal device, the differences between the current configuration file and the update configuration file are compared, thereby determining the target update data, and sending only the target update data for resource updates.

Benefits of technology

It reduces the volume and number of files of the update package, improves the update efficiency, reduces the risk of errors, and realizes convenient game resource updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112657196B_ABST
    Figure CN112657196B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a resource updating method, apparatus, computer equipment and readable storage medium, and relate to the field of game data processing technology. The resource updating method comprises: receiving an update request issued by a terminal device, wherein the update request comprises a current configuration file; comparing the difference between the current configuration file and the update configuration file, and determining target update data from the update resource data; and sending the target update data to the terminal device, so that the terminal device performs resource update according to the target update data. Through the above steps, the update of game resources can be conveniently realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of game data processing, and in particular to a resource updating method, apparatus, computer device and readable storage medium. Background Art

[0002] At present, in the process of game operation, developers need to constantly update the game to ensure the normal operation of the game. Game updates mainly include: small changes such as fixing common problems, or large changes such as serious problems and holiday activities. In the prior art, no matter how the changes are made, the developer packages all data and sends it to the user's terminal device, and replaces all the original data files. This results in a large amount of file data involved in the entire update process, and many duplicate files are also replaced. The whole process is lengthy and prone to errors.

[0003] In view of this, how to provide a more convenient resource update solution is a problem that technical personnel in this field need to solve. Summary of the invention

[0004] The present application provides a resource updating method, apparatus, computer device and readable storage medium.

[0005] The embodiments of the present application can be implemented as follows:

[0006] In a first aspect, the present application provides a resource update method, which is applied to a computer device, the computer device is in communication connection with a terminal device, the computer device stores an update resource package, the update resource package includes update resource data and an update configuration file, and the update configuration file is used to represent update configuration information of the update resource data;

[0007] Methods include:

[0008] Receiving an update request sent by a terminal device, wherein the update request includes a current configuration file;

[0009] Compare the difference between the current configuration file and the update configuration file, and determine the target update data from the update resource data;

[0010] The target update data is sent to the terminal device, so that the terminal device updates resources according to the target update data.

[0011] In an optional implementation, the updated resource package is obtained by the following steps:

[0012] Obtaining original resource information corresponding to the original resource package, wherein the original resource information is used to record file information of the original resource information;

[0013] Obtaining resource information to be updated corresponding to the resource package to be updated, wherein the resource information to be updated is used to record file information of the resource information to be updated;

[0014] Compare the original resource information with the resource information to be updated to obtain an updated comparison result;

[0015] The original resource package is updated according to the update comparison result and the resource package to be updated to obtain an updated resource package.

[0016] In an optional implementation, the original resource information includes a first update version, the resource information to be updated includes a second update version, and the version types include a common update version and an emergency update version, the common update version is used to update common data, and the emergency update version is used to update patch data;

[0017] The step of comparing the original resource information with the resource information to be updated to obtain an updated comparison result includes:

[0018] Compare the original resource information with the resource information to be updated to obtain a first comparison result, where the first update version is a common update version and the second update version is a common update version;

[0019] Alternatively, the original resource information is compared with the resource information to be updated to obtain a second comparison result, where the second comparison result is: the type of the first update version is a common update version, and the type of the second update version is an emergency update version;

[0020] Alternatively, the original resource information is compared with the resource information to be updated to obtain a third comparison result, where the third comparison result is: the type of the first update version is an emergency update version, and the type of the second update version is a common update version;

[0021] Alternatively, the original resource information is compared with the resource information to be updated to obtain a fourth comparison result, where the fourth comparison result is: the type of the first update version is an emergency update version, and the type of the second update version is an emergency update version.

[0022] In an optional implementation, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set;

[0023] When the update comparison result is the first comparison result, the original resource package is updated according to the update comparison result and the resource package to be updated to obtain an updated resource package, including:

[0024] Write the data in the original common data set that are not repeated in the common data set to be updated into the common data set to be updated;

[0025] Combine updating common data sets with updating resource data;

[0026] Obtaining update resource information according to the update resource data, wherein the update resource information is used to represent file information of the update common data set;

[0027] Generate an update configuration file for updating resource information;

[0028] An update resource package is constructed according to the update resource data and the update configuration file.

[0029] In an optional implementation, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set;

[0030] When the update comparison result is the second comparison result, the original resource package is updated according to the update comparison result and the resource package to be updated to obtain an updated resource package, including:

[0031] Delete the original patch data set;

[0032] The to-be-updated patch data set is collected as an updated patch data set;

[0033] Combine the update patch data set as the update resource data;

[0034] Obtaining update resource information according to the update resource data, wherein the update resource information is used to represent file information of the update common data set;

[0035] Generate an update configuration file for updating resource information;

[0036] An update resource package is constructed according to the update resource data and the update configuration file.

[0037] In an optional implementation, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set;

[0038] When the update comparison result is the third comparison result, the original resource package is updated according to the update comparison result and the resource package to be updated to obtain an updated resource package, including:

[0039] Writing the original patch data set into the to-be-updated common data set to obtain the pending data set;

[0040] Write the data in the original common data set that are not repeated in the pending data set into the pending data set to obtain an updated patch data set;

[0041] Combine the update patch data set as the update resource data;

[0042] Obtaining update resource information according to the update resource data, wherein the update resource information is used to represent file information of the update common data set;

[0043] Generate an update configuration file for updating resource information;

[0044] An update resource package is constructed according to the update resource data and the update configuration file.

[0045] In an optional implementation, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set;

[0046] When the update comparison result is the fourth comparison result, the original resource package is updated according to the update comparison result and the resource package to be updated to obtain an updated resource package, including:

[0047] Writing the data in the original patch data set that are not repeated in the patch data set to be updated into the patch data set to be updated to obtain a pending data set;

[0048] Combine the pending data set and the original common data set as updated resource data;

[0049] Obtaining update resource information according to the update resource data, wherein the update resource information is used to represent file information of the update common data set;

[0050] Generate an update configuration file for updating resource information;

[0051] An update resource package is constructed according to the update resource data and the update configuration file.

[0052] In a second aspect, the present application provides a resource updating device, which is applied to a computer device, the computer device is in communication connection with a terminal device, the computer device stores an update resource package, the update resource package includes update resource data and an update configuration file, and the update configuration file is used to represent update configuration information of the update resource data;

[0053] The device includes:

[0054] A receiving module, configured to receive an update request sent by a terminal device, wherein the update request includes a current configuration file;

[0055] A comparison module, used to compare the difference between the current configuration file and the updated configuration file, and determine the target updated data from the updated resource data;

[0056] The update module is used to send the target update data to the terminal device so that the terminal device updates the resources according to the target update data.

[0057] In a third aspect, the present application provides a computer device, comprising a processor and a non-volatile memory storing computer instructions. When the computer instructions are executed by the processor, the computer device executes any one of the resource update methods in the aforementioned implementations.

[0058] In a fourth aspect, the present application provides a readable storage medium, which includes a computer program. When the computer program is running, it controls the computer device where the readable storage medium is located to execute any one of the resource update methods in the aforementioned implementation modes.

[0059] The beneficial effects of the embodiments of the present application include, for example: the embodiments of the present application provide a resource updating method, apparatus, computer device and readable storage medium, by receiving an update request issued by a terminal device, wherein the update request includes a current configuration file; then comparing the difference between the current configuration file and the update configuration file, and determining the target update data from the updated resource data; finally sending the target update data to the terminal device, so that the terminal device updates the resources according to the target update data. Through the above steps, the target update data with differences is cleverly utilized, so that the game resources can be updated conveniently. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0061] Figure 1 An interactive schematic diagram of a resource update system provided in an embodiment of the present application;

[0062] Figure 2 A schematic diagram of the steps of the resource updating method provided in the embodiment of the present application;

[0063] Figure 3 A schematic block diagram of the structure of a resource updating device provided in an embodiment of the present application;

[0064] Figure 4 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0066] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0067] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0068] In the description of the present application, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, it is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the invention is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.

[0069] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.

[0070] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.

[0071] At present, in the process of game operation, game update is an important part of maintenance. In the existing technology, whether it is a small update for common problems or a large update such as a serious problem or version iteration, all resources are updated and the complete file data is sent to the user's terminal device for updating. Then, for example, the update is performed based on binary differences. The entire update process is designed with a huge amount of update data and a large number of files, which is prone to errors. After the error is reported, the resources are often unable to be restored and can only be downloaded and transmitted again.

[0072] Based on this, please refer to Figure 1 , Figure 1An interactive schematic diagram of a resource update system is provided for an embodiment of the present application, and the resource update system includes a computer device 100 and a terminal device 200 that is communicatively connected to the computer device 100. In other implementations of the embodiment of the present application, the resource update system may include more or fewer components. In the embodiment of the present application, the computer device 100 stores an update resource package, and the update resource package includes update resource data and an update configuration file, and the update configuration file is used to characterize update configuration information of the update resource data.

[0073] Please refer to Figure 2 , Figure 2 A schematic diagram of a resource updating method provided in an embodiment of the present application, wherein the resource updating method comprises Figure 1 The resource updating method is implemented by the computer device 100 in the following.

[0074] Step 201 : receiving an update request sent by a terminal device 200 .

[0075] The update request includes the current configuration file.

[0076] Step 202: compare the difference between the current configuration file and the updated configuration file, and determine the target updated data from the updated resource data.

[0077] Step 203: Send the target update data to the terminal device 200, so that the terminal device 200 performs resource update according to the target update data.

[0078] In the embodiment of the present application, the configuration file may refer to a cfg (config, short for computer system configuration) file, which may be used to represent the update configuration information of the updated resource data. Optionally, the configuration file may include the resource path, the resource file name, and the file offset within the resource. The file offset within the resource is to re-read the resource file information every time the game starts loading the update package, so that the update file can be read faster.

[0079] Through the above steps, compared with the update based on all resources in the prior art, the solution provided in the embodiment of the present application will perform data comparison, that is, compare the differences between the current configuration file and the updated configuration file, and then only send the target update data with differences to the user's terminal device 200 for updating, which can greatly reduce the size of the update package and the number of update-related files, improve the update efficiency and reduce the possibility of errors.

[0080] In the embodiment of the present application, in order to more clearly describe the solution in the present application, the embodiment of the present application also provides an example of how to obtain an update resource package, which can be obtained through the following steps.

[0081] Step 301: Acquire original resource information corresponding to the original resource package.

[0082] The original resource information is used to record the file information of the original resource information.

[0083] Step 302: Obtain the to-be-updated resource information corresponding to the to-be-updated resource package.

[0084] The resource information to be updated is used to record file information of the resource information to be updated.

[0085] Step 303, compare the original resource information with the resource information to be updated to obtain an updated comparison result.

[0086] Step 304: Update the original resource package according to the update comparison result and the resource package to be updated to obtain an updated resource package.

[0087] In an embodiment of the present application, each resource package has corresponding resource information, and the resource information is used to record the file information of the original resource information. The resource information can be understood as recording file information. Optionally, the resource information can include the md5 (Message-Digest Algorithm 5, referred to as cryptographic hash function) value of the resource file, the file path, the path within the resource package, and the resource package information to which it belongs. Among them, the md5 value can be used to distinguish the updated resource packages of each version. In an embodiment of the present application, the original resource can be the resource package after the previous update operation is completed, and the original resource is the resource package to be updated this time. Both can be pre-stored in the computer device 100, or obtained from the outside, and there is no limitation here.

[0088] On this basis, the original resource information includes a first update version, the resource information to be updated includes a second update version, the version types include a normal update version and an emergency update version, the normal update version is used to update normal data, and the emergency update version is used to update patch data. As a replaceable specific implementation method, the aforementioned step 303 can be obtained in the following way.

[0089] Sub-step 303-1, compare the original resource information with the resource information to be updated to obtain a first comparison result, the first comparison result is: the type of the first update version is a common update version, and the type of the second update version is a common update version.

[0090] Sub-step 303-2, or, comparing the original resource information with the resource information to be updated to obtain a second comparison result, the second comparison result is: the type of the first update version is a common update version, and the type of the second update version is an emergency update version.

[0091] Sub-step 303-3, or, comparing the original resource information with the resource information to be updated to obtain a third comparison result, the third comparison result is: the type of the first update version is an emergency update version, and the type of the second update version is a normal update version.

[0092] Sub-step 303-4, or, comparing the original resource information with the resource information to be updated to obtain a fourth comparison result, the fourth comparison result is: the type of the first update version is an emergency update version, and the type of the second update version is an emergency update version.

[0093] It should be understood that updates to game resources can be divided into ordinary update versions and emergency update versions. Ordinary update versions have small changes but are more frequent, such as updates to daily activities in the game, bug fixes, etc., while emergency update versions have large changes and need to be modified as long as major changes are needed or serious system vulnerabilities are discovered.

[0094] On the basis of the above, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set. When the update comparison result is the first comparison result, as a replaceable specific implementation method, the above step 304 can be implemented through the following steps.

[0095] Sub-step 304-1, write the data in the original common data set that is not repeated in the common data set to be updated into the common data set to be updated.

[0096] Sub-step 304-2, combining updating of common data with updating of resource data.

[0097] Sub-step 304-3, obtaining updated resource information according to the updated resource data.

[0098] The updated resource information is used to represent the file information of the updated common data set.

[0099] Sub-step 304-4: generating an update configuration file for updating resource information.

[0100] Sub-step 304-5: constructing an update resource package according to the update resource data and the update configuration file.

[0101] In the embodiment of the present application, the resource package includes a normal data set and a patch data set which can be used to store corresponding update data respectively. It should be understood that the resource package can have its own unique version number. The version number can be 4 digits, similar to abcd, and the levels are from large to small from front to back. The version number of each level can only be increased if the previous level remains unchanged. The normal data set can be named according to the version number, and the patch data set can be named according to the special name of hotfix (patch). Optionally, the resource package can be displayed in the following form. For example, it has been updated to 1.2.30.5, 1.2.30.5 is a normal update, and the previously updated versions are 1.0.0.1 (normal), 1.0.2.1 (urgent), 1.0.10.5 (normal). Then there are several files in our update package: 1.0.0.1, 1.0.10.5, 1.2.30.5, hotfix, cfg.

[0102] Based on this, under the condition that the previous update is a normal update version and this update is also a normal update version, there is no need to change the hotfix files (i.e., patch data sets) of the two. It is only necessary to integrate the difference data between the original normal data set and the normal data set to be updated. It should be understood that if duplicate data appears, the data in the normal data set to be updated is retained to ensure the accuracy of the data, and then the updated normal data set is obtained, which can be used as update resource data, and then more detailed resource data used to characterize the file information of the updated normal data set is obtained for subsequent update operations and the production of the next update resource package.

[0103] On the basis of the above, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set. When the update comparison result is the second comparison result, as a replaceable specific implementation method, the above step 304 can be implemented through the following steps.

[0104] Sub-step 304-6, deleting the original patch data set.

[0105] Sub-step 304-7: Collecting the patch data to be updated as an update patch data set.

[0106] Sub-step 304-8, combining the update patch data into update resource data.

[0107] Sub-step 304-9, obtaining updated resource information according to the updated resource data.

[0108] The updated resource information is used to represent the file information of the updated common data set.

[0109] Sub-step 304-10: generating an update configuration file for updating resource information.

[0110] Sub-step 304-11, constructing an update resource package according to the update resource data and the update configuration file.

[0111] In the above situation, if the previous update is a normal update version and the current update is a patch update version, the original patch data set (hotfix file of the original resource package) needs to be deleted, and the patch data set to be updated is directly used as the update patch data set without changing the original data set. The resource data can be updated based on the original normal data set and the update patch data set, and the updated resource information used to represent the file information of the updated normal data set can be obtained. Similarly, this is for subsequent update operations and the production of the next update resource package.

[0112] On the basis of the foregoing, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set. When the update comparison result is the third comparison result, as a replaceable specific implementation method, the foregoing step 304 can be implemented through the following steps.

[0113] Sub-step 304-12, writing the original patch data set into the to-be-updated common data set to obtain a pending data set.

[0114] Sub-step 304-13, write the data in the original common data set that is not repeated in the pending data set into the pending data set to obtain an updated patch data set.

[0115] Sub-step 304-14, combining the update patch data into update resource data.

[0116] Sub-step 304-15, obtaining updated resource information according to the updated resource data, wherein the updated resource information is used to represent the file information of the updated common data set.

[0117] Sub-step 304-16, generating an update configuration file for updating resource information.

[0118] Sub-step 304-17: constructing an update resource package according to the update resource data and the update configuration file.

[0119] In the above situation, if the previous update is an emergency update version and this update is a normal update version, it is necessary to first write the original patch data set (the hotfix file of the original resource package) into the normal data set to be updated to obtain the pending data set, and then compare the differential data of the original normal data set and the normal data set to be updated, and integrate them to obtain the updated patch data set, and then use the updated patch data set as the updated resource data to obtain the updated configuration file of the updated resource information, so as to obtain the updated resource package.

[0120] On the basis of the foregoing, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set. When the update comparison result is the fourth comparison result, as a replaceable specific implementation method, the foregoing step 304 can be implemented through the following steps.

[0121] Step 304-18, write the data in the original patch data set that is not repeated in the patch data set to be updated into the patch data set to be updated, to obtain the pending data set.

[0122] Step 304-19: combine the pending data set and the original common data set as updated resource data.

[0123] Step 304-20, obtaining updated resource information according to the updated resource data.

[0124] The updated resource information is used to represent the file information of the updated common data set.

[0125] Step 304-21, generating an update configuration file for updating resource information.

[0126] Step 304-22: construct an update resource package according to the update resource data and the update configuration file.

[0127] In the above situation, if the previous update is an emergency update version and the current update is also an emergency update version, it is necessary to integrate the hotfix files of the two, write the data in the original patch data set that is not repeated in the patch data set to be updated into the patch data set to be updated, and obtain the pending data set without changing the original ordinary data set, thereby obtaining the updated resource data and updated resource information, and finally obtaining the updated resource package as described above.

[0128] Through the above steps, the difference between the ordinary update version and the emergency update version is cleverly utilized, so that the update resource package produced can reduce the update size of each version, while ensuring the stability and efficiency of the update. At the same time, when a large number of emergency updates are inserted in the middle, the update size can still be kept small, and the number of files is also small, which makes it easy to find update problems and prevent possible problems with too many file handles.

[0129] The embodiment of the present application provides a resource updating device 110, which is applied to a computer device 100, the computer device 100 is in communication connection with a terminal device 200, and the computer device 100 stores an update resource package, the update resource package includes update resource data and an update configuration file, and the update configuration file is used to represent update configuration information of the update resource data, such as Figure 3As shown, the resource updating device 110 includes:

[0130] The receiving module 1101 is used to receive an update request sent by the terminal device 200, wherein the update request includes a current configuration file.

[0131] The comparison module 1102 is used to compare the difference between the current configuration file and the updated configuration file, and determine the target updated data from the updated resource data.

[0132] The updating module 1103 is used to send the target updating data to the terminal device 200 so that the terminal device 200 performs resource updating according to the target updating data.

[0133] Furthermore, the apparatus further includes a production module 1104, which is used to:

[0134] Obtain original resource information corresponding to the original resource package, wherein the original resource information is used to record file information of the original resource information; obtain resource information to be updated corresponding to the resource package to be updated, wherein the resource information to be updated is used to record file information of the resource information to be updated; compare the original resource information with the resource information to be updated to obtain an updated comparison result; update the original resource package according to the updated comparison result and the resource package to be updated to obtain an updated resource package.

[0135] Further, the original resource information includes a first update version, the resource information to be updated includes a second update version, and the version types include a common update version and an emergency update version, the common update version is used to update common data, and the emergency update version is used to update patch data;

[0136] The making module 1104 is specifically used for:

[0137] The original resource information is compared with the resource information to be updated to obtain a first comparison result, and the first comparison result is: the type of the first update version is a normal update version, and the type of the second update version is a normal update version; or, the original resource information is compared with the resource information to be updated to obtain a second comparison result, and the second comparison result is: the type of the first update version is a normal update version, and the type of the second update version is an emergency update version; or, the original resource information is compared with the resource information to be updated to obtain a third comparison result, and the third comparison result is: the type of the first update version is an emergency update version, and the type of the second update version is a normal update version; or, the original resource information is compared with the resource information to be updated to obtain a fourth comparison result, and the fourth comparison result is: the type of the first update version is an emergency update version, and the type of the second update version is an emergency update version.

[0138] Furthermore, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set. The making module 1104 is further specifically used for:

[0139] Write the data in the original common data set that is not repeated in the common data set to be updated into the common data set to be updated; collect the updated common data set as update resource data; obtain update resource information based on the update resource data, wherein the update resource information is used to characterize the file information of the updated common data set; generate an update configuration file for the update resource information; and construct an update resource package based on the update resource data and the update configuration file.

[0140] Furthermore, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set. The making module 1104 is further specifically used for:

[0141] Delete the original patch data set; combine the patch data set to be updated into an update patch data set; combine the update patch data set into update resource data; obtain update resource information based on the update resource data, wherein the update resource information is used to characterize the file information of the updated general data set; generate an update configuration file of the update resource information; and construct an update resource package based on the update resource data and the update configuration file.

[0142] Furthermore, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set. The making module 1104 is further specifically used for:

[0143] The original patch data set is written into the to-be-updated common data set to obtain the pending data set; the data in the original common data set that is not repeated in the pending data set is written into the pending data set to obtain the updated patch data set; the updated patch data set is combined as the updated resource data; the updated resource information is obtained according to the updated resource data, wherein the updated resource information is used to characterize the file information of the updated common data set; an update configuration file for the update resource information is generated; and an update resource package is constructed according to the updated resource data and the update configuration file.

[0144] Furthermore, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set. The making module 1104 is further specifically used for:

[0145] Write the data in the original patch data set that is not repeated in the patch data set to be updated into the patch data set to be updated to obtain the pending data set; combine the pending data set and the original common data set as update resource data; obtain update resource information based on the update resource data, wherein the update resource information is used to characterize the file information of the update common data set; generate an update configuration file for the update resource information; and construct an update resource package based on the update resource data and the update configuration file.

[0146] The embodiment of the present application provides a computer device 100, which includes a processor and a non-volatile memory storing computer instructions. When the computer instructions are executed by the processor, the computer device 100 executes the resource update method described above. Figure 4 As shown, Figure 4 The computer device 100 provided in the embodiment of the present application is a structural block diagram. The computer device 100 includes a resource updating device 110, a memory 111, a processor 112 and a communication unit 113.

[0147] To achieve data transmission or interaction, the memory 111, the processor 112 and the communication unit 113 are electrically connected to each other directly or indirectly. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The resource update device 110 includes at least one software function module that can be stored in the memory 111 in the form of software or firmware or solidified in the operating system (OS) of the computer device 100. The processor 112 is used to execute the executable modules stored in the memory 111, such as the software function modules and computer programs included in the resource update device 110.

[0148] An embodiment of the present application provides a readable storage medium, which includes a computer program. When the computer program is executed, the computer device 100 where the readable storage medium is located is controlled to execute the aforementioned resource update method.

[0149] In summary, the embodiments of the present application provide a resource updating method, apparatus, computer device and readable storage medium, which receives an update request issued by a terminal device, wherein the update request includes a current configuration file; then compares the difference between the current configuration file and the update configuration file, and determines the target update data from the updated resource data; finally, the target update data is sent to the terminal device, so that the terminal device updates the resources according to the target update data. Through the above steps, the target update data with differences is cleverly utilized, so that the game resources can be updated conveniently.

[0150] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A resource updating method, characterized in that: Applied to a computer device, the computer device is in communication connection with a terminal device, the computer device stores an update resource package, the update resource package includes update resource data and an update configuration file, the update configuration file is used to represent update configuration information of the update resource data; The method comprises: Receiving an update request sent by the terminal device, wherein the update request includes a current configuration file; comparing the difference between the current configuration file and the updated configuration file, and determining target updated data from the updated resource data; Sending the target update data to the terminal device so that the terminal device updates resources according to the target update data; The update resource package is obtained by the following steps: Acquire original resource information corresponding to the original resource package, wherein the original resource information is used to record file information of the original resource information, and the original resource information includes a first updated version; the original resource package includes an original common data set and an original patch data set; Obtain resource information to be updated corresponding to the resource package to be updated, wherein the resource information to be updated is used to record file information of the resource information to be updated, and the resource information to be updated includes a second update version; the version type includes a common update version and an emergency update version, the common update version is used to update common data, and the emergency update version is used to update patch data; the resource package to be updated includes a common data set to be updated and a patch data set to be updated; Comparing the original resource information with the resource information to be updated to obtain an updated comparison result; The original resource package is updated according to the update comparison result and the resource package to be updated to obtain the updated resource package; When the update comparison result is a second comparison result, the second comparison result is: the type of the first update version is the common update version, and the type of the second update version is the emergency update version; the updating of the original resource package according to the update comparison result and the resource package to be updated to obtain the updated resource package includes: Deleting the original patch data set; Collecting the to-be-updated patch data set as an update patch data set; combining the update patch data into the update resource data; Obtaining updated resource information according to the updated resource data, wherein the updated resource information is used to represent file information of the updated common data set; generating the update configuration file for updating the resource information; The update resource package is constructed according to the update resource data and the update configuration file.

2. The method according to claim 1, characterized in that: The step of comparing the original resource information with the resource information to be updated to obtain an updated comparison result includes: Comparing the original resource information with the resource information to be updated to obtain a first comparison result, wherein the first comparison result is: the type of the first update version is the common update version, and the type of the second update version is the common update version; Alternatively, the original resource information is compared with the resource information to be updated to obtain a second comparison result; Alternatively, the original resource information is compared with the resource information to be updated to obtain a third comparison result, where the third comparison result is: the type of the first update version is the emergency update version, and the type of the second update version is the common update version; Alternatively, the original resource information is compared with the resource information to be updated to obtain a fourth comparison result, where the fourth comparison result is: the type of the first update version is the emergency update version, and the type of the second update version is the emergency update version.

3. The method according to claim 2, characterized in that When the update comparison result is the first comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain the updated resource package includes: Writing the data in the original common data set that are not repeated in the common data set to be updated into the common data set to be updated; combining the updated common data into the updated resource data; Obtaining updated resource information according to the updated resource data, wherein the updated resource information is used to represent file information of the updated common data set; generating the update configuration file for updating the resource information; The update resource package is constructed according to the update resource data and the update configuration file.

4. The method according to claim 2, characterized in that: When the update comparison result is the third comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain the updated resource package includes: Writing the original patch data set into the to-be-updated common data set to obtain a pending data set; Writing the data in the original common data set that are not repeated in the pending data set into the pending data set to obtain the update patch data set; combining the update patch data into the update resource data; Obtaining updated resource information according to the updated resource data, wherein the updated resource information is used to represent file information of the updated common data set; generating the update configuration file for updating the resource information; The update resource package is constructed according to the update resource data and the update configuration file.

5. The method according to claim 2, characterized in that: When the update comparison result is the fourth comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain the updated resource package includes: Writing the data in the original patch data set that are not repeated in the patch data set to be updated into the patch data set to be updated to obtain a pending data set; Combining the pending data set and the original common data set as the updated resource data; Obtaining updated resource information according to the updated resource data, wherein the updated resource information is used to represent file information of the updated common data set; generating the update configuration file for updating the resource information; The update resource package is constructed according to the update resource data and the update configuration file.

6. A resource updating device, characterized in that: Applied to a computer device, the computer device is in communication connection with a terminal device, the computer device stores an update resource package, the update resource package includes update resource data and an update configuration file, the update configuration file is used to represent update configuration information of the update resource data; The device comprises: A receiving module, configured to receive an update request sent by the terminal device, wherein the update request includes a current configuration file; A comparison module, used for comparing the difference between the current configuration file and the update configuration file, and determining the target update data from the update resource data; An updating module, used for sending the target update data to the terminal device, so that the terminal device updates resources according to the target update data; A production module, used to obtain original resource information corresponding to an original resource package, wherein the original resource information is used to record file information of the original resource information, and the original resource information includes a first update version; the original resource package includes an original common data set and an original patch data set; obtain resource information to be updated corresponding to a resource package to be updated, wherein the resource information to be updated is used to record file information of the resource information to be updated, and the resource information to be updated includes a second update version; version types include common update versions and emergency update versions, the common update version is used to update common data, and the emergency update version is used to update patch data; the resource package to be updated includes a common data set to be updated and a patch data set to be updated; compare the original resource information with the resource information to be updated to obtain an update comparison result; update the original resource package according to the update comparison result and the resource package to be updated to obtain the updated resource package; When the update comparison result is the second comparison result, the second comparison result is: the type of the first update version is the ordinary update version, and the type of the second update version is the emergency update version; the production module is used to delete the original patch data set; the patch data to be updated is combined as an update patch data set; the update patch data is combined as the update resource data; update resource information is obtained according to the update resource data, wherein the update resource information is used to characterize file information of the update ordinary data set; the update configuration file of the update resource information is generated; and the update resource package is constructed according to the update resource data and the update configuration file.

7. A computer device, characterized in that: The computer device includes a processor and a non-volatile memory storing computer instructions. When the computer instructions are executed by the processor, the computer device executes the resource updating method according to any one of claims 1 to 5.

8. A readable storage medium, characterized in that: The readable storage medium includes a computer program, and when the computer program is executed, the computer device where the readable storage medium is located is controlled to execute the resource updating method according to any one of claims 1 to 5.