CN113680073A - Game data hot updating method, device, equipment and storage medium - Google Patents

Game data hot updating method, device, equipment and storage medium Download PDF

Info

Publication number
CN113680073A
CN113680073A CN202110986358.6A CN202110986358A CN113680073A CN 113680073 A CN113680073 A CN 113680073A CN 202110986358 A CN202110986358 A CN 202110986358A CN 113680073 A CN113680073 A CN 113680073A
Authority
CN
China
Prior art keywords
data
game
client
modification
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110986358.6A
Other languages
Chinese (zh)
Inventor
孙丹
梁成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110986358.6A priority Critical patent/CN113680073A/en
Publication of CN113680073A publication Critical patent/CN113680073A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Landscapes

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

Abstract

The invention provides a game data hot updating method, a device, equipment and a storage medium, wherein the method is applied to a client of development equipment and comprises the steps of acquiring first game data of a game client and second game data of a game server; responding to modification instructions of a plurality of developers on the first game data and the second game data, and modifying the first game data and the second game data to obtain a modified file, wherein the modified file comprises client modified data and server modified data; and sending the modification file to terminal equipment, wherein the terminal equipment is used for sending the client modification data to the game client and sending the server modification data to the game server, so that the aim of simultaneously updating the game data on line by a plurality of research and development personnel is fulfilled.

Description

Game data hot updating method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a storage medium for hot update of game data.
Background
With the development of mobile communication technology, users are gradually popularized to play online games after learning or working, and the users pay more and more attention to the fighting rhythm and the performance effect in the games, while reasonable numerical expression, comfortable fighting rhythm and perfect effect expression in the games can be achieved through repeated modification of game data for many times, so that the game development process is very necessary to be capable of repeatedly modifying the game data.
The game data can be divided into program record data and form data filled by designers, and the form data can be read by a program to achieve the purpose of flexibly modifying and configuring the designers, so the game data which the designers and testers usually need to modify is the form data filled by the designers, and the form data is a form generally created by using data processing software Excel. When there is a need to modify table data, there are several problems: 1) because the operation of the form has authority limit, when a tester has a requirement for modifying the form data, the designer needs to be informed to modify and upload the form data; 2) the table data is game data formally used by the game, and if the game data used by the test is released to formal clothing by mistake, serious influence is brought; 3) after the table data is modified and uploaded, the table data can take effect in the game only after the development machine is updated, the process takes longer time, and the efficiency of game development and test is not favorably improved.
In the prior art, in order to solve the problems, related test engineers develop a tool for performing hot update on a server by one person, but the tool cannot support online update of game data by multiple persons at the same time.
As described above, although the conventional tools for updating table data can perform hot update of table data, it is impossible to perform online update of game data by multiple players at the same time.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The embodiment of the invention provides a game data hot updating method, a game data hot updating device, game data hot updating equipment and a storage medium, which are used for solving the problem that a tool for updating table data in the prior art cannot realize online updating of game data by multiple persons at the same time.
In a first aspect, an embodiment of the present invention provides a hot update method for game data, which is applied to a client of a development device, and the method includes:
acquiring first game data of a game client and second game data of a game server;
responding to a plurality of modification instructions aiming at the first game data and the second game data, and modifying the first game data and the second game data to obtain a modified file, wherein the modified file comprises client modified data and server modified data;
and sending the modification file to terminal equipment, wherein the terminal equipment is used for sending the client modification data to the game client and sending the server modification data to the game server.
In one embodiment, modifying the first game data and the second game data comprises:
acquiring a preset plug-in, wherein the plug-in is used for storing and sending a modification file;
integrating the plug-in into the data processing software Excel;
the first game data and the second game data are modified in Excel.
In a second aspect, an embodiment of the present invention provides a hot update method for game data, which is applied to a terminal device, and the method includes:
receiving a modification file sent by a client of development equipment, wherein the modification file comprises client modification data and server modification data;
sending the client modification data to the game client, and sending the server modification data to the game server;
the game client is used for hot updating first game data of the game client through the client modifying data, and the game server is used for hot updating second game data of the game server through the server modifying data.
In one embodiment, sending the client modification data to the game client and sending the server modification data to the game server includes:
presetting a guide table rule, wherein the guide table rule is used for distinguishing client modification data and server modification data in a modification file;
and sending the client modification data to the game client based on the guide table rule, and sending the server modification data to the game server.
In a third aspect, an embodiment of the present invention provides a method for hot updating game data, which is applied to a game server, and includes:
receiving server modification data sent by terminal equipment, wherein the server modification data are obtained from a modification file sent by a client of development equipment, and the modification file comprises the server modification data;
and carrying out hot updating on the second game data of the game server based on the server modification data.
In one embodiment, 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 a game server memory, and searching target line data in the second game data in the game server memory according to the keywords;
and according to a preset data protocol, carrying out hot updating on the target line data based on the server side modification data.
In one embodiment, the method further comprises:
after receiving the server modification data, if the second game data is not updated, thermally updating the second game data into the server modification data;
and copying the server modification data to an update directory file, wherein the update directory file is used for storing the server modification data updated at the game server.
In one embodiment, the method further comprises:
after receiving the server modification data, if part of the second game data is hot updated, performing hot update on other game data which is not subjected to hot update in the second game data based on the server modification data according to the data protocol.
In one embodiment, the hot updating of the second game data of the game server based on the server modification data comprises:
analyzing the server modification data subjected to data encapsulation processing to obtain analyzed data, wherein the server modification data are subjected to data encapsulation processing by the terminal equipment according to a preset data protocol and are sent to the game server;
and performing hot updating on the second game data of the game server based on the analysis data.
In one embodiment, the method further comprises:
acquiring a second hot update result for 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 equipment, wherein the client of the development equipment is used for displaying the second update status code.
In a fourth aspect, an embodiment of the present invention provides a game data hot update method, which is applied to a game client, and the method includes:
receiving client modification data sent by terminal equipment, wherein the client modification data are obtained from a modification file sent by a client of development equipment, and the modification file comprises the client modification data;
first game data of the game client is hot updated based on the client modification data.
In one embodiment, hot updating first game data of a game client based on client modification data includes:
calling an exec function to execute a Python character string to obtain execution data, wherein the Python character string is obtained by performing data format conversion on client modification data by terminal equipment and is sent to a game client by the terminal equipment based on a Telnet protocol;
a hot update interface is invoked and a hot update is performed on the first game data based on the execution data.
In one embodiment, the method further comprises:
acquiring a first hot update result for 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 equipment, wherein the client of the development equipment is used for displaying the first update status code.
In a fifth aspect, an embodiment of the present invention provides a hot update apparatus for game data, including:
the acquisition module is used for acquiring first game data of the game client and second game data of the game server;
the modification module is used for responding to modification instructions aiming at the first game data and the second game data, and modifying the first game data and the second game data to obtain a modified file, wherein the modified file comprises client modified data and server modified data;
and the first sending module is used for sending the modification file to the terminal equipment, wherein the terminal equipment is used for sending the client modification data to the game client and sending the server modification data to the game server.
In a sixth aspect, an embodiment of the present invention provides an apparatus for hot updating game data, including:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a modification file sent by a client of development equipment, and the modification file comprises client modification data and server modification data;
the second sending module is used for sending the client modification data to the game client and sending the server modification data to the game server;
the game client is used for hot updating first game data of the game client through the client modifying data, and the game server is used for hot updating second game data of the game server through the server modifying data.
In a seventh aspect, an embodiment of the present invention provides a hot update apparatus for game data, including:
the second receiving module is used for receiving server modification data sent by the terminal equipment, wherein the server modification data are obtained from a modification file sent by a client of the development equipment, and the modification file comprises the server modification data;
and the first hot updating module is used for carrying out hot updating on the second game data of the game server based on the server modification data.
In an eighth aspect, an embodiment of the present invention provides a hot update apparatus for game data, including:
the third receiving module is used for receiving the client modifying data sent by the terminal equipment, wherein the client modifying data is obtained by a modifying file sent by the client of the development equipment, and the modifying file comprises the client modifying data;
and the second hot updating module is used for carrying out hot updating on the first game data of the game client based on the client modification data.
In a ninth aspect, an embodiment of the present invention provides a game data hot update system, including:
a client of the development device for executing the hot update method of game data of the first aspect;
a terminal device for executing the hot update method of game data of the second aspect;
a game server for executing the hot update method of the game data of the third aspect;
and the game client is used for executing the hot updating method of the game data of the fourth aspect.
In a tenth aspect, an embodiment of the present invention provides a terminal device, including:
a processor, a memory, a display;
the memory is used for storing programs and data, and the processor calls the programs stored in the memory to execute the hot updating method of the game data in any one of the first aspect to the fourth aspect.
In an eleventh aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing a hot update method for game data in any one of the first to fourth aspects.
In a twelfth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program that, when executed by a processor, implements the hot update method for game data of any one of the first to fourth aspects.
The game data hot updating method, the game data hot updating device, the game data hot updating equipment and the storage medium provided by the embodiment of the invention have the advantages that the first game data of the game client and the second game data of the game server are obtained through the client of the development equipment, the first game data and the second game data are modified through the client of the development equipment in response to the modification instruction aiming at the first game data and the second game data to obtain a modified file, then the modified file is sent to the terminal equipment through the client of the development equipment, the client modified data is sent to the game client through the terminal equipment, the game client carries out hot updating on the first game data through the client modified data, meanwhile, the terminal equipment sends the server modified data to the game server, and the game server carries out hot updating on the second game data through the server modified data, the technical problem that only one research and development personnel can update the game data in a hot mode in the prior art is solved, and the technical effect that a plurality of research and development personnel update the game data in an online mode at the same time is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a method for hot updating game data according to an embodiment of the present invention;
FIG. 2 is a block diagram of a hot update system for game data according to an embodiment of the present invention;
FIG. 3 is a flowchart of a first embodiment of a method for hot updating game data according to the present invention;
FIG. 4 is a flowchart of a second embodiment of a method for hot updating game data according to the present invention;
FIG. 5 is a flowchart of a third embodiment of a method for hot updating game data according to the present invention;
FIG. 6 is a flowchart of a fourth embodiment of a method for hot updating game data according to the present invention;
FIG. 7 is a diagram illustrating uploading of a CSV file according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating a game server list according to an embodiment of the present invention;
FIG. 9 is a flowchart illustrating a first embodiment of a hot update of game data at a game server according to the present invention;
FIG. 10 is a flowchart illustrating a second embodiment of a hot update of game data at a game server according to the present invention;
FIG. 11 is a flowchart illustrating a third embodiment of hot update of game data at a game server according to the present invention;
FIG. 12 is a flowchart illustrating a fourth embodiment of hot update of game data of a game server according to the present invention;
FIG. 13 is a flowchart illustrating a first embodiment of an apparatus for hot updating game data according to the present invention;
FIG. 14 is a flowchart of a second embodiment of a device for hot updating game data according to the present invention;
FIG. 15 is a flowchart of a third embodiment of a device for hot updating game data according to the present invention;
FIG. 16 is a flowchart of a fourth embodiment of an apparatus for hot updating game data according to the present invention;
fig. 17 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments based on the embodiments in the present invention, which can be made by those skilled in the art in light of the present disclosure, are within the scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the prior art provided in the background art, there are the following technical problems:
1) the method cannot support a plurality of people to update the table data on line at the same time, and the contents updated later in the same server can disable all the previous updated contents.
2) If the deadlock problem occurs when the online updating fails, the deadlock problem needs to be manually processed every time.
3) When the table data is too large, the client fails to update the table data, and many tables cannot be updated in a hot mode.
Aiming at the problems, the invention provides a game data hot updating method, which is characterized in that a plug-in used for storing and sending a modification file is integrated in Excel software of a client of development equipment, so that a plurality of research and development personnel can modify data of a game client and a game server in the Excel software at the same time, terminal equipment respectively sends client modification data and server modification data in the modification file of the research and development personnel to the game client and the game server, and the game client and the game server respectively perform hot updating of the data, so that the game data can be simultaneously and online hot updated by the plurality of research and development personnel. The terms referred to in the present invention will be explained first.
Hot updating: a method for dynamically issuing codes to enable a developer to repair BUG and issue functions without issuing a new version.
The hot updating method of game data provided by the invention has the core idea that a plug-in used for storing and sending a modification file is integrated in Excel software of a client of development equipment, so that a plurality of researchers can modify the game data in the Excel file at the same time, after the modification file is stored, the client modification file and a server modification file in the modification file are respectively sent to a game client and a game server by terminal equipment, and the game client and the game server perform hot updating of the data through the modification data sent by the terminal equipment, thereby overcoming the problem that the game data can not be simultaneously updated on line by a plurality of persons in the background technology.
Fig. 1 is a schematic view of an application scenario of a game data thermal update method according to an embodiment of the present invention, as shown in fig. 1, in the scenario, a client of a development device acquires first game data of a game client and second game data of a game server, stores the first game data and the second game data as excel files, a plurality of researchers modify the first game data and the second game data in the excel files to obtain modified files, the client of the development device sends the modified files to a terminal device, the terminal device distinguishes the client modified data and the server modified data in the modified files, sends the client modified data to the game client, sends the server modified data to the game server, the game client performs thermal update on the first game data through the client modified data, and the game server performs thermal update on the second game data through the server modified data, so as to realize the on-line hot updating of game data by a plurality of research and development personnel.
Based on the scene shown in fig. 1, in the scheme, the client of the development device is mainly used for acquiring data of the game client and the game server before data hot update, and supporting integration of plug-ins for storing and sending modification files in Excel software, and simultaneously supporting a plurality of developers to modify the data of the game client and the game server before data hot update in the Excel software to obtain modification files; the terminal equipment is mainly used for receiving a modification file sent by a client of the development equipment, distinguishing the client modification file from a server modification file in the modification file, sending the client modification file to the game client and sending the server modification file to the game server; the game server is mainly used for carrying out hot updating on data before data hot updating according to the server modification data after receiving the server modification data sent by the terminal equipment; the game client is mainly used for carrying out hot updating on data before data hot updating according to the client modification data after receiving the client modification data sent by the terminal equipment.
With reference to the above scenario, the following describes in detail a technical solution of the hot update method of game data according to the present invention with several specific embodiments.
Fig. 2 is a schematic structural diagram of a game data hot update system according to an embodiment of the present invention, and as shown in fig. 2, the game data hot update system at least needs to include:
the client of the development equipment at least comprises a plug-in storage CSV file module and a plug-in uploading CSV file module, wherein the plug-in storage CSV file module is mainly used for converting the file format of the modified file from an excel file format to a CSV file format; the plug-in uploading CSV file module is mainly used for uploading the modified file in the CSV format to the terminal equipment.
In the scheme, as the updating of the game needs to be completed quickly, the program code reads one CSV file much faster than reading one Excel file, especially a large file, and the difference is larger before the reading speed is larger when the data volume is larger, the Excel file is saved as the CSV file after the game data is modified, for example, after planning or a tester modifies a corresponding numerical value, a sub-table sheet of the Excel table is saved as the CSV file named by the sheet name.
In the above scheme, when there are multiple modified files in the CSV format, the plug-in upload CSV file module uploads the modified files in the order of their storage time. Fig. 7 is a schematic diagram of uploading a CSV file according to an embodiment of the present invention, as shown in fig. 7, before uploading a CSV file using a plug-in, an original Excel file may also be selected to be saved (a file format of the Excel file is an xls file), and a plug-in uploading CSV file module is an Excel add plug-in implemented based on an extended function VSTO toolkit of office software, and is mainly implemented by performing a visualization operation on a Graphical User Interface (GUI for short) to upload a file in a CSV format.
The terminal equipment at least comprises a table guiding module and a client connecting module, wherein the table guiding module is mainly used for sending client modification data in a modification file to a game client and sending server modification data in the modification file to a game server; the client connection module is mainly used for carrying out communication connection between the terminal equipment and the game client.
In the scheme, the game client is not always in a connected state, and when the game client is in a disconnected state, the guide table module in the terminal device can acquire the modification file, but cannot send the client modification data in the modification file to the game client, and only can send the server modification data in the modification file to the game server as much as possible.
The game server at least comprises a server updating module, and the server updating module is mainly used for carrying out hot updating on second game data of the game server after the game server receives server modification data sent by the terminal equipment.
In this scheme, a game has many servers during the running process, fig. 8 is a schematic diagram of a game server list provided in an embodiment of the present invention, and as shown in fig. 8, when updating game data, a target game server may be selected, and second game data is updated in the target game server.
The game client at least comprises a client updating module, and the client updating module is mainly used for carrying out hot updating on first game data of the game client after the game client receives client modification data sent by the terminal equipment.
Fig. 3 is a flowchart of a first embodiment of a method for hot updating game data according to an embodiment of the present invention, and as shown in fig. 3, the method for hot updating game data includes the following steps:
s301: the method comprises the steps of obtaining first game data of a game client and second game data of a game server.
In this step, the first game data is data before data hot update processing is not performed in the game client, the second game data is data before data hot update processing is not performed in the game server, and the client of the development device may obtain the first game data of the game client and the second game data of the game server and store the first game data and the second game data as an excel file, so that research and development personnel may modify data in the client of the development device.
In this scenario, the first game data and the second game data may be stored in the same excel file
S302: and responding to a modification instruction aiming at the first game data and the second game data, and modifying the first game data and the second game data to obtain a modified file.
In this step, when a developer needs to modify the first game data and/or the second game data, an excel file in which the first game data and the second game data are stored may be opened in a client of the development device, and a modification instruction is issued, the client of the development device modifies the first game data and the second game data after responding to the modification instructions of multiple developers, so as to obtain a modified file, where the modified file includes client modification data and server modification data, the client modification data is data obtained by modifying the first game data of the game client, and the server modification data is data obtained by modifying the second game data of the game server.
In the scheme, the game data can be modified by a plurality of developers at any time, so that the number of the modified files can be more than one.
S303: and sending the modified file to the terminal equipment.
In this step, before sending the modification file to the terminal device, the client of the development device may convert the file format of the modification file from an excel file into a CSV file, and then send the modification file in the CSV file format to the terminal device, and after receiving the modification file, the terminal device may send the client modification data to the game client and send the server modification data to the game server.
In one particular implementation, modifying the first game data and the second game data includes: acquiring a preset plug-in; integrating the plug-in into the data processing software Excel; the first game data and the second game data are modified in Excel.
In the scheme, the plug-in can be used for storing and sending the modification file, the plug-in is integrated in Excel software of the client side of the development equipment after the preset installation package of the plug-in is obtained and downloaded, so that when a plurality of research and development personnel need to modify the game data, the first game data and the second game data can be modified in the Excel integrated with the plug-in, and the modification file is obtained.
According to the game data hot updating method provided by the embodiment, the client of the development device is used for obtaining the first game data of the game client and the second game data of the game server, the client of the development device responds to the modification instructions of a plurality of research and development personnel on the first game data and the second game data to modify the first game data and the second game data to obtain a modified file, the modified file is sent to the terminal device through the client of the development device, the terminal device sends the client modified data to the game client, and the server modified data is sent to the game server, so that the game client and the game server can perform hot updating on the game data, and the purpose of performing online updating on the game data by the plurality of research and development personnel at the same time is achieved.
Fig. 4 is a flowchart of a second embodiment of a hot update method for game data according to an embodiment of the present invention, and as shown in fig. 4, the hot update method for game data includes the following steps:
s401: and receiving a modification file sent by a client of the development equipment.
In this step, the modification file received by the terminal device includes the client modification data and the server modification data.
S402: and sending the client modification data to the game client, and sending the server modification data to the game server.
In this step, since the modification file includes both the client modification data and the server modification data, and the client modification data and the server modification data are stored in one file at the same time, the client modification data and the server modification data need to be separated in the modification file, and then sent by the terminal device, the client modification data is sent to the game client, and the server modification data is sent to the game server.
In the scheme, after the game client receives the client modification data sent by the terminal device, the first game data of the game client can be updated through the client modification data in a hot mode, and after the game server receives the server modification data sent by the terminal device, the second game data of the game server can be updated through the server modification data in a hot mode.
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 the connected state, when the game client is in the disconnected state, a situation that the terminal device fails to send the client modification data may occur, and at this time, the terminal device may also 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 is arranged in the terminal device and is used for performing communication connection between the terminal device and the game client, so that when the game client is in a disconnected state, the terminal device can also continue to send client modification data to the game client.
In one specific implementation, sending the client modification data to the game client and sending the server modification data to the game server includes: presetting a guide table rule, wherein the guide table rule is used for distinguishing client modification data and server modification data in a modification file; and sending the client modification data to the game client based on the guide table rule, and sending the server modification data to the game server.
In the scheme, the modification file comprises both client modification data and server modification data, and after receiving the modification file, the terminal device needs to distinguish the client modification data and the server modification data in the modification file, so that a guide table module can be arranged in the terminal device, and the client modification data and the server modification data in the modification file are respectively exported to different files through the guide table module, so that the terminal device can conveniently send the client modification data to the game client and send the server modification data to the game server.
In the above scheme, a corresponding table guiding rule, a correctness checking rule, and the like can be preset for the modification file, the table guiding rule can enable the table guiding module to distinguish client modification data and server modification data in the modification file, and the correctness checking rule can enable the table guiding module to check the distinguished client modification data and server modification data, so as to avoid distinguishing errors of the client modification data and the server modification data. In addition, the guide table module is also provided with a function of outputting a guide table file, and after distinguishing the client modification data from the server modification data, the guide table module can respectively export the client modification data and the server modification data into different files.
In the above scheme, the guide table rule and the correctness check rule are written in the same rule file, if the rule file is not modified, all modified files in the CSV format are completely exported, the process is long, time and server resources are consumed, and in fact, possible modified files do not need to be exported, so that unnecessary rules in the rule file can be deleted, and only the modified files needing to be updated can be exported only if the rule file obtained after deletion is obtained.
In the game data hot updating method provided by this embodiment, after receiving the modification file sent by the client of the development device, the terminal device distinguishes the client modification data and the server modification data in the modification file, and sends the client modification data to the game client and sends the server modification data to the game server, so that the game client and the game server perform hot updating on the game data, and the purpose of performing online updating on the game data by multiple research and development staff at the same time is achieved.
Fig. 5 is a flowchart of a third embodiment of a method for hot updating game data according to an embodiment of the present invention, and as shown in fig. 5, the method for hot updating game data includes the following steps:
s501: and receiving server modification data sent by the terminal equipment.
In this step, the server modification data is obtained from a modification file sent by a client of the development device, the modification file includes the server modification data, and the game server receives the server modification data after the terminal device sends the server modification data.
S502: and carrying out hot updating on the second game data of the game server based on the server modification data.
In this step, since the server modification data is obtained by modifying the second game data by the plurality of developers, the game server may use the server modification data to overlay the second game data after receiving the server modification data, thereby implementing hot update of the second game data by the game server.
In one specific implementation, the hot updating of the second game data of the game server based on the server modification data includes: loading the second game data into a game server memory, and searching target line data in the second game data in the game server memory according to the keywords; and according to a preset data protocol, carrying out hot updating on the target line data based on the server side modification data.
In the scheme, when the second game data is subjected to hot updating, the line data can be subjected to hot updating in a row unit, the target line data in the second game data is searched for through a keyword (key), and then the corresponding content in the server modification data is covered in the target row to complete the hot updating of the target line data, so that the purpose of performing hot updating on the table with large data volume can be realized when the data volume in the table is large. Since data processing for hot updating game data on-line at the same time by a plurality of persons is complicated, a data protocol may be previously set, the data protocol may be as shown in table 1, and after updating the second game data by the data protocol, the content format of the update file may be as shown in table 2.
Table 1 data protocol rules table
Figure BDA0003230820920000141
Table 2 table of contents format of update file
Figure BDA0003230820920000151
In one implementation, the method further comprises: after receiving the server modification data, if the second game data is not updated, thermally updating the second game data into the server modification data; and copying the server modification data to an update directory file, wherein the update directory file is used for storing the server modification data updated at the game server.
In this solution, before the game server receives the current server modification data, the second game data may have been updated by the game server based on the server modification data in the modification file received last time, and therefore, before the game server performs the hot update on the current second game data, the second game data may be detected to determine whether the current second game data has been updated, and if the second game data has not been updated, the server-side modification data is used to overwrite the second game data, implementing a hot update to the second game data, after the second game data is updated, another copy of the server modification data for updating the second game data is stored in the update directory file, the consistency of the files in the game server and the modified files is guaranteed, and meanwhile guarantee is provided for detecting whether the second game data are updated or not.
In the above solution, assuming that the file name in the received server modification data is file and the version number is 100, it can be determined whether the file is updated at the version number, if not, updating the file to the latest version, and after renaming the file to the file name _ version number (file _100) format, copying one copy to the update directory, to ensure the consistency between the game server and the data file, the file content format is roughly as shown in table 2, the content modification in the data dictionary data is an important step in the game data hot update of the game server, the value of the corresponding line data in the file can be found by key in a regular way, and processed according to the rules of the data protocol shown in table 1, for example, deleting the game data in delete, modifying the game data in update, and directly adding the game data in add.
In the above scheme, when the game data is repeatedly updated for multiple times or the game data is updated by multiple persons at the same time, the game data in the same file can be simultaneously modified by the multiple persons in a key modification mode, and the modification of the game data cannot be influenced as long as the keys are different, so that the problem that in the prior art, when the whole document is updated, the game data can only be thermally updated by one person at the same time is effectively solved, and the updated content of other research and development personnel or the previously updated content of the other research and development personnel cannot be covered.
In one implementation, the method further comprises: after receiving the server modification data, if part of the second game data is hot updated, performing hot update on other game data which is not subjected to hot update in the second game data based on the server modification data according to the data protocol.
The methods in the two specific implementations described above are exemplified below.
For example, taking the file name of the data in the second game data as file and the version number as 100 as an example, fig. 9 is a flowchart of a first game data hot update embodiment of the game server according to the embodiment of the present invention, as shown in fig. 9, the game data hot update method includes the following steps:
s901: it is determined whether file _100 exists.
In this step, file _100 indicates that the data file name in the document is file and the version number is 100. If the file _100 does not exist, the process jumps to S902, and if the file _100 exists, the process jumps to S903.
S902: the file is updated to version 100 and copied to the update directory.
In this step, since a version control System (SVN) is used to manage the version information of the server in the CSV file, the version information is also changed with time. When the file _100 does not exist, the version of the file may be updated to 100 versions by the SVN, and then the updated file is renamed to the file name _ version number (file _100) format, copied in the update directory, and the step of S903 is continuously performed.
S903: and searching corresponding line data in the file _100 through the key, and performing addition, deletion and modification operations on the line data according to a data protocol.
S904: it is determined whether all the line data in the file _100 have been processed.
In this step, if all the line data in the file _100 is processed, the data hot update flow of the game server is ended, and if all the line data in the file _100 is not processed, the flow returns to S903, and the processing of the line data in the file _100 is continued to be completed.
In the above scheme, when the content in the data dictionary data is modified, because the value format in the data is not fixed, for example, the value format can be a numerical value, a character string, a list, a tuple, a dictionary, a set, and the like, the regular matching replacement cannot be directly obtained by replacing the character string, at this time, the whole data can be loaded into the memory of the game server, the data exists in the memory of the game server in the form of the dictionary, so that the addition, deletion, and modification operations can be realized by directly searching the corresponding row through the key, after the data is processed, the data in the memory of the game server is combined into a new data character string according to the original character string format, and the whole data in the updated data file is replaced, thereby modifying the content in the data dictionary.
For example, fig. 10 is a flowchart of a second embodiment of hot update of game data of a game server according to an embodiment of the present invention, and as shown in fig. 10, the hot update method of game data includes the following steps:
s1001: loading the data dictionary data to a game server memory;
s1002: adding, deleting and modifying the data in the memory of the game server;
s1003: converting the processed data format into a character string in a game server memory;
s1004: and replacing the data in the update file by using the character string.
In one specific implementation, the hot update of game data performed by multiple developers at the same time can be classified into the following cases:
1) multiple developers update different CSV files simultaneously: in this case, there is no conflict in updating the game data between different developers, and the operation of each node is independent during the updating process, and the updating is performed asynchronously.
2) Multiple developers update different rows in the same CSV file at the same time: in this case, in the whole table hot update in the prior art, the following hot update operation covers the previous hot update operation, and for the technical scheme of the present invention, performing a single-row hot update operation in the same table avoids the problem of the whole table hot update operation in the prior art.
3) Multiple developers update the same row in the same CSV file at the same time: in this case, the modified row data may have mutual influence, and if different research and development personnel update different row data, an unpredictable effect may occur after the hot update operation due to data conflict, so that the purpose of hot update of the game data cannot be achieved.
Fig. 11 is a flowchart of a third embodiment of hot update of game data of a game server according to an embodiment of the present invention, and as shown in fig. 11, the hot update method of game data includes the following steps:
s1101: managing the hot updating processes of a plurality of research and development personnel;
s1102: judging whether the same CSV file is updated simultaneously for a plurality of research and development personnel;
in this step, if a plurality of developers update the same CSV file at the same time, the process goes to S1104, and if a plurality of developers update different CSV files at the same time, the process goes to S1103.
S1103: asynchronously updating different CSV files by a plurality of research and development personnel;
s1104: judging whether the same row of the same CSV file is updated by a plurality of research and development personnel at the same time;
in this step, if a plurality of research and development personnel update the same row of the same CSV file at the same time, the process jumps to S1106, and if a plurality of research and development personnel update different rows of the same CSV file at the same time, the process jumps to S1105.
S1105: hot updating operations of different rows enter an updating queue to wait for hot updating;
s1106: the hot update operation is terminated and the termination reason is fed back.
In one specific implementation, the hot updating of the second game data of the game server based on the server modification data includes: analyzing the server modification data subjected to data encapsulation processing to obtain analyzed data, wherein the server modification data are subjected to data encapsulation processing by the terminal equipment according to a preset data protocol and are sent to the game server; and performing hot updating on the second game data of the game server based on the analysis data.
In the scheme, because the server modification data comprises added game data, modified game data and deleted game data, if the server modification data is not packaged, the terminal equipment needs to respectively send the added game data, the modified game data and the deleted game data when sending the server modification data, so that the efficiency of the game server for carrying out hot updating on the game data is greatly reduced, the terminal equipment can firstly package the server modification data according to the data protocol shown in the table 1 before sending the server modification data to the game server, so that the terminal equipment can send the server modification data to the game server at one time, and the game server firstly carries out data analysis on the server modification data after receiving the server modification data which is sent by the terminal equipment and subjected to data packaging processing, the obtained analysis data are added game data, modified game data and deleted game data which are included in the server modification data, and then the second game data of the game server are updated according to the analysis data.
Fig. 12 is a flowchart of a fourth embodiment of hot update of game data of a game server according to an embodiment of the present invention, and as shown in fig. 12, the hot update method of game data includes the following steps:
s1201: the terminal equipment acquires server modification data;
s1202: the terminal equipment carries out data encapsulation processing on the server modified data according to a data protocol;
s1203: the terminal equipment sends the server modification data subjected to data encapsulation processing to a game server;
s1204: the game server analyzes the data of the server modification data subjected to the data encapsulation processing to obtain analysis data;
s1205: the game server side carries out hot updating processing on the game data according to the analysis data;
s1206: the game server executes hot update processing on the game data;
s1207: and returning a heat updating result.
In one implementation, the method further comprises: acquiring a second hot update result for 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 equipment, wherein the client of the development equipment is used for displaying the second update status code.
In the scheme, after the game server completes the hot update of the second game data, according to the completion condition of the hot update of the second game data, the game server sends a second hot update result to the client of the development device, and converts the second hot update result into a second hot update status code, so that the second update status code is displayed in the client of the development device, and the second hot update status code is pushed to a plurality of research and development personnel, so that the research and development personnel can determine the hot update condition of the second game data.
In the above scheme, because there are always unknown errors in the program during execution, which is almost unavoidable, and only through continuous optimization and perfection, errors can be made as few as possible, therefore, the second hot update result includes not only a hot update success result but also a hot update failure result, and if an execution error occurs during the whole hot update process of the second game data, detailed information of the error can be pushed to the client of the development device, and then a corresponding status code is returned to the Excel plug-in terminal to prompt the developer. The second hot update status code and the corresponding status code information are shown in table 3:
table 3 status code and corresponding information table of status code
Status code Status code corresponding message
1 Failure of lead table
2 Connection client failure
3 Server update failure
4 Client update failure
5 Failure to upload a file
6 Success of hot refresh
Fig. 6 is a flowchart of a fourth embodiment of a hot update method for game data according to an embodiment of the present invention, and as shown in fig. 6, the hot update method for game data includes the following steps:
s601: and receiving the client modification data sent by the terminal equipment.
In this step, the client modification data is obtained from a modification file sent by the client of the development device, the modification file includes the client modification data, and the game client receives the client modification data after the terminal device sends the client modification data.
S602: first game data of the game client is hot updated based on the client modification data.
In this step, since the client modification data is obtained by modifying the first game data by the plurality of developers, the game client can directly call the hot update interface to realize the hot update of the game client on the first game data after receiving the client modification data.
In one particular implementation, hot updating first game data of a game client based on client modification data includes: calling an exec function to execute a Python character string to obtain execution data, wherein the Python character string is obtained by performing data format conversion on client modification data by terminal equipment and is sent to a game client by the terminal equipment based on a Telnet protocol; a hot update interface is invoked and a hot update is performed on the first game data based on the execution data.
In the scheme, as the game client and the terminal device are already 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 character string executable by Python language through the guide table module, then send the client modification data (namely the character string executable by Python language) converted into the data format to the game client through the Telnet protocol, the game client executes the Python character string by calling the built-in function exec function to obtain execution data, and then updates the single-line game data by adding, modifying or deleting the execution data after calling the hot update interface hotfix _ update interface. And circulating the method for updating the single-row game data until the first game data are completely updated, and finishing the whole hot updating operation of the game client on the first game data.
In the above solution, the game client executes the Python character string by calling the built-in function exec function to obtain the execution data, which may be implemented according to the following exemplary pseudo code:
data="code_from_telnet=\"data={key1:value1,key2:value2}\""
exec(code_from_telnet)
in the above scheme, because the first game data is updated in the game client, and only the added and modified part of the game data is updated, when a large table comprising hundreds of thousands of rows is hot updated, compared with the technical scheme of carrying out hot updating on the game data by a single person in the prior art, the technical scheme provided by the invention has the advantages of higher hot updating speed and higher success rate.
In one implementation, the method further comprises: acquiring a first hot update result for 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 equipment, wherein the client of the development equipment is used for displaying the first update status code.
In the scheme, because a program always has unknown errors in the execution process, which is almost unavoidable, and only can be optimized and perfected continuously, errors occur as few as possible, therefore, the first hot update result includes a hot update success result and a hot update failure result, and if an execution error occurs in the whole hot update process of the first game data, the detailed information of the error can be pushed to a client of the development equipment, so that the first update state code is displayed in the client of the development equipment, and then the corresponding state code is returned to an Excel plug-in terminal to prompt research and development personnel. The first hot update status code and the corresponding status code information are also shown in table 3.
In the hot update method of game data provided by this embodiment, 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 responding to modification instructions of the first game data and the second game data by a plurality of developers through the client of the development device, modifying the first game data and the second game data to obtain a modified file, sending the modified file to the terminal equipment through the client of the development equipment, sending the modified data of the client to the game client by the terminal equipment, and thermally updating the first game data through the modified data of the client by the game client, meanwhile, the terminal equipment sends the server modification data to the game server, and the game server carries out hot update on the second game data through the server modification data, so that at least the following technical effects can be brought:
1) a convenient debugging environment is provided, and the development efficiency and quality of a system for updating game data online by multiple persons at the same time are effectively improved;
2) an environment capable of using multiple groups of test data to comprehensively test a program structure is provided for research and development personnel, the coverage rate of test cases is improved, and the test quality is improved;
3) the method supports the cooperation of a plurality of research and development personnel, and the table data modified by the research and development personnel can take effect, so that the overall efficiency of product development is improved;
4) the online modified table data is not stored, so that the formal filling value in the formal wear is not influenced, and the product defect is not generated;
5) the mechanism for hot-updating tables is modified so that all tables can be hot-updated using the tool.
In general, the technical scheme provided by the invention is a technical implementation method capable of effectively ensuring that a plurality of people simultaneously perform online hot updating on game data or table data.
Fig. 13 is a flowchart of a first embodiment of a game data hot-update apparatus according to an embodiment of the present invention, and as shown in fig. 13, the game data hot-update apparatus 1300 includes:
an obtaining module 1301, configured to obtain first game data of a game client and second game data of a game server;
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, so as to obtain a modification file, where the modification file includes client modification data and server modification data;
and a first sending module 1303, configured to send the modification file to a terminal device, where the terminal device is configured to send the client modification data to the game client, and send the server modification data to the game server.
Optionally, the modification module 1302 is further configured to obtain a preset plug-in, where the plug-in is used to store and send the modification file; integrating the plug-in into the data processing software Excel; the first game data and the second game data are modified in Excel.
The hot updating apparatus 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 foregoing method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 14 is a flowchart of a second embodiment of a hot updating apparatus for game data according to an embodiment of the present invention, and as shown in fig. 14, the hot updating apparatus 1400 for game data includes:
a first receiving module 1401, configured to receive a modification file sent by a client of a development device, where the modification file includes client modification data and server modification data;
a second sending module 1402, configured 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 for hot updating first game data of the game client through the client modifying data, and the game server is used for hot updating second game data of the game server through the server modifying data.
Optionally, the second sending module 1402 is further configured to preset a guide table rule, where the guide table rule is used to distinguish client modification data and server modification data in the modification file; and sending the client modification data to the game client based on the guide table rule, and sending the server modification data to the game server.
The hot updating apparatus for game data provided in this embodiment is used to implement the technical solution of the terminal device in any of the foregoing method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 15 is a flowchart of a third embodiment of a game data hot update apparatus according to an embodiment of the present invention, and as shown in fig. 15, the game data hot update apparatus 1500 includes:
a second receiving module 1501, configured to receive server modification data sent by a terminal device, where the server modification data is obtained from a modification file sent by a client of a development device, and the modification file includes the server modification data;
the first hot update module 1502 is configured to perform hot update on the second game data of the game server based on the server modification data.
Optionally, the first hot update module 1502 is further configured to load the second game data into the game server memory, and search, in the game server memory, target line data in the second game data according to the keyword; and according to a preset data protocol, carrying out hot updating on the target line data based on the server side modification data.
Optionally, the device is further configured to, after receiving the server modification data, if the second game data is not updated, thermally update the second game data to the server modification data; and copying the server modification data to an update directory file, wherein the update directory file is used for storing the server modification data updated at the game server.
Optionally, the device is further configured to, after receiving the server modification data, if part of the game data in the second game data has been updated in a hot manner, perform a hot update on other game data that is not updated in the hot manner in the second game data based on the server modification data according to the data protocol.
Optionally, the first hot update module 1502 is further configured to parse the server modification data subjected to the data encapsulation processing to obtain parsed data, where the server modification data is subjected to the data encapsulation processing by the terminal device according to a preset data protocol, and is sent to the game server; and performing hot updating on the second game data of the game server based on the analysis data.
Optionally, the apparatus is further configured to obtain a second hot update result for 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 equipment, wherein the client of the development equipment is used for displaying the second update status code.
The hot update apparatus for game data provided in this embodiment is used to execute the technical solution of the game server in any of the foregoing method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 16 is a flowchart of a fourth embodiment of a game data hot update apparatus according to an embodiment of the present invention, and as shown in fig. 16, the game data hot update apparatus 1600 includes:
a third receiving module 1601, configured to receive client modification data sent by a terminal device, where the client modification data is obtained from a modification file sent by a client of a development device, and the modification file includes the client modification data;
a second hot update module 1602, configured to perform hot update on the first game data of the game client based on the client modification data.
Optionally, the second hot update module 1602 is further configured to call an exec function to execute a Python character string to obtain execution data, where the Python character string is obtained by performing data format conversion on client modification data by a terminal device, and is sent to the game client by the terminal device based on a Telnet protocol; a hot update interface is invoked and a hot update is performed on the first game data based on the execution data.
Optionally, the apparatus is further configured to obtain 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 equipment, wherein the client of the development equipment is used for displaying the first update status code.
The hot updating apparatus for game data provided in this embodiment is used to execute the technical solution of the game client in any of the foregoing method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
An embodiment of the present application further provides a game data hot update system, including: the client of the development equipment is used for realizing the technical scheme of the client of the development equipment provided by the embodiment of the method; the terminal device is used for realizing the technical scheme of the terminal device provided by the embodiment of the method; the game server is used for realizing the technical scheme of the game server provided by the embodiment of the method; and the game client is used for realizing the technical scheme of the game client provided by the embodiment of the method.
The game data hot update system provided in this embodiment is used for executing the technical solutions of the client, the terminal device, the game server and the game client of the development device in the foregoing method embodiments, and the implementation principles and technical effects are similar, and are not described herein again.
Fig. 17 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 17, the terminal device 1700 includes:
a processor 1701, a memory 1702, a display 1703;
the memory 1702 is used for storing programs and data, and the processor 1701 invokes the programs stored in the memory to execute the technical solution of the hot update method for game data provided by any one of the foregoing method embodiments, which implements similar principles and technical effects, and is not described herein again.
In the terminal device, the memory and the processor are directly or indirectly electrically connected to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines, such as a bus. The memory stores computer-executable instructions for implementing the data access control method, and includes at least one software functional module which can be stored in the memory in the form of software or firmware, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory.
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 Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory is used for storing programs, and the processor executes the programs after receiving the execution instructions. Further, the software programs and modules within the aforementioned memories may also include an operating system, which may include various software components and/or drivers for managing system tasks (e.g., 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.
The processor may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is used, when being executed by a processor, to implement the technical solution of the hot update method for game data provided in any of the foregoing method embodiments.
The present application further provides a computer program product comprising: and the computer program is used for realizing the technical scheme of the hot updating method of the game data provided by any one of the method embodiments when being executed by the processor.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (21)

1. A method for hot updating of game data, applied to a client of a development device, the method comprising:
acquiring first game data of a game client and second game data of a game server;
responding to a plurality of modification instructions aiming at the first game data and the second game data, modifying the first game data and the second game data to obtain a modification file, wherein the modification file comprises client modification data and server modification data;
and sending the modification file to terminal equipment, wherein the terminal equipment is used for sending the client modification data to a game client and sending the server modification data to a game server.
2. The method of claim 1, wherein said modifying the first game data and the second game data comprises:
acquiring a preset plug-in, wherein the plug-in is used for storing and sending the modification file;
integrating the plug-in data processing software Excel;
modifying the first game data and the second game data in Excel.
3. A game data hot updating method is applied to a terminal device, and comprises the following steps:
receiving a modification file sent by a client of development equipment, wherein the modification file comprises client modification data and server modification data;
sending the client modification data to a game client, and sending the server modification data to a game server;
the game client is used for hot updating first game data of the game client through the client modification data, and the game server is used for hot updating second game data of the game server through the server modification data.
4. The method of claim 3, wherein sending the client modification data to a game client and the server modification data to a game server comprises:
presetting a guide table rule, wherein the guide table rule is used for distinguishing the client modification data and the server modification data in the modification file;
and sending the client modification data to the game client based on the guide table rule, and sending the server modification data to the game server.
5. A game data hot updating method is applied to a game server side and comprises the following steps:
receiving server modification data sent by terminal equipment, wherein the server modification data are obtained from a modification file sent by a client of development equipment, and the modification file comprises the server modification data;
and carrying out hot updating on the second game data of the game server based on the server modification data.
6. The method of claim 5, wherein said hot updating the second game data of the game server based on the server modification data comprises:
loading the second game data into a game server memory, and searching target line data in the second game data in the game server memory according to keywords;
and according to a preset data protocol, carrying out thermal updating on the target line data based on the server side modification data.
7. The method of claim 6, further comprising:
after receiving the server modification data, if the second game data is not updated, thermally updating the second game data into the server modification data;
and copying the server modification data to an update directory file, wherein the update directory file is used for storing the server modification data updated at the game server.
8. The method of claim 6, further comprising:
after receiving the server modification data, if part of the second game data is updated in a hot manner, according to the data protocol, performing hot update on other game data which is not updated in the hot manner in the second game data based on the server modification data.
9. The method of claim 5, wherein said hot updating the second game data of the game server based on the server modification data comprises:
analyzing the server modification data subjected to data encapsulation to obtain analyzed data, wherein the server modification data are subjected to data encapsulation processing by the terminal equipment according to a preset data protocol and are sent to the game server;
and carrying out hot updating on second game data of the game server based on the analysis data.
10. The method according to any one of claims 5-9, further comprising:
acquiring a second hot update result for 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 equipment, wherein the client of the development equipment is used for displaying the second update status code.
11. A method for hot updating of game data, applied to a game client, the method comprising:
receiving client modification data sent by terminal equipment, wherein the client modification data are obtained from a modification file sent by a client of development equipment, and the modification file comprises the client modification data;
hot updating first game data of the game client based on the client modification data.
12. The method of claim 11, wherein the hot updating of the first game data of the game client based on the client modification data comprises:
calling an exec function to execute a Python character string to obtain execution data, wherein the Python character string is obtained by performing data format conversion on the client modification data by the terminal equipment, and is sent to the game client by the terminal equipment based on a Telnet protocol;
and calling a hot update interface, and carrying out hot update on the first game data based on the execution data.
13. The method according to claim 11 or 12, characterized in that the method further comprises:
acquiring a first hot update result for 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 development equipment, wherein the client of the development equipment is used for displaying the first update status code.
14. An apparatus for hot updating game data, comprising:
the acquisition module is used for acquiring first game data of the game client and second game data of the game server;
the modification module is used for responding to modification instructions aiming at the first game data and the second game data, and modifying the first game data and the second game data to obtain a modified file, wherein the modified file comprises client modification data and server modification data;
and the first sending module is used for sending the modification file to terminal equipment, wherein the terminal equipment is used for sending the client modification data to a game client and sending the server modification data to a game server.
15. An apparatus for hot updating game data, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a modification file sent by a client of development equipment, and the modification file comprises client modification data and server modification data;
the second sending module is used for sending the client modification data to a game client and sending the server modification data to a game server;
the game client is used for hot updating first game data of the game client through the client modification data, and the game server is used for hot updating second game data of the game server through the server modification data.
16. An apparatus for hot updating game data, comprising:
the second receiving module is used for receiving server modification data sent by the terminal equipment, wherein the server modification data are obtained from a modification file sent by a client of the development equipment, and the modification file comprises the server modification data;
and the first hot updating module is used for carrying out hot updating on the second game data of the game server based on the server modification data.
17. An apparatus for hot updating game data, comprising:
the third receiving module is used for receiving client modification data sent by the terminal equipment, wherein the client modification data are obtained from a modification file sent by a client of the development equipment, and the modification file comprises the client modification data;
and the second hot updating module is used for carrying out hot updating on the first game data of the game client based on the client modification data.
18. A system for hot updating game data, comprising:
a client of a development device for executing the thermal update method of game data according to claim 1 or 2;
a terminal device for executing the thermal update method of game data according to claim 3 or 4;
a game server for executing the hot update method of game data according to any one of claims 5 to 10;
a game client for performing the method of hot-updating game data of any of claims 11-13.
19. A terminal device, comprising:
a processor, a memory, a display;
the memory is used for storing programs and data, and the processor calls the programs stored in the memory to execute the hot update method of the game data in any one of claims 1-13.
20. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for hot updating of game data according to any one of claims 1 to 13.
21. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements a method for hot-updating game data according to any one of claims 1 to 13.
CN202110986358.6A 2021-08-26 2021-08-26 Game data hot updating method, device, equipment and storage medium Pending CN113680073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110986358.6A CN113680073A (en) 2021-08-26 2021-08-26 Game data hot updating method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110986358.6A CN113680073A (en) 2021-08-26 2021-08-26 Game data hot updating method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113680073A true CN113680073A (en) 2021-11-23

Family

ID=78582797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110986358.6A Pending CN113680073A (en) 2021-08-26 2021-08-26 Game data hot updating method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113680073A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230416A1 (en) * 2003-05-12 2004-11-18 Microsoft Corporation Bifurcated operating system having a language neutral component
US20060148550A1 (en) * 2006-01-30 2006-07-06 Nee Patrick W Jr Auditing data transfers in electronic game device systems
KR20100125931A (en) * 2009-05-22 2010-12-01 주식회사 넥슨 System and method for storing on-line game modification
WO2015074388A1 (en) * 2013-11-21 2015-05-28 Tencent Technology (Shenzhen) Company Limited Task execution method,apparatus and system
CN105094906A (en) * 2015-07-22 2015-11-25 网易(杭州)网络有限公司 Hot update method, device and system for game server
CN106790432A (en) * 2016-12-05 2017-05-31 广州谷得网络科技有限公司 A kind of Oftware updating method and device
CN106775623A (en) * 2016-11-17 2017-05-31 网易(杭州)网络有限公司 Plan the processing method and processing device of allocation list
CN111460006A (en) * 2020-04-25 2020-07-28 智博云信息科技(广州)有限公司 Data mining method and device for database construction and server

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230416A1 (en) * 2003-05-12 2004-11-18 Microsoft Corporation Bifurcated operating system having a language neutral component
US20060148550A1 (en) * 2006-01-30 2006-07-06 Nee Patrick W Jr Auditing data transfers in electronic game device systems
KR20100125931A (en) * 2009-05-22 2010-12-01 주식회사 넥슨 System and method for storing on-line game modification
WO2015074388A1 (en) * 2013-11-21 2015-05-28 Tencent Technology (Shenzhen) Company Limited Task execution method,apparatus and system
CN105094906A (en) * 2015-07-22 2015-11-25 网易(杭州)网络有限公司 Hot update method, device and system for game server
CN106775623A (en) * 2016-11-17 2017-05-31 网易(杭州)网络有限公司 Plan the processing method and processing device of allocation list
CN106790432A (en) * 2016-12-05 2017-05-31 广州谷得网络科技有限公司 A kind of Oftware updating method and device
CN111460006A (en) * 2020-04-25 2020-07-28 智博云信息科技(广州)有限公司 Data mining method and device for database construction and server

Similar Documents

Publication Publication Date Title
US20220253588A1 (en) Page processing method and related apparatus
US9218269B2 (en) Testing multiple target platforms
CN110944048B (en) Service logic configuration method and device
CN109947767A (en) System in multiple lease database system shares type
US20110167332A1 (en) System and Method for Generating Web Pages
CN109814884A (en) A kind of method and system carrying out resource management according to game resource type
CN112930529A (en) Generating software artifacts from conceptual data models
US11893367B2 (en) Source code conversion from application program interface to policy document
US10275234B2 (en) Selective bypass of code flows in software program
CN111722873A (en) Code reconstruction method, device, equipment and medium
CN112000334A (en) Page development method, device, server and storage medium
CN116028022A (en) Java technology-based zero code Excel data importing method, device and medium
CN117112060A (en) Component library construction method and device, electronic equipment and storage medium
CN115994085A (en) Code coverage rate test processing method, device, equipment and storage medium
CN117008920A (en) Engine system, request processing method and device, computer equipment and storage medium
US10891426B2 (en) Editing program, editing device, and editing method for editing text and displaying the edited text
CN113680073A (en) Game data hot updating method, device, equipment and storage medium
CN116028062A (en) Target code generation method, NPU instruction display method and device
CN115794858A (en) Query statement processing method, device, equipment and storage medium
CN115688698A (en) Text code editing method and system
CN113934748A (en) Mixed type SQL script file generation method, execution method and device
CN114721930A (en) Data processing method, device, equipment and medium
CN113806327A (en) Database design method and device and related equipment
KR101351079B1 (en) Method and system for providing service for controlling program linked to database
CN112988136B (en) User interface editing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination