Directional thermal updating method, thermal updating system, electronic equipment and storage medium
Through the targeted hot-up push technology of the data exchange platform and the hot-up editing platform, the resource consumption problem caused by the push of the entire server is solved, and the precise repair and thermal unity of a single client is achieved, and the stability and repair efficiency of the game is improved. .
Patent Information
- Application Number
- CN202411089488.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-12-03
AI Technical Summary
In the prior art, full-service push results in unnecessary resource consumption and complexity, making it difficult to achieve accurate repairs for a single client.
Through the combination of the data exchange platform and the hot-replacement editing platform, targeted hot-replacement push is realized, and designated hot-replacement files are pushed to the designated game client to avoid resource consumption caused by pushing the entire server, and ensure uniformity through hot-replacement and coding specifications. and avoid conflict.
It realizes accurate repair of a single game client, reduces resource consumption, ensures more uniformity and avoids conflicts, and improves repair efficiency and stability.
Smart Images

Figure CN119056069A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a directional hot-change method, a hot-change system, an electronic device and a storage medium. Background Art
[0002] The efficiency of problem repair in the external server (also called the official server, or production environment) is crucial to the stable operation of the game and the player experience. Client hot update refers to the process of fixing errors, adding new features, or improving performance by downloading and applying new code or data packages after the user has installed and run the software or application. Therefore, client hot update can achieve client problem troubleshooting and repair to a certain extent.
[0003] In the prior art, when performing a hot update on a client, the hot update file is usually pushed to the entire server, which will cause some clients that do not need to perform a hot update to also be forced to perform a hot update, increasing the complexity of development and the consumption of processing resources. Summary of the invention
[0004] The purpose of the present application is to provide a directional hot update method, hot update system, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, so as to facilitate the directional hot update of a single client, improve the accuracy of hot update and avoid unnecessary resource consumption.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a directional hot update method, which is applied to a hot update system, wherein the hot update system includes: a data exchange platform and a hot update editing platform, and the method includes:
[0007] The data exchange platform obtains a directional hot update push request initiated by the hot update editing platform in the intranet, wherein the directional hot update push request includes: an identifier of a game client to be pushed and an identifier of a hot update file to be pushed;
[0008] The data exchange platform sends a hot update push instruction to the game server according to the directional hot update push request, so that the game server pushes the target hot update file to the target game client in the external network according to the hot update push instruction.
[0009] In a second aspect, the embodiment of the present application further provides a hot update system, including: a data exchange platform and a hot update editing platform;
[0010] The data exchange platform is used to execute the method steps executed by any data exchange platform in the first aspect above;
[0011] The hot edit platform is used to execute the method steps executed by any hot edit platform in the first aspect mentioned above.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the directional hot change method provided in the first aspect.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the directed hot-change method provided in the first aspect is executed.
[0014] The beneficial effects of this application are:
[0015] The present application provides a directional hot-update method, a hot-update system, an electronic device and a storage medium. The method is applied to the hot-update system. The hot-update system includes: a data exchange platform and a hot-update editing platform. The method includes:
[0016] The data exchange platform obtains a targeted hot update push request initiated by a hot update editing platform in the intranet, and the targeted hot update push request includes: the identifier of the game client to be pushed and the identifier of the hot update file to be pushed; the data exchange platform sends a hot update push instruction to the game server according to the targeted hot update push request; so that the game server pushes the target hot update file to the target game client in the external network according to the hot update push instruction. By deploying a data exchange platform, this method can send a hot update instruction to the game server based on the data exchange platform to control the game server to push a specified hot update file to a specified game client, so that individual problems of a single game client can be accurately repaired through a targeted hot update, avoiding unnecessary resource consumption caused by pushing hot updates to the entire server.
[0017] Secondly, by superimposing hot updates, the uniformity of targeted hot updates on different game clients can be ensured, and at the same time, hot update files with the same name can be avoided from being executed multiple times, causing hot update confusion; by customizing basic hot update coding specifications, hot update pushes can be performed in accordance with the hot update coding specifications, which can avoid hot update conflicts; by binding the login device to the client, and the client to the game account, the feedback data before the game login can be obtained based on the login device bound to the client, and the feedback data after the game login can be obtained based on the game account bound to the client, thereby obtaining complete feedback data.
[0018] In addition, based on the complete hot-change file review process provided by the hot-change editing platform, the edited hot-change files can be reviewed and tested. After the test is successful, a targeted hot-change push request can be initiated to the data exchange platform, thereby realizing targeted push of hot-change files.
[0019] Finally, based on the hot change editing platform's internal environment for quick verification of hot changes and the complete hot change review process provided, hot change files can be accurately tested; based on the provided online editor, the writing of hot change files can be facilitated. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A schematic diagram of the architecture of a hot-change system provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram of a process of a directional heat change method provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of a process of another directional heat replacement method provided in an embodiment of the present application;
[0024] Figure 4 A schematic flow chart of another directional heat replacement method provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of a process of another directional heat replacement method provided in an embodiment of the present application;
[0026] Figure 6 A schematic flow chart of another directional heat replacement method provided in an embodiment of the present application;
[0027] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0029] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0030] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0031] The efficiency of problem repair in the official server is crucial to the stable operation of the game and the player experience. If the repair efficiency is low, it may lead to more serious bugs or failures in the game, affecting the player's gaming experience and retention rate, and further affecting the product's revenue and reputation. The official server also refers to the production environment.
[0032] One of the means of fixing the problem is to edit the hotfix file and obtain the client's problem data to troubleshoot and fix the problem.
[0033] Occasionally, a single client or a small number of clients may have special issues on the official server. These issues are often difficult to detect on the internal server and are very difficult to verify. It is also inappropriate to push hotfixes to the entire server for special issues.
[0034] Based on this, this solution provides a targeted hot update push method to push the specified hot update file to the specified client to achieve accurate hot update push and avoid resource consumption caused by full server push. In addition, based on the implementation of targeted hot update, a complete hot update process is achieved from multiple aspects such as operating environment consistency, hot update life cycle, efficiency and cost, ease of use and hot update agility, and hot update security.
[0035] Figure 1 This is a schematic diagram of the architecture of a hot-change system provided in an embodiment of the present application. Figure 1 As shown, the hot-change system may include: an external network, a data exchange platform (IDC, Internet Data Center, also known as an Internet data center) and an intranet (also known as an office network). The game client in the external network can communicate with the hot-change editing platform in the intranet through the data exchange platform.
[0036] The data exchange platform can be deployed with multiple functional modules, including but not limited to agent plug-ins, game servers, and compilation server hot update compilation modules. The hot update editing platform is deployed with a directional hot update editing module and a hot update audit module. The data exchange platform can realize the functions to be realized by the data exchange platform based on the deployed functional modules.
[0037] Developers can edit hot change files through the targeted hot change editing module in the hot change editing platform. After the editing is completed, they can review or test the edited hot change files based on the hot change review process provided by the platform based on the hot change review module in the hot change editing platform. After passing the review, they can publish them to the hot change compilation module of the compilation service in the data exchange platform.
[0038] The hot update compilation module of the compilation server compiles the received hot update file into binary bytecode that can be run by the machine and sends it to the game server for storage.
[0039] In addition, when developers edit hot change files based on the hot change editing platform, they can trigger a specified push process to initiate a hot change request to the proxy plug-in in the data exchange platform, requesting that the currently edited hot change file be pushed to the specified game client. The proxy plug-in in the data exchange platform can then trigger the game server to push the specified hot change file to the specified client, thereby achieving targeted hot change.
[0040] After running the hot-change file, the game client in the external network can encrypt the data generated after the operation and send it back to the proxy plug-in through a dedicated data channel. The proxy plug-in will send it back to the hot-change editing platform in the internal network through a specified protocol. After decrypting the returned data, the hot-change editing platform can store it on the hot-change editing platform for developers to view, and can optimize the hot-change file based on the returned data.
[0041] Figure 2 A schematic diagram of a directional heat change method provided in an embodiment of the present application; this method can be applied to Figure 1 The data exchange platform in the hot change system shown in FIG. Figure 2 As shown, the method may include:
[0042] S101. The data exchange platform obtains a directional hot update push request initiated by a hot update editing platform in the intranet. The directional hot update push request includes: an identifier of a game client to be pushed and an identifier of a hot update file to be pushed.
[0043] When a developer wants to verify a problem on a game client, he or she can initiate a hot-change editing process based on the targeted hot-change editing module of the hot-change editing platform to trigger the generation of a hot-change file corresponding to the specified client.
[0044] The content of the hot-change file can be determined according to the problem to be verified. For example, if the program verification problem requires obtaining the B data of client A, then a hot-change file can be compiled to obtain the B data of client A, and the compiled hot-change file can be pushed to client A. After the push is successful, client A runs the hot-change file, and the system can automatically return the B data.
[0045] After triggering the generation of the hot change file corresponding to the specified client, the edited hot change file can be reviewed or tested based on the hot change review module provided by the hot change editing platform. After the review is passed, a targeted hot change push request can be initiated to the data exchange platform. Optionally, a targeted hot change push request can be initiated to the proxy plug-in in the data exchange platform; the targeted hot change push request includes: the identification of the game client to be pushed and the identification of the hot change file to be pushed.
[0046] S102: The data exchange platform sends a hot update push instruction to the game server according to the directional hot update push request.
[0047] After receiving a directed hot update push request, the proxy plug-in in the data exchange platform can send a hot update push instruction to the game server based on the identifier of the game client to be pushed and the identifier of the hot update file to be pushed indicated in the request, so as to control the game server to push the hot update to the game client.
[0048] Since there may be a lot of hot-change files on the game server at the same time, the effective time and environment of different hot-change files are different. The proxy plug-in is equivalent to a controller, controlling which hot-change file is pushed to which client. The proxy plug-in sends a hot-change push instruction to the game server. The game server and the game client maintain a TCP (Transmission Control Protocol) long connection, and push the hot-change file to the specified client through the TCP link.
[0049] In this solution, by deploying a proxy plug-in in the data exchange platform, the proxy plug-in can be used to implement authentication of requests, request transfer of different categories of data, and record all operation logs, abnormal operation alarms, etc. It is responsible for the most core work of the entire system.
[0050] Optionally, the game server may determine that the game client to be pushed is a target game client and the hot update file to be pushed is a target hot update file according to the received hot update push instruction, thereby pushing the target hot update file to the target game client.
[0051] Among them, the game server stores all hot change files that have been edited and approved by the hot change editing platform. Each hot change file has a unique identifier, so that the target hot change file can be obtained from the background and pushed to the target game client based on the identifier of the target hot change file.
[0052] In summary, the targeted hot-update method provided in this embodiment is applied to a hot-update system, and the hot-update system includes: a data exchange platform and a hot-update editing platform. The method includes: the data exchange platform obtains a targeted hot-update push request initiated by the hot-update editing platform in the intranet, and the targeted hot-update push request includes: the identifier of the game client to be pushed and the identifier of the hot-update file to be pushed; the data exchange platform sends a hot-update push instruction to the game server according to the targeted hot-update push request; so that the game server pushes the target hot-update file to the target game client in the external network according to the hot-update push instruction. By deploying a data exchange platform, this method can send a hot-update instruction to the game server based on the data exchange platform to control the game server to push a specified hot-update file to a specified game client, so that individual problems of a single game client can be accurately repaired through targeted hot-updates, avoiding unnecessary resource consumption caused by pushing hot-updates to the entire server.
[0053] Figure 3 A schematic flow chart of another directional thermal replacement method provided in an embodiment of the present application; optionally, the method may further include:
[0054] S201. The data exchange platform obtains the encrypted client data transmitted back by the target game client through the designated data channel; the client data includes: the runtime data of the client, the cache data of the client, and the configuration data of the client.
[0055] Usually, the verification and repair of problems are highly dependent on log data. Therefore, obtaining the feedback data from the game client can help fix the problem and further optimize the hot update file.
[0056] In some embodiments, after receiving the target hot-change file pushed by the game server, the target game client can run the target hot-change file to generate corresponding runtime data.
[0057] The game client can transmit the client data back to the proxy plug-in in the data exchange platform through the designated data channel. The client data transmitted back may include but is not limited to: runtime data generated after running the hot update file, client cache data, client configuration data, client backpack information, etc.
[0058] Optionally, the designated data channel may be a Kafka (distributed publish-subscribe messaging system) dedicated data channel.
[0059] It is worth mentioning that since the game client is in an external network environment and there is network isolation, the client's return data cannot be directly transmitted back to the intranet. Therefore, it is necessary to build a proxy plug-in in the data exchange platform for protocol transfer.
[0060] The external network environment is relatively complex and there are many risks. Therefore, the data return security level cannot be lower than the existing data security level. Therefore, in this solution, the game client can encrypt the client data that needs to be returned and then return it to the proxy plug-in in the data exchange platform through the designated data channel.
[0061] In this embodiment, the returned data can be encrypted using RSA (Rivest-Shamir-Adleman, asymmetric encryption algorithm). The proxy plug-in encrypts the returned data when transferring it and permanently storing it. All data is decrypted when viewed and can be decrypted on demand.
[0062] S202: The data exchange platform sends the encrypted client data to the hot edit platform for storage based on the network security communication protocol.
[0063] Optionally, the proxy plug-in in the data exchange platform can send the encrypted client data to the hot edit platform for storage based on WSS (WebSocket, a network security communication protocol).
[0064] When developers view the returned data, they can decrypt the data they need to view as needed.
[0065] Optionally, in step S201, before obtaining the encrypted client data transmitted back by the target game client through the designated data channel, the data exchange platform establishes a corresponding relationship between the target game client and the login device and a corresponding relationship between the target game client and the game account.
[0066] In some embodiments, after logging into the game client through the game account, the game can be entered and game data can be generated during the game process. However, the game data before the game client is logged in cannot be obtained, that is, the hot update can only take effect after the game is logged in. However, the information before the login plays a huge role in solving problems such as errors and flash back before the login. To verify the problem, it is necessary to fully refer to the data before and after the game login in order to make a comprehensive and accurate analysis.
[0067] Based on this, in this embodiment, the game client can be bound to the login device, and the game client can be bound to the game account at the same time, so that the client data before the game login can be obtained through the login device bound to the game client, and the client data after the game login can be obtained through the game account bound to the game client. Thus, comprehensive data acquisition is achieved.
[0068] Optionally, in step S201, obtaining the encrypted client data transmitted back by the target game client through the designated data channel may include: obtaining pre-game login data of the login device to which the target game client is bound, based on the correspondence between the target game client and the login device; and obtaining post-game login data of the game account to which the target game client is bound, based on the correspondence between the target game client and the game account.
[0069] After running the hot change file on the target game client, the pre-game login data generated by the target game client during the process of logging into the device can be obtained according to the login device logged in by the target game client, and the post-game login data generated by the game account after logging into the target game client can be obtained according to the game account logged in on the target game client.
[0070] In some embodiments, after the game account is logged in, if the target game client receives a hot-change file pushed by the game server, running the hot-change file can only generate post-game login data. At this time, if you want to obtain pre-game login data, you need to wait until the next time you log in to the game again to obtain the hot-change file for running, which will result in untimely acquisition of pre-game login data. Therefore, when the target game client receives a hot-change file for verifying pre-game login data after the game account is logged in, it can first store it locally on the client, and then obtain pre-game login data by running the hot-change file cached locally on the client, thereby achieving the method of running the hot-change file cached on the client in combination with the real-time push of the hot-change file by the game server, respectively obtaining pre-game login data and post-game login data.
[0071] Figure 4 A schematic flow chart of another directional thermal replacement method provided in an embodiment of the present application; optionally, the method may further include:
[0072] S301. The data exchange platform sends a server-wide hot update push instruction to the game server according to the identifier of the hot update file to be pushed.
[0073] In some embodiments, since targeted hot updates are not pushed to all servers, there may be differences between the game clients that are hot updated and the game clients that are not hot updated. For example, game client A pushes hot update X, game client B pushes hot update Y, and game client C does not push hot update. It is particularly important to ensure the consistency of the operating environment between different game clients.
[0074] In this embodiment, the uniformity of directional hot updates on different game clients can be ensured by hot update overlay. Hot update overlay can be understood as overwriting with the same name. After the hot update file is verified to be correct, all game clients use the same name when pushing it, directly overwriting the directional hot update, thereby ensuring the consistency of the operating environment.
[0075] It can be understood that after the target hot change file is pushed to the target game client and runs successfully, when a hot change file with the same function is to be pushed to other game clients subsequently, the target hot change file can be pushed to other game clients according to the identifier of the target hot change file, without the need to create a new hot change file for other game clients.
[0076] Based on this, the proxy plug-in in the data exchange platform can generate a server-wide hot update push instruction according to the identifier of the target hot update file and send it to the game server.
[0077] S302: The game server pushes the target hot-change file to all-server game clients in the external network according to the server-wide hot-change push instruction.
[0078] The game server can then push the target hot-change file to all game clients according to the server-wide hot-change push instructions.
[0079] In some embodiments, for a single game client, hot-updates can also be overwritten by overwriting with the same name to avoid the same hot-update content being executed multiple times. For example, the target game client has been pushed hot-update file a, and the next hot-update file to be pushed is b. Hot-update file b is a file upgrade based on hot-update file a, and has duplicate content with hot-update file a. Hot-update file b has the same file name as hot-update file a. At this time, after hot-update file b is pushed to the target game client, hot-update file b can be used to replace hot-update file a. Only hot-update file b is executed to achieve the required hot-update, avoiding the execution of hot-update file a and hot-update file b separately, resulting in repeated execution.
[0080] Figure 5A schematic flow chart of another directional thermal replacement method provided in an embodiment of the present application; optionally, the method further includes:
[0081] S501, based on the hot update editing platform, edit and generate the hot update file to be pushed corresponding to the game client to be pushed.
[0082] Developers can initiate a hot update file editing process based on the targeted hot update editing module in the hot update editing platform according to the hot update requirements of different game clients, so as to write and generate the hot update files to be pushed corresponding to the game clients to be pushed.
[0083] S502: The hot update editing platform performs an audit test on the hot update file to be pushed, and determines whether to push the hot update file to be pushed based on the audit test result.
[0084] Based on the internal service environment for quick verification of hot changes provided by the hot change editing platform, the hot change files to be pushed can be put into the test environment for review and testing. Among them, the perfect hot change review process includes but is not limited to the regular hot change program review and QA (quality assurance) review mechanism.
[0085] S503: If yes, send a directed hot update push request to the data exchange platform.
[0086] The directional hot update push request includes: the identifier of the game client to be pushed and the identifier of the hot update file to be pushed.
[0087] In some embodiments, if the hot change file to be pushed passes the review, that is, the hot change file is qualified, the hot change editing platform can send a directed hot change push request to the data exchange platform, and the request may include: the identification of the game client to be pushed and the identification of the hot change file to be pushed.
[0088] Optionally, in step S502, after the hot-change file to be pushed is audited and tested, the process further includes: if the hot-change file to be pushed passes the audit test, the hot-change editing platform sends the hot-change file to be pushed to the game server for storage.
[0089] In some embodiments, after the edited hot change file to be pushed is reviewed and approved by the hot change review module in the hot change editing platform, the hot change review module can send the reviewed hot change file to be pushed to the compilation server hot change compilation module in the data exchange platform for compilation. The compilation server hot change compilation module can compile the hot change file to be pushed into binary bytecode that can be run by the machine, and send it to the game server for storage. The game server can store the hot change file to be pushed in the background database and store the corresponding file identifier.
[0090] Optionally, the method may further include: the hot update editing platform optimizes the generated hot update file to be pushed according to the client data of the target game client transmitted back to obtain an optimized hot update file.
[0091] In this embodiment, the hot-change editing platform can be based on the stored client data sent back by the client, and can also optimize the edited hot-change file according to the client data.
[0092] The returned client data can reflect some new problems of the client to a certain extent, so the content of the pushed hot-change file can be adjusted based on the returned client data to obtain an optimized hot-change file. The optimized hot-change file can be pushed to the client again to form a closed-loop push, which can improve the accuracy of problem verification and repair.
[0093] Optionally, in step S501, editing and generating the hot change file to be pushed corresponding to the game client to be pushed may include: based on an online editor, editing and generating the hot change file to be pushed corresponding to the game client to be pushed according to a lightweight embeddable scripting language.
[0094] In this embodiment, the hot change file editing can be realized based on the online editor of LUA language provided by the hot change editing platform. LUA is a lightweight, embeddable scripting language that is commonly used in a variety of applications, including game development, web development, extension and binding, etc. The design goal of LUA is to be a language that is easy to learn and use, and it also provides sufficient flexibility to enable it to be used in a variety of complex applications.
[0095] Optionally, in step S601, editing and generating the hot-change file to be pushed corresponding to the game client to be pushed includes: generating an identifier of the hot-change file to be pushed according to the hot-change function of the hot-change file to be pushed.
[0096] In some embodiments, when generating a hot update file, an identifier of the hot update file may be generated according to basic hot update editing specifications.
[0097] Optionally, different file names may be distinguished according to functions. That is, the identification of the hot update file to be pushed may be generated according to the hot update function of the hot update file to be pushed.
[0098] The hot-change function generates the identification of the hot-change file, so that hot-change files with the same function can be overwritten with the same name, and hot-change files with different functions can also be well distinguished.
[0099] Figure 6 A schematic flow chart of another directional thermal replacement method provided in an embodiment of the present application; optionally, the method may further include:
[0100] S601. The hot update editing platform generates at least one hot update file to be pushed according to a push requirement.
[0101] Optionally, the hot update requirements for each game client are different, and in some hot update scenarios, it may be necessary to push multiple hot update files to the game client in sequence, and the push order of each hot update file is also set. Then, the developer can generate at least one hot update file to be pushed through the hot update editing platform.
[0102] S602: The game server pushes each hot update file to be pushed to the game client in sequence according to a preset push sequence.
[0103] Developers can input trigger instructions through the hot-change editing platform to trigger the push of each hot-change file to be pushed to the game client in sequence through the game server.
[0104] Optionally, the push can be triggered in sequence according to the push order of each hot update file to be pushed, thereby ensuring the accuracy of the pushed content.
[0105] Optionally, in step S602, each hot change file to be pushed is pushed to the game client in sequence through the game server according to a preset push sequence, including: if it is detected that the previous hot change file to be pushed is pushed successfully, then the current hot change file to be pushed is determined according to the preset push sequence, and the current hot change file to be pushed is pushed to the game client through the game server.
[0106] In the process of pushing each hot-change file to be pushed in sequence, the hot-change editing platform can also detect whether the current hot-change file to be pushed is pushed successfully, and trigger the push of the next hot-change file to be pushed when the current hot-change file to be pushed is pushed successfully. That is, push is performed in a serial push mode to avoid hot-change conflicts during the push process.
[0107] Exemplarily: a trigger instruction can be input through the hot change editing platform to trigger the push of the current hot change file to be pushed. At the same time, the push result can be viewed on the hot change editing platform. If the current hot change file to be pushed is pushed successfully, a new trigger instruction can be input through the hot change editing platform to trigger the push of the next hot change file to be pushed.
[0108] Optionally, in step S502, performing an audit test on the hot-change file to be pushed may include: if the client currently performing an audit test on the hot-change file to be pushed is a designated client, performing an audit test on the hot-change file to be pushed according to a user identifier bound to the designated client.
[0109] This embodiment describes the optimization of the audit process based on conventional means. In the conventional audit process, the audit tests performed on all clients need to go through multiple layers of audit.
[0110] In this embodiment, the audit test can be distinguished according to the type of client performing the audit test. When the client performing the audit test is a designated client, the hot update file to be pushed can be audited and tested according to the user identifier bound to the designated client.
[0111] The designated client can refer to the client of an internal developer. In other words, the review of the client of internal personnel is simplified. If it is found to be an internal client, it can be directly simplified to the client owner for approval. This improves the review efficiency.
[0112] In summary, the directional hot-update method provided in this embodiment includes: a directional hot-update method, a hot-update system, an electronic device and a storage medium. The method is applied to the hot-update system. The hot-update system includes: a data exchange platform and a hot-update editing platform. The method includes: the data exchange platform obtains a directional hot-update push request initiated by the hot-update editing platform in the intranet. The directional hot-update push request includes: the identifier of the game client to be pushed and the identifier of the hot-update file to be pushed; the data exchange platform sends a hot-update push instruction to the game server according to the directional hot-update push request; so that the game server pushes the target hot-update file to the target game client in the external network according to the hot-update push instruction. By deploying a data exchange platform, this method can send a hot-update instruction to the game server based on the data exchange platform to control the game server to push a specified hot-update file to a specified game client, so that for individual problems of a single game client, precise repair can be achieved through directional hot-update, avoiding unnecessary resource consumption caused by pushing hot-updates to the entire server.
[0113] Secondly, by superimposing hot updates, the uniformity of targeted hot updates on different game clients can be ensured, and at the same time, hot update files with the same name can be avoided from being executed multiple times, causing hot update confusion; by customizing basic hot update coding specifications, hot update pushes can be performed in accordance with the hot update coding specifications, which can avoid hot update conflicts; by binding the login device to the client, and the client to the game account, the feedback data before the game login can be obtained based on the login device bound to the client, and the feedback data after the game login can be obtained based on the game account bound to the client, thereby obtaining complete feedback data.
[0114] In addition, based on the complete hot-change file review process provided by the hot-change editing platform, the edited hot-change files can be reviewed and tested. After the test is successful, a targeted hot-change push request can be initiated to the data exchange platform, thereby realizing targeted push of hot-change files.
[0115] Finally, based on the hot change editing platform's internal environment for quick verification of hot changes and the complete hot change review process provided, hot change files can be accurately tested; based on the provided online editor, the writing of hot change files can be facilitated.
[0116] Some modules included in the data exchange platform and some modules included in the hot edit platform mentioned above can be configured to implement one or more integrated circuits for implementing the corresponding methods, such as: one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0117] The above modules can be connected or communicated with each other via a wired connection or a wireless connection. The wired connection may include a metal cable, an optical cable, a hybrid cable, etc., or any combination thereof. The wireless connection may include a connection in the form of a LAN, a WAN, Bluetooth, a ZigBee, or NFC, or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units. Those skilled in the art will clearly understand that for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application.
[0118] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application includes: a processor 801, a storage medium 802 and a bus 803, wherein the storage medium 802 stores machine-readable instructions executable by the processor 801. When the electronic device runs a directional hot-change method executed by a data exchange platform or a hot-change editing platform, the processor 801 communicates with the storage medium 802 via the bus 803, and the processor 801 executes the machine-readable instructions to perform the following steps:
[0119] The data exchange platform obtains a directional hot update push request initiated by the hot update editing platform in the intranet, wherein the directional hot update push request includes: an identifier of the game client to be pushed and an identifier of the hot update file to be pushed;
[0120] The data exchange platform sends a hot update push instruction to the game server according to the directional hot update push request, so that the game server pushes the target hot update file to the target game client in the external network according to the hot update push instruction.
[0121] In a feasible implementation scheme, processor 801 is also used to execute: the data exchange platform obtains the encrypted client data sent back by the target game client through the designated data channel; the client data includes: the client's runtime data, the client's cache data, and the client's configuration data; the data exchange platform sends the encrypted client data to the hot edit platform for storage based on the network security communication protocol.
[0122] In a feasible implementation scheme, before executing to obtain the encrypted client data transmitted back by the target game client through the designated data channel, the processor 801 is also used to: establish a corresponding relationship between the target game client and the login device and a corresponding relationship between the target game client and the game account on the data exchange platform.
[0123] In a feasible implementation scheme, when the processor 801 executes to obtain the encrypted client data returned by the target game client through the designated data channel, it is specifically used to: obtain the pre-game login data of the login device bound to the target game client according to the correspondence between the target game client and the login device; and obtain the post-game login data of the game account bound to the target game client according to the correspondence between the target game client and the game account.
[0124] In a feasible implementation scheme, processor 801 is also used to execute: the data exchange platform sends a server-wide hot update push instruction to the game server based on the identifier of the hot update file to be pushed; so that the game server pushes the target hot update file to all server game clients in the external network based on the server-wide hot update push instruction.
[0125] In a feasible implementation scheme, processor 801 is also used to execute: based on the hot change editing platform, edit and generate the hot change file to be pushed corresponding to the game client to be pushed; the hot change editing platform performs an audit test on the hot change file to be pushed, and determines whether to push the hot change file to be pushed based on the audit test result; if so, sends a directed hot change push request to the data exchange platform.
[0126] In a feasible implementation scheme, after the processor 801 performs an audit test on the hot-change file to be pushed, it also includes: if the audit test of the hot-change file to be pushed passes, the hot-change editing platform sends the hot-change file to be pushed to the game server for storage.
[0127] In a feasible implementation scheme, the processor 801 is also used to execute: the hot update editing platform optimizes the generated hot update file to be pushed according to the client data of the target game client transmitted back to obtain the optimized hot update file.
[0128] In a feasible implementation scheme, when the processor 801 executes editing and generates the hot change file to be pushed corresponding to the game client to be pushed, it is specifically used to edit and generate the hot change file to be pushed corresponding to the game client to be pushed based on an online editor in accordance with a lightweight embeddable scripting language.
[0129] In a feasible implementation scheme, when the processor 801 executes editing and generates the hot update file to be pushed corresponding to the game client to be pushed, it is specifically used to: generate an identifier of the hot update file to be pushed according to the hot update function of the hot update file to be pushed.
[0130] In a feasible implementation scheme, the processor 801 is also used to execute: the hot change editing platform generates at least one hot change file to be pushed according to the push demand; and the game server pushes each hot change file to be pushed to the game client to be pushed in sequence according to a preset push sequence.
[0131] In a feasible implementation scheme, when the processor 801 pushes each hot change file to be pushed to the game client in sequence according to a preset push sequence, it is specifically used to: if it is detected that the previous hot change file to be pushed was pushed successfully, determine the current hot change file to be pushed according to the preset push sequence, and push the current hot change file to be pushed to the game client through the game server.
[0132] In a feasible implementation scheme, when the processor 801 performs an audit test on the hot-change file to be pushed, it is specifically used to: if the client currently performing an audit test on the hot-change file to be pushed is a designated client, then an audit test is performed on the hot-change file to be pushed according to the user identifier bound to the designated client.
[0133] Among them, the storage medium 802 stores program code, and when the program code is executed by the processor 801, the processor 801 executes various steps in the directional hot change method according to various exemplary embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0134] Processor 801 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DigitalSignal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.
[0135] Storage medium 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), programmable read-only memory (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic memory, disk, optical disk, etc. The memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The storage medium 802 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0136] Optionally, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps:
[0137] The data exchange platform obtains a directional hot update push request initiated by the hot update editing platform in the intranet, wherein the directional hot update push request includes: an identifier of the game client to be pushed and an identifier of the hot update file to be pushed;
[0138] The data exchange platform sends a hot update push instruction to the game server according to the directional hot update push request, so that the game server pushes the target hot update file to the target game client in the external network according to the hot update push instruction.
[0139] In a feasible implementation scheme, processor 801 is also used to execute: the data exchange platform obtains the encrypted client data sent back by the target game client through the designated data channel; the client data includes: the client's runtime data, the client's cache data, and the client's configuration data; the data exchange platform sends the encrypted client data to the hot edit platform for storage based on the network security communication protocol.
[0140] In a feasible implementation scheme, before executing to obtain the encrypted client data transmitted back by the target game client through the designated data channel, the processor 801 is also used to: establish a corresponding relationship between the target game client and the login device and a corresponding relationship between the target game client and the game account on the data exchange platform.
[0141] In a feasible implementation scheme, when the processor 801 executes to obtain the encrypted client data returned by the target game client through the designated data channel, it is specifically used to: obtain the pre-game login data of the login device bound to the target game client according to the correspondence between the target game client and the login device; and obtain the post-game login data of the game account bound to the target game client according to the correspondence between the target game client and the game account.
[0142] In a feasible implementation scheme, processor 801 is also used to execute: the data exchange platform sends a server-wide hot update push instruction to the game server based on the identifier of the hot update file to be pushed; so that the game server pushes the target hot update file to all server game clients in the external network based on the server-wide hot update push instruction.
[0143] In a feasible implementation scheme, processor 801 is also used to execute: based on the hot change editing platform, edit and generate the hot change file to be pushed corresponding to the game client to be pushed; the hot change editing platform performs an audit test on the hot change file to be pushed, and determines whether to push the hot change file to be pushed based on the audit test result; if so, sends a directed hot change push request to the data exchange platform.
[0144] In a feasible implementation scheme, after the processor 801 performs an audit test on the hot-change file to be pushed, it also includes: if the audit test of the hot-change file to be pushed passes, the hot-change editing platform sends the hot-change file to be pushed to the game server for storage.
[0145] In a feasible implementation scheme, the processor 801 is also used to execute: the hot update editing platform optimizes the generated hot update file to be pushed according to the client data of the target game client transmitted back to obtain the optimized hot update file.
[0146] In a feasible implementation scheme, when the processor 801 executes editing and generates the hot change file to be pushed corresponding to the game client to be pushed, it is specifically used to edit and generate the hot change file to be pushed corresponding to the game client to be pushed based on an online editor in accordance with a lightweight embeddable scripting language.
[0147] In a feasible implementation scheme, when the processor 801 executes editing and generates the hot update file to be pushed corresponding to the game client to be pushed, it is specifically used to: generate an identifier of the hot update file to be pushed according to the hot update function of the hot update file to be pushed.
[0148] In a feasible implementation scheme, the processor 801 is also used to execute: the hot change editing platform generates at least one hot change file to be pushed according to the push demand; and the game server pushes each hot change file to be pushed to the game client to be pushed in sequence according to a preset push sequence.
[0149] In a feasible implementation scheme, when the processor 801 pushes each hot change file to be pushed to the game client in sequence according to a preset push sequence, it is specifically used to: if it is detected that the previous hot change file to be pushed was pushed successfully, determine the current hot change file to be pushed according to the preset push sequence, and push the current hot change file to be pushed to the game client through the game server.
[0150] In a feasible implementation scheme, when the processor 801 performs an audit test on the hot-change file to be pushed, it is specifically used to: if the client currently performing an audit test on the hot-change file to be pushed is a designated client, then an audit test is performed on the hot-change file to be pushed according to the user identifier bound to the designated client.
[0151] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.
[0152] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0153] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0154] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0155] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
Claims
1. A directional heat change method, characterized in that: Applied to a hot-change system, the hot-change system includes: a data exchange platform and a hot-change editing platform, and the method includes: The data exchange platform obtains a directional hot update push request initiated by the hot update editing platform in the intranet, wherein the directional hot update push request includes: an identifier of a game client to be pushed and an identifier of a hot update file to be pushed; The data exchange platform sends a hot update push instruction to the game server according to the directional hot update push request, so that the game server pushes the target hot update file to the target game client in the external network according to the hot update push instruction.
2. The method according to claim 1, characterized in that The method further comprises: The data exchange platform obtains the encrypted client data transmitted back by the target game client through the designated data channel; the client data includes: runtime data of the client, cache data of the client, and configuration data of the client; The data exchange platform sends the encrypted client data to the hot edit platform for storage based on a network security communication protocol.
3. The method according to claim 2, characterized in that Before obtaining the encrypted client data transmitted back by the target game client through the designated data channel, the method includes: The data exchange platform establishes a corresponding relationship between the target game client and the login device and a corresponding relationship between the target game client and the game account.
4. The method according to claim 3, characterized in that The obtaining of the encrypted client data transmitted back by the target game client through the designated data channel includes: According to the correspondence between the target game client and the login device, obtaining the pre-game login data of the login device bound to the target game client; According to the correspondence between the target game client and the game account, the post-game login data of the game account bound to the target game client is obtained.
5. The method according to claim 1, characterized in that Also includes: The data exchange platform sends a server-wide hot update push instruction to the game server according to the identifier of the hot update file to be pushed; So that the game server pushes the target hot update file to all server game clients in the external network according to the all server hot update push instruction.
6. The method according to any one of claims 1 to 5, characterized in that: The method comprises: Based on the hot update editing platform, edit and generate the hot update file to be pushed corresponding to the game client to be pushed; The hot update editing platform performs an audit test on the hot update file to be pushed, and determines whether to push the hot update file to be pushed according to the audit test result; If so, the directed hot update push request is sent to the data exchange platform.
7. The method according to claim 6, characterized in that After the hot update file to be pushed is audited and tested, the method further includes: If the hot-change file to be pushed passes the audit test, the hot-change editing platform will send the hot-change file to be pushed to the game server for storage.
8. The method according to claim 6, characterized in that Also includes: The hot-change editing platform optimizes the generated hot-change file to be pushed according to the client data of the target game client transmitted back to obtain an optimized hot-change file.
9. The method according to claim 6, characterized in that The editing and generating of the hot update file to be pushed corresponding to the game client to be pushed includes: Based on the online editor, the hot update file to be pushed corresponding to the game client to be pushed is edited and generated in a lightweight embeddable scripting language.
10. The method according to claim 6, characterized in that The editing and generating of the hot update file to be pushed corresponding to the game client to be pushed includes: According to the hot update function of the hot update file to be pushed, an identifier of the hot update file to be pushed is generated.
11. The method according to claim 6, characterized in that Also includes: The hot update editing platform generates at least one hot update file to be pushed according to the push demand; The game server pushes each hot update file to be pushed to the game client in sequence according to a preset push sequence.
12. The method according to claim 11, characterized in that The step of sequentially pushing each hot update file to be pushed to the game client to be pushed according to a preset push sequence includes: If it is detected that the previous hot-change file to be pushed is pushed successfully, the current hot-change file to be pushed is determined according to the preset push sequence, and the current hot-change file to be pushed is pushed to the game client through the game server.
13. The method according to claim 6, characterized in that The audit test of the hot update file to be pushed includes: If the client currently performing an audit test on the hot-change file to be pushed is a designated client, an audit test is performed on the hot-change file to be pushed according to the user identifier bound to the designated client.
14. A thermal replacement system, characterized in that: include: Data exchange platform and hot edit platform; The data exchange platform is used to execute the method steps executed by any one of the data exchange platforms in claims 1-13; The hot edit platform is used to execute the method steps executed by any hot edit platform in claims 1-13.
15. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the program instructions to perform the directional hot change method as described in any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the directional hot-change method according to any one of claims 1 to 13 is executed.
