Game data hot update method, device, equipment and storage medium
By integrating plug-ins in Excel software, multiple developers can modify and update data on the game client and server, solving the problem in the existing technology that multiple people cannot update game data online at the same time, improving development and testing efficiency and solving Solve the problems of deadlock and large data volume update.
Patent Information
- Application Number
- CN202110986358.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-08-26
AI Technical Summary
Existing technology cannot enable multiple people to update game data online at the same time, resulting in low efficiency in game development and testing. Deadlock problems are prone to occur when online updates fail, and client updates fail when table data is too large.
Integrate a plug-in in the Excel software of the client of the development device to save and send modified files. The modified data of the client and the server are sent to the game client and server respectively through the terminal device, allowing multiple developers to review game data at the same time. hot update.
It enables multiple developers to hot update game data online at the same time, improves the efficiency of game development and testing, avoids deadlock problems, and can effectively perform hot updates even with large amounts of data.
Smart Images

Figure CN113680073B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method, device, equipment and storage medium for hot updating of game data. Background Art
[0002] With the development of mobile communication technology, it is becoming increasingly popular for users to play online games after study or work, and users are paying more and more attention to the battle rhythm and performance effects in the game. Reasonable numerical performance, comfortable battle rhythm, and perfect effect performance in the game all require repeated modifications of game data. Therefore, for the game development process, it is very necessary to be able to repeatedly modify game data.
[0003] Game data can be divided into program record data and table data filled in by designers. Since table data can be read by the program to achieve the purpose of flexible modification and configuration by designers, the game data that designers and testers usually need to modify refers to the table data filled in by designers. These table data are generally created using data processing software Excel. When there is a need to modify table data, there will be the following problems: 1) Because there are permission restrictions on table operations, when testers need to modify table data, they need to notify designers to modify the table data and upload it; 2) Table data is game data officially used by the game. If the game data used for testing is mistakenly released to the official server, it will have a serious impact; 3) After the table data is modified and uploaded, it is necessary to wait for the development machine to be updated before it will take effect in the game. This process takes a long time and is not conducive to improving the efficiency of game development and testing.
[0004] In the prior art, in order to solve the above problems, relevant test engineers have developed a tool for one person to perform hot data update on the server, but the tool cannot support updating game data when multiple people are online at the same time.
[0005] In summary, although the current tools for updating table data can perform hot update of table data, they cannot enable multiple people to update game data online at the same time.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] The embodiments of the present invention provide a method, device, equipment and storage medium for hot updating of game data, which are used to solve the problem that the tools for updating table data in the prior art cannot realize online updating of game data by multiple people at the same time.
[0008] In a first aspect, an embodiment of the present invention provides a method for hot updating game data, which is applied to a client of a development device, and the method includes:
[0009] Obtaining first game data of the game client and second game data of the game server;
[0010] In response to a plurality of modification instructions for the first game data and the second game data, modify the first game data and the second game data to obtain a modification file, wherein the modification file includes client modification data and server modification data;
[0011] The modified file is sent to the terminal device, wherein the terminal device is used to send the client modification data to the game client, and send the server modification data to the game server.
[0012] In a specific implementation, modifying the first game data and the second game data includes:
[0013] Get a pre-set plug-in, where the plug-in is used to save and send modified files;
[0014] Integrate the plug-in into the data processing software Excel;
[0015] The first game data and the second game data are modified in Excel.
[0016] In a second aspect, an embodiment of the present invention provides a method for hot updating of game data, which is applied to a terminal device, and the method includes:
[0017] Receiving a modification file sent by a client of the development device, wherein the modification file includes client modification data and server modification data;
[0018] Send the client-side modified data to the game client, and send the server-side modified data to the game server;
[0019] The game client is used to hot-update first game data of the game client by modifying data on the client, and the game server is used to hot-update second game data of the game server by modifying data on the server.
[0020] In a specific implementation, sending the client modification data to the game client and sending the server modification data to the game server includes:
[0021] Pre-set table import rules, where the table import rules are used to distinguish client-modified data from server-modified data in the modified file;
[0022] Based on the table guide rules, client-side modified data is sent to the game client, and server-side modified data is sent to the game server.
[0023] In a third aspect, an embodiment of the present invention provides a method for hot updating of game data, which is applied to a game server, and the method includes:
[0024] Receiving server-side modification data sent by the terminal device, wherein the server-side modification data is obtained from a modification file sent by a client of the development device, and the modification file includes the server-side modification data;
[0025] Hot update is performed on the second game data of the game server based on the server modification data.
[0026] In a specific implementation, hot updating the second game data of the game server based on the server modification data includes:
[0027] Load the second game data into the game server memory, and search the target row data in the second game data according to the keyword in the game server memory;
[0028] According to the pre-set data protocol, the target row data is hot updated based on the server-side modified data.
[0029] In a specific embodiment, the method further comprises:
[0030] After receiving the server-side modified data, if the second game data has not been updated, hot-updating the second game data to the server-side modified data;
[0031] The server-side modified data is copied to the update directory file, wherein the update directory file is used to store the server-side modified data updated on the game server.
[0032] In a specific embodiment, the method further comprises:
[0033] After receiving the server-side modified data, if part of the game data in the second game data has been hot-updated, hot-update other game data in the second game data that has not been hot-updated is performed based on the server-side modified data according to the data protocol.
[0034] In a specific implementation, hot updating the second game data of the game server based on the server modification data includes:
[0035] Parsing the modified data on the server side that is undergoing data encapsulation processing to obtain parsed data, wherein the modified data on the server side is encapsulated by the terminal device according to a pre-set data protocol and sent to the game server;
[0036] Hot update is performed on the second game data of the game server based on the parsed data.
[0037] In a specific embodiment, the method further comprises:
[0038] Obtaining a second hot update result of hot updating the second game data;
[0039] Converting the second hot update result into a second hot update status code;
[0040] The second hot update status code is sent to a client of the development device, wherein the client of the development device is used to display the second update status code.
[0041] In a fourth aspect, an embodiment of the present invention provides a method for hot updating game data, which is applied to a game client, and the method includes:
[0042] Receiving client modification data sent by the terminal device, wherein the client modification data is obtained from a modification file sent by the client of the development device, and the modification file includes the client modification data;
[0043] Hot update is performed on the first game data of the game client based on the client modification data.
[0044] In a specific implementation, hot updating the first game data of the game client based on the client modification data includes:
[0045] Call the exec function to execute the Python string and obtain the execution data, wherein the Python string is obtained by the terminal device by converting the data modified by the client into a data format, and is sent by the terminal device to the game client based on the Telnet protocol;
[0046] A hot update interface is called, and the first game data is hot updated based on the execution data.
[0047] In a specific embodiment, the method further comprises:
[0048] Obtaining a first hot update result of hot updating the first game data;
[0049] Converting the first hot update result into a first hot update status code;
[0050] The first hot update status code is sent to a client of the development device, wherein the client of the development device is used to display the first update status code.
[0051] In a fifth aspect, an embodiment of the present invention provides a hot update device for game data, comprising:
[0052] An acquisition module, used to acquire first game data of a game client and second game data of a game server;
[0053] A modification module, configured to modify the first game data and the second game data in response to a modification instruction for the first game data and the second game data, and obtain a modification file, wherein the modification file includes client modification data and server modification data;
[0054] The first sending module is used to send the modified file to the terminal device, wherein the terminal device is used to send the client modification data to the game client, and send the server modification data to the game server.
[0055] In a sixth aspect, an embodiment of the present invention provides a hot update device for game data, comprising:
[0056] A first receiving module is used to receive a modification file sent by a client of the development device, wherein the modification file includes client modification data and server modification data;
[0057] A second sending module is used to send the client modification data to the game client, and send the server modification data to the game server;
[0058] The game client is used to hot-update first game data of the game client by modifying data on the client, and the game server is used to hot-update second game data of the game server by modifying data on the server.
[0059] In a seventh aspect, an embodiment of the present invention provides a hot update device for game data, comprising:
[0060] A second receiving module is used to receive the server modification data sent by the terminal device, wherein the server modification data is obtained from the modification file sent by the client of the development device, and the modification file includes the server modification data;
[0061] The first hot update module is used to hot update the second game data of the game server based on the server modification data.
[0062] In an eighth aspect, an embodiment of the present invention provides a hot update device for game data, comprising:
[0063] A third receiving module is used to receive client modification data sent by the terminal device, wherein the client modification data is obtained from a modification file sent by the client of the development device, and the modification file includes the client modification data;
[0064] The second hot update module is used to hot update the first game data of the game client based on the client modification data.
[0065] In a ninth aspect, an embodiment of the present invention provides a hot update system for game data, including:
[0066] A client of a development device, used to execute the hot update method of game data of the first aspect;
[0067] A terminal device, used to execute the hot update method of game data of the second aspect;
[0068] A game server, used to execute the hot update method of game data of the third aspect;
[0069] A game client, used to execute the hot update method of game data of the fourth aspect.
[0070] In a tenth aspect, an embodiment of the present invention provides a terminal device, including:
[0071] Processor, memory, display;
[0072] The memory is used to store programs and data, and the processor calls the program stored in the memory to execute the hot update method for game data in any one of the first aspect to the fourth aspect.
[0073] In an eleventh aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the hot update method for game data of any one of the first to fourth aspects.
[0074] In a twelfth aspect, an embodiment of the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements the hot update method of game data of any one of the first to fourth aspects.
[0075] The hot update method, device, equipment and storage medium of game data provided by the embodiments of the present invention obtain the first game data of the game client and the second game data of the game server through the client of the development device, and respond to the modification instructions for the first game data and the second game data through the client of the development device to modify the first game data and the second game data to obtain the modification file, and then send the modification file to the terminal device through the client of the development device, and then the terminal device sends the client modification data to the game client, and the game client performs hot update on the first game data through the client modification data, and at the same time, the terminal device sends the server modification data to the game server, and the game server performs hot update on the second game data through the server modification data, which solves the technical problem in the prior art that only one R&D personnel can perform hot update on game data at the same time, and achieves the technical effect that multiple R&D personnel can perform online update on game data at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0077] Figure 1 A schematic diagram of an application scenario of the hot update method of game data provided by an embodiment of the present invention;
[0078] Figure 2 A schematic diagram of the architecture of a hot update system for game data provided by an embodiment of the present invention;
[0079] Figure 3 A flowchart of a first embodiment of a method for hot updating of game data provided by an embodiment of the present invention;
[0080] Figure 4 A flowchart of a second embodiment of a method for hot updating game data provided by an embodiment of the present invention;
[0081] Figure 5 A flowchart of a third embodiment of a method for hot updating game data provided by an embodiment of the present invention;
[0082] Figure 6 A flowchart of a fourth embodiment of a method for hot updating game data provided by an embodiment of the present invention;
[0083] Figure 7 A schematic diagram of uploading a CSV file provided in an embodiment of the present invention;
[0084] Figure 8 A schematic diagram of a game server list provided in an embodiment of the present invention;
[0085] Fig. 9 A flowchart of a first embodiment of hot updating of game data on a game server provided by an embodiment of the present invention;
[0086] Fig.10 A flowchart of a second embodiment of hot updating of game data on a game server provided by an embodiment of the present invention;
[0087] Fig.11 A flowchart of a third embodiment of hot updating of game data on a game server provided by an embodiment of the present invention;
[0088] Fig.12 A flowchart of a fourth embodiment of hot updating of game data on a game server provided by an embodiment of the present invention;
[0089] Fig.13A flowchart of a first embodiment of a hot update device for game data provided by an embodiment of the present invention;
[0090] Fig.14 A flowchart of a second embodiment of a hot update device for game data provided by an embodiment of the present invention;
[0091] Fig.15 A flowchart of a third embodiment of a hot update device for game data provided by an embodiment of the present invention;
[0092] Fig.16 A flowchart of a fourth embodiment of a hot update device for game data provided by an embodiment of the present invention;
[0093] Fig.17 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0094] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all the embodiments. Based on the embodiment of the present invention, all other embodiments made by ordinary technicians in this field under the enlightenment of this embodiment belong to the scope of protection of the present invention.
[0095] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0096] The prior art provided in the background technology has the following technical problems:
[0097] 1) It cannot support multiple people updating table data online at the same time. The latest update on the same server will invalidate all previous updates.
[0098] 2) If a deadlock problem occurs when an online update fails, the deadlock problem needs to be manually handled each time.
[0099] 3) When the table data is too large, the client will fail to update the table data, resulting in many tables being unable to be hot updated.
[0100] In view of the above problems, the present invention proposes a hot update method for game data, which integrates a plug-in for saving and sending modified files in the Excel software of the client of the development device, so that multiple developers can modify the data of the game client and the game server in the Excel software at the same time, and the terminal device sends the client modified data and the server modified data in the modified file of the developer to the game client and the game server respectively, and the game client and the game server respectively perform hot update of the data, thereby realizing multiple developers to hot update the game data online at the same time. The terms involved in the present invention are first explained below.
[0101] Hot update: An update method that allows developers to fix bugs and release features without releasing a new version by dynamically issuing code.
[0102] The core idea of the hot update method of game data provided by the present invention is to integrate a plug-in for saving and sending modified files in the Excel software of the client of the development device, so that multiple researchers can modify the game data in the Excel file at the same time. After saving the modified files, the terminal device sends the client modified files and the server modified files in the modified files to the game client and the game server respectively. The game client and the game server perform hot update of data through the modified data sent by the terminal device, thereby overcoming the problem that the above-mentioned background technology cannot realize hot update of game data by multiple people online at the same time.
[0103] Figure 1 A schematic diagram of an application scenario of the hot update method of game data provided by an embodiment of the present invention is shown as follows: Figure 1 As shown, in this scenario, the client of the development device obtains the first game data of the game client and the second game data of the game server, and saves them as an Excel file. After multiple researchers modify the first game data and the second game data in the Excel file, a modified file is obtained. The client of the development device sends the modified file to the terminal device, and the terminal device distinguishes the client-modified data and the server-modified data in the modified file, and sends the client-modified data to the game client and the server-modified data to the game server. The game client performs a hot update on the first game data through the client-modified data, and the game server performs a hot update on the second game data through the server-modified data, so as to enable multiple R&D personnel to hot update game data online at the same time.
[0104] based on Figure 1In the scenario shown, in this solution, the client of the development device is mainly used to obtain the data of the game client and the game server before the data is hot updated, and supports the integration of a plug-in for saving and sending modified files in the Excel software, and supports multiple R&D personnel to modify the data of the game client and the game server before the data is hot updated in the Excel software to obtain the modified files; the terminal device is mainly used to receive the modified files sent by the client of the development device, and distinguish the client modified files and the server modified files in the modified files, and send the client modified files to the game client and the server modified files to the game server; the game server is mainly used to perform hot update on the data before the data hot update according to the server modified data after receiving the server modified data sent by the terminal device; the game client is mainly used to perform hot update on the data before the data hot update according to the client modified data after receiving the client modified data sent by the terminal device.
[0105] In combination with the above scenarios, the technical solution of the hot update method of game data provided by the present invention is described in detail below through several specific embodiments.
[0106] Figure 2 A schematic diagram of the architecture of a hot update system for game data provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the hot update system of the game data needs to include at least:
[0107] The client of the development device includes at least a plug-in save CSV file module and a plug-in upload CSV file module, wherein the plug-in save CSV file module is mainly used to convert the file format of the modified file from Excel file format to CSV file format; the plug-in upload CSV file module is mainly used to upload the modified file in CSV format to the terminal device.
[0108] In this solution, since the game update needs to be completed quickly, and the program code reads a CSV file much faster than reading an Excel file, especially large files, the larger the amount of data, the greater the difference in reading speed. Therefore, after the game data is modified, the Excel file will be saved as a CSV file. For example, after the planner or tester modifies the corresponding value, the sub-sheet of the Excel table will be saved as a CSV file named with the sheet name.
[0109] In the above scheme, when there are multiple modified files in CSV format, the plugin upload CSV file module will upload the modified files in the order of their save time. Figure 7 A schematic diagram of uploading a CSV file provided in an embodiment of the present invention is shown in FIG. Figure 7As shown, before using the plug-in to upload the CSV file, you can also choose to save the original Excel file (the file format of the Excel file is an xls file). The plug-in upload CSV file module is an Excel add-in plug-in implemented based on the VSTO toolkit, an extended function of office software. It mainly implements visual operations in the graphical user interface (Graphical User Interface, referred to as: GUI) to upload files in CSV format.
[0110] The terminal device at least includes a table import module and a client connection module, wherein the table import module is mainly used to send the client modification data in the modification file to the game client, and send the server modification data in the modification file to the game server; the client connection module is mainly used to establish a communication connection between the terminal device and the game client.
[0111] In this solution, since the game client is not always in a connected state, when the game client is disconnected, the table import module in the terminal device can obtain the modification file, but cannot send the client modification data in the modification file to the game client. It can only send the server modification data in the modification file to the game server. Therefore, in order to avoid consumption of the game server, the game client needs to be connected to the terminal device through the client connection module to ensure that the table import module can successfully send all the client modification data and server modification data in the modification file, thereby ensuring the effectiveness of the table import module.
[0112] At least one game server, the game server at least includes a server update module, the server update module is mainly used to hot update the second game data of the game server after the game server receives the server modification data sent by the terminal device.
[0113] In this solution, there will be many servers during the game running. Figure 8 A schematic diagram of a game server list provided in an embodiment of the present invention, such as Figure 8 As shown, when updating the game data, a target game server can be selected to update the second game data in the target game server.
[0114] The game client at least includes a client update module, and the client update module is mainly used to hot update the first game data of the game client after the game client receives the client modification data sent by the terminal device.
[0115] Figure 3 Flow chart of Embodiment 1 of the hot update method for game data provided by the embodiment of the present invention, as shown in FIG. Figure 3As shown, the hot update method of the game data includes the following steps:
[0116] S301: Acquire first game data from a game client and second game data from a game server.
[0117] In this step, the first game data is the data in the game client before the data hot update processing is performed, and the second game data is the data in the game server before the data hot update processing is performed. The client of the development device can obtain the first game data of the game client and the second game data of the game server, and save them as an Excel file, so that the R&D personnel can modify the data in the client of the development device.
[0118] In this solution, the first game data and the second game data may be saved in the same excel file.
[0119] S302: In response to the modification instruction for the first game data and the second game data, modify the first game data and the second game data to obtain a modified file.
[0120] In this step, when the R&D personnel need to modify the first game data and / or the second game data, they can open the excel file storing the first game data and the second game data in the client of the development device and issue a modification instruction. After responding to the modification instructions of multiple R&D personnel, the client of the development device modifies the first game data and the second game data to obtain a modification file, which includes client modification data and server modification data, wherein the client modification data is the data after the first game data of the game client is modified, and the server modification data is the data after the second game data of the game server is modified.
[0121] In the above solution, multiple developers can modify the game data at any time, so the number of modified files can be more than one.
[0122] S303: Send the modified file to the terminal device.
[0123] In this step, before sending the modified file to the terminal device, the client of the development device can convert the file format of the modified file from an Excel file to a CSV file, and then send the modified file in the CSV file format to the terminal device. After receiving the modified file, the terminal device can send the client-side modified data to the game client, and send the server-side modified data to the game server.
[0124] In a specific implementation, modifying the first game data and the second game data includes: obtaining a pre-set plug-in; integrating the plug-in into data processing software Excel; and modifying the first game data and the second game data in Excel.
[0125] In this solution, the plug-in can be used to save and send modified files. By obtaining a pre-set installation package of the plug-in, after downloading the installation package, the plug-in is integrated into the Excel software of the client of the development device. In this way, when multiple R&D personnel need to modify the game data, they can modify the first game data and the second game data in Excel integrated with the plug-in, thereby obtaining the modified file.
[0126] The hot update method of game data provided in this embodiment obtains the first game data of the game client and the second game data of the game server through the client of the development device, and responds to the modification instructions of multiple developers on the first game data and the second game data through the client of the development device, modifies the first game data and the second game data to obtain the modified file, and then sends the modified file to the terminal device through the client of the development device, and the terminal device sends the client-side modified data to the game client, and sends the server-side modified data to the game server, thereby realizing the hot update of game data by the game client and the game server, and achieving the purpose of multiple developers performing online update of game data at the same time.
[0127] Figure 4 This is a flow chart of Embodiment 2 of the hot update method for game data provided by the embodiment of the present invention, as shown in FIG. Figure 4 As shown, the hot update method of the game data includes the following steps:
[0128] S401: Receive a modified file sent by a client of a development device.
[0129] In this step, the modification file received by the terminal device includes the client modification data and the server modification data.
[0130] S402: Send the client-side modified data to the game client, and send the server-side modified data to the game server.
[0131] In this step, since the modification file includes both client modification data and server modification data, and the client modification data and the server modification data are saved in one file at the same time, it is necessary to separate the client modification data and the server modification data in the modification file, and then the terminal device sends them separately, sending the client modification data to the game client and sending the server modification data to the game server.
[0132] In this solution, after receiving the client modification data sent by the terminal device, the game client can hot update the first game data of the game client through the client modification data. After receiving the server modification data sent by the terminal device, the game server can hot update the second game data of the game server through the server modification data.
[0133] In the above scheme, when the terminal device sends the client modification data to the game client, since the game client is not always in a connected state, when the game client is in a disconnected state, the terminal device may fail to send the client modification data. At this time, the terminal device can continue to send the server modification data to the game server, resulting in memory consumption of the game server. In order to avoid excessive consumption of the game server, a client connection module can be set in the terminal device to communicate with the game client, so that when the game client is in a disconnected state, the terminal device can continue to send the client modification data to the game client.
[0134] In a specific implementation, the client-side modified data is sent to the game client, and the server-side modified data is sent to the game server, including: pre-setting a table guide rule, wherein the table guide rule is used to distinguish between the client-side modified data and the server-side modified data in the modified file; based on the table guide rule, the client-side modified data is sent to the game client, and the server-side modified data is sent to the game server.
[0135] In this solution, since the modification file includes both client modification data and server modification data, the terminal device needs to distinguish the client modification data and the server modification data in the modification file after receiving the modification file. Therefore, a table export module can be set in the terminal device, and the client modification data and the server modification data in the modification file can be exported to different files respectively through the table export module, so that the terminal device can send the client modification data to the game client and send the server modification data to the game server.
[0136] In the above scheme, corresponding table guide rules, correctness check rules, etc. can be pre-set for the modified file. The table guide rules can enable the table guide module to distinguish the client-side modified data and the server-side modified data in the modified file. The correctness check rules can enable the table guide module to check the distinguished client-side modified data and the server-side modified data to avoid incorrect distinction between the client-side modified data and the server-side modified data. In addition, the table guide module is also provided with a function of outputting a table guide file. After distinguishing the client-side modified data and the server-side modified data, the table guide module can export the client-side modified data and the server-side modified data to different files respectively.
[0137] In the above solution, the table import rules and correctness check rules are written in the same rule file. If the rule file is not modified, all modified files in CSV format will be exported. This process is long and consumes both time and server resources. In fact, some modified files may not need to be exported. Therefore, unnecessary rules in the rule file can be deleted. The rule file obtained after deletion can ensure that only the modified files that need to be updated are exported.
[0138] The hot update method for game data provided in this embodiment is that after the terminal device receives the modification file sent by the client of the development device, it distinguishes the client modification data and the server modification data in the modification file, and the terminal device sends the client modification data to the game client and sends the server modification data to the game server, thereby realizing the hot update of game data by the game client and the game server, achieving the purpose of multiple R&D personnel performing online update of game data at the same time.
[0139] Figure 5 Flow chart of Embodiment 3 of the hot update method for game data provided by the embodiment of the present invention, as shown in FIG. Figure 5 As shown, the hot update method of the game data includes the following steps:
[0140] S501: Receive server modification data sent by the terminal device.
[0141] In this step, the server modification data is obtained from the modification file sent by the client of the development device, and the modification file includes the server modification data. After the terminal device sends the server modification data, the game server receives the server modification data.
[0142] S502: Hot-update the second game data on the game server based on the server modification data.
[0143] In this step, since the server-side modified data is obtained by multiple R&D personnel changing the second game data, after receiving the server-side modified data, the game server can use the server-side modified data to overwrite the second game data, thereby realizing hot update of the second game data by the game server.
[0144] In a specific implementation, the second game data on the game server is hot updated based on the server-side modified data, including: loading the second game data into the game server-side memory, and searching for target row data in the second game data in the game server-side memory according to keywords; according to a pre-set data protocol, hot updating the target row data based on the server-side modified data.
[0145] In this solution, when hot updating the second game data, the hot update of the row data can be performed in units of rows, the target row data in the second game data is searched by a keyword (key), and then the corresponding content in the modified data on the server is overwritten in the target row to complete the hot update of the target row data. In this way, when the amount of data in the table is large, the purpose of hot updating the table with a large amount of data can also be achieved. Since the data processing of hot updating game data when multiple people are online at the same time is more complicated, a data protocol can be pre-set, and the data protocol can be shown in Table 1. After updating the second game data through the data protocol, the content format of the update file can be shown in Table 2.
[0146] Table 1 Data protocol rules table
[0147]
[0148] Table 2 Update file content format
[0149]
[0150] In a specific implementation, the method also includes: after receiving the server-side modified data, if the second game data has not been updated, hot updating the second game data to the server-side modified data; copying the server-side modified data to an update directory file, wherein the update directory file is used to store the server-side modified data updated on the game server.
[0151] In this solution, before the game server receives the current server-side modified data, the second game data may have been hot-updated by the game server based on the server-side modified data in the modified file received last time. Therefore, before hot-updating the current second game data, the game server can detect the second game data to determine whether the current second game data has been updated. If the second game data has not been updated, the server-side modified data is used to overwrite the second game data to achieve hot update of the second game data. After hot-updating the second game data, a copy of the server-side modified data used to update the second game data is saved in the update directory file to ensure the consistency of the files and modified files in the game server, and also provide a guarantee for detecting whether the second game data has been updated.
[0152] In the above scheme, assuming that the file name in the received server-side modified data is file and the version number is 100, it can be determined whether the file has been updated under the version number. If not, the file is updated to the latest version and renamed to the file name_version number (file_100) format, and a copy is copied to the update directory to ensure the consistency of the game server and the data file. The file content format is roughly as shown in Table 2 above. The content modification in the data dictionary data is an important step in the hot update of game data on the game server. The value value of the corresponding row data in the file can be found by the key in a regular way, and processed according to the rules of the data protocol shown in Table 1. For example, the game data in delete can be deleted, the game data in update can be modified, and the game data in add can be directly added.
[0153] In the above scheme, when the game data is updated repeatedly or multiple people update the game data at the same time, multiple people can modify the game data in the same file at the same time by modifying the row through the key. As long as the key is different, the modification of the game data will not have any impact, thereby effectively solving the problem in the prior art that when the entire file is updated, only one person can perform hot update of the game data at the same time, and the content updated by other R&D personnel or the content updated by oneself before will not be overwritten.
[0154] In a specific implementation, the method further includes: after receiving the server-side modified data, if part of the game data in the second game data has been hot updated, hot updating other game data in the second game data that has not been hot updated based on the server-side modified data according to the data protocol.
[0155] The following is an illustration of the above two specific implementation methods.
[0156] For example, take the data file name of the second game data as file and the version number as 100. Fig. 9 The flowchart of the first embodiment of the hot update of game data on the game server provided by the embodiment of the present invention is as follows: Fig. 9 As shown, the game data hot update method includes the following steps:
[0157] S901: Determine whether the file file_100 exists.
[0158] In this step, file_100 indicates that the data file in the document is named file and the version number is 100. If the file file_100 does not exist, the process jumps to S902; if the file file_100 exists, the process jumps to S903.
[0159] S902: Update the file file to version 100 and copy it to the update directory.
[0160] In this step, since the version control system (subversion, referred to as: SVN) is used to manage the server version information in the CSV file, the version information also changes with time. When the file file_100 does not exist, the version of the file file can be updated to version 100 through SVN, and then the updated file is renamed to the format of file name_version number (file_100), copied to the update directory, and then continue to execute step S903.
[0161] S903: Search for the corresponding row data in file file_100 by key, and add, delete, or modify the row data according to the data protocol.
[0162] S904: Determine whether all rows of data in file file_100 have been processed.
[0163] In this step, if all the row data in file file_100 are processed, the data hot update process of the game server is terminated. If all the row data in file file_100 are not processed, it returns to S903 to continue processing the row data in file file_100.
[0164] In the above scheme, when modifying the content in the data dictionary data, because the value format in data is not fixed, for example, the value format can be a number, a string, a list, a tuple, a dictionary, a set, etc., it is not possible to directly obtain a regular match replacement by replacing the string. At this time, the entire data can be loaded into the game server memory. In the game server memory, the data exists in the form of a dictionary, so that the corresponding row can be directly found through the key to implement the addition, deletion, and modification operations. After processing the data, the data in the game server memory is combined into a new data string according to the original string format, and the entire data in the update file is replaced, thereby realizing the modification of the content in the data dictionary data.
[0165] For example, Fig.10 This is a flowchart of a second embodiment of hot updating of game data on a game server provided by an embodiment of the present invention, such as Fig.10 As shown, the game data hot update method includes the following steps:
[0166] S1001: Load the data dictionary data into the game server memory;
[0167] S1002: adding, deleting, or modifying data in the game server memory;
[0168] S1003: Convert the processed data format into a string in the game server memory;
[0169] S1004: Use a character string to replace data in the update file.
[0170] In a specific implementation, when multiple developers perform hot updates of game data at the same time, it can be divided into the following situations:
[0171] 1) Multiple developers update different CSV files at the same time: In this case, there is no conflict in the update of game data between different developers. The operation of each node in the update process is independent, and the update is performed asynchronously.
[0172] 2) Multiple R&D personnel update different rows in the same CSV file at the same time: In this case, in the hot update of the whole table in the prior art, the later hot update operation will overwrite the previous hot update operation, while for the technical solution of the present invention, performing a single-row hot update operation in the same table will avoid the problems of the hot update operation of the whole table in the prior art. In the technical solution of the present invention, multiple R&D personnel update the strings of different rows in the same CSV file at the same time. When performing the operations at the same time, the hot update operations of different rows will enter the update queue of the same table, wait for the previous hot update operation to be completed, and then continue to implement the hot update of the whole table according to the queue.
[0173] 3) Multiple developers update the same row in the same CSV file at the same time: In this case, the modified row data may affect each other. If different developers update different column data, conflicts between the data may lead to unpredictable consequences after the hot update operation, thereby failing to achieve the purpose of hot updating the game data. Therefore, in this case, it is necessary to terminate the hot update operation first, and at the same time feedback the reason for terminating the hot update operation, and notify the developer whose hot update operation is terminated after the previous developer completes the hot update operation.
[0174] Fig.11 The flowchart of the third embodiment of the hot update of game data on the game server provided by the embodiment of the present invention is as follows: Fig.11 As shown, the game data hot update method includes the following steps:
[0175] S1101: Manage the hot update process of multiple R&D personnel;
[0176] S1102: Determine whether multiple R&D personnel update the same CSV file at the same time;
[0177] In this step, if multiple developers update the same CSV file at the same time, jump to S1104; if multiple developers update different CSV files at the same time, jump to S1103.
[0178] S1103: Asynchronously update different CSV files by multiple developers simultaneously;
[0179] S1104: Determine whether multiple R&D personnel update the same row of the same CSV file at the same time;
[0180] In this step, if multiple developers update the same row of the same CSV file at the same time, jump to S1106; if multiple developers update different rows of the same CSV file at the same time, jump to S1105.
[0181] S1105: Hot update operations of different rows enter the update queue and wait for hot update;
[0182] S1106: Terminate the hot update operation and provide feedback on the termination reason.
[0183] In a specific implementation, the second game data of the game server is hot updated based on the server-side modified data, including: parsing the server-side modified data that has been subjected to data encapsulation processing to obtain parsed data, wherein the server-side modified data is subjected to data encapsulation processing by the terminal device according to a pre-set data protocol and sent to the game server; hot updating the second game data of the game server based on the parsed data.
[0184] In this solution, since the server-side modified data includes added game data, modified game data, and deleted game data, if the server-side modified data is not encapsulated, the terminal device needs to send the added game data, modified game data, and deleted game data separately when sending the server-side modified data, which will greatly reduce the efficiency of the game server in hot updating of game data. Therefore, before sending the server-side modified data to the game server, the terminal device can first encapsulate the server-side modified data according to the data protocol shown in Table 1 above, so that the terminal device can send the server-side modified data to the game server at one time. After receiving the server-side modified data sent by the terminal device and processed by data encapsulation, the game server first parses the server-side modified data, and the obtained parsed data is the added game data, modified game data, and deleted game data included in the server-side modified data, and then hot updates the second game data of the game server according to the parsed data.
[0185] Fig.12 This is a flowchart of a fourth embodiment of hot updating of game data on a game server provided by an embodiment of the present invention, such as Fig.12As shown, the game data hot update method includes the following steps:
[0186] S1201: The terminal device obtains the modified data of the server;
[0187] S1202: The terminal device performs data encapsulation processing on the data modified by the server according to the data protocol;
[0188] S1203: The terminal device sends the modified data of the server after data encapsulation to the game server;
[0189] S1204: The game server performs data analysis on the server-side modified data after data encapsulation to obtain analyzed data;
[0190] S1205: The game server performs hot update processing of the game data according to the parsed data;
[0191] S1206: The game server performs hot update processing on the game data;
[0192] S1207: Return the hot update result.
[0193] In a specific implementation, the method also includes: obtaining a second hot update result of hot updating the second game data; converting the second hot update result into a second hot update status code; and sending the second hot update status code to a client of the development device, wherein the client of the development device is used to display the second update status code.
[0194] In this solution, after completing the hot update of the second game data, the game server can send a second hot update result to the client of the development device according to the completion status of the hot update of the second game data, and convert the second hot update result into a second hot update status code to display the second update status code in the client of the development device, thereby pushing the second hot update status code to multiple R&D personnel so that the R&D personnel can determine the hot update status of the second game data.
[0195] In the above scheme, since there are always many unknown errors in the execution process of the program, this is almost unavoidable, and can only be achieved through continuous optimization and improvement to minimize the occurrence of errors. Therefore, the second hot update result includes not only the hot update success result, but also the hot update failure result. If an execution error occurs during the hot update process of the entire second game data, the detailed information of the error can be pushed to the client of the development device, and then the corresponding status code is returned to the Excel plug-in to prompt the R&D personnel. The second hot update status code and the corresponding information of the status code are shown in Table 3:
[0196] Table 3 Status code and status code corresponding information table
[0197] Status Code Status code corresponding message 1 Import table failed 2 Failed to connect to client 3 Server update failed 4 Client update failed 5 Failed to upload file 6 Hot update successful
[0198] Figure 6 Flow chart of Embodiment 4 of the hot update method for game data provided by the embodiment of the present invention, as shown in FIG. Figure 6 As shown, the hot update method of the game data includes the following steps:
[0199] S601: receiving client modification data sent by a terminal device.
[0200] In this step, the client modification data is obtained from the modification file sent by the client of the development device, and the modification file includes the client modification data. After the terminal device sends the client modification data, the game client receives the client modification data.
[0201] S602: Hot-update the first game data of the game client based on the client modification data.
[0202] In this step, since the client modification data is obtained by multiple R&D personnel modifying the first game data, after receiving the client modification data, the game client can directly call the hot update interface to implement hot update of the first game data by the game client.
[0203] In a specific implementation, the first game data of the game client is hot updated based on the client modification data, including: calling the exec function to execute a Python string to obtain execution data, wherein the Python string is obtained by a terminal device performing data format conversion on the client modification data, and is sent to the game client by the terminal device based on the Telnet protocol; calling a hot update interface, and hot updating the first game data based on the execution data.
[0204] In this solution, since the game client and the terminal device have been connected in the client connection module of the terminal device, before the game client receives the client modification data, the terminal device can convert the data format of the client modification data into a string executable by the Python language through the table guide module, and then send the converted client modification data (that is, the string executable by the Python language) to the game client through the Telnet protocol. The game client executes the Python string by calling the built-in function exec function to obtain the execution data, and then calls the hotfix_update interface to perform update operations such as adding, modifying or deleting a single line of game data through the execution data. The above method of updating a single line of game data is repeated until the first game data is completely updated, and the entire hot update operation of the game client on the first game data is completed.
[0205] In the above scheme, the game client executes the Python string by calling the built-in function exec to obtain the execution data, which can be implemented according to the pseudo code of the following example:
[0206] data="code_from_telnet="data="{key1:value1,key2:value2}\""
[0207] exec(code_from_telnet)
[0208] In the above scheme, since the first game data is updated in the game client, only the added and modified game data are updated. Therefore, when hot updating a large table including hundreds of thousands of rows, compared with the technical scheme of hot updating of game data by a single person in the prior art, the hot update speed of the technical scheme provided by the present invention is faster and the success rate is higher.
[0209] In a specific implementation, the method also includes: obtaining a first hot update result of hot updating the first game data; converting the first hot update result into a first hot update status code; and sending the first hot update status code to a client of the development device, wherein the client of the development device is used to display the first update status code.
[0210] In this solution, since there are always many unknown errors in the execution process of the program, this is almost unavoidable, and can only be achieved through continuous optimization and improvement to minimize the occurrence of errors. Therefore, the first hot update result includes not only the hot update success result, but also the hot update failure result. If an execution error occurs during the hot update process of the entire first game data, the detailed information of the error can be pushed to the client of the development device to display the first update status code in the client of the development device, and then return the corresponding status code to the Excel plug-in end to prompt the R&D personnel. The first hot update status code and the corresponding information of the status code are also shown in Table 3 above.
[0211] The hot update method of game data provided in this embodiment obtains the first game data of the game client and the second game data of the game server through the client of the development device, and modifies the first game data and the second game data through the client of the development device in response to the modification instructions of multiple R&D personnel on the first game data and the second game data to obtain the modified file, and then sends the modified file to the terminal device through the client of the development device, and then the terminal device sends the client modified data to the game client, and the game client performs hot update on the first game data through the client modified data, and at the same time, the terminal device sends the server modified data to the game server, and the game server performs hot update on the second game data through the server modified data, which can bring at least the following technical effects:
[0212] 1) It provides a convenient debugging environment, effectively improving the development efficiency and quality of systems where multiple people can update game data online at the same time;
[0213] 2) Provides an environment for R&D personnel to use multiple sets of test data to comprehensively test the program structure, thereby increasing the test case coverage and improving the test quality;
[0214] 3) Support collaboration among multiple R&D personnel. Table data modified by multiple R&D personnel can take effect, thus improving the overall efficiency of product development;
[0215] 4) The form data modified online will not be saved, which will not affect the official form values in the official server and will not cause product defects;
[0216] 5) Modify the hot update mechanism of tables so that all tables can be hot updated using the tool.
[0217] Generally speaking, the technical solution provided by the present invention is a technical implementation method that can effectively ensure that multiple people can simultaneously perform online hot update of game data or table data.
[0218] Fig.13 This is a flow chart of a first embodiment of a hot update device for game data provided by an embodiment of the present invention, as shown in FIG. Fig.13 As shown, the hot update device 1300 of the game data includes:
[0219] An acquisition module 1301 is used to acquire first game data of a game client and second game data of a game server;
[0220] A modification module 1302, configured to modify the first game data and the second game data in response to a modification instruction for the first game data and the second game data, and obtain a modification file, wherein the modification file includes client modification data and server modification data;
[0221] The first sending module 1303 is used to send the modified file to the terminal device, wherein the terminal device is used to send the client modification data to the game client, and send the server modification data to the game server.
[0222] Optionally, the modification module 1302 is further used to obtain a pre-set plug-in, wherein the plug-in is used to save and send the modification file; integrate the plug-in into the data processing software Excel; and modify the first game data and the second game data in Excel.
[0223] The hot update device for game data provided in this embodiment is used to execute the technical solution of the client of the development device in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0224] Fig.14 This is a flow chart of Embodiment 2 of the hot update device for game data provided by the embodiment of the present invention, as shown in FIG. Fig.14 As shown, the hot update device 1400 of the game data includes:
[0225] The first receiving module 1401 is used to receive a modification file sent by a client of a development device, wherein the modification file includes client modification data and server modification data;
[0226] The second sending module 1402 is used to send the client modification data to the game client, and send the server modification data to the game server;
[0227] The game client is used to hot-update first game data of the game client by modifying data on the client, and the game server is used to hot-update second game data of the game server by modifying data on the server.
[0228] Optionally, the second sending module 1402 is also used to pre-set table guide rules, wherein the table guide rules are used to distinguish between client-modified data and server-modified data in the modified file; based on the table guide rules, the client-modified data is sent to the game client, and the server-modified data is sent to the game server.
[0229] The hot update device for game data provided in this embodiment is used to execute the technical solution of the terminal device in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0230] Fig.15 This is a flow chart of Embodiment 3 of the hot update device for game data provided by the embodiment of the present invention, as shown in FIG. Fig.15 As shown, the hot update device 1500 of the game data includes:
[0231] The second receiving module 1501 is used to receive the server modification data sent by the terminal device, wherein the server modification data is obtained from the modification file sent by the client of the development device, and the modification file includes the server modification data;
[0232] The first hot update module 1502 is used to hot update the second game data of the game server based on the server modification data.
[0233] Optionally, the first hot update module 1502 is also used to load the second game data into the game server memory, and search for target row data in the second game data in the game server memory according to keywords; according to a pre-set data protocol, hot update the target row data based on the server-side modified data.
[0234] Optionally, the device is also used to, after receiving the server-side modified data, if the second game data has not been updated, hot update the second game data to the server-side modified data; copy the server-side modified data to an update directory file, wherein the update directory file is used to store the server-side modified data updated on the game server.
[0235] Optionally, the device is also used to, after receiving the server-side modified data, if part of the game data in the second game data has been hot updated, hot update other game data in the second game data that has not been hot updated based on the server-side modified data according to the data protocol.
[0236] Optionally, the first hot update module 1502 is also used to parse the server-side modified data that is undergoing data encapsulation processing to obtain parsed data, wherein the server-side modified data is encapsulated by the terminal device according to a pre-set data protocol and sent to the game server; and the second game data of the game server is hot updated based on the parsed data.
[0237] Optionally, the device is also used to obtain a second hot update result of hot updating the second game data; convert the second hot update result into a second hot update status code; and send the second hot update status code to a client of the development device, wherein the client of the development device is used to display the second update status code.
[0238] The hot update device for game data provided in this embodiment is used to execute the technical solution of the game server in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0239] Fig.16 This is a flow chart of a fourth embodiment of a hot update device for game data provided by an embodiment of the present invention, as shown in FIG. Fig.16 As shown, the hot update device 1600 of the game data includes:
[0240] The third receiving module 1601 is used to receive the client modification data sent by the terminal device, wherein the client modification data is obtained from the modification file sent by the client of the development device, and the modification file includes the client modification data;
[0241] The second hot update module 1602 is used to hot update the first game data of the game client based on the client modification data.
[0242] Optionally, the second hot update module 1602 is also used to call the exec function to execute the Python string to obtain execution data, wherein the Python string is obtained by the terminal device converting the client modification data into a data format, and is sent to the game client by the terminal device based on the Telnet protocol; calling the hot update interface, and hot updating the first game data based on the execution data.
[0243] Optionally, the device is also used to obtain a first hot update result of hot updating the first game data; convert the first hot update result into a first hot update status code; and send the first hot update status code to a client of the development device, wherein the client of the development device is used to display the first update status code.
[0244] The hot update device for game data provided in this embodiment is used to execute the technical solution of the game client in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0245] The embodiment of the present application also provides a hot update system for game data, including: a client of a development device, used to implement the technical solution of the client of the development device provided in the aforementioned method embodiment; a terminal device, used to implement the technical solution of the terminal device provided in the aforementioned method embodiment; a game server, used to implement the technical solution of the game server provided in the aforementioned method embodiment; and a game client, used to implement the technical solution of the game client provided in the aforementioned method embodiment.
[0246] The hot update system for game data provided in this embodiment is used to execute the technical solutions of the client, terminal device, game server and game client of the development device in the aforementioned method embodiment. Its implementation principles and technical effects are similar and will not be repeated here.
[0247] Fig.17 A schematic diagram of the structure of a terminal device provided in an embodiment of the present invention is shown in FIG. Fig.17 As shown, the terminal device 1700 includes:
[0248] Processor 1701, memory 1702, display 1703;
[0249] The memory 1702 is used to store programs and data. The processor 1701 calls the program stored in the memory to execute the technical solution of the hot update method of game data provided by any of the aforementioned method embodiments. The implementation principle and technical effect are similar and will not be repeated here.
[0250] In the above terminal device, the memory and the processor are electrically connected directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory stores computer-executable instructions for implementing the data access control method, including at least one software function module that can be stored in the memory in the form of software or firmware. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory.
[0251] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory is used to store programs, and the processor executes the programs after receiving the execution instructions. Furthermore, the software programs and modules in the above-mentioned memory may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
[0252] The processor may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0253] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is used to implement the technical solution of the hot update method of game data provided by any of the aforementioned method embodiments.
[0254] The present application also provides a computer program product, including: a computer program, which, when executed by a processor, is used to implement the technical solution of the hot update method for game data provided by any of the aforementioned method embodiments.
[0255] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0256] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A hot update method for game data, It is characterized in that Applied to a client of a development device, the method comprises: Obtaining first game data of the game client and second game data of the game server; In response to a plurality of modification instructions for the first game data and the second game data, modify the first game data and the second game data to obtain a modification file, wherein the modification file includes client modification data and server modification data; Sending the modified file to a terminal device, wherein the terminal device is used to send the client modification data to a game client, and send the server modification data to a game server; Among them, the client of the development device includes at least a plug-in saving CSV file module and a plug-in uploading CSV file module. The plug-in saving CSV file module is used to convert the file format of the modified file from Excel file format to CSV file format, and the plug-in uploading CSV file module is mainly used to upload the modified file in CSV format to the terminal device.
2. The method according to claim 1, It is characterized in that The modifying the first game data and the second game data includes: Obtaining a pre-set plug-in, wherein the plug-in is used to save and send the modified file; Integrating the plug-in into the data processing software Excel; The first game data and the second game data are modified in Excel.
3. A hot update method for game data, It is characterized in that Applied to a terminal device, the method comprises: Receive a modified file in CSV format sent by a plug-in upload CSV file module of a client of a development device, wherein the modified file includes client modification data and server modification data, the client modification data and server modification data are obtained by obtaining first game data of a game client and second game data of a game server through the client of the development device, and in response to a plurality of modification instructions for the first game data and the second game data, modify the first game data and the second game data to obtain the modified file, and send the modified file to a terminal device, the client of the development device at least includes a plug-in save CSV file module and a plug-in upload CSV file module, the plug-in save CSV file module is used to convert the file format of the modified file from excel file format to CSV file format, and the plug-in upload CSV file module is mainly used to upload the modified file in CSV format to the terminal device; Sending the client-side modified data to the game client, and sending the server-side modified data to the game server; The game client is used to hot-update first game data of the game client by modifying data on the client, and the game server is used to hot-update second game data of the game server by modifying data on the server.
4. The method according to claim 3, It is characterized in that The sending of the client modified data to the game client and the sending of the server modified data to the game server comprises: Presetting a table import rule, wherein the table import rule is used to distinguish the client-side modified data and the server-side modified data in the modified file; The client modification data is sent to the game client based on the guide table rule, and the server modification data is sent to the game server.
5. A method for hot updating of game data, It is characterized in that Applied to a game server, the method includes: Receive server-side modification data sent by a terminal device, wherein the server-side modification data is obtained by a modification file in CSV format sent by a plug-in upload CSV file module of a client of a development device, the modification file includes the server-side modification data, the server-side modification data is obtained by obtaining second game data of a game server through a client of the development device, modifying the second game data in response to a plurality of modification instructions for the second game data to obtain the modification file, and sending the modification file to the terminal device, the client of the development device at least includes a plug-in save CSV file module and a plug-in upload CSV file module, the plug-in save CSV file module is used to convert the file format of the modification file from an excel file format to the CSV file format, and the plug-in upload CSV file module is mainly used to upload the modification file in the CSV format to the terminal device; Hot update is performed on the second game data of the game server based on the server modification data.
6. The method according to claim 5, It is characterized in that The hot updating of the second game data of the game server based on the server modification data comprises: Loading the second game data into the game server memory, and searching the target row data in the second game data according to the keyword in the game server memory; According to a preset data protocol, the target row data is hot updated based on the server-side modified data.
7. The method according to claim 6, It is characterized in that The method further comprises: After receiving the server-side modified data, if the second game data has not been updated, hot-updating the second game data to the server-side modified data; The server-side modified data is copied to an update directory file, wherein the update directory file is used to store the server-side modified data updated on the game server.
8. The method according to claim 6, It is characterized in that The method further comprises: After receiving the server-side modified data, if part of the game data in the second game data has been hot updated, hot update other game data in the second game data that has not been hot updated is performed based on the server-side modified data according to the data protocol.
9. The method according to claim 5, It is characterized in that The hot updating of the second game data of the game server based on the server modification data comprises: Parsing the modified data on the server side that is subjected to data encapsulation processing to obtain parsed data, wherein the modified data on the server side is subjected to data encapsulation processing by the terminal device according to a preset data protocol and sent to the game server side; Hot update is performed on the second game data of the game server based on the parsed data.
10. The method according to any one of claims 5 to 9, It is characterized in that The method further comprises: Obtaining a second hot update result of hot updating the second game data; Converting the second hot update result into a second hot update status code; The second hot update status code is sent to a client of a development device, wherein the client of the development device is used to display the second update status code.
11. A method for hot updating game data, It is characterized in that Applied to a game client, the method includes: Receive client modification data sent by a terminal device, wherein the client modification data is obtained by a modification file in CSV format sent by a plug-in upload CSV file module of a client of a development device, the modification file includes the client modification data, the client modification data is obtained by obtaining first game data of a game client through a client of the development device, modifying the first game data in response to a plurality of modification instructions for the first game data to obtain the modification file, and sending the modification file to the terminal device, the client of the development device at least includes a plug-in save CSV file module and a plug-in upload CSV file module, the plug-in save CSV file module is used to convert the file format of the modification file from an excel file format to the CSV file format, and the plug-in upload CSV file module is mainly used to upload the modification file in the CSV format to the terminal device; Hot-update the first game data of the game client based on the client modification data.
12. The method according to claim 11, It is characterized in that The hot updating of the first game data of the game client based on the client modification data includes: Calling the exec function to execute the Python string to obtain execution data, wherein the Python string is obtained by the terminal device performing data format conversion on the client modification data, and is sent by the terminal device to the game client based on the Telnet protocol; A hot update interface is called, and the first game data is hot updated based on the execution data.
13. The method according to claim 11 or 12, It is characterized in that The method further comprises: Obtaining a first hot update result of hot updating the first game data; Converting the first hot update result into a first hot update status code; The first hot update status code is sent to a client of a development device, wherein the client of the development device is used to display the first update status code.
14. A hot update device for game data, It is characterized in that include: An acquisition module, used for a client of a development device to acquire first game data of a game client and second game data of a game server; a modification module, configured to modify the first game data and the second game data in response to a modification instruction for the first game data and the second game data, and obtain a modification file, wherein the modification file includes client modification data and server modification data; The first sending module is used to send the modified file to the terminal device, wherein the terminal device is used to send the client-side modified data to the game client, and send the server-side modified data to the game server; wherein the client of the development device includes at least a plug-in saving CSV file module and a plug-in uploading CSV file module, the plug-in saving CSV file module is used to convert the file format of the modified file from Excel file format to CSV file format, and the plug-in uploading CSV file module is mainly used to upload the modified file in CSV format to the terminal device.
15. A hot update device for game data, It is characterized in that include: A first receiving module is used to receive a modified file in CSV format sent by a plug-in upload CSV file module of a client of a development device, wherein the modified file includes client modification data and server modification data, the client modification data and server modification data are obtained by obtaining first game data of a game client and second game data of a game server through the client of the development device, and in response to a plurality of modification instructions for the first game data and the second game data, the first game data and the second game data are modified to obtain the modified file, and the modified file is sent to a terminal device, the client of the development device at least includes a plug-in save CSV file module and a plug-in upload CSV file module, the plug-in save CSV file module is used to convert the file format of the modified file from an excel file format to the CSV file format, and the plug-in upload CSV file module is mainly used to upload the modified file in CSV format to a terminal device; A second sending module, used to send the client modification data to the game client, and send the server modification data to the game server; The game client is used to hot-update first game data of the game client by modifying data on the client, and the game server is used to hot-update second game data of the game server by modifying data on the server.
16. A hot update device for game data, It is characterized in that include: A second receiving module is used to receive server-side modification data sent by a terminal device, wherein the server-side modification data is obtained by a modification file in CSV format sent by a plug-in upload CSV file module of a client of a development device, and the modification file includes the server-side modification data. The server-side modification data is obtained by obtaining second game data of a game server through a client of the development device, and in response to a plurality of modification instructions for the second game data, the second game data is modified to obtain the modification file, and the modification file is sent to the terminal device. The client of the development device at least includes a plug-in save CSV file module and a plug-in upload CSV file module. The plug-in save CSV file module is used to convert the file format of the modification file from an excel file format to the CSV file format, and the plug-in upload CSV file module is mainly used to upload the modification file in the CSV format to the terminal device; The first hot update module is used to hot update the second game data of the game server based on the server modification data.
17. A hot update device for game data, It is characterized in that include: A third receiving module is used to receive client modification data sent by a terminal device, wherein the client modification data is obtained by a modification file in CSV format sent by a plug-in upload CSV file module of a client of a development device, and the modification file includes the client modification data. The client modification data is obtained by obtaining first game data of a game client through a client of the development device, and in response to a plurality of modification instructions for the first game data, the first game data is modified to obtain the modification file, and the modification file is sent to the terminal device. The client of the development device at least includes a plug-in save CSV file module and a plug-in upload CSV file module. The plug-in save CSV file module is used to convert the file format of the modification file from an excel file format to the CSV file format, and the plug-in upload CSV file module is mainly used to upload the modification file in the CSV format to the terminal device; The second hot update module is used to hot update the first game data of the game client based on the client modification data.
18. A hot update system for game data, It is characterized in that include: A client of a development device, used to execute the hot update method of game data according to claim 1 or 2; A terminal device, used to execute the hot update method of game data according to claim 3 or 4; A game server, used to execute the hot update method of game data according to any one of claims 5 to 10; A game client, used to execute the hot update method of game data described in any one of claims 11-13.
19. A terminal device, It is characterized in that include: Processor, memory, display; The memory is used to store programs and data, and the processor calls the program stored in the memory to execute the hot update method for game data described in any one of claims 1-13.
20. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for hot updating game data according to any one of claims 1 to 13 is implemented.
21. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method for hot updating game data according to any one of claims 1 to 13 is implemented.
