CN106897103B - Method for quickly and thermally updating version of mobile terminal network game - Google Patents
Method for quickly and thermally updating version of mobile terminal network game Download PDFInfo
- Publication number
- CN106897103B CN106897103B CN201710123078.6A CN201710123078A CN106897103B CN 106897103 B CN106897103 B CN 106897103B CN 201710123078 A CN201710123078 A CN 201710123078A CN 106897103 B CN106897103 B CN 106897103B
- Authority
- CN
- China
- Prior art keywords
- version
- file
- files
- server
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method for quickly and thermally updating a mobile terminal online game version, and relates to the technical field of online game file processing. The method completes game updating by packaging a plurality of small files into a large file and downloading the large file once again, and the method only needs to download a small number of files, so that the times of establishing connection with a server and closing the connection are less, compared with the prior art that a plurality of small files need to be downloaded one by one, the operation of connecting a resource server, downloading small files and closing the connection is repeated for a plurality of times, and the method needs to connect the resource server for a plurality of times and close the connection for a plurality of times, the method completes the downloading of resources with the same size, has shorter time and faster resource downloading speed, thereby improving the updating speed of the game version of the mobile client and improving the retention rate of the game by adopting the method provided by the embodiment of the invention.
Description
Technical Field
The invention relates to the technical field of online game file processing, in particular to a method for quickly and thermally updating a mobile terminal online game version.
Background
At present, in the hot update of the online game version of the mobile client, generally, by comparing information in a "server file list" and a "local file list", a file with a changed "file version number" or an "md 5 value" or a newly added file is put in a "to-be-updated file list", and a file in the "to-be-updated file list" is downloaded and put in a client resource package to complete version update.
However, due to the limitations of the mobile client (e.g., cell phone) network, downloading update files one by one is slow, resulting in long waiting times for players. Especially for downloading the update files of large versions, the waiting time of the players is longer, the game experience of the players is reduced, and therefore the loss of a plurality of players is caused.
Disclosure of Invention
The present invention is directed to a method for quickly and thermally updating a version of a mobile-end network game, so as to solve the foregoing problems in the prior art.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a method for quickly and thermally updating a mobile terminal network game version comprises the following steps:
s1, when the server generates a new version, obtaining an incremental file between the new version and the old version, and packaging the incremental file to obtain a packaged file;
and S2, the mobile client downloads the packaged file from the server and puts the packaged file into a client resource package to finish version updating.
Preferably, if the version is in the form of x.y.z, where Z represents a small version, i.e. Z is self-increasing each time any file is updated; y represents an intermediate version, and is a carry of Z from increasing to a certain stage; x is a large version and is a carry bit of Y which is self-increased to a certain degree; then, packaging the delta file in S1 includes the following steps:
s101, respectively packaging the incremental files of each intermediate version to obtain a compressed package of each intermediate version;
s102, judging whether the small version update exists, if so, storing the update file of the small version separately, and recording the md5 code of the file, otherwise, ending.
Preferably, between S101 and S102, the method further includes the following steps of determining whether packaging needs to be performed across the intermediate version, if so, packaging the incremental file across the intermediate version to obtain a compressed package across versions, and then performing S102, otherwise, directly performing S102.
Preferably, S2 includes the steps of:
s201, the client acquires the latest version number on the server, compares the version number of the client with the version number of the server, if the version numbers are the same, the operation is finished, otherwise, the next stage is started;
s202, according to the difference of the version numbers between the client and the server and the update file of the server, the client generates a file list to be updated containing the minimum number of files;
s203, the client downloads the files one by one according to the file list to be updated.
Preferably, the list of files to be updated, which includes the minimum number of files, includes: an intermediate version of the compressed package, a cross-version of the compressed package, and a small version of the file.
Preferably, S202 includes the steps of:
s2021, generating a file list to be updated of the intermediate version containing the minimum number of compressed packets according to the difference of the version numbers between the client and the server;
s2022, judging whether the md5 codes of each small version updated file between the client and the server are the same, if so, adding the files to the file list to be updated, otherwise, ending.
The invention has the beneficial effects that: the embodiment of the invention provides a method for quickly and thermally updating a mobile terminal network game version, which is characterized in that a plurality of small files are packaged into a large file, and the large file is downloaded again to complete game updating.
Drawings
FIG. 1 is a schematic flow diagram of packaging delta files;
fig. 2 is a flow chart of downloading an updated version.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention provides a method for quickly and thermally updating a mobile terminal network game version, which comprises the following steps:
s1, when the server generates a new version, obtaining an incremental file between the new version and the old version, and packaging the incremental file to obtain a packaged file;
and S2, the mobile client downloads the packaged file from the server and puts the packaged file into a client resource package to finish version updating.
In the method, a plurality of small files in the online game are packaged into a large file to improve the downloading speed of the updated file, and the realization principle is as follows: the three steps of connecting a resource server, downloading resources and closing connection are involved in downloading each file, and due to the characteristics of a mobile client network, a large amount of time is usually spent in the stage of connecting the resource server, and a certain time is also occupied in closing the connection, so that the downloading of a large file is much faster than the downloading of a plurality of small files with the same size. The scheme provided by the invention is to pack a plurality of small files into a large file, thereby accelerating the resource downloading speed.
As shown in fig. 1, wherein if the version is in the form of x.y.z, where Z represents a small version, i.e., Z is self-increasing each time any file is updated; y represents an intermediate version, and is a carry of Z from increasing to a certain stage; x is a large version and is a carry bit of Y which is self-increased to a certain degree; then, packaging the delta file in S1 may include the following steps:
s101, respectively packaging the incremental files of each intermediate version to obtain a compressed package of each intermediate version;
s102, judging whether the small version update exists, if so, storing the update file of the small version separately, and recording the md5 code of the file, otherwise, ending.
In a preferred embodiment of the present invention, between S101 and S102, the method further includes the following steps of determining whether packaging needs to be performed across the intermediate version, if so, packaging the incremental file across the intermediate version to obtain a compressed package across versions, and then performing S102, otherwise, directly performing S102.
As shown in fig. 2, wherein S2 may include the following steps:
s201, the client acquires the latest version number on the server, compares the version number of the client with the version number of the server, if the version numbers are the same, the operation is finished, otherwise, the next stage is started;
s202, according to the difference of the version numbers between the client and the server and the update file of the server, the client generates a file list to be updated containing the minimum number of files;
s203, the client downloads the files one by one according to the file list to be updated.
Wherein, the list of files to be updated containing the least number of files comprises: an intermediate version of the compressed package, a cross-version of the compressed package, and a small version of the file.
In this embodiment of the present invention, S202 may include the following steps:
s2021, generating a file list to be updated of the intermediate version containing the minimum number of compressed packets according to the difference of the version numbers between the client and the server;
s2022, judging whether the md5 codes of each small version updated file between the client and the server are the same, if so, adding the files to the file list to be updated, otherwise, ending.
The specific embodiment is as follows:
the implementation of the method for quickly and thermally updating the version of the mobile terminal online game provided by the embodiment of the invention comprises two stages, namely a packaging stage and a thermal updating stage. The packing stage is operated by game developers when generating new versions, and the process finds out files with changes and addition/deletion files (called incremental files) among the versions and packs the files according to certain rules. The hot update phase is an operation performed by the game client in the process. The client downloads the incremental file from the server and puts the incremental file into a client resource package to finish version updating.
1. Packing stage
The packing stage is operated by game developers when generating new versions, and the process finds out files with changes and addition/deletion files (called incremental files) among the versions and packs the files according to certain rules. The rule is as follows: packaging to generate an increment file of each intermediate version, and packaging the increment files of the cross-versions according to requirements; and finally, independently storing the updated file of the last small version.
Suppose that the version number of a certain game takes the form of x.y.z, where Z represents a small version, i.e. any file Z is self-increasing each time it is updated. Y represents the intermediate version, which is the carry of Z self-increment to a certain stage, and X is the large version, which is the carry of Y self-increment to a certain degree.
First, the delta file for each intermediate version is packaged.
Assuming a current game version number of 1.5.5, the game client version number may be anywhere between 1.0.0 and 1.5.5. Then, the delta files of each intermediate version between 1.0.0 and 1.5.5 are packaged to generate the files shown in table 1. (X.Y.Z _ to _ A.B.C.rar denotes a compressed package containing delta files from version X.Y.Z to version A.B.C in the nomenclature below)
Table 1 example of packaging to generate delta files for each intermediate version
1.0.0_to_1.1.0.rar |
1.1.0_to_1.2.0.rar |
1.2.0_to_1.3.0.rar |
1.3.0_to_1.4.0.rar |
1.4.0_to_1.5.0.rar |
The cross-version delta file is then packaged as needed.
This step is not necessary, but it helps with resource update speed. In particular, when server space is sufficient, cross-version files should be generated as much as possible. For example, two cross-version delta files of version 1.0.0 to version 1.2.0, and version 1.1.0 to version 1.4.0 are generated, as shown in table 2.
Table 2 example of packaging Cross-versioning delta files on demand
1.0.0_to_1.2.0.rar |
1.1.0_to_1.4.0.rar |
And finally, storing the small version of the update file separately.
Since the small version is updated frequently, the method is suitable for updating at any time. Therefore, the small version update file is not packaged and is directly stored. For example, between version 1.5.0 and version 1.5.1, there are two delta files, tank. Since files with small version numbers can also be changed, the md5 code of each file needs to be recorded.
Table 3 example of update files for small versions stored separately
tank.asset |
ui.asset |
Through the 3 steps above, a list of files available for updating as in table 4 is generated. Including a plurality of packaged files and a small number of unpacked files.
Table 4 update file list example
1.0.0_to_1.1.0.rar |
1.1.0_to_1.2.0.rar |
1.2.0_to_1.3.0.rar |
1.3.0_to_1.4.0.rar |
1.4.0_to_1.5.0.rar |
1.0.0_to_1.2.0.rar |
1.1.0_to_1.4.0.rar |
tank.asset |
ui.asset |
2. Hot update phase
The hot update phase is an operation performed by the game client in the process. The client downloads the incremental file from the server and puts the incremental file into a client resource package to finish version updating. The hot updating stage is divided into 3 stages of comparing version numbers and generating a downloading list and downloading files.
1) And comparing the version numbers, and acquiring and recording the version number of the latest game by the client through the network. And if the version number of the client is different from that of the server, entering the next stage, otherwise, not needing hot updating.
2) And generating a download list, and finding out an update mode with the least number of download files according to the difference of the version numbers and the update file list of the server. For example, the version number of the client is 1.1.5, and the version number of the server is 1.5.1, the client needs to download the packaged file between 1.1.0 and 1.5.0, and then download the delta file between 1.5.0 and 1.5.1. From the update file of the server, finding the packaged file from 1.1.0 to 1.5.0, there are three possible download strategies.
The number of files required to be downloaded by the policy 3 is the least, and three files of the policy 3, namely 1.0.0_ to _1.1.0.rar, 1.1.0_ to _1.4.0.rar, 1.4.0_ to _1.5.0.rar, should be selected. "as an update file from version 1.1.0 to version 1.5.0. And then finding out the incremental file between the version 1.5.0 and the version 1.5.1, namely the file which is not packaged in the server. The final download list of files to be updated is as follows.
3) And downloading the files one by one according to the file downloading list to be updated to finish the hot updating.
By adopting the technical scheme disclosed by the invention, the following beneficial effects are obtained: the embodiment of the invention provides a method for quickly and thermally updating a mobile terminal network game version, which is characterized in that a plurality of small files are packaged into a large file, and the large file is downloaded again to complete game updating.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
It should be understood by those skilled in the art that the timing sequence of the method steps provided in the above embodiments may be adaptively adjusted according to actual situations, or may be concurrently performed according to actual situations.
All or part of the steps in the methods according to the above embodiments may be implemented by a program instructing related hardware, where the program may be stored in a storage medium readable by a computer device and used to execute all or part of the steps in the methods according to the above embodiments. The computer device, for example: personal computer, server, network equipment, intelligent mobile terminal, intelligent home equipment, wearable intelligent equipment, vehicle-mounted intelligent equipment and the like; the storage medium, for example: RAM, ROM, magnetic disk, magnetic tape, optical disk, flash memory, U disk, removable hard disk, memory card, memory stick, network server storage, network cloud storage, etc.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements should also be considered within the scope of the present invention.
Claims (2)
1. A method for quickly and thermally updating a mobile terminal network game version is characterized by comprising the following steps:
s1, when the server generates a new version, obtaining an incremental file between the new version and the old version, and packaging the incremental file to obtain a packaged file; the incremental file can be divided into three sizes, namely a small version, a middle version and a large version; if the version is in the form of X.Y.Z, where Z represents a small version, i.e., Z is self-increasing each time any file is updated; y represents an intermediate version, and is a carry of Z from increasing to a certain stage; x is a large version and is a carry bit of Y which is self-increased to a certain degree; the packing of versions is as follows:
s101, respectively packaging the incremental files of each intermediate version to obtain a compressed package of each intermediate version;
s102, judging whether the intermediate version needs to be packaged in a crossing mode, if so, packaging the increment file crossing the intermediate version to obtain a compressed package crossing the versions;
s103, judging whether the small version update exists or not, if so, storing the update file of the small version separately, and recording the md5 code of the file, otherwise, ending;
s2, the mobile client downloads the packaged file from the server and puts the file into a client resource package, and the updating of the version is completed by the following steps:
s201, the client acquires the latest version number on the server, compares the version number of the client with the version number of the server, if the version numbers are the same, the operation is finished, otherwise, the next stage is started;
s202, according to the difference of the version numbers between the client and the server and the update file of the server, the client generates a file list to be updated containing the minimum number of files; judging whether the md5 codes of each small version update file between the client and the server are the same, if so, adding the files to the list of the files to be updated, otherwise, ending;
s203, the client downloads the files one by one according to the file list to be updated.
2. The method according to claim 1, wherein the list of files to be updated containing the minimum number of files comprises: an intermediate version of the compressed package, a cross-version of the compressed package, and a small version of the file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710123078.6A CN106897103B (en) | 2017-03-03 | 2017-03-03 | Method for quickly and thermally updating version of mobile terminal network game |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710123078.6A CN106897103B (en) | 2017-03-03 | 2017-03-03 | Method for quickly and thermally updating version of mobile terminal network game |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106897103A CN106897103A (en) | 2017-06-27 |
CN106897103B true CN106897103B (en) | 2020-11-06 |
Family
ID=59184513
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710123078.6A Active CN106897103B (en) | 2017-03-03 | 2017-03-03 | Method for quickly and thermally updating version of mobile terminal network game |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106897103B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107885526A (en) * | 2017-11-17 | 2018-04-06 | 苏州蜗牛数字科技股份有限公司 | A kind of file updating method and system |
CN108897554A (en) * | 2018-06-26 | 2018-11-27 | 苏州蜗牛数字科技股份有限公司 | A kind of unity3D packaging system optimization method |
CN109445827B (en) * | 2018-11-16 | 2023-01-10 | 网易(杭州)网络有限公司 | Game updating method and device, electronic equipment and storage medium |
CN110180177B (en) * | 2019-05-28 | 2022-12-02 | 网易(杭州)网络有限公司 | Maintenance method, device and medium of online game and electronic equipment |
CN111651193A (en) * | 2020-06-03 | 2020-09-11 | 上海米哈游天命科技有限公司 | Information packaging method, device, equipment and medium |
CN112596772A (en) * | 2020-12-15 | 2021-04-02 | 上海米哈游网络科技股份有限公司 | Server updating method and device, electronic equipment and storage medium |
CN112579132A (en) * | 2020-12-29 | 2021-03-30 | 苏州风之力网络科技有限公司 | Resource hot updating method based on version number management |
CN113568645B (en) * | 2021-08-11 | 2023-09-12 | 网易(杭州)网络有限公司 | Software updating method, device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101883139A (en) * | 2010-06-11 | 2010-11-10 | 华为终端有限公司 | Method for upgrading peripheral equipment software, computer and system |
CN103995854A (en) * | 2014-05-13 | 2014-08-20 | 大唐移动通信设备有限公司 | Equipment cross-version upgrading method and device |
CN104360871A (en) * | 2014-10-12 | 2015-02-18 | 厦门雅基软件有限公司 | Quick starting method for installation of cell phone games |
CN104615453A (en) * | 2014-09-26 | 2015-05-13 | 腾讯科技(深圳)有限公司 | Map data processing method, device and system |
CN106371875A (en) * | 2016-08-31 | 2017-02-01 | 南威软件股份有限公司 | Mobile phone application updating mechanism based on HTML(hypertext markup language) 5 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053853A (en) * | 2010-12-30 | 2011-05-11 | 北京像素软件科技股份有限公司 | Version updating method of online game |
CN103002010B (en) * | 2012-10-29 | 2016-09-28 | 北京奇虎科技有限公司 | A kind of data-updating method based on incremental data, device and system |
CN103218239B (en) * | 2013-04-09 | 2016-06-22 | 沈阳美行科技有限公司 | A kind of method supporting guiding aircraft map version incremental update version |
CN104035800B (en) * | 2014-06-19 | 2018-07-24 | 广州金山网络科技有限公司 | A kind of delta package generation method, version upgrading method, device and system |
CN104991790B (en) * | 2015-06-09 | 2018-05-25 | 北京奇虎科技有限公司 | The upgrading dissemination method and device of a kind of file |
CN104991791B (en) * | 2015-06-09 | 2018-03-02 | 北京奇虎科技有限公司 | The increment upgrading dissemination method and device of a kind of file |
CN105487885B (en) * | 2015-11-23 | 2018-10-19 | 盛趣信息技术(上海)有限公司 | Hand swims hot update method |
-
2017
- 2017-03-03 CN CN201710123078.6A patent/CN106897103B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101883139A (en) * | 2010-06-11 | 2010-11-10 | 华为终端有限公司 | Method for upgrading peripheral equipment software, computer and system |
CN103995854A (en) * | 2014-05-13 | 2014-08-20 | 大唐移动通信设备有限公司 | Equipment cross-version upgrading method and device |
CN104615453A (en) * | 2014-09-26 | 2015-05-13 | 腾讯科技(深圳)有限公司 | Map data processing method, device and system |
CN104360871A (en) * | 2014-10-12 | 2015-02-18 | 厦门雅基软件有限公司 | Quick starting method for installation of cell phone games |
CN106371875A (en) * | 2016-08-31 | 2017-02-01 | 南威软件股份有限公司 | Mobile phone application updating mechanism based on HTML(hypertext markup language) 5 |
Also Published As
Publication number | Publication date |
---|---|
CN106897103A (en) | 2017-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106897103B (en) | Method for quickly and thermally updating version of mobile terminal network game | |
CN108958796B (en) | Service request processing method and device and service request processing system | |
US11662996B2 (en) | System and method for downgrading applications | |
CN110058873A (en) | Application page update method, device, equipment and storage medium | |
CN113726751B (en) | Weight management method, device and equipment in block chain type account book | |
CN109445827B (en) | Game updating method and device, electronic equipment and storage medium | |
WO2020108183A1 (en) | Method, apparatus and device for generating differential upgrade package | |
CN108415714A (en) | The method for upgrading system and device of mobile terminal | |
CN109343793B (en) | Data migration method and device | |
CN109145053B (en) | Data processing method and device, client and server | |
CN109446754A (en) | The guard method of algorithm, device, equipment and storage medium in intelligent contract | |
CN110083372B (en) | Block chain data version upgrading method | |
CN113077260A (en) | Data access method and device based on block chain and electronic equipment | |
CN107861751A (en) | The amending method and device of configuration file | |
CN109388644A (en) | A kind of data-updating method and device | |
CN114816509A (en) | Block chain version compatibility verification method and device and electronic equipment | |
CN109062181A (en) | The update method and device of vehicle control instruction | |
CN109086362A (en) | The management method of multimode project | |
CN108008984A (en) | A kind of resource file downloading updating method and device | |
CN109101514A (en) | Data lead-in method and device | |
CN107291439A (en) | A kind of target delta data construction method and device | |
US8887125B1 (en) | Systems and methods for dynamic artefact substitution | |
CN110502251A (en) | Using installation method and device | |
CN110704818A (en) | User information modification method and device | |
CN109614571A (en) | The processing method and processing device of nonlinear programming problem |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |