Game application updating method, device, storage medium and computer equipment
By determining an update data packet set for a game application, including fusion information of a first data packet and a second data packet, the problem of low update efficiency of the game application is solved, and a more efficient update process is achieved.
Patent Information
- Application Number
- CN202111293458.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-03
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2041-11-03
AI Technical Summary
When a game application version is updated, users need to download a large number of difference packages, resulting in low update efficiency.
By obtaining the version information of the current version and the update target version of the target game application, an update data packet set is determined, including a first data packet and a second data packet. The first data packet contains fusion information of multiple second data packets, and the target update data packet set is selected for update based on the data volume.
The number of update data packets and the total data volume are reduced, and the update efficiency of game applications is improved.
Smart Images

Figure CN113996066B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, storage medium, and computer equipment for updating a game application. Background Art
[0002] In the Internet age, mobile terminals have become indispensable items in users' daily lives. The applications loaded in mobile terminals have enriched people's lives and provided great convenience for people's lives.
[0003] To continuously improve application functionality and meet users' evolving needs, applications must be continuously updated. For example, when a game application introduces new gameplay or fixes a vulnerability, a new version of the game is released. At this point, users need to download the updated diff package to update the game application.
[0004] The inventors of the present application discovered during research that, when a game application version is updated multiple times, users need to download a large number of difference packages, resulting in very low update efficiency of the game application. Summary of the Invention
[0005] The embodiments of the present application provide a game application update method, device, storage medium and computer equipment. The game application update method can effectively improve the update efficiency of the game application.
[0006] A first aspect of the present application provides a game application update method, the method comprising:
[0007] Obtaining first version information of a target game application, where the first version information is current version information of the target game application;
[0008] Acquire second version information of the target game application, where the second version information is version information indicating an update operation for the target game application;
[0009] determining at least one update data packet set according to the first version information and the second version information, the update data packet set including a first number of first data packets and a second number of second data packets, the first data packet including fusion information of a plurality of the second data packets;
[0010] Acquire the data volume of each update data packet set, and determine a target update data packet set from the at least one update data packet set according to the data volume;
[0011] The target game application is updated using the target update data packet set.
[0012] Accordingly, a second aspect of the present application provides a game application update device, the device comprising:
[0013] A first acquiring unit, configured to acquire first version information of a target game application, where the first version information is current version information of the target game application;
[0014] A second acquiring unit, configured to acquire second version information of the target game application, where the second version information is version information indicating an update operation for the target game application;
[0015] a first determining unit, configured to determine at least one update data packet set based on the first version information and the second version information, the update data packet set comprising a first number of first data packets and a second number of second data packets, the first data packet comprising fusion information of a plurality of the second data packets;
[0016] a second determining unit, configured to obtain a data volume of each update data packet set, and determine a target update data packet set from the at least one update data packet set according to the data volume;
[0017] An updating unit is configured to update the target game application using the target update data packet set.
[0018] In some embodiments, the first determining unit includes:
[0019] A first acquiring subunit, configured to acquire key version information between the first version information and the second version information;
[0020] a first determining subunit, configured to determine a first number of first data packets and a second number of second data packets based on the key version information, the first version information, and the second version information;
[0021] The second determining subunit is configured to determine at least one updated data packet set according to the first number of first data packets and the second number of second data packets.
[0022] In some embodiments, the first determining subunit includes:
[0023] A first acquisition module is used to obtain the update time of the game application version corresponding to the key version information;
[0024] A first search module is configured to search for first key version information whose update time is closest to the update time included in the first version information;
[0025] A second search module is configured to search for second key version information whose update time is closest to the update time included in the second version information;
[0026] a first determining module, configured to determine a second number of second data packets based on a first difference between a first version corresponding to the first version information and a first key version corresponding to the first key version information, and a second difference between a second key version corresponding to the second key version information and a second version corresponding to the second version information;
[0027] The second determining module is configured to determine a first number of first data packets according to a third difference between the second key version and the first key version.
[0028] In some embodiments, the updating unit includes:
[0029] a first updating subunit, configured to update the target game application from the first version to the first key version using the second number of second data packets;
[0030] a second updating subunit, configured to update the target game application from the first key version to the second key version according to the first number of first data packets;
[0031] The third updating subunit is configured to update the target game application from the second key version to the second version based on the second number of second data packets.
[0032] In some embodiments, the first determining subunit includes:
[0033] A second obtaining module is used to obtain the update time of the game application version corresponding to the key version information;
[0034] a third search module, configured to search for third key version information whose update time is closest to the update time included in the second version information;
[0035] a third determining module, configured to determine a first number of first data packets according to a third difference between a third key version corresponding to the third key version information and a base version of the target game application;
[0036] The fourth determining module is configured to determine a second number of second data packets according to a fourth difference between the second version corresponding to the second version information and the third key version.
[0037] In some embodiments, the updating unit includes:
[0038] A second acquisition subunit is used to obtain basic version data of the target game application;
[0039] a fourth updating subunit, configured to update the basic version data according to the first number of first data packets to obtain the target game application of the third key version;
[0040] The fifth updating subunit is configured to update the target game application from the third key version to the second version using the second number of second data packets.
[0041] In some embodiments, the second determining unit includes:
[0042] a third acquiring subunit, configured to acquire the data volume of each update data packet in each update data packet set;
[0043] A calculation subunit, configured to calculate the total amount of data corresponding to each update data packet set;
[0044] The third determining subunit is configured to determine the update data packet with the lowest total amount of data as the target update data packet.
[0045] The third aspect of the present application also provides a computer-readable storage medium, which stores multiple instructions, and the instructions are suitable for a processor to load to execute the steps in the game application update method provided in the first aspect of the present application.
[0046] The fourth aspect of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the computer program, the steps in the game application update method provided in the first aspect of the present application are implemented.
[0047] The fifth aspect of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps in the game application update method provided in the first aspect.
[0048] The game application update method provided by the embodiment of the present application obtains first version information of the target game application, where the first version information is the current version information of the target game application; obtains second version information of the target game application, where the second version information is version information indicating an update operation for the target game application; determines at least one update data packet set based on the first version information and the second version information, where the update data packet set includes a first number of first data packets and a second number of second data packets, and the first data packet includes fusion information of multiple second data packets; obtains the data volume of each update data packet set, and determines a target update data packet set in at least one update data packet set based on the data volume; and uses the target update data packet set to update the target game application.
[0049] Thus, the game application update method provided in this application can determine an update data packet combination consisting of a first data packet and a second data packet based on the version information difference between the current version of the game application and the target update version, and use this data update packet combination to update the target game application. Because the first data packet contains the fused information of multiple second data packets, the number of update data packets can be reduced, and the total data size of the update data packets can be reduced, thereby improving the update efficiency of the game application. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 This is a schematic diagram of a scenario for updating a game application in this application;
[0052] Figure 2 This is a flowchart of the game application update method provided by this application;
[0053] Figure 3 This is another flowchart of the game application update method provided by this application;
[0054] Figure 4 This is a schematic diagram of generating a full difference package provided by this application;
[0055] Figure 5 This is a flowchart of the game client update process provided by this application;
[0056] Figure 6 This is a timing diagram of the game client update provided by this application;
[0057] Figure 7 This is a schematic diagram of the structure of the game application update device provided by this application;
[0058] Figure 8 It is a structural diagram of the computer device provided in this application. DETAILED DESCRIPTION
[0059] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.
[0060] Embodiments of the present invention provide a game application update method, device, computer-readable storage medium, and terminal. The game application update method can be used in a game application update device. The game application update device can be integrated into a computer device, which can be a terminal or a server. The terminal can be a mobile phone, tablet computer, laptop computer, smart TV, wearable smart device, personal computer (PC), vehicle-mounted terminal, and other devices. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The server can be a node in a blockchain.
[0061] See also Figure 1 , which is a schematic diagram of a scenario of the game application update method provided by this application. As shown in the figure, computer device A obtains first version information of a target game application, which is the current version information of the target game application; obtains second version information of the target game application, which is the version information indicating an update operation for the target game application; determines at least one update data packet set based on the first version information and the second version information, wherein the update data packet set includes a first number of first data packets and a second number of second data packets, and the first data packet includes fusion information of multiple second data packets; obtains the data volume of each update data packet set, and determines a target update data packet set from the at least one update data packet set based on the data volume; and updates the target game application using the target update data packet set.
[0062] It should be noted that Figure 1 The schematic diagram of the game application update scenario shown is merely an example. The game application update scenario described in the embodiments of this application is intended to more clearly illustrate the technical solution of this application and does not constitute a limitation on the technical solution provided by this application. Persons skilled in the art will appreciate that as game application update scenarios evolve and new business scenarios emerge, the technical solution provided by this application will also be applicable to similar technical problems.
[0063] The following are detailed descriptions based on the above implementation scenarios.
[0064] The embodiments of the present application will be described from the perspective of a game application update device, which can be integrated into a computer device. The computer device can be a terminal or a server. The terminal can be a mobile phone, a tablet computer, a laptop computer, a smart TV, a wearable smart device, a personal computer (PC, Personal Computer), a vehicle-mounted terminal and other devices. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as basic cloud computing services such as big data and artificial intelligence platforms. Such as Figure 2 FIG. 1 is a flow chart of a method for updating a game application provided by the present application, and the method includes:
[0065] Step 101: Obtain first version information of a target game application.
[0066] Among them, the target game application can be a computer game application loaded on the computer side, a mobile game application loaded on the mobile terminal, or a cloud game application loaded and run on the server side and displaying the game running screen on the terminal.
[0067] The first version information of the target game application can be any specified version of the target game application, or it can be the current version of the target game application installed on the terminal or server. Whether it's a game application or other internet application, evolving user needs necessitate the development of new features, the removal or modification of existing features, and timely patching of application vulnerabilities, necessitating application updates. For game applications, updates are also necessary when new gameplay is developed. As game applications are constantly updated, new versions of game applications are constantly released. Compared to other applications, game applications are updated more frequently, leading to the development of game hot reloading solutions. Game hot reloading refers to a process in which, after a game is launched, if additional resources (i.e., modified or newly added resources) are detected while loading basic resources, these resources are loaded into the game and immediately take effect. In principle, this technology overwrites the original corresponding files through external mounting, allowing users to experience new content.
[0068] In related technologies, whenever a game application is updated, a new game version is released. At the same time, the resource package of the new game version is compared with the resource package of the previous game version to generate a difference package. The difference package is also called a patch package. Due to the continuous iteration of game versions, it is necessary to modify the original logic, add new resources, or delete obsolete resources. Based on this operation, the difference changes in the files will be caused. After the difference files are calculated through the comparison of the underlying technology, they are processed and encrypted through a certain mechanism and merged into a file package. This file package is called the difference package. As the number of game application updates continues to increase, the number of difference packages will also increase. Then, when the user has not used the game application for a long time, they will need to download a large number of difference packages when using it again, and use these difference packages to update the game application, which makes the update efficiency extremely low.
[0069] To solve the problem of low game application update efficiency in the above scenario, this application provides a game application update method to improve the game application update efficiency. The game application update method provided by this application is described in detail below.
[0070] First, the first version information of the target game application to be updated is obtained. The first version information can be any specified version of the target game application or the current version information of the currently loaded target game application. When the first version information is the current version information of the target game application, the first version information corresponding to the current version can be obtained from the resource file of the currently loaded target game application.
[0071] Step 102: Obtain the second version information of the target game application.
[0072] The second version information of the target game application may be version information indicating an update operation on the target game application, and may specifically be any specified version information of the target game application, or may be the latest version information of the target game application.
[0073] Since the first version information corresponds to the first version of the target game application, which is the version to be updated, and the second version information corresponds to the second version of the target game application, which is the version targeted by the update operation, that is, the updated version, the second version information is determined to be the version information corresponding to the version after the first version. That is, in the life cycle of the target game application, the first version was generated earlier than the second version.
[0074] Step 103: Determine at least one update data package set according to the first version information and the second version information.
[0075] The update data packet set includes a first number of first data packets and a second number of second data packets. The first number and the second number are either natural numbers, i.e., both the first number and the second number can be 0. In other words, the update data packet set can contain only first data packets or only second data packets. However, the first number and the second number cannot both be 0, i.e., the update data packet set cannot be an empty set.
[0076] Each first data packet includes fusion information of multiple second data packets. That is, in the embodiment of the present application, the first data packet can be understood as a full differential data packet, and the second data packet can be understood as a normal differential data packet. A full differential data packet can include fusion information of multiple normal differential data packets, or a full differential data packet can be obtained by fusion processing of multiple normal differential data packets.
[0077] In the embodiments of the present application, whenever a new version of the target game application is generated, operations such as modifying the original logic to add new resources or deleting obsolete resources may result in file differences. At this point, the difference between the new version and the previous version can be calculated through underlying technology comparison. These files are then processed and encrypted using a specific mechanism and merged into a single file package, resulting in a common difference data package.
[0078] When the new version is a key version, in addition to generating a normal difference data packet that is different from the previous version, a full difference data packet that is different from the base version and a full difference data packet that is different from the previous key version can also be generated. Specifically, for example, a key version can be set every 10 versions, so the 10th version, the 20th version, the 30th version, and other versions that are multiples of ten are all key versions. Then when the target game application is updated to version 20, a normal difference data packet will be generated for the difference between version 20 and version 19, a first full difference data packet will be generated for the difference between version 20 and version 1, and a second full difference data packet will be generated for the difference between version 20 and version 10. The first full difference data packet here can be equivalent to the full difference data packet obtained by merging the normal difference data packets corresponding to each version from version 2 to version 20; the second full difference data packet here can be equivalent to the full difference data packet obtained by merging the normal difference data packets corresponding to each version from version 11 to version 20.
[0079] Since a full differential data packet can be equivalent to a data packet obtained by fusing multiple ordinary differential data packets, and a large number of redundant files will be reduced during the fusion process, the method of generating a full differential data packet can not only reduce the number of differential data packets, but also reduce the amount of data that the game application needs to download when downloading updates, thereby greatly improving the update efficiency of the game application.
[0080] Among them, the first number of first data packets and the second number of second data packets included in the update data packet set can be realized in multiple combinations. The combination here is not an arbitrary combination. The data packet formed by the combination can at least update the target game application from the first version to the second version. For example, the first version of the target game application is Ver1.2.1 (version 1.2.1), and the second version is Ver1.4.4. The target game application has undergone a total of 23 updates from Ver1.2.1 to Ver1.4.4, so the corresponding update data packet set can contain 23 second data packets, that is, 23 ordinary difference data packets. If there are key versions Ver1.3.0 and Ver1.4.0 in versions Ver1.2.1 and Ver1.4.4, then the update data packet set may include 9 second data packets that update the target game application version from Ver1.2.1 to key version Ver1.3.0, 1 first data packet that updates the target game application version from key version Ver1.3.0 to key version Ver1.4.0, and 4 second data packets that update the target game application version from key version Ver1.4.0 to Ver1.4.4, that is, the update data packet set includes 1 first data packet and 13 second data packets. The update data packet set may also include a first data packet that updates the target game application from basic version Ver1.0.0 to key version Ver1.4.0 and 4 second data packets that update the target game application from key version Ver1.4.0 to second version Ver1.4.4.
[0081] That is, at least one update data package set can be determined according to the first version information and the second version information.
[0082] In some embodiments, determining at least one update data package set based on the first version information and the second version information includes:
[0083] 1. Obtain key version information between the first version information and the second version information;
[0084] 2. Determine a first number of first data packets and a second number of second data packets based on the key version information, the first version information, and the second version information;
[0085] 3. Determine at least one updated data packet set based on the first number of first data packets and the second number of second data packets.
[0086] In an embodiment of the present application, the update data package set can be determined by obtaining key version information between the first version information and the second version information. Specifically, a key version setting rule can be first obtained, and then the key version information between the first version information and the second version information can be determined based on the setting rule. Alternatively, the key version information corresponding to the key version can be obtained from a preset file.
[0087] The key version information between the first version information and the second version information can be one or more. Of course, in some cases, there may be no key version information between the first version information and the second version information. In this case, the second number of second data packets can be determined directly based on the first version information and the second version information, that is, the first data packet does not exist in the update data packet set.
[0088] Then, a first number of first data packets and a second number of second data packets can be determined based on the difference between the current first version information and the key version information. The first number and the second number can have multiple possible combinations, each of which corresponds to an update data packet set, thereby obtaining multiple update data packet combinations.
[0089] In some embodiments, determining a first number of first data packets and a second number of second data packets based on the key version information, the first version information, and the second version information includes:
[0090] 2.1. Obtain the update time of the game application version corresponding to the key version information;
[0091] 2.2. Find the first key version information whose update time is closest to the update time included in the first version information;
[0092] 2.3. Find the second key version information whose update time is closest to the update time included in the second version information;
[0093] 2.4. Determine a second number of second data packets based on a first difference between the first version corresponding to the first version information and the first key version corresponding to the first key version information, and a second difference between the second key version corresponding to the second key version information and the second version corresponding to the second version information;
[0094] 2.5. Determine a first number of first data packets based on a third difference between the second key version and the first key version.
[0095] Among them, in the embodiment of the present application, when there are at least two key version information, the update time of the game application version corresponding to each key version information can be obtained.
[0096] Based on the update time corresponding to each key version information obtained, the first key version information whose update time is after the update time corresponding to the first version information and is closest to the update time corresponding to the first version information can be determined; and the second key version information whose update time is before the update time corresponding to the second version information and is closest to the update time corresponding to the second version information can be determined.
[0097] Furthermore, a third number of second data packets is determined based on the difference between the first version and the first key version corresponding to the first version information of the target game application, and a fourth number of second data packets is determined based on the difference between the second key version and the second version, where the sum of the third number and the fourth number is the second number. Furthermore, a first number of first data packets is determined based on the difference between the first key version and the second key version.
[0098] Specifically, for example, if the first version of the target game application is Ver1.2.1 and the second version is Ver1.5.4, there are three key versions between the first and second versions: first key version Ver1.3.0, key version Ver1.4.0, and second key version Ver1.5.0. There are nine second data packets between the first and first key versions, and four second data packets between the second and second key versions. There can be two or one first data packet between the first and second key versions.
[0099] In some embodiments, determining a first number of first data packets and a second number of second data packets based on the key version information, the first version information, and the second version information includes:
[0100] A. Get the update time of the game application version corresponding to the key version information;
[0101] B. Find the third key version information whose update time is closest to the update time included in the second version information;
[0102] C. Determining a first number of first data packets based on a third difference between the third key version corresponding to the third key version information and the base version of the target game application;
[0103] D. Determine a second number of second data packets according to a fourth difference between the second version corresponding to the second version information and the third key version.
[0104] In an embodiment of the present application, the update data packet set can be directly determined based on the difference between the third key version closest to the second version and the basic version of the target game application, and the difference between the third key version and the second version.
[0105] Specifically, the third key version closest to the update time of the second version can be determined based on the update time of the key version and the update time corresponding to the second version information, and then a first number of first resource packages (the first number here can be multiple) can be determined based on the difference between the third key version and the basic version, and then the second number of second resource packages between the third key version and the second version can be determined to obtain at least one update data packet set.
[0106] Step 104 : Acquire the data volume of each update data packet set, and determine a target update data packet set from at least one update data packet set according to the data volume.
[0107] The update data packet set includes a first number of first data packets and a second number of second data packets. For any first data packet or second data packet, the data size thereof can be obtained.
[0108] When updating a target game application, after determining the update data package set that needs to be used to update the first version of the target game application, each data package in the update data package set must be downloaded from a server or other terminal via a network. Therefore, the smaller the amount of data in the data package set, the faster the update data package set is downloaded, which in turn increases the efficiency of the game application update.
[0109] Therefore, after determining at least one update data packet set, the data volume of each data packet in each update data packet set is obtained, and the target update data packet for updating the first version of the target game application is determined based on the data volume of the data packets in the data packet set.
[0110] In some embodiments, obtaining the data volume of each update data packet set and determining a target update data packet set from at least one update data packet set according to the data volume includes:
[0111] 1. Obtain the data volume of each update data packet in each update data packet set;
[0112] 2. Calculate the total amount of data corresponding to each update data packet set;
[0113] 3. Determine the update data packet with the lowest total data volume as the target update data packet.
[0114] In this embodiment of the present application, it can be determined that the update data packet with the lowest total amount of data is the target update data packet for updating the target game application.
[0115] Specifically, the data volume of each update data packet in each update data packet set may be first obtained, and then the total data volume corresponding to each update data packet set may be calculated accordingly, and the update data packet with the lowest total data volume may be determined as the target update data packet.
[0116] Step 105: Update the target game application using the target update data packet set.
[0117] After determining the target update data packet set, the target game application can be updated using a first number of first data packets and a second number of second data packets contained in the target update data packet set. The target game application can be updated one by one in the order of version upgrades, or the current version resources can be directly combined with all data packets in the update data packet set to update the target game application.
[0118] In some embodiments, updating a target game application using a target update data packet set includes:
[0119] 1. Using a second number of second data packets to update the target game application from the first version to the first key version;
[0120] 2. Updating the target game application from a first key version to a second key version according to the first number of first data packets;
[0121] 3. Update the target game application from the second key version to the second version based on the second number of second data packets.
[0122] Among them, in an embodiment of the present application, when the first version information, the second version information, and the difference between multiple key version information in the first version information and the second version information are used to determine the update data packet, the target game application is updated after the update data packet is determined. Then, the version of the target game application can be updated from the first version to the first key version according to the second number of second data packets, and then the version of the target game application can be updated from the first key version to the second key version using the first number of first data packets.
[0123] Specifically, when the first version of the target game application is Ver1.2.1 and the second version is Ver1.5.4, there are three key versions between the first version and the second version, namely the first key version Ver1.3.0, the key version Ver1.4.0 and the second key version Ver1.5.0. There are 9 second data packets between the first version and the first key version, 4 second data packets between the second key version and the second version, and 1 first data packet can exist between the first key version and the second key version. Then when updating the target game application, the 9 second data packets between the first version and the first key version can be used to update the target game application from Ver1.2.1 to Ver1.3.0, and then the 1 first data packet can be used to update the target game application from Ver1.3.0 to Ver1.5.0, and finally the 4 second data packets between the second key version and the second version can be used to update the target game application from Ver1.5.0 to Ver1.5.4.
[0124] In some embodiments, updating a target game application using a target update data packet set includes:
[0125] A. Obtain the basic version data of the target game application;
[0126] B. updating the basic version data according to the first number of first data packets to obtain a third key version of the target game application;
[0127] C. Using a second number of second data packets to update the target game application from the third key version to the second version.
[0128] Among them, in an embodiment of the present application, when the difference between the third key version closest to the second version and the basic version of the target game application and the difference between the third key version and the second version are used to determine the update data packet, when updating the target game application, the basic version data of the target game application can be obtained first, and then the first number of first data packets between the basic version and the third key version can be used to update the basic version to the third key version, and then the second number of second data packets between the third key version and the second version can be further used to update the target game application from the third key version to the second version.
[0129] Specifically, when the first version of the target game application is Ver1.2.1 and the second version is Ver1.5.4, there are three key versions between the first and second versions: key version Ver1.3.0, key version Ver1.4.0, and key version Ver1.5.0. The third key version Ver1.5.0 closest to the second version is determined, and there is one first data packet between the initial version Ver1.0.0 and the third key version Ver1.5.0 of the target game application. Then, when updating the target game application, one first data packet can be used to update the target game application from the initial version to Ver1.5.0, and then four second data packets can be used to update the target game application from Ver1.5.0 to Ver1.5.4.
[0130] According to the above description, the game application update method provided by the embodiment of the present application obtains the first version information of the target game application, where the first version information is the current version information of the target game application; obtains the second version information of the target game application, where the second version information is the version information indicating the update operation of the target game application; determines at least one update data packet set based on the first version information and the second version information, where the update data packet set includes a first number of first data packets and a second number of second data packets, and the first data packet includes fusion information of multiple second data packets; obtains the data volume of each update data packet set, and determines the target update data packet set in at least one update data packet set based on the data volume; and uses the target update data packet set to update the target game application.
[0131] Thus, the game application update method provided in this application can determine an update data packet combination consisting of a first data packet and a second data packet based on the version information difference between the current version of the game application and the target update version, and use this data update packet combination to update the target game application. Because the first data packet contains the fused information of multiple second data packets, the number of update data packets can be reduced, and the total data size of the update data packets can be reduced, thereby improving the update efficiency of the game application.
[0132] This application also provides a game application update method, which can be used in a computer device, which can be a terminal or a server. Figure 3 FIG. 1 is another flow chart of the game application update method provided by the present application, and the method specifically includes:
[0133] Step 201: The computer device obtains the current version information of the target game application in the computer device.
[0134] The current version information of the target game application in the computer device can be obtained from the resource file of the target game application. For example, the current version information of the target game application is Ver1.2.3.
[0135] Step 202: The computer device obtains the latest version information of the target game application.
[0136] The latest version of the target game application can be obtained from the Internet, specifically from the official website of the target game. For example, the latest version of the target game application is Ver1.5.4.
[0137] Step 203: The computer device determines key version information between the current version information and the latest version information.
[0138] The key version information can be a version with important updated content or a preset number of versions. The key version is pre-set, and when updating the game application, it is only necessary to search for the key version based on the corresponding information.
[0139] In this embodiment, the current version Ver1.2.3 and the latest version Ver1.5.4 have three key versions Ver1.3.0, Ver1.4.0 and Ver1.5.0.
[0140] In step 204 , the computer device obtains the full difference package associated with each key version information.
[0141] Among them, the full difference packages associated with the key version Ver1.3.0 can include the full difference package between Ver1.3.0 and the initial version Ver1.0.0, the full difference package between Ver1.3.0 and the key version Ver1.0.0, and the full difference package between Ver1.3.0 and the key version Ver1.2.0, totaling 3 full difference packages.
[0142] Similarly, for the key version Ver1.4.0, there are 4 associated full-volume difference packages, and the key version Ver1.5.0 has 5 full-volume difference packages.
[0143] like Figure 4The figure shows a schematic diagram of the generation of a full difference package. As shown in the figure, the initial version of the target game application is version 1.0.0. After the first modification, file A is modified to generate difference package 1.0.1, and a new version 1.0.1 is generated; after the second modification, file B is added to generate difference package 1.0.2, and a new version 1.0.2 is generated; after the third modification, file B is modified to generate difference package 1.0.3, and a new version 1.0.3 is generated; after the fourth modification, file A is modified to generate difference package 1.0.4, and a new version 1.0.4 is generated; after the fifth modification, file B is deleted to generate difference package 1.0.5, and a new version 1.0.5 is generated.
[0144] If version 1.0.5 is determined to be the key version, the difference between version 1.0.5 and the initial version 1.0.0 can be directly determined to obtain the full difference package 1.0. The full difference package 1.0 only contains the modification to file A, so the data volume of the file can be greatly reduced.
[0145] Step 205: The computer device obtains all common difference packages between the current version and the latest version.
[0146] There are multiple common difference packages between the current version and the latest version. Specifically, each time a new version is generated, a common difference package is generated.
[0147] There can be a total of 31 common difference packages between the current version Ver1.2.3 and the latest version V1.5.4.
[0148] In step 206 , the computer device generates a plurality of difference package sets for updating the target game application from the current version to the latest version based on the full difference package and the common difference package.
[0149] Among them, the full difference package associated with the aforementioned key version information and multiple common difference packages are combined to obtain at least one set of multiple difference packages that can update the target game application from the current version to the latest version.
[0150] For example, a difference package set may be generated based on the full difference package between the key version Ver1.5.0 and the basic version Ver1.0.0, and the four common difference packages between Ver1.5.4 and Ver1.5.0.
[0151] For another example, a difference package set may be generated based on 7 common difference packages between key versions V1.3.0 and Ver1.2.3, 2 full difference packages between key versions Ver1.5.0 and Ver1.3.0, and 4 common difference packages between Ver1.5.4 and Ver1.5.0.
[0152] Of course, other combinations can be used to generate difference package sets, which are not enumerated here, to obtain multiple difference package sets.
[0153] In step 207 , the computer device determines a target difference package set with the smallest data volume among the multiple difference package sets.
[0154] For each difference package set, the data volume of each difference package contained therein may be obtained, and then the data volume of each difference package set may be calculated.
[0155] Furthermore, the difference package set with the smallest data volume is determined as the target difference package set.
[0156] Step 208: The computer device updates the current version of the target game application using the target difference package set.
[0157] After determining the target difference package set, the computer device can download the difference packages in the target difference package set, and then use the downloaded difference packages to update the target game application to the latest version.
[0158] Specifically, if Figure 5 The figure below is a flowchart of the game client update process provided by this application. For example, when it is determined that the target difference package set contains a full difference package that can update the target game application from the basic version to version Ver1.5.0 and four ordinary difference packages, the update process of the target game application client after downloading the target difference package set includes the following steps:
[0159] S1: Get the basic version data version 1.0.0 of the target game application client.
[0160] S2: Obtain all difference packages in the target difference package set.
[0161] The full difference package here may be full difference package 1.5.
[0162] S3: Use the full differential package to update the target game application client from the basic version to version 1.5.0.
[0163] S4: Obtain a common difference package in the target difference package set.
[0164] Among them, the target difference package set in this application may include 4 common difference packages, which may be common difference package 1.5.1, common difference package 1.5.2, common difference package 1.5.3 and common difference package 1.5.4.
[0165] S5: Use a common difference package to update the target game application client from version 1.5.0 to the second version 1.5.4.
[0166] like Figure 6As shown, this is a timing diagram of the game client update provided by the present application. As can be seen from the diagram, in the embodiment of the present application, after determining the target difference package set for updating the target game application, a full difference package 1.5 and four ordinary difference packages are obtained from the target difference package set. The four ordinary difference packages are difference package 1.5.1, difference package 1.5.2, difference package 1.5.3 and difference package 1.5.4. Among them, the full difference package can be a difference package obtained by merging 50 ordinary difference packages and deleting redundant files therein. These 50 ordinary difference packages can specifically be 50 ordinary difference packages, namely difference package 1.0.1, difference package 1.0.2, ..., difference package 1.5.0.
[0167] After obtaining a full difference package and four ordinary difference packages, you can first use the full difference package 1.5 to update the client of the target game application from version 1.0.0 to version 1.5.0, and then use four ordinary difference packages to update the client of the target game application from version 1.5.0 to version 1.5.4.
[0168] According to the above description, the game application update method provided by the present application obtains the first version information of the target game application, where the first version information is the current version information of the target game application; obtains the second version information of the target game application, where the second version information is the version information indicating the update operation of the target game application; determines at least one update data packet set based on the first version information and the second version information, where the update data packet set includes a first number of first data packets and a second number of second data packets, and the first data packet includes fusion information of multiple second data packets; obtains the data volume of each update data packet set, and determines the target update data packet set in at least one update data packet set based on the data volume; and uses the target update data packet set to update the target game application.
[0169] Thus, the game application update method provided in this application can determine an update data packet combination consisting of a first data packet and a second data packet based on the version information difference between the current version of the game application and the target update version, and use this data update packet combination to update the target game application. Because the first data packet contains the fused information of multiple second data packets, the number of update data packets can be reduced, and the total data size of the update data packets can be reduced, thereby improving the update efficiency of the game application.
[0170] In order to better implement the above method, an embodiment of the present application further provides a game application updating device, which can be integrated into a terminal or a server.
[0171] For example, Figure 7, which is a schematic diagram of the structure of a game application updating device provided in an embodiment of the present application, the game application updating device may include a first obtaining unit 301, a second obtaining unit 302, a first determining unit 303, a second determining unit 304, and an updating unit 305, as follows:
[0172] A first acquiring unit 301 is configured to acquire first version information of a target game application, where the first version information is current version information of the target game application;
[0173] A second acquiring unit 302 is configured to acquire second version information of the target game application, where the second version information is version information indicating an update operation for the target game application;
[0174] A first determining unit 303 is configured to determine at least one update data packet set based on the first version information and the second version information, the update data packet set including a first number of first data packets and a second number of second data packets, the first data packet including fusion information of multiple second data packets;
[0175] The second determining unit 304 is configured to obtain the data volume of each update data packet set and determine a target update data packet set from the at least one update data packet set according to the data volume;
[0176] The updating unit 305 is configured to update the target game application using the target update data packet set.
[0177] In some embodiments, the first determining unit includes:
[0178] A first acquiring subunit, configured to acquire key version information between the first version information and the second version information;
[0179] a first determining subunit, configured to determine a first number of first data packets and a second number of second data packets based on the key version information, the first version information, and the second version information;
[0180] The second determining subunit is configured to determine at least one updated data packet set according to the first number of first data packets and the second number of second data packets.
[0181] In some embodiments, the first determining subunit includes:
[0182] A first acquisition module is used to obtain the update time of the game application version corresponding to the key version information;
[0183] A first search module is configured to search for first key version information whose update time is closest to the update time included in the first version information;
[0184] A second search module is configured to search for second key version information whose update time is closest to the update time included in the second version information;
[0185] a first determining module, configured to determine a second number of second data packets based on a first difference between a first version corresponding to the first version information and a first key version corresponding to the first key version information, and a second difference between a second key version corresponding to the second key version information and a second version corresponding to the second version information;
[0186] The second determining module is configured to determine a first number of first data packets according to a third difference between the second key version and the first key version.
[0187] In some embodiments, the updating unit includes:
[0188] a first updating subunit, configured to update the target game application from the first version to the first key version using the second number of second data packets;
[0189] a second updating subunit, configured to update the target game application from the first key version to the second key version according to the first number of first data packets;
[0190] The third updating subunit is configured to update the target game application from the second key version to the second version based on the second number of second data packets.
[0191] In some embodiments, the first determining subunit includes:
[0192] A second obtaining module is used to obtain the update time of the game application version corresponding to the key version information;
[0193] a third search module, configured to search for third key version information whose update time is closest to the update time included in the second version information;
[0194] a third determining module, configured to determine a first number of first data packets according to a third difference between a third key version corresponding to the third key version information and a base version of the target game application;
[0195] The fourth determining module is configured to determine a second number of second data packets according to a fourth difference between the second version corresponding to the second version information and the third key version.
[0196] In some embodiments, the updating unit includes:
[0197] A second acquisition subunit is used to obtain basic version data of the target game application;
[0198] a fourth updating subunit, configured to update the basic version data according to the first number of first data packets to obtain the target game application of the third key version;
[0199] The fifth updating subunit is configured to update the target game application from the third key version to the second version using the second number of second data packets.
[0200] In some embodiments, the second determining unit includes:
[0201] a third acquiring subunit, configured to acquire the data volume of each update data packet in each update data packet set;
[0202] A calculation subunit, configured to calculate the total amount of data corresponding to each update data packet set;
[0203] The third determining subunit is configured to determine the update data packet with the lowest total amount of data as the target update data packet.
[0204] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can be found in the previous method embodiments and will not be repeated here.
[0205] According to the above description, the game application updating device provided by the embodiment of the present application obtains the first version information of the target game application through the first obtaining unit 301, and the first version information is the current version information of the target game application; the second obtaining unit 302 obtains the second version information of the target game application, and the second version information is the version information indicating the update operation of the target game application; the first determining unit 303 determines at least one update data packet set based on the first version information and the second version information, and the update data packet set includes a first number of first data packets and a second number of second data packets, and the first data packet includes fusion information of multiple second data packets; the second determining unit 304 obtains the data volume of each update data packet set, and determines the target update data packet set in at least one update data packet set based on the data volume; the updating unit 305 uses the target update data packet set to update the target game application.
[0206] Thus, the game application update method provided in this application can determine an update data packet combination consisting of a first data packet and a second data packet based on the version information difference between the current version of the game application and the target update version, and use this data update packet combination to update the target game application. Because the first data packet contains the fused information of multiple second data packets, the number of update data packets can be reduced, and the total data size of the update data packets can be reduced, thereby improving the update efficiency of the game application.
[0207] The embodiment of the present application also provides a computer device, which can be a terminal or a server. Figure 8 The figure shows the structure of the computer device provided by this application. Specifically:
[0208] The computer device may include components such as a processing unit 401 with one or more processing cores, a storage unit 402 with one or more storage media, a power module 403, and an input module 404. Those skilled in the art will appreciate that Figure 8 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0209] Processing unit 401 is the control center of the computer device. It connects the various components of the computer device using various interfaces and lines. By running or executing software programs and / or modules stored in storage unit 402 and accessing data stored in storage unit 402, it performs various functions of the computer device and processes data, thereby providing overall management of the computer device. Optionally, processing unit 401 may include one or more processing cores. Preferably, processing unit 401 may integrate an application processor and a modem processor, with the application processor primarily processing the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processing unit 401.
[0210] The storage unit 402 can be used to store software programs and modules. The processing unit 401 executes various functional applications and data processing by running the software programs and modules stored in the storage unit 402. The storage unit 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, and web page access, etc.); the data storage area may store data created based on the use of the computer device, etc. In addition, the storage unit 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the storage unit 402 may also include a memory controller to provide the processing unit 401 with access to the storage unit 402.
[0211] The computer device also includes a power supply module 403 for supplying power to various components. Preferably, the power supply module 403 can be logically connected to the processing unit 401 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply module 403 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0212] The computer device may further include an input module 404, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0213] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processing unit 401 in the computer device will load the executable files corresponding to one or more application processes into the storage unit 402 according to the following instructions, and the processing unit 401 will run the application stored in the storage unit 402 to implement various functions as follows:
[0214] Obtain first version information of a target game application, where the first version information is the current version information of the target game application; obtain second version information of the target game application, where the second version information is the version information indicating an update operation for the target game application; determine at least one update data packet set based on the first version information and the second version information, where the update data packet set includes a first number of first data packets and a second number of second data packets, and the first data packet includes fusion information of multiple second data packets; obtain the data volume of each update data packet set, and determine a target update data packet set in at least one update data packet set based on the data volume; and use the target update data packet set to update the target game application.
[0215] It should be noted that the computer device provided in the embodiment of the present application and the method in the above embodiment belong to the same concept. The specific implementation of the above operations can be referred to the previous embodiment and will not be repeated here.
[0216] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0217] To this end, an embodiment of the present invention provides a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps of any method provided in an embodiment of the present invention. For example, the instructions can execute the following steps:
[0218] Obtain first version information of a target game application, where the first version information is the current version information of the target game application; obtain second version information of the target game application, where the second version information is the version information indicating an update operation for the target game application; determine at least one update data packet set based on the first version information and the second version information, where the update data packet set includes a first number of first data packets and a second number of second data packets, and the first data packet includes fusion information of multiple second data packets; obtain the data volume of each update data packet set, and determine a target update data packet set in at least one update data packet set based on the data volume; and use the target update data packet set to update the target game application.
[0219] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0220] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0221] Since the instructions stored in the computer-readable storage medium can execute the steps in any method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0222] According to one aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a storage medium. A processor of a computer device reads the computer instructions from the storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the aforementioned game application update method.
[0223] The above is a detailed introduction to the game application update method, device, storage medium and computer equipment provided by the embodiments of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.
Claims
1. A game application update method, characterized in that: The method comprises: Obtaining first version information of a target game application, where the first version information is current version information of the target game application; Acquire second version information of the target game application, where the second version information is version information indicating an update operation for the target game application; determining at least one update data packet set according to the first version information and the second version information, the update data packet set including a first number of first data packets and a second number of second data packets, the first data packet including fusion information of a plurality of the second data packets; Acquire the data volume of each update data packet set, and determine a target update data packet set from the at least one update data packet set according to the data volume; Updating the target game application using the target update data packet set; The determining of at least one update data packet set according to the first version information and the second version information includes: Obtain key version information between the first version information and the second version information; Determine a first number of first data packets and a second number of second data packets based on the key version information, the first version information, and the second version information; Determining at least one updated data packet set according to the first number of first data packets and the second number of second data packets; The first data packet is a full difference data packet. When the new version is a key version, the first data packet includes a full difference data packet between the new version and the basic version, as well as a full difference data packet between the new version and the previous key version; the second data packet is a normal difference data packet, and the normal difference data packet is obtained by the difference file between the new version and the previous version.
2. The method according to claim 1, characterized in that The determining a first number of first data packets and a second number of second data packets based on the key version information, the first version information, and the second version information includes: Obtaining the update time of the game application version corresponding to the key version information; Searching for first key version information whose update time is closest to the update time included in the first version information; Searching for second key version information whose update time is closest to the update time included in the second version information; Determining a second number of second data packets based on a first difference between a first version corresponding to the first version information and a first key version corresponding to the first key version information, and a second difference between a second key version corresponding to the second key version information and a second version corresponding to the second version information; A first number of first data packets is determined according to a third difference between the second key version and the first key version.
3. The method according to claim 2, characterized in that The updating of the target game application by using the target update data packet set includes: Updating the target game application from the first version to the first key version using the second number of second data packets; Updating the target game application from the first key version to the second key version according to the first number of first data packets; The target game application is updated from the second key version to the second version based on the second number of second data packets.
4. The method according to claim 1, wherein The determining a first number of first data packets and a second number of second data packets based on the key version information, the first version information, and the second version information includes: Obtaining the update time of the game application version corresponding to the key version information; Searching for third key version information whose update time is closest to the update time included in the second version information; Determining a first number of first data packets according to a third difference between a third key version corresponding to the third key version information and a base version of the target game application; A second number of second data packets is determined according to a fourth difference between the second version corresponding to the second version information and the third key version.
5. The method according to claim 4, characterized in that The updating of the target game application by using the target update data packet set includes: Obtaining basic version data of the target game application; updating the basic version data according to the first number of first data packets to obtain the target game application of the third key version; The target game application is updated from the third key version to the second version using the second number of second data packets.
6. The method according to claim 1, characterized in that The acquiring the data amount of each update data packet set and determining the target update data packet set from the at least one update data packet set according to the data amount includes: Obtaining the data volume of each update data packet in each update data packet set; Calculate the total amount of data corresponding to each update data packet set; An update data packet with the lowest total amount of data is determined as a target update data packet.
7. A game application updating device, characterized in that: The device comprises: A first acquiring unit, configured to acquire first version information of a target game application, where the first version information is current version information of the target game application; A second acquiring unit, configured to acquire second version information of the target game application, where the second version information is version information indicating an update operation for the target game application; a first determining unit, configured to determine at least one update data packet set based on the first version information and the second version information, the update data packet set comprising a first number of first data packets and a second number of second data packets, the first data packet comprising fusion information of a plurality of the second data packets; The first determining unit includes: A first acquiring subunit, configured to acquire key version information between the first version information and the second version information; a first determining subunit, configured to determine a first number of first data packets and a second number of second data packets based on the key version information, the first version information, and the second version information; a second determining subunit, configured to determine at least one updated data packet set according to the first number of first data packets and the second number of second data packets; a second determining unit, configured to obtain a data volume of each update data packet set, and determine a target update data packet set from the at least one update data packet set according to the data volume; An updating unit, configured to update the target game application using the target update data packet set; The first data packet is a full difference data packet. When the new version is a key version, the first data packet includes a full difference data packet between the new version and the basic version, as well as a full difference data packet between the new version and the previous key version; the second data packet is a normal difference data packet, and the normal difference data packet is obtained by the difference file between the new version and the previous version.
8. The game application updating device according to claim 7, characterized in that: The first determining subunit includes: A first acquisition module is used to obtain the update time of the game application version corresponding to the key version information; A first search module is configured to search for first key version information whose update time is closest to the update time included in the first version information; A second search module is configured to search for second key version information whose update time is closest to the update time included in the second version information; a first determining module, configured to determine a second number of second data packets based on a first difference between a first version corresponding to the first version information and a first key version corresponding to the first key version information, and a second difference between a second key version corresponding to the second key version information and a second version corresponding to the second version information; a second determining module, configured to determine a first number of first data packets according to a third difference between the second key version and the first key version; Or the first determining subunit includes: A second obtaining module is used to obtain the update time of the game application version corresponding to the key version information; a third search module, configured to search for third key version information whose update time is closest to the update time included in the second version information; a third determining module, configured to determine a first number of first data packets according to a third difference between a third key version corresponding to the third key version information and a base version of the target game application; The fourth determining module is configured to determine a second number of second data packets according to a fourth difference between the second version corresponding to the second version information and the third key version.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a plurality of instructions, which are suitable for being loaded by a processor to execute the steps in the game application updating method according to any one of claims 1 to 6.
10. A computer device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the game application updating method according to any one of claims 1 to 6 when executing the computer program.
Citation Information
Patent Citations
Downloading method, device, equipment and system of application program service pack
CN110727456A