CN117573177A - Hot update method, device and equipment of game client and storage medium - Google Patents

Hot update method, device and equipment of game client and storage medium Download PDF

Info

Publication number
CN117573177A
CN117573177A CN202311602022.0A CN202311602022A CN117573177A CN 117573177 A CN117573177 A CN 117573177A CN 202311602022 A CN202311602022 A CN 202311602022A CN 117573177 A CN117573177 A CN 117573177A
Authority
CN
China
Prior art keywords
game client
update data
thermal
hot
update
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
Application number
CN202311602022.0A
Other languages
Chinese (zh)
Inventor
许培涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Sanqi Jicai Network Technology Co ltd
Original Assignee
Guangzhou Sanqi Jicai Network Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Sanqi Jicai Network Technology Co ltd filed Critical Guangzhou Sanqi Jicai Network Technology Co ltd
Priority to CN202311602022.0A priority Critical patent/CN117573177A/en
Publication of CN117573177A publication Critical patent/CN117573177A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a hot updating method, device and equipment of a game client and a storage medium. According to the technical scheme, the plurality of first thermal update data packages are obtained from the server according to the current version number information, the second thermal update data packages are determined from the first thermal update data packages according to the running condition of the game client, the corresponding data packages to be updated in the game client are subjected to thermal update processing by the second thermal update data packages, the game client is subjected to thermal update by the thermal update data packages, the update of the client which does not need to exit the game is carried out, the update efficiency of the game client is effectively improved, the second thermal update data packages of the game client are determined in real time according to the running condition of the game client, the influence of the thermal update processing on the normal running of the game client is reduced, and the user experience is improved.

Description

Hot update method, device and equipment of game client and storage medium
Technical Field
Embodiments of the present application relate to application of hot update technologies, and in particular, to a method, an apparatus, a device, and a storage medium for hot update of a game client.
Background
With the high-speed development of internet technology and mobile phone network game industry, more and more users of network games, and meanwhile, the requirements of users on the content updating of game terminals are higher and higher, and the period is shorter and shorter.
The traditional updating mode of the game client is generally a mode of application on-shelf auditing, after the latest version of the game client is audited and on-shelf, the latest version of the game client is required to be downloaded and installed by a user, and the user cannot enter the game during updating. The update speed of the update mode of the game client through the application on-shelf audit is difficult to meet the version update speed requirement of the online game, and if a problem occurs after the online game, the conventional game client cannot repair and update the online in time, so that the update efficiency of the game client is lower.
Disclosure of Invention
The embodiment of the application provides a hot updating method, device and equipment of a game client and a storage medium, so that the technical problem of low updating efficiency of the game client in the related technology is solved, and the updating efficiency of the game client is effectively improved.
In a first aspect, an embodiment of the present application provides a method for thermally updating a game client, where the game client is built based on a Native framework, including:
acquiring a plurality of first hot update data packets from a server according to the current version number information;
determining a second thermal update data packet from each first thermal update data packet according to the running condition of the game client;
and carrying out hot update processing on the data packet to be updated corresponding to the game client by utilizing the second hot update data packet.
In a second aspect, an embodiment of the present application provides a thermal update apparatus for a game client, where the game client is built based on a Native framework, and includes an update acquisition module, an update determination module, and an update execution module, where:
the update acquisition module is used for acquiring a plurality of first hot update data packets from the server according to the current version number information;
the update determining module is used for determining a second thermal update data packet from the first thermal update data packets according to the running condition of the game client;
and the update execution module is used for carrying out hot update processing on the data packet to be updated corresponding to the game client by utilizing the second hot update data packet.
In a third aspect, an embodiment of the present application provides a thermal update apparatus of a game client, including: a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of hot updating a game client as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium storing computer-executable instructions that, when executed by a computer processor, are for performing a method of hot updating a game client as described in the first aspect.
According to the embodiment of the application, the plurality of first thermal update data packages are obtained from the server according to the current version number information, the second thermal update data packages are determined from the first thermal update data packages according to the running condition of the game client, the corresponding data packages to be updated in the game client are subjected to thermal update processing by the second thermal update data packages, the game client is subjected to thermal update by the thermal update data packages, the update of the client which does not need to exit the game is carried out, the update efficiency of the game client is effectively improved, the second thermal update data packages of the game client are determined in real time according to the running condition of the game client, the influence of the thermal update processing on the normal running of the game client is reduced, and the user experience is improved.
Drawings
FIG. 1 is a flowchart of a method for hot update of a game client according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for hot update of a game client provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a first and second hot update packet determination process according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a second flow chart for determining a second hot update packet according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a second flow chart for determining a second hot update packet according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a thermal update apparatus of a game client according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a thermal update apparatus of a game client according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments thereof is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The above-described process may be terminated when its operations are completed, but may have additional steps not included in the drawings. The processes described above may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a method for hot update of a game client according to an embodiment of the present application, where the method for hot update of a game client according to an embodiment of the present application may be performed by a hot update device of a game client, where the hot update device of a game client may be implemented by hardware and/or software, and integrated in a hot update device of a game client (e.g., an electronic device on which a game client is installed).
The following describes an example of a method for executing the hot update of the game client by the hot update apparatus of the game client. Referring to fig. 1, the method for hot update of a game client includes:
s110: and acquiring a plurality of first hot update data packets from the server according to the current version number information.
In one embodiment, a developer may write a corresponding hot update data package and upload the hot update data package to a server for the update needs of the game client. Wherein, the hot update data packets of different versions correspond to different version numbers. The different hot update data packets may be used to perform hot update processing on different data packets to be updated in the game client, for example, replace the corresponding data packets to be updated or add corresponding content to the data packets to be updated. Optionally, multiple hot update data packets with the same version number may be packaged and compressed, and after obtaining the compressed packet, the hot update device performs decompression processing to obtain multiple corresponding hot update data packets.
After the server receives the thermal update data, the server can issue the update data based on the version number of the thermal update data, each thermal update device can acquire a thermal update data packet from the server to perform thermal update in response to the issue of the thermal update data, and after the thermal update processing based on each acquired thermal update data packet is completed, the corresponding version number is updated. Illustratively, the hot update device obtains a plurality of hot update data packets from the server according to the current version number of the installed game client, where the hot update data packets are the first hot update data packets.
In one possible embodiment, the game client provided by the scheme is built based on a Native framework, wherein the Native framework has good cross-platform running capability and thermal update processing capability, and has good stability. The Native framework provided by the scheme can be operated based on JavaScript, javaScript is a lightweight, interpreted or just-in-time compiled programming language with function priority, the differences of different platforms can be encapsulated through a unified interface, the calling of a base layer interface by using JavaScript Bridge bridging technology can be mapped to call Java codes on an android platform and ObjectC interfaces on an iOS besides high-performance algorithm interfaces and functional interfaces encapsulated by C and C++, and the Java framework has good cross-platform capability. Related logic of project service requirements is written by using JavaScript in an application layer of a game client, and meanwhile, an engine library applicable to development of various large games is realized in the application layer, so that functions of 2D, time axis actions, slow motion, UI systems, particle animation, physical systems and the like are supported, and the engine library partially provided can also directly bridge the call of interfaces related to engine APIs, so that logic execution efficiency is effectively improved, and engine performance is improved.
In one embodiment, the first hot update package is written based on the TypeScript language and is obtained by grammar conversion from the TypeScript language to the JavaScript language and macro compilation. The JavaScript script is a weak type language, is unfavorable for development of large projects, the scheme writes business logic through the strong type TypeScript language, realizes rapid development of the projects, and in order to support macro-like compilation called by some interfaces of the Native framework, carries out language grammar conversion and macro compilation through a compiling tool from the TypeScript language to the JavaScript language based on hot update related codes written by the TypeScript language to obtain a hot update data packet. Wherein, the syntax conversion from TypeScript language to JavaScript language can abstract syntax tree (AST, abstract Syntax Code) analysis implementation.
S120: and determining a second hot update data packet from the first hot update data packets according to the running condition of the game client.
The method includes the steps of obtaining a plurality of first thermal update data packets, determining the current running condition of the game client, and dynamically determining a second thermal update data packet for performing thermal update on the game client from the plurality of first thermal update data packets according to the running condition of the game client.
The running condition of the game client can reflect the occupation condition of the game client to the computing resources, the game scene (different game scenes have different requirements on stability) and the like, different running conditions generate different loads on the thermal updating equipment, when the load on the thermal updating equipment is higher, the number or the type of the acquired second thermal updating data packets can be limited, the load increasing degree of the thermal updating processing on the thermal updating equipment is reduced, and the smooth running of the game client is ensured.
Optionally, different thermal update data packages can perform thermal update processing in different running conditions of the game client, wherein the thermal update data packages can perform running conditions corresponding to the thermal update processing, and can be determined according to labels, folder positions and set label data package sizes corresponding to the thermal update data packages, for example, the higher the occupation of computing resources of the thermal update equipment is, and/or the higher the stability requirement of the game client is, the fewer the label types of the corresponding thermal update data packages are, the higher the safety requirement of the folder positions is, the smaller the set label data packages are, so that the influence of the thermal update processing on the stable and smooth running of the game client is reduced.
S130: and carrying out hot update processing on the data packet to be updated corresponding to the game client by using the second hot update data packet.
After determining the second hot update data packet, the data packet to be updated corresponding to the game client is determined, and the data packet to be updated is subjected to hot update processing by using the second hot update data packet, for example, the data packet to be updated is replaced or corresponding content is added into the data packet to be updated.
In one embodiment, the running condition of the game client may be continuously observed, and the second thermal update data packet is continuously determined from the plurality of first thermal update data packets according to the latest running condition until each of the first thermal update data packets is used as the second thermal update data packet to perform thermal update processing. For example, when the current running situation indicates that the game client occupies higher computing resources or the stability requirement of the game scene is higher, the first thermal update data packet with less influence on the running of the game client by the partial thermal update processing can be used as the second thermal update data packet. And when the occupation of the game client to the computing resources is reduced or the stability requirement of the game scene is reduced in the follow-up running condition, the other first hot update data packets are used as second hot update data packets, so that the hot update processing of the game client is ensured, the smooth running of the game client is ensured, and the user experience is ensured.
According to the method, the server and the client, the plurality of first thermal update data packages are obtained from the server according to the current version number information, the second thermal update data packages are determined from the first thermal update data packages according to the running condition of the game client, the corresponding data packages to be updated in the game client are subjected to thermal update processing by the second thermal update data packages, the game client is subjected to thermal update by the thermal update data packages, the client does not need to exit from updating of the game client, the updating efficiency of the game client is effectively improved, the second thermal update data packages of the game client are determined in real time according to the running condition of the game client, the influence of the thermal update processing on the normal running of the game client is reduced, and the user experience is improved.
On the basis of the above embodiments, fig. 2 is a flowchart of another method for hot update of a game client according to the embodiment of the present application, where the hot update method of the game client is a specific implementation of the hot update method of the game client. Referring to fig. 2, the method for hot update of the game client includes:
s210: and acquiring the latest version number information of the game client.
S220: in the event that the current version number information lags the latest version number information, a plurality of first hot update data packets are obtained from the server.
The latest version number information of the game client is obtained from the server, the current version number information of the game client is compared with the latest version number information, and when the current version number information is behind the latest version number information, a plurality of first hot update data packets corresponding to the latest version number information are obtained from the server. According to the scheme, when the current version number information is behind the latest version number information, a plurality of first hot update data packets are acquired from the server, so that the timely progress of hot update processing is ensured, and the update efficiency of the game client side is improved.
S230: and determining second hot update data from each first hot update data packet according to the load scene of the game client.
In one embodiment, the game situation provided by the scheme can be represented according to the load scene of the game client, and the occupation of the computing resources of the thermal updating device under different load scenes and/or the different requirements on the stability of the game client are met. The higher the occupation of the computing resource of the thermal updating device and/or the higher the requirement on the stability of the game client, the fewer the number of thermal updating data packets or the types of the thermal updating data packets which can be selected as the second thermal updating data packet.
The method includes the steps that a load scene of a game client is monitored in real time, a second thermal update data packet is selected from first thermal update data packets which are not selected as the second thermal update data packets according to the load scene until all the first thermal update data packets are used as the second thermal update data packets to carry out thermal update processing on the game client, and thermal update processing on the game client is completed. According to the scheme, the second thermal update data are determined from each first thermal update data packet according to the load scene of the game client, so that the game client is ensured to be updated timely, meanwhile, the stable and smooth operation of the game client is ensured, and the user experience is improved.
In one possible embodiment, as shown in the first and second thermal update data packet determining flow diagrams provided in fig. 3, the method for thermally updating a game client provided in this embodiment includes, when determining second thermal update data from each first thermal update data packet according to a load scenario of the game client:
s231: and determining candidate thermal update data packets from the first thermal update data packets according to the load scene of the game client and the scene type corresponding to the load scene.
S232: and determining second hot update data from each candidate hot update data packet according to the calling condition of the data to be updated corresponding to each candidate hot update data packet.
Alternatively, a combination of one or more of a packet type (which may be represented by a tag), a corresponding folder location, and a packet size of the thermal update packet and/or the candidate thermal update packet that may be selected for thermal update processing may be determined in advance for different load scenarios and combinations of scenario types.
The method includes the steps of determining a load scene of a game client and a scene type corresponding to the load scene in real time, and determining candidate thermal update data packets from first thermal update data packets according to the load scene and the scene type corresponding to the load scene.
Further, determining calling conditions of the data packets to be updated corresponding to the determined candidate hot update data packets in real time, and determining second hot update data from the candidate hot update data packets according to the calling conditions of the data to be updated. For example, under the condition that a data packet to be updated corresponding to one candidate hot update data packet is being called, the candidate hot update data packet is not used as a second hot update data packet to carry out hot update processing, and when the call or the waiting time of the data packet to be updated corresponding to the candidate hot update data packet is finished and reaches a set time length, the candidate hot update data packet is used as the second hot update data packet to carry out hot update processing.
According to the scheme, the candidate hot update data packages are determined from the first hot update data packages according to the load scene and the corresponding scene type of the game client, and the second hot update data are determined from the candidate hot update data packages according to the calling condition of the data to be updated, so that the condition that the normal operation of the game client is influenced due to the hot update processing of the data packages to be updated which are being called is reduced, the game client is ensured to obtain timely update processing, the stable and smooth operation of the game client is ensured, and the user experience is improved.
In one possible embodiment, as shown in the second thermal update data packet determining flowchart provided in fig. 4, the method for determining the second thermal update data of the game client according to the present embodiment includes:
s233: and under the condition that the load scene of the game client is the first load scene, determining second thermal update data from each first thermal update data packet according to the scene type corresponding to the first load scene.
S234: and determining each first hot update data packet as second hot update data in the case that the load scene of the game client is the second load scene.
The load scene provided by the scheme comprises a first load scene and a second load scene, the first load scene can correspond to a plurality of different scene types, the second load scene can be a mall scene, a chat scene, a town map scene and the like, wherein the stability requirement of the first load scene on the game client is higher than the stability requirement of the second load scene on the game client, and the different scene types of the first load scene correspond to different stability requirements.
For example, the first load scenario may be a combat scenario, the second load scenario may be a non-combat scenario, where the requirements for stability of the game client are high, the type, number, size, etc. of the second thermal update data packets that are thermally updated at this time may be limited, the requirements for stability of the game client are relatively low, and the limitations on the type, number, size of the second thermal update data packets may be reduced or the limitations on the type, number, size of the second thermal update data packets may not be limited. The scene type corresponding to the combat scene can be a personal combat type, a team combat type, and the like, wherein the team combat type has a higher requirement on the stability of the game client than the personal combat type.
The method includes the steps of determining a current load scene of a game client, determining a scene type corresponding to a first load scene when the load scene of the game client is the first load scene, and determining second thermal update data from each first thermal update data packet according to the scene type corresponding to the first load scene. And when the load scene of the game client is a second load scene, determining each first thermal update data packet as second thermal update data, and rapidly completing thermal update of the game client.
According to the scheme, the second thermal update data is determined from the first thermal update data packets according to the scene type corresponding to the first load scene, so that the thermal update speed and the stable and smooth operation of the game client are dynamically balanced, the user experience is ensured, the first thermal update data packets are directly determined as the second thermal update data when the load scene of the game client is the second load scene, and the thermal update speed of the game client is improved.
In one possible embodiment, as shown in the second thermal update data packet determining flowchart provided in fig. 5, the method for thermally updating a game client provided in this embodiment is characterized in that determining, according to a load scenario of the game client, second thermal update data from each first thermal update data packet includes:
s235: under the condition that the load scene of the game client is the first load scene, determining candidate hot update data packets from the first hot update data packets according to scene types corresponding to the first load scene, and determining second hot update data from the candidate hot update data packets according to calling conditions of data to be updated corresponding to the candidate hot update data packets.
S236: and determining each first hot update data packet as second hot update data in the case that the load scene of the game client is the second load scene.
The method includes the steps of determining a current load scene of a game client, determining a scene type corresponding to a first load scene when the load scene of the game client is the first load scene, and determining candidate thermal update data packets from first thermal update data packets according to the scene type corresponding to the first load scene. Further, determining calling conditions of the data packets to be updated corresponding to the determined candidate hot update data packets in real time, and determining second hot update data from the candidate hot update data packets according to the calling conditions of the data to be updated. And when the load scene of the game client is the second load scene, determining each first thermal update data packet as second thermal update data, and rapidly finishing the thermal update of the game client.
According to the scheme, candidate thermal update data packages are determined from the first thermal update data packages according to the scene types corresponding to the first load scenes, second thermal update data are determined from the candidate thermal update data packages according to the calling condition of the data to be updated, the condition that normal operation of a game client is affected due to the thermal update processing of the data packages to be updated, which are being called, is reduced, the thermal update speed and the stable smooth operation of the game client are dynamically balanced, user experience is guaranteed, and when the load scene of the game client is the second load scene, the first thermal update data packages are directly determined to be the second thermal update data, so that the thermal update speed of the game client is improved.
S240: and carrying out hot update processing on the data packet to be updated corresponding to the game client by using the second hot update data packet.
According to the method, the server and the client, the plurality of first thermal update data packages are obtained from the server according to the current version number information, the second thermal update data packages are determined from the first thermal update data packages according to the running condition of the game client, the corresponding data packages to be updated in the game client are subjected to thermal update processing by the second thermal update data packages, the game client is subjected to thermal update by the thermal update data packages, the client does not need to exit from updating of the game client, the updating efficiency of the game client is effectively improved, the second thermal update data packages of the game client are determined in real time according to the running condition of the game client, the influence of the thermal update processing on the normal running of the game client is reduced, and the user experience is improved. Meanwhile, the second thermal update data is determined from each first thermal update data packet according to the load scene of the game client, so that the game client is ensured to be updated timely, meanwhile, the stable and smooth operation of the game client is ensured, and the user experience is improved.
Fig. 6 is a schematic structural diagram of a thermal update apparatus of a game client according to an embodiment of the present application, where the game client is built based on a Native framework. Referring to fig. 6, the hot update apparatus of the game client includes an update acquisition module 61, an update determination module 62, and an update execution module 63.
Wherein, the update obtaining module 61 is configured to obtain a plurality of first thermal update data packets from the server according to the current version number information; an update determining module 62, configured to determine a second thermal update data packet from the first thermal update data packets according to the operation condition of the game client; and the update execution module 63 is configured to perform a thermal update process on the data packet to be updated corresponding to the game client by using the second thermal update data packet.
According to the method, the server and the client, the plurality of first thermal update data packages are obtained from the server according to the current version number information, the second thermal update data packages are determined from the first thermal update data packages according to the running condition of the game client, the corresponding data packages to be updated in the game client are subjected to thermal update processing by the second thermal update data packages, the game client is subjected to thermal update by the thermal update data packages, the client does not need to exit from updating of the game client, the updating efficiency of the game client is effectively improved, the second thermal update data packages of the game client are determined in real time according to the running condition of the game client, the influence of the thermal update processing on the normal running of the game client is reduced, and the user experience is improved.
In one possible embodiment, the update determination module 62, when determining the second thermal update data packet from the respective first thermal update data packets according to the operation of the game client, includes:
and determining second hot update data from each first hot update data packet according to the load scene of the game client.
In one possible embodiment, the update determination module 62, when determining the second thermal update data from each of the first thermal update data packets according to the load scenario of the game client, includes:
determining candidate thermal update data packets from the first thermal update data packets according to the load scene of the game client and the scene type corresponding to the load scene;
and determining second hot update data from each candidate hot update data packet according to the calling condition of the data to be updated corresponding to each candidate hot update data packet.
In one possible embodiment, the update determination module 62, when determining the second thermal update data from each of the first thermal update data packets according to the load scenario of the game client, includes:
under the condition that the load scene of the game client is a first load scene, determining second thermal update data from each first thermal update data packet according to the scene type corresponding to the first load scene;
and determining each first hot update data packet as second hot update data in the case that the load scene of the game client is the second load scene.
In one possible embodiment, the update determination module 62, when determining the second thermal update data from each of the first thermal update data packets according to the load scenario of the game client, includes:
under the condition that the load scene of the game client is a first load scene, determining candidate hot update data packets from the first hot update data packets according to scene types corresponding to the first load scene, and determining second hot update data from the candidate hot update data packets according to calling conditions of data to be updated corresponding to the candidate hot update data packets;
and determining each first hot update data packet as second hot update data in the case that the load scene of the game client is the second load scene.
In one possible embodiment, the update acquisition module 61, when acquiring a plurality of first hot update data packets from the server according to the current version number information, includes:
obtaining the latest version number information of a game client;
in the event that the current version number information lags the latest version number information, a plurality of first hot update data packets are obtained from the server.
In one possible embodiment, the Native framework is run based on JavaScript, and the first hot update package is written based on TypeScript language, and is obtained by grammar conversion from TypeScript language to JavaScript language, and macro compilation.
It should be noted that, in the embodiment of the above-mentioned thermal updating apparatus of the game client, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for convenience of distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present application.
The embodiment of the application also provides a thermal updating device of the game client, and the thermal updating device of the game client can be integrated with the thermal updating device of the game client. Fig. 7 is a schematic structural diagram of a thermal update apparatus of a game client according to an embodiment of the present application. Referring to fig. 7, the hot update apparatus of the game client includes: an input device 73, an output device 74, a memory 72, and one or more processors 71; a memory 72 for storing one or more programs; the one or more programs, when executed by the one or more processors 71, cause the one or more processors 71 to implement the method of hot updating a game client as provided by the above-described embodiments. Wherein the input device 73, the output device 74, the memory 72 and the processor 71 may be connected by a bus or otherwise, for example in fig. 7.
The memory 72 is a computing device readable storage medium, and may be used to store software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the method for hot update of a game client provided in any embodiment of the present application (e.g., the update acquisition module 61, the update determination module 62, and the update execution module 63 in the hot update device of the game client). The memory 72 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the device, etc. In addition, memory 72 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 72 may further include memory located remotely from processor 71, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 73 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the device. The output device 74 may include a display device such as a display screen.
The processor 71 executes various functional applications of the device and data processing, i.e., implements the above-described hot update method of the game client, by running software programs, instructions, and modules stored in the memory 72.
The device, the equipment and the computer for thermally updating the game client provided by the embodiment can be used for executing the method for thermally updating the game client provided by any embodiment, and have corresponding functions and beneficial effects.
The present application also provides a storage medium storing computer-executable instructions that, when executed by a computer processor, are configured to perform a method of hot update of a game client provided by the above embodiments, the method of hot update of a game client comprising: acquiring a plurality of first hot update data packets from a server according to the current version number information; determining a second hot update data packet from the first hot update data packets according to the running condition of the game client; and carrying out hot update processing on the data packet to be updated corresponding to the game client by using the second hot update data packet.
Storage media-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, lanbas (Rambus) RAM, etc.; nonvolatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a second, different computer system connected to the first computer system through a network such as the internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (e.g., in different computer systems connected by a network). The storage medium may store program instructions (e.g., embodied as a computer program) executable by one or more processors.
Of course, the storage medium storing the computer executable instructions provided in the embodiments of the present application is not limited to the method for hot update of the game client provided above, and may also perform the relevant operations in the method for hot update of the game client provided in any embodiment of the present application.
The device, the device and the storage medium for thermally updating the game client provided in the foregoing embodiments may perform the method for thermally updating the game client provided in any embodiment of the present application, and technical details not described in detail in the foregoing embodiments may be referred to the method for thermally updating the game client provided in any embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application and the technical principles employed. The present application is not limited to the specific embodiments provided herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. The hot updating method of the game client, the said game client builds on the basis of Native framework, characterized by comprising:
acquiring a plurality of first hot update data packets from a server according to the current version number information;
determining a second thermal update data packet from each first thermal update data packet according to the running condition of the game client;
and carrying out hot update processing on the data packet to be updated corresponding to the game client by utilizing the second hot update data packet.
2. The method for hot update of a game client according to claim 1, wherein said determining a second hot update data packet from each of said first hot update data packets according to a running condition of said game client comprises:
and determining second thermal update data from each first thermal update data packet according to the load scene of the game client.
3. The method for hot update of a game client according to claim 2, wherein said determining second hot update data from each of the first hot update data packets according to a load scenario of the game client comprises:
determining candidate thermal update data packets from the first thermal update data packets according to the load scene of the game client and the scene type corresponding to the load scene;
and determining second thermal update data from each candidate thermal update data packet according to the calling condition of the data to be updated corresponding to each candidate thermal update data packet.
4. The method for hot update of a game client according to claim 2, wherein said determining second hot update data from each of the first hot update data packets according to a load scenario of the game client comprises:
determining second thermal update data from each first thermal update data packet according to a scene type corresponding to a first load scene under the condition that the load scene of the game client is the first load scene;
and determining each first thermal update data packet as second thermal update data under the condition that the load scene of the game client is a second load scene.
5. The method for hot update of a game client according to claim 2, wherein said determining second hot update data from each of the first hot update data packets according to a load scenario of the game client comprises:
under the condition that the load scene of the game client is a first load scene, determining candidate hot update data packets from the first hot update data packets according to scene types corresponding to the first load scene, and determining second hot update data from the candidate hot update data packets according to calling conditions of data to be updated corresponding to the candidate hot update data packets;
and determining each first thermal update data packet as second thermal update data under the condition that the load scene of the game client is a second load scene.
6. The method for hot update of a game client according to claim 1, wherein the obtaining a plurality of first hot update data packets from a server according to current version number information includes:
acquiring the latest version number information of the game client;
and acquiring a plurality of first hot update data packets from the server in the case that the current version number information lags behind the latest version number information.
7. The method for hot update of a game client according to claim 1, wherein the Native framework is executed based on JavaScript script, and the first hot update packet is written based on TypeScript language and is obtained by converting from TypeScript language to JavaScript language syntax and macro compiling.
8. The utility model provides a hot updating device of game client, game client builds based on Native frame, its characterized in that includes update acquisition module, update determination module and update execution module, wherein:
the update acquisition module is used for acquiring a plurality of first hot update data packets from the server according to the current version number information;
the update determining module is used for determining a second thermal update data packet from the first thermal update data packets according to the running condition of the game client;
and the update execution module is used for carrying out hot update processing on the data packet to be updated corresponding to the game client by utilizing the second hot update data packet.
9. A thermal update apparatus for a game client, comprising: a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of hot updating a game client of any of claims 1-7.
10. A storage medium storing computer executable instructions which, when executed by a computer processor, are for performing the method of hot updating a game client according to any of claims 1-7.
CN202311602022.0A 2023-11-27 2023-11-27 Hot update method, device and equipment of game client and storage medium Pending CN117573177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311602022.0A CN117573177A (en) 2023-11-27 2023-11-27 Hot update method, device and equipment of game client and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311602022.0A CN117573177A (en) 2023-11-27 2023-11-27 Hot update method, device and equipment of game client and storage medium

Publications (1)

Publication Number Publication Date
CN117573177A true CN117573177A (en) 2024-02-20

Family

ID=89893438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311602022.0A Pending CN117573177A (en) 2023-11-27 2023-11-27 Hot update method, device and equipment of game client and storage medium

Country Status (1)

Country Link
CN (1) CN117573177A (en)

Similar Documents

Publication Publication Date Title
US9778942B2 (en) Generating a replacement binary for emulation of an application
CN111625289B (en) Method and device for quickly starting application program and electronic equipment
CN110908707B (en) Resource packaging method, device, server and storage medium
KR101691063B1 (en) Isa bridging with callback
CN114721719B (en) Method and system for containerized deployment of heterogeneous applications in cluster
CN106850650B (en) Method for accessing data by game client and client game system
CN111338623A (en) Method, device, medium and electronic equipment for developing user interface
CN113986402A (en) Function calling method and device, electronic equipment and storage medium
CN111625290B (en) Layout file preloading method and device under Android platform and electronic equipment
CN112767133A (en) Service decision method and device, storage medium and computer equipment
CN110716845A (en) Method for reading log information of Android system
US8645920B2 (en) Data parallelism aware debugging
CN113448650A (en) Live broadcast function plug-in loading method, device, equipment and storage medium
CN112256421A (en) Communication processing method, communication processing device, storage medium and electronic equipment
CN114911541B (en) Processing method and device of configuration information, electronic equipment and storage medium
CN111971655A (en) Native runtime techniques for hypertext markup language graphical content
CN117573177A (en) Hot update method, device and equipment of game client and storage medium
CN116954878A (en) Method, apparatus, device, storage medium and program product for managing container clusters
CN113703339A (en) Automatic driving simulation method, device, equipment and storage medium
CN112711602A (en) Running method and device of storage process, database system and storage medium
CN113590166B (en) Application program updating method and device and computer readable storage medium
CN113986388B (en) Program set loading method, system, electronic device and storage medium
CN113590224B (en) Method and device for detecting server, electronic equipment and storage medium
WO2022068796A1 (en) Cloud platform and cloud platform-based program code processing method
CN115080059A (en) Request processing method and device and electronic equipment

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