CN111158722A - Method for updating heat of mobile client - Google Patents
Method for updating heat of mobile client Download PDFInfo
- Publication number
- CN111158722A CN111158722A CN201911378734.2A CN201911378734A CN111158722A CN 111158722 A CN111158722 A CN 111158722A CN 201911378734 A CN201911378734 A CN 201911378734A CN 111158722 A CN111158722 A CN 111158722A
- Authority
- CN
- China
- Prior art keywords
- file
- update
- game
- game client
- content distribution
- 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.)
- Pending
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
Abstract
The invention provides a method for updating heat of a mobile client, which relates to the technical field of games and comprises the following steps: uploading the update file to a content distribution server side; the game server side sends an update command to the game client side; after receiving the update command, the game client reads the update file from the content distribution server and stores the update file in a local temporary directory of the game client; replacing the update file of the file to be updated in the internal memory of the game client in the running process by using the update file; and after the replacement is successful, covering the local file to be updated with the update file. The whole process only consumes time for updating the files online, the game client does not need to be closed, the existing game logic is replaced after the updating is completed, a player can not subjectively feel the hot updating process, and the player experience is effectively improved.
Description
Technical Field
The invention relates to the technical field of games, in particular to a method for updating heat of a mobile client.
Background
The existing hot update scheme of the mobile client on the market is to require a player to quit a game APP, then re-enter the game, and perform resource verification and update after confirming the version before entering the game. By adopting the updating mode, the player is required to close the hand game client, so that the game process of the player is interrupted, the playing experience of the player is influenced, especially in the initial stage of the hand game going to the market, the bug is more in number, the updating frequency is more, the player experience is probably irreversibly influenced, the player runs off, and even the service life of the whole hand game is influenced.
Disclosure of Invention
In order to solve the technical problem, the invention provides a hot update method for a hand-game client, which aims to solve the problem that the hand-game client needs to be restarted in hot update in the prior art, and can complete hot update and repair of a hand-game function on the premise that a player does not need to restart a game.
In order to achieve the purpose, the technical scheme provided by the invention is as follows:
the invention provides a method for updating heat of a mobile client, which comprises a game server, a game client and a content distribution server, wherein the game client and the content distribution server are in communication connection with the game server, and the method comprises the following steps:
uploading the update file to a content distribution server side;
the game server side sends an update command to the game client side;
after receiving the update command, the game client reads the update file from the content distribution server and stores the update file in a local temporary directory of the game client;
replacing the update file of the file to be updated in the internal memory of the game client in the running process by using the update file;
and after the replacement is successful, covering the local file to be updated with the update file.
Preferably, the step of "uploading the update file to the content distribution server" is specifically: uploading the update file and the file version number to a content distribution server;
the step of reading the update file from the content distribution server after the game client receives the update command and storing the update file in the local temporary directory of the game client specifically comprises the following steps: after receiving the update command, the game client reads the file version number of the content distribution server and judges whether the read file version number is higher than the file version number of the game client; and if the content is higher than the preset value, reading the update file from the content distribution server side, and storing the update file in a local temporary directory of the game client side ".
According to the method for updating the heat of the mobile client, the update file is preferably a script file packaged into a binary file.
The method for updating the heat of the mobile client provided by the invention preferably further comprises the following steps before the step of uploading the update file to the content distribution server: implementing the part needing to be updated by adopting a script language and carrying out internal test; and after the internal test is finished, packaging the script file into a binary file and generating a file version number.
The technical scheme has the following advantages or beneficial effects:
the invention provides a method for updating heat of a mobile client, which comprises a game server, a game client and a content distribution server, wherein the game client and the content distribution server are in communication connection with the game server, and the method comprises the following steps: uploading the update file to a content distribution server side; the game server side sends an update command to the game client side; after receiving the update command, the game client reads the update file from the content distribution server and stores the update file in a local temporary directory of the game client; replacing the update file of the file to be updated in the internal memory of the game client in the running process by using the update file; and after the replacement is successful, covering the local file to be updated with the update file. The hot updating process of the whole game client can be completed without active interaction of a player, the game logic in a non-repairing range is not influenced, the problem to be repaired is accurately positioned, and the repair can be carried out in a reversible manner, namely, if the problem of the repaired logic is solved, the steps can be repeated, so that the light weight, the rapidness and the rollback can be realized without the online hot updating of the interaction of the player, the whole process only consumes time for updating the script online, the existing game logic is replaced after the updating is completed, the player can not feel the hot updating process subjectively, and the player experience is effectively improved.
Drawings
The invention and its features, aspects and advantages will become more apparent from reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings. Like reference symbols in the various drawings indicate like elements. The drawings are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the invention.
Fig. 1 is a flowchart illustrating a method for updating a hot-client account according to embodiment 1 of the present invention.
Detailed Description
The invention will be further described with reference to the following drawings and specific examples, which are not intended to limit the invention thereto.
Example 1:
as shown in fig. 1, the method for updating the heat of the mobile client provided by the present invention includes a game server, a game client in communication connection with the game server, and a content distribution server, and includes:
s101, uploading the updated file to a content distribution server;
s102, the game server side sends an update command to the game client side;
s103, after receiving the update command, the game client reads the update file from the content distribution server and stores the update file in a local temporary directory of the game client;
s104, replacing the update file of the file to be updated in the memory in the running process of the game client by the update file;
and S105, after the replacement is successful, covering the local file to be updated with the update file.
In order to solve the problem that the game client needs to be closed and restarted in the prior art when the hot update is needed, the file needing to be updated is uploaded to the content distribution server through the step S101, so that the game client can conveniently read the updated file when needing to be updated; the game client is in communication connection with the game server in the running process, so that when the game client needs to be updated, the game server can prompt the game client to be updated in time; through the step S103, the game client can acquire the update file from the content distribution server, does not occupy the resources of the game server, stores the acquired update file in a local temporary directory, and updates the game client; through the step S104, the file to be updated in the memory is replaced, so that when the game client runs to the file to be updated, the updated file can be used for communicating with the game server, and the version of the game client is kept consistent with the version required by the game server; through step S105, the game client can communicate with the game server using the latest version, and at the same time, replace the local file to be updated, so as to ensure that the game client can be maintained in the latest version after the game client is restarted next time. The hot updating process of the whole game client can be completed without active interaction of a player, the game logic in a non-repairing range is not influenced, the problem to be repaired is accurately positioned, and the repair can be carried out in a reversible manner, namely, if the problem of the repaired logic is generated, the steps can be repeated to solve again, the light weight, the rapidness and the rollback can be realized, the online hot updating without interaction of the player is not needed, the whole process only consumes time for updating the script online, the existing game logic is replaced after the updating is completed, the player can not feel the hot updating process subjectively, and the experience of the player is effectively improved.
In order to ensure the accuracy of the updated file, and facilitate the game client to quickly determine whether the updated file is needed or not and whether the updated file is an error signal sent by the game server (for example, due to network delay, the update signal sent by the game server is already received by the game client, but the game client does not give a response to the game server, the game server repeatedly sends the update signal, and the game client considers that the update signal is received again), preferably, the step S101 of uploading the updated file to the content distribution server specifically includes: uploading the update file and the file version number to a content distribution server;
step S103, after the game client receives the update command, the game client reads the update file from the content distribution server, and the step of storing the update file in the local temporary directory of the game client specifically comprises the following steps: after receiving the update command, the game client reads the file version number of the content distribution server and judges whether the read file version number is higher than the file version number of the game client; and if the content is higher than the preset value, reading the update file from the content distribution server side, and storing the update file in a local temporary directory of the game client side ". By setting the game version number, after the game client receives the update command, the game client is verified whether to need updating or not by reading the game version number, so that the situation that updating is not needed or is already updated after the update file is read is avoided, and the resource of the content distribution server is saved.
In order to ensure the accuracy and compatibility of content update, the update file is a script file packaged into a binary file, and step S101, before uploading the update file to the content distribution server, the method further includes: step S201, implementing the part needing to be updated by adopting a script language and carrying out internal test; and after the internal test is finished, packaging the script file into a binary file and generating a file version number. The method and the device ensure that the bug of the game client is really reduced after the content is updated through internal test, avoid new bugs, and effectively improve the user experience.
Those skilled in the art will appreciate that variations may be implemented by those skilled in the art in combination with the prior art and the above-described embodiments, and will not be described in detail herein. Such variations do not affect the essence of the present invention and are not described herein.
While the preferred embodiments of the invention have been described above, the invention is not limited to the specific embodiments described above, wherein equipment and structures not described in detail are understood to be practiced in a manner common to those of skill in the art; it will be understood by those skilled in the art that various changes and modifications may be made, or equivalents may be modified, without departing from the spirit of the invention without departing from the scope of the invention. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention without departing from the technical solution of the present invention.
Claims (4)
1. A method for updating heat of a mobile client comprises a game server, a game client which is in communication connection with the game server and a content distribution server, and is characterized by comprising the following steps:
uploading the update file to a content distribution server side;
the game server side sends an update command to the game client side;
after receiving the update command, the game client reads the update file from the content distribution server and stores the update file in a local temporary directory of the game client;
replacing the update file of the file to be updated in the internal memory of the game client in the running process by using the update file;
and after the replacement is successful, covering the local file to be updated with the update file.
2. The method for updating the mobile client with heat according to claim 1, wherein the step of "uploading the update file to the content distribution server" is specifically: uploading the update file and the file version number to a content distribution server;
the step of reading the update file from the content distribution server after the game client receives the update command and storing the update file in the local temporary directory of the game client specifically comprises the following steps: after receiving the update command, the game client reads the file version number of the content distribution server and judges whether the read file version number is higher than the file version number of the game client; and if the content is higher than the preset value, reading the update file from the content distribution server side, and storing the update file in a local temporary directory of the game client side ".
3. The method for updating the heat of the mobile client terminal as claimed in claim 2, wherein the update file is a script file packaged into a binary file.
4. The method for updating by heat for a mobile client according to claim 3, wherein before the step of uploading the update file to the content distribution server, the method further comprises: implementing the part needing to be updated by adopting a script language and carrying out internal test;
and after the internal test is finished, packaging the script file into a binary file and generating a file version number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911378734.2A CN111158722A (en) | 2019-12-27 | 2019-12-27 | Method for updating heat of mobile client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911378734.2A CN111158722A (en) | 2019-12-27 | 2019-12-27 | Method for updating heat of mobile client |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111158722A true CN111158722A (en) | 2020-05-15 |
Family
ID=70558641
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911378734.2A Pending CN111158722A (en) | 2019-12-27 | 2019-12-27 | Method for updating heat of mobile client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111158722A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111913730A (en) * | 2020-07-15 | 2020-11-10 | 上海莉莉丝科技股份有限公司 | User-insensitive application program internal updating method, user side and program server |
CN112426721A (en) * | 2020-12-07 | 2021-03-02 | 成都完美天智游科技有限公司 | Game server code hot updating method and device and storage medium |
CN112596772A (en) * | 2020-12-15 | 2021-04-02 | 上海米哈游网络科技股份有限公司 | Server updating method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050261062A1 (en) * | 2004-05-20 | 2005-11-24 | Turner Broadcasting System, Inc. (Tbs, Inc.) | Systems and methods for delivering content over a network |
CN104426924A (en) * | 2013-08-21 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Method, apparatus, client, server and system for updating application software |
CN107967139A (en) * | 2016-10-17 | 2018-04-27 | 网易(杭州)网络有限公司 | The hot update method and device of game |
CN109800005A (en) * | 2018-12-06 | 2019-05-24 | 广州西山居世游网络科技有限公司 | A kind of hot update method of client and device |
-
2019
- 2019-12-27 CN CN201911378734.2A patent/CN111158722A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050261062A1 (en) * | 2004-05-20 | 2005-11-24 | Turner Broadcasting System, Inc. (Tbs, Inc.) | Systems and methods for delivering content over a network |
CN104426924A (en) * | 2013-08-21 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Method, apparatus, client, server and system for updating application software |
CN107967139A (en) * | 2016-10-17 | 2018-04-27 | 网易(杭州)网络有限公司 | The hot update method and device of game |
CN109800005A (en) * | 2018-12-06 | 2019-05-24 | 广州西山居世游网络科技有限公司 | A kind of hot update method of client and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111913730A (en) * | 2020-07-15 | 2020-11-10 | 上海莉莉丝科技股份有限公司 | User-insensitive application program internal updating method, user side and program server |
CN112426721A (en) * | 2020-12-07 | 2021-03-02 | 成都完美天智游科技有限公司 | Game server code hot updating method and device and storage medium |
CN112596772A (en) * | 2020-12-15 | 2021-04-02 | 上海米哈游网络科技股份有限公司 | Server updating method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111158722A (en) | Method for updating heat of mobile client | |
CN102662701B (en) | CPLD online upgrading method, device and service board | |
CN104866307B (en) | The restorative procedure and device of a kind of application program | |
CN107193612B (en) | Version upgrading method and device for mobile terminal | |
WO2015176454A1 (en) | Method and device for upgrading software | |
CN109491698A (en) | Method for updating system and device based on hot patch | |
CN105988809A (en) | Online loading method for game resources and micro-end engine | |
CN105307195B (en) | A kind of method and device updating access point name parameter | |
KR20060092277A (en) | Method, software and apparatus for application upgrade during execution | |
CN106612192A (en) | An equipment upgrading method, apparatus and system | |
CN103188668A (en) | Security protection method and security protection system for mobile terminal application | |
CN110147242A (en) | Upgrading in the downloading of space relies on inspection method and device, storage medium and terminal | |
CN106537957A (en) | Profile management method and server | |
CN109189434A (en) | A kind of online upgrading method of electric energy meter | |
CN106775873B (en) | Method and equipment for updating mobile phone software and acquiring patch file | |
WO2017016282A1 (en) | Software upgrading method and apparatus, and computer storage medium | |
CN108322540A (en) | Customized data lead-in method, terminal and computer readable storage medium | |
US20170177450A1 (en) | Mobile terminal and related repair method | |
CN108536464A (en) | A kind of hot restorative procedure and device of application program | |
CN109002305B (en) | Method and system for updating equipment program | |
CN114840242A (en) | System upgrading method and device of electronic equipment and readable storage medium | |
CN105786636B (en) | A kind of system repair and device | |
CN108572848A (en) | The bottom firmware on line upgrading method, apparatus and storage medium of interactive system | |
CN104915234B (en) | A kind of Android mobile terminal upgrading report method and system | |
CN113434422B (en) | Virtual device debugging method and device and virtual device debugging system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |