CN106582013B - Game service system, method and device for updating data to online game - Google Patents

Game service system, method and device for updating data to online game Download PDF

Info

Publication number
CN106582013B
CN106582013B CN201611136030.0A CN201611136030A CN106582013B CN 106582013 B CN106582013 B CN 106582013B CN 201611136030 A CN201611136030 A CN 201611136030A CN 106582013 B CN106582013 B CN 106582013B
Authority
CN
China
Prior art keywords
data
configuration table
game
configuration
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.)
Active
Application number
CN201611136030.0A
Other languages
Chinese (zh)
Other versions
CN106582013A (en
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 CN201611136030.0A priority Critical patent/CN106582013B/en
Publication of CN106582013A publication Critical patent/CN106582013A/en
Application granted granted Critical
Publication of CN106582013B publication Critical patent/CN106582013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • 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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

the invention relates to a game service system, a method and a device for updating data to online games. The game service system includes: the game server is used for providing game service for the game client; the intermediate server is used for providing a configuration service, wherein the configuration service comprises modifying data in a configuration table of the game, and the modified data in the configuration table of the game is used for reloading data of the online game so as to update the data to the online game; and the intermediate server is further configured to send the data in the configuration table of the modified game to the game server. The invention solves the technical problem that the results cannot be edited and observed conveniently and immediately when the configuration table data is modified in the related technology, and greatly improves the efficiency of game research and development.

Description

Game service system, method and device for updating data to online game
Technical Field
The invention relates to the field of game development. In particular, the present invention relates to a game service system, a method and apparatus for updating data to an online game.
background
In the game development process, the planning value and the game code are usually separated through the form of a configuration table, and the configuration table is converted into the form of the code by an intermediate table conversion tool and is applied to the game. In the development process of the game, the situation that the value of the configuration table needs to be changed is often encountered, and the value of the configuration table is changed for adjusting the value when the value balance is verified; the test function may also change values or add test data for convenience during the course of testing the game.
In existing applications, there are two ways that can be generally adopted to address the above problems. The first way is to modify the data of the adjustment configuration table directly or add the test data, convert the data into the code form data again through the table conversion tool, and restart the game code. And repeatedly executing the step of modifying the restart to achieve the development result of the final requirement. In another method, during the running process of the game, codes applied to corresponding data are found in a game script code space, and corresponding reloading codes are manually written to modify corresponding data code blocks.
no matter which method is used, time and labor are wasted, and results cannot be edited and observed conveniently in real time.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
the embodiment of the invention provides a method and a device for updating data to an online game, which solve the problems caused by updating data in the related technology.
According to an aspect of the present invention, there is provided a game service system including: the game server is used for providing game service for the game client; the intermediate server is used for providing a configuration service, wherein the configuration service comprises modifying data in a configuration table of the game, and the modified data in the configuration table of the game is used for reloading data of the online game so as to update the data to the online game; and the intermediate server is further configured to send the data in the configuration table of the modified game to the game server.
according to another aspect of the present invention, there is also provided a method for updating data to an online game, comprising: providing a configuration service, wherein the configuration service comprises modifying data in a configuration table of the game, the data in the configuration table of the modified game being used to reload data of the online game to update the data to the online game; and sending the data in the configuration table of the modified game to the game server.
according to another aspect of the present invention, there is also provided a method for updating data to an online game, comprising: monitoring and waiting for a connection request through a port, establishing connection after receiving an allowed connection request, receiving modification data through the connection, and reloading data of the online game according to the modification data to update the data to the online game.
According to another aspect of the present invention, there is also provided an apparatus for updating data to an online game, comprising: the configuration service module is used for providing configuration service, wherein the configuration service comprises the step of modifying data in a configuration table of the game, and the data in the configuration table of the modified game is used for reloading data of the online game so as to update the data to the online game; and a communication module for transmitting the data in the configuration table of the modified game.
According to another aspect of the present invention, there is also provided an apparatus for updating data to an online game, comprising: the game system comprises a port module used for monitoring and waiting for a connection request through a port, a communication module used for establishing connection after receiving an allowed connection request and receiving data in a configuration table of a modified game through connection, and a processing module used for reloading the data of the online game according to the data in the configuration table of the modified game so as to update the data to the online game.
The invention provides a scheme for adding a game in the middle service connection operation and a configuration table file of the game. The intermediate server is realized in the form of a Web server, so that a user can access the Web server through a browser to edit and change the configuration table file on a page, and changed data can be acted in a game in real time.
the embodiment of the invention provides a method for updating and editing a game configuration table on line, which can simply and easily change and edit the game configuration table and can be applied to games in real time, thereby greatly improving the efficiency of game research and development.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a block diagram of a game service system according to an embodiment of the present invention;
FIG. 2 is a flowchart of an embodiment of the processing and presentation of configuration tables by a middleware Web server in accordance with an illustrative embodiment;
FIG. 3 is a schematic illustration of the processing and presentation of configuration tables by a middleware Web server in accordance with an illustrative embodiment;
FIG. 4 is a flowchart of one embodiment of operations for a user to change a configuration table, in accordance with the illustrative embodiments;
FIG. 5 is a schematic diagram of the effect of the flow shown in FIG. 4;
FIG. 6 is a schematic illustration of the effect of a modify operation according to an exemplary embodiment;
FIG. 7 is an interaction flow diagram of a middleware Web server device and a game server device in accordance with an illustrative embodiment;
Fig. 8 is a flowchart of a specific game server-side processing flow according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
it should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above 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. Moreover, the terms "comprises," "comprising," and any other variation 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 modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus.
in accordance with an embodiment of the present invention, there is provided an embodiment of a method that may be performed by an embodiment of the apparatus of the present application, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
the technical problem to be solved by the invention is as follows: the method for updating and editing the game configuration table on line is provided, the game configuration table can be changed and edited simply and easily, and can be applied to games in real time, and the efficiency of game research and development is greatly improved.
In order to solve the technical problems, the invention provides a scheme for joining the running games and the configuration table files of the games in the intermediate service connection. The intermediate server is realized in the form of a Web server, so that a user can access the Web server through a browser to edit and change the configuration table file on a page, and changed data can be acted in a game in real time.
The Web server as the middleware takes on three parts, including:
analyzing and reading the existing game value configuration table file, and storing the game value configuration table file in the memory of the Web server by using a uniform data structure.
and presenting corresponding data contents of the configuration table to a Web browser client of the user according to the request requirement of the user, and providing a convenient and direct interaction mode for modifying the data in the configuration table.
The server connected with the game modifies the data content in real time, and the game server end opens a port to monitor the request sent by the Web server so as to carry out interaction according to a set of self-defined communication protocol.
According to an embodiment of the present invention, there is provided a game service system. Fig. 1 is a block diagram of a game service system according to an embodiment of the present invention.
As shown in fig. 1, the game service system 2 includes: an intermediate server 4 and a game server 6, wherein the game server 6 is used for providing game services for game clients; the intermediate server 4 is used for providing a configuration service, wherein the configuration service comprises modifying data in a configuration table of the game, and the data in the configuration table of the modified game is used for reloading data of the online game so as to update the data to the online game; and the intermediate server 4 is also arranged to send data in the configuration table of the modified game to the game server 6. In the existing technology for configuring the configuration table of the game, the configuration table can only be modified and then converted into code form data again through a table conversion tool, and then the game code is restarted, and the game code is repeatedly modified and restarted to achieve the required development result. Or, in the running process of the game, finding the codes applied to the corresponding data in the game script code space, and manually writing the corresponding reloading codes to modify the corresponding data code blocks. In the game service system 2 according to the embodiment, the intermediate server 4 modifies the data in the configuration table of the game, and the modified data is transmitted to the game server 6, so that the game server 6 can reload the data of the online game according to the modified data transmitted by the intermediate server 4, and update the data of the game when the game is online. In this way, with the game service system 2 according to the present embodiment, it is possible to edit and observe the result instantly and conveniently without manually converting code, manually writing heavy-load code, and repeatedly restarting the game.
According to an embodiment of the invention, the intermediate server provides the configuration service through a Web service. The intermediate server may be implemented in the form of a Web service, and provides the Web service, for example, a Web browser interface may be provided on a Web front end, a user may configure a configuration table of a game on the Web front end, and the intermediate server immediately processes modification of data in the configuration table of the corresponding game. In this way, the user can use the configuration service in a webpage mode through the browser, the interface is friendly and easy to use, and browsing and editing of the configuration table are facilitated.
According to an embodiment of the present invention, in case that data in a configuration table of a game is modified by a configuration service, an intermediate server transmits the data in the configuration table of the modified game to an open listening port of a game server, wherein the listening port is opened to the intermediate server for the game server in advance. To provide the modified data to the game server, the game server opens a listening port for waiting to receive data in the configuration table for the modified game sent by the intermediate server. If the data in the configuration table of the intermediate server (the configuration table can be stored on the intermediate server in an excel file) is modified, the modified data is sent to the game server through the monitoring port. The ports are opened in advance to ensure that the game server can receive the transmitted data in the modified configuration table whenever the data of the configuration table is modified. For example, after a user configures a configuration table of a game via a Web service (e.g., through a Web front end), a request for modifying data of the game configuration table is sent via the Web service, and the intermediate server immediately processes the request and sends the data in the modified configuration table of the game to an open monitoring port of the game server. In this way, after the user configures the configuration table of the game through the Web service, the game server can receive the data in the modified configuration table of the game in real time through the listening port.
According to the embodiment of the invention, the intermediate server encrypts the data in the modified configuration table of the game and sends the encrypted data to the game server; and/or the intermediate server sends the data in the configuration table of the modified game to the game server through a predefined protocol. The game server opens a port for configuration service for the intermediate server, and in order to ensure the safety of data transmission, the data in the configuration table is encrypted and then sent. Or, if the encryption mode is not adopted, the intermediate server and the game server can also adopt a predefined protocol to mutually transmit data, and the safe transmission of the data can also be realized.
According to an embodiment of the invention, the data in the configuration table of the modified game comprises: a configuration table name of the configuration table, a row number of a cell of the modified data, a column name, and a value of the cell. After modifying the data in the configuration table of the game, the data in the modified configuration table includes the basic information of the data in the configuration table in order to accurately locate which data has been modified in the configuration table and to indicate which modifications have been made to the data. The configuration table name of the configuration table is used for indicating which configuration table of the game the configuration table is, and the row number and the column name of the cell can be used for quickly locating the position of the data in the configuration table, and the value is the value of the modified data.
According to the embodiment of the invention, before sending the data in the configuration table of the modified game, the intermediate server packages the data in the configuration table of the modified game into the data packet, wherein the data packet comprises: a protocol header for indicating a sender of data in a configuration table of the modified game; an index sequence number for directing a process to be performed; and data in the configuration table of the modified game. The intermediate server and the game server need to transmit information to each other in a predetermined protocol, and in this embodiment, the modified data is packetized, and the packetized data packet indicates, in the form of a protocol header, that the data is sent by the intermediate server for identifying and authenticating the sender. After the data is sent, the receiving party needs to be informed of the processing type executed after the data is received, the index sequence number is represented in the data packet, and the game server is informed of the execution of the reloading function after the modified data is received, for example, the reloading function is executed to execute the reloading of the game data based on the modified data.
according to an embodiment of the invention, the data packet further comprises: a player ID field of the game for processing data of the player. When the data packet contains this data, processing can be performed for a particular player, enabling the data that needs to be updated to be located more quickly.
According to an embodiment of the invention, configuring the service further comprises: the configuration table of the game is acquired by the intermediate server, and the configuration table is presented in a Web form. In addition to being able to modify data in the configuration table for the game, the intermediate server can read in the configuration table and then present the configuration table and its data in the browser. The intermediate server presents the configuration table in a Web form, so that a user can intuitively access the configuration table, the mode of accessing the configuration table by using a browser is friendly and intuitive, and the configuration table is directly accessed on the intermediate server, so that data can be conveniently changed on the intermediate server to be sent to the game server.
according to an embodiment of the present invention, acquiring a configuration table of a game includes: and filtering all configuration tables under the root directory to obtain the configuration table according to a filtering condition corresponding to the storage form of the configuration table by configuring the root directory of the configuration table for reading the game, wherein the root directory is stored in the configuration in a configuration file mode. In this way, the required configuration table file can be quickly and automatically read.
According to an embodiment of the present invention, obtaining the configuration table of the game further comprises: a directory of configuration tables is stored in the intermediate server in a tree structure. In this way, the data can be stored in a structured mode, the structure is clear, and the use is convenient.
According to an embodiment of the present invention, presenting a configuration table in the form of a Web includes: and when the intermediate server is accessed for the first time, the intermediate server packages and renders the directory of the configuration table and the configuration table in the html form for presenting in the Web form. In this way, the configuration table is converted into a form that can be presented in Web form, enabling an overview of the configuration table and catalog to be seen when the user first accesses it.
According to an embodiment of the present invention, presenting a configuration table in the form of a Web includes: and analyzing the configuration table by the intermediate server, and generating an html file and a css file for presenting in a Web form, wherein the html file comprises data of the configuration table, and the css file comprises a format called when the html is rendered for presenting in the Web form. In this way, the data to be presented is divided into two parts, namely data and presentation format, and the configuration table is presented according to the required arrangement mode by calling the data and presentation format.
according to an embodiment of the present invention, presenting a configuration table in the form of a Web includes: and caching the analyzed data by the intermediate server after the configuration table is analyzed for the first time. In order to reduce the data amount required to be stored and transmitted each time, the analyzed data is cached in the intermediate server, when the intermediate server accesses or modifies the data again later, the intermediate server does not need to call the configuration table again, the cached analyzed data can be used, a large amount of time for transmitting and analyzing the data is saved, and the resource consumption is reduced.
According to an embodiment of the invention, modifying the data in the configuration table comprises: and receiving selection of the presented configuration table by the intermediate server, and requesting data in the configuration table according to the selection, wherein the data in the configuration table is used for being presented in a Web form after being analyzed. In order to locate the data in the configuration table, the data needing to be modified is presented in a Web form, the data in the configuration table is analyzed to be displayed on a browser after a user selects the configuration table from the browser, and the data is analyzed only after the selection so as to save resources.
according to an embodiment of the present invention, modifying the data in the configuration table further comprises: a selection of data to be modified in a configuration table presented in Web form is received, and an editable text box is displayed for receiving the data in the modified configuration table. And after the user selects the data to be modified in the configuration table, the data can be modified and edited. And a friendly editing interface is presented for the user in a mode of displaying the editable text box after clicking, and the input of the user can be received in the editable text box for changing data, so that the data can be conveniently modified.
According to an embodiment of the present invention, modifying the data in the configuration table further comprises: the location of the data in the configuration table to be selected is looked up from the configuration table presented in the Web form using a look-up function. The user can also search data through a search tool such as a browser, and the data to be modified can be found after the data is input in the search tool, so that the time for selecting the data by clicking the hierarchy in the configuration list is saved.
According to an embodiment of the invention, the selection of the presented configuration table comprises selecting the configuration table in a directory tree of configuration tables, wherein the directory tree presents a directory of configuration tables stored in a tree structure. The user can directly click the catalog of the configuration table, the catalog is displayed in a tree structure, and the user can clearly know the position of the structure of the data in the configuration table, which is beneficial to the logic distribution arrangement of the game data.
according to an embodiment of the invention, the selection of the presented configuration table further comprises: fixing the header of the presented configuration table, marking the selected row with a highlight color, and dynamically lengthening the cell through the focus to display the contents of the presented configuration table. In order to facilitate the user to browse data intuitively from the browser, the header can be fixed, so that when the data in the configuration table needs to be presented by turning pages, the content and the position represented by the data can be conveniently determined, and the selected data is more obvious. If the data content is too long, the display in the cell can be dynamically lengthened again. In this way, a friendly browsing interface is provided.
According to an embodiment of the present invention, the intermediate server receives and reloads a result of the data of the online game from the game server after reloading the data of the online game, and displays the result. After the data is modified and sent to the game server, the intermediate server receives and displays the processing result of the game server, so that the user can know whether the modification is successfully applied.
in the embodiment of the invention, the method for receiving, presenting and modifying the data in the configuration table of the game by using the intermediate server is provided, and the modified data is sent to the game server, so that the game server can receive the modified data in real time, and the data is updated when the game is online by calling the heavy-load function, so that the data modification of the configuration table of the game is simple and convenient, the modification result can be seen in real time, and the time required for adjusting the data during game planning is greatly saved.
Embodiments of the present invention also provide a method for updating data to an online game, which is implemented in the same manner as the method implemented on the intermediary server side above. Embodiments of the present invention also provide a method for updating data to an online game, which is implemented in the same manner as the method implemented on the game server side above. This method is not described here. By the method, the game server can receive the modified data in real time and call the heavy-load function to update the data when the game is on line, so that the data of the configuration table of the game is simple and convenient to modify, the modification result can be seen in real time, and the time required for adjusting the data during game planning is greatly saved.
embodiments of the present invention also provide an apparatus for updating data to an online game, including: the configuration service module is used for providing configuration service, wherein the configuration service comprises the step of modifying data in a configuration table of the game, and the data in the configuration table of the modified game is used for reloading data of the online game so as to update the data to the online game; and a communication module for transmitting the data in the configuration table of the modified game. The device of the embodiment can conveniently modify the data in the game configuration table, and is used for calling the reload function to update the data when the game is on line, so that the data modification of the game configuration table is simple and convenient, the modification result can be seen in real time, and the time required for adjusting the data during game planning is greatly saved.
embodiments of the present invention also provide an apparatus for updating data to an online game, including: the game system comprises a port module used for monitoring and waiting for a connection request through a port, a communication module used for establishing connection after receiving an allowed connection request and receiving data in a configuration table of a modified game through connection, and a processing module used for reloading the data of the online game according to the data in the configuration table of the modified game so as to update the data to the online game. The device of the embodiment can conveniently receive and modify the data in the game configuration table, and call the heavy-load function to update the data when the game is on line, so that the data modification of the game configuration table is simple and convenient, the modification result can be seen in real time, and the time required for adjusting the data during game planning is greatly saved.
Exemplary embodiments according to the present invention are described below with reference to the accompanying drawings.
Example 1
fig. 2 is a flowchart of an embodiment of processing and presenting a configuration table by a middleware Web server according to an exemplary embodiment, and as shown in fig. 2, the method for interaction between a user and the configuration table provided by this embodiment includes:
s202, reading a root directory of the configuration table through configuration:
The root directory path can be stored in the configuration of the middleware Web server in a configuration file mode, all effective configuration tables under the root directory are filtered, different filtering conditions can be set in the configuration tables according to different storage forms, and all configuration table file directories are stored in a tree structure.
S204, presenting the configuration table files in the directory to the user in a Web form:
when a user accesses for the first time, the middleware Web server of the invention is requested by a Web browser in an Http mode, the middleware responds to the request of the user, packages and renders the directory and the file read in the previous step S202 in an Html mode, and sends the directory and the file to the Web browser of the user, so that the user can select a configuration table which needs to be modified next.
S206, waiting for the configuration table which needs to be modified and corresponds to the user selection request:
the user can select the corresponding configuration table file at the front end and request the Web server to send the specific configuration table file content.
S208, analyzing the corresponding configuration table file, and sending the configuration table file to a user in a Web form:
Different configuration files need to be analyzed in a corresponding mode and are uniformly converted into a Web front end form to be displayed to the Web front end, the waiting time is long as the data content of the game configuration table is often large, the data content is generally presented to users in a paging mode, but the user experience is greatly different from the actual excel, and the content required by the user cannot be found instantly. The steps included in the present presentation flow are: analyzing excel- > encapsulating html- > sending to a browser- > browser loading- > browser rendering, and in order to greatly optimize and reduce the time of the process, the processing method for presenting push in the embodiment includes:
And separating data from formats, and putting most formats into the css file to reduce the size of the html file as much as possible. The html file mainly comprises data content, the css file and the html are packaged by the server and sent to the browser together, and the browser calls the format in the css file when rendering the html.
after the first analysis, the analyzed data is cached in the server, namely, a space time changing method is adopted.
simplifying front-end rendering, equal-width cells, and the like, reducing the rendering time of the front-end.
Fig. 3 is a schematic diagram illustrating the processing and presentation effects of the middleware Web server on the configuration table according to an exemplary embodiment, as shown in fig. 3, a user requests to access the middleware Web server in a Web form, selects a configuration table file corresponding to a configuration table to be modified from the planned configuration table directory tree on the left side, that is, data content corresponding to the xlsx-format configuration table can be obtained, and presents the data content of the configuration table in a Web front-end manner for a next modification operation.
In this embodiment, the data configuration table discards the original manual table-transferring operation flow, and further converts the operation flow into a mode that the middleware Web server automatically parses the configuration table, where the middleware plays roles including: analyzing game configuration table data, transferring and storing data functions, rendering into html form for presentation, and performing data table operation processing of a front-end user. The method has the advantages that the method is transparent, the realization mechanism of the bottom layer is not needed to be known, the content of the data configuration table is operated in a one-stop mode, the operation interface is clear, the operation process is simple, the time for changing the data configuration table can be greatly saved, the effect after the configuration table is changed can be observed in the game in real time, the value of the game configuration table can be quickly corrected by repeatedly changing the data content of the configuration table, and the data can be accurately positioned.
Example 2
Fig. 4 is a flowchart of an embodiment of an operation of changing a configuration table for a user according to an exemplary embodiment, where this embodiment is described for a user operation side, and as shown in fig. 4, the method steps of the user operation provided by this embodiment include:
s402, double-clicking the configuration table cell needing to be modified:
The game configuration table content often has many data contents, which are represented by a large number of rows and a large number of columns, so that the game configuration table can be conveniently and quickly locked to a cell needing to be modified, and the embodiment is operated by the following points:
for better lookup, a fixed header is necessary, and this embodiment is implemented by copying the element fixed display of the header through the front script, so that the header will stay at the top when the table is dragged down.
The content page of each row of the table is long, and for convenience of positioning, a row is clicked by using a clicking operation and the whole row is marked by highlight color.
In order to render speed, table cells with equal width are made, but in this case, many contents cannot be displayed, and the method adopted by the head part is to obtain the focus of the mouse and dynamically stretch the cell display.
The data of the configuration table selected by the user can be completely loaded to the Web browser and displayed after being rendered, and the content position needing to be corrected can be quickly found through the search function of the browser. And after the cell needing to be corrected is found, double-clicking the cell to carry out the next operation, wherein FIG. 5 is a schematic diagram of the effect of the process, the header content is moved on the mouse to dynamically stretch, highlight the selected row and fix the header content at the topmost end.
S404, displaying an editable text box at the position of the double-clicked cell:
The Web front end determines the cell location to be modified by responding to a double-click on the cell, reads the value of the cell and creates an editable text box to be attached to the cell, and the value of the text box is set as the value of the cell by default.
s406, modifying the value into a changed value:
Editing the changed content in the text to which the cell is attached
S408, confirming the change by returning and marking red, and canceling the change if clicking other places by right key:
In order to accomplish the modification operation in a light and simple manner, the embodiment does not make redundant buttons for operation, but accomplishes the confirmation and cancellation operations by returning and clicking other places, and in addition, if the modification is successful, the item is displayed with a red background to prompt the user that the modification is successful.
fig. 6 is a schematic diagram of the effect of the modification operation according to the exemplary embodiment, showing the effects of S402 to S410, finding the cell "lose 2000 point life", double-clicking to "lose 1000 point life" in the text edit box, and after carriage return, changing the cell content successfully and displaying in red to indicate that the operation is changed successfully.
s410, sending the modified content to a middleware Web server:
In order not to repeatedly acquire the table content, the page is not refreshed by the modification operation of each submission, and only one submission operation is performed. The acquired 4 parameters include the current table name, the row number and the column name of the cell and the value of the cell, and are uniformly formatted into a character string and sent to the middleware Web server, wherein the specific format is as follows: the table name [ row number of cell ] [ column name ] "value of cell".
in this embodiment, a data table operation processing flow of user interaction is described in detail, so that the operation experience of a user is optimized from multiple aspects of a table header, a table entry and data, and data content needing to be changed can be quickly locked. In the step of changing, no additional button operation is added, the editable text box is dynamically generated to edit the content by using the single-click and double-click operation, and the change is determined and cancelled by using the carriage return click operation. The operation flow of positioning, changing and taking effect can be effectively and rapidly completed at the user operation end. The game configuration table data is dynamically changed in the simplest way and acted in the game, and the game configuration table value can be quickly corrected and the data can be accurately positioned by repeatedly modifying the data content of the configuration table.
Example 3
FIG. 7 is an interaction flow diagram of a middleware Web server device and a game server device according to an exemplary embodiment, as shown in FIG. 7, the flow of this portion includes the flow portions of both devices, 72 is the flow of the middleware Web server, 74 is the flow of the game server, including:
72 is a communication interaction flow chart at one end of the middleware Web server device, S7202 is a parameter sent after the user front end changes the configuration table value, and the parameter format is: the table name [ row number of cell ] [ column name ] "value of cell". Next, S7204 packs the data information according to the established protocol format, and the data packing scheme of this embodiment is to include 4 parts: protocol header, index number, player Id, parameters. The protocol header field is used to indicate that the data packet is data sent by the middleware Web server, the index number field is used to direct which operation the game server will perform, the player Id field is an optional field, if any, processing is performed on the player's data, and the last parameter field is the specific data packet content. S7206, sending a connection request through the IP and port established by the game server, and if the verification is successful, establishing a TCP connection. S7208, the packaged information is sent out on the established connection. S7210, waiting for a return message, wherein the return message is the operation result of the game server 74, and includes success and failure, and the Web front end prompts the user whether the operation is successful or not in a pop-up dialog box mode. And finishing the interactive process of the middleware Web server.
74 is a communication interaction flow diagram at one end of the game server, S7402 game server will open a port to listen to the request sent by the middleware Web server 72, S7404 waits for the connection request, here a white list will be set, only the users in the white list can establish the connection through the request, here the white list is set as the middleware Web server 72, and the connection will be established after the white list passes. And S7406, receiving the packed data information S7204, and analyzing partial contents of the protocol header, the index serial number, the player Id and the parameter 4. S7406, processing according to the specific package content, wherein the specific parameter part content in the package is analyzed, including the name of the configuration table to be modified, the column name, the row index, and the modified value.
fig. 8 is a flowchart of a specific game server-side processing flow according to an exemplary embodiment, where, as shown in fig. 8, the specific game server-side processing flow includes:
s802 can locate a function module in a specific game according to the table name directory, S804 calls a data reloading function corresponding to the function module, if the game server does not have the corresponding data reloading function, the corresponding interface function needs to be independently processed and added, S806 changes data and then synchronizes to an online game client, and the process completes the change part of the game data.
And S7410, returning the processing result, wherein the result is returned by the result of the data reloading function, and comprises success and failure. S7412, closing the connection. Thus, the operation of completely updating the data configuration table online is completed.
In this embodiment, the middleware Web server processes the modified content of the data table sent from the front end, packages the modified content into a data packet according to a protocol, and sends the data packet to a corresponding game server. The game server unpacks the processed data packet, locates the corresponding in-game module according to the modified configuration table name, reloads the corresponding data table content and synchronizes the content to the game client. The middleware completes the data package and data transmission part, and the game server has a corresponding data package processing mode. The whole process is transparent to the user, the user can observe the modified configuration table content in the client after modifying the configuration table, and the game configuration table value can be rapidly modified and the data problem can be accurately positioned by repeatedly modifying the data content of the configuration table.
in the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, a module may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, modules or indirect coupling or communication connection of modules, and may be in an electrical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be construed as the protection scope of the present invention.

Claims (42)

1. A game service system, comprising: an intermediate server and a game server, wherein,
the game server is used for providing game service for the game client;
The intermediate server is used for providing a configuration service, wherein the configuration service comprises modifying data in a configuration table of a game, and the modified data in the configuration table of the game is used for reloading data of an online game so as to update the data to the online game; and is
The intermediate server is further used for sending the modified data in the configuration table of the game to the game server;
The intermediate server sends the modified data in the configuration table of the game to a monitoring port opened by the game server under the condition that the configuration service modifies the data in the configuration table of the game, wherein the monitoring port is opened to the intermediate server by the game server in advance.
2. The system of claim 1, wherein the intermediate server provides the configuration service via a Web service.
3. the system of claim 1,
the intermediate server encrypts the modified data in the configuration table of the game and sends the encrypted data to the game server; and/or the presence of a gas in the gas,
and the intermediate server sends the modified data in the configuration table of the game to the game server through a predefined protocol.
4. the system of claim 1, wherein the modified data in the configuration table for the game comprises:
A configuration table name of the configuration table, a row number of a cell of the modified data, a column name, and a value of the cell.
5. the system of claim 3, wherein the intermediate server packages the modified data in the configuration table of the game into a data packet before sending the modified data in the configuration table of the game, wherein the data packet comprises:
A protocol header for indicating a sender of the modified data in the configuration table of the game;
An index sequence number for directing a process to be performed; and
modifying data in a configuration table for the game.
6. The system of claim 5, wherein the data packet further comprises:
A player ID field of the game for processing data of the player.
7. The system of claim 1 or 2, wherein the configuration service further comprises:
Obtaining, by the intermediary server, a configuration table for the game, an
presenting the configuration table in a Web form.
8. the system of claim 7, wherein obtaining the configuration table for the game comprises:
Obtaining the configuration table by configuring a root directory for reading the configuration table of the game, and filtering all configuration tables under the root directory according to a filtering condition corresponding to a storage form of the configuration table,
Wherein the root directory is stored in the configuration in the form of a configuration file.
9. The system of claim 8, wherein obtaining the configuration table for the game further comprises:
Storing a directory of the configuration table in the intermediate server in a tree structure.
10. The system of claim 7, wherein presenting the configuration table in the form of a Web comprises:
And when the intermediate server accesses the network for the first time, the intermediate server packages and renders the directory of the configuration table and the configuration table in an html form for presenting in a Web form.
11. The system of claim 7, wherein presenting the configuration table in the form of a Web comprises:
The intermediate server analyzes the configuration table to generate an html file and a css file for presenting in a Web form,
The html file comprises data of the configuration table, and the css file comprises a format called when html is rendered for presenting in a Web form.
12. the system of claim 7, wherein presenting the configuration table in the form of a Web comprises:
And caching the analyzed data by the intermediate server after the configuration table is analyzed for the first time.
13. The system of claim 7, wherein modifying the data in the configuration table comprises:
And receiving selection of the presented configuration table by the intermediate server, and requesting data in the configuration table according to the selection, wherein the data in the configuration table is used for being presented in a Web form after being analyzed.
14. The system of claim 13, wherein modifying the data in the configuration table further comprises:
Receiving selection of data to be changed in the configuration table presented in a Web form, and displaying an editable text box for receiving the changed data in the configuration table.
15. The system of claim 14, wherein modifying the data in the configuration table further comprises:
Using a lookup function to lookup a location of data in the configuration table to be selected from the configuration table presented in the Web form.
16. The system of claim 13, wherein selecting the presented configuration table comprises selecting the configuration table in a directory tree of the configuration table, wherein the directory tree presents a directory of the configuration table stored in a tree structure.
17. the system of claim 13, wherein the selection of the presented configuration table further comprises:
fixing the header of the presented configuration table, marking the selected row with highlight color, and dynamically lengthening the cell through the focus to display the content of the presented configuration table.
18. The system of claim 1 or 2, wherein the intermediary server receives and reloads results of the data of the online game from the game server after reloading the data of the online game, and
And displaying the result.
19. A method for updating data to an online game, comprising:
Providing a configuration service, wherein the configuration service comprises modifying data in a configuration table of a game, the modified data in the configuration table of the game being used to reload data of the game online to update the data to the game online; and
Sending the modified data in the configuration table of the game to a game server;
and sending the modified data in the configuration table of the game to a monitoring port opened by the game server under the condition that the data in the configuration table of the game is modified by the configuration service, wherein the monitoring port is opened by the game server in advance.
20. The method of claim 19, wherein the configuration service is provided via a Web service.
21. The method of claim 19,
Encrypting the modified data in the configuration table of the game, and sending the encrypted data to the game server; and/or the presence of a gas in the gas,
Sending the modified data in the configuration table of the game to the game server through a predefined protocol.
22. the method of claim 19, wherein the modified data in the configuration table for the game comprises:
a configuration table name of the configuration table, a row number of a cell of the modified data, a column name, and a value of the cell.
23. The method of claim 21, wherein the modified data in the configuration table of the game is packaged into a data packet before the modified data in the configuration table of the game is sent, wherein the data packet comprises:
A protocol header for indicating a sender of the modified data in the configuration table of the game;
An index sequence number for directing a process to be performed; and
Modifying data in a configuration table for the game.
24. the method of claim 23, wherein the data packet further comprises:
a player ID field of the game for processing data of the player.
25. the method of claim 19 or 20, wherein the configuring the service further comprises:
Obtaining a configuration table of the game, an
presenting the configuration table in a Web form.
26. The method of claim 25, wherein obtaining the configuration table for the game comprises:
Obtaining the configuration table by configuring a root directory for reading the configuration table of the game, and filtering all configuration tables under the root directory according to a filtering condition corresponding to a storage form of the configuration table,
Wherein the root directory is stored in the configuration in the form of a configuration file.
27. the method of claim 26, wherein obtaining a configuration table for the game further comprises:
Storing the directory of the configuration table in a tree structure.
28. The method of claim 25, wherein presenting the configuration table in the form of a Web comprises:
and during initial access, packaging and rendering the directory of the configuration table and the configuration table in an html form for presenting in a Web form.
29. The method of claim 25, wherein presenting the configuration table in the form of a Web comprises:
Analyzing the configuration table, generating html files and css files for presenting in a Web form,
the html file comprises data of the configuration table, and the css file comprises a format called when html is rendered for presenting in a Web form.
30. the method of claim 25, wherein presenting the configuration table in the form of a Web comprises:
after the configuration table is parsed for the first time, the parsed data is cached.
31. the method of claim 25, wherein modifying the data in the configuration table comprises:
receiving selection of the presented configuration table, and requesting data in the configuration table according to the selection, wherein the data in the configuration table is used for being presented in a Web form after being analyzed.
32. The method of claim 31, wherein modifying the data in the configuration table further comprises:
Receiving selection of data to be changed in the configuration table presented in a Web form, and displaying an editable text box for receiving the changed data in the configuration table.
33. The method of claim 32, wherein modifying the data in the configuration table further comprises:
Using a lookup function to lookup a location of data in the configuration table to be selected from the configuration table presented in the Web form.
34. The method of claim 31, wherein selecting the presented configuration table comprises selecting the configuration table in a directory tree of the configuration table, wherein the directory tree presents a directory of the configuration table stored in a tree structure.
35. The method of claim 31, wherein selecting the presented configuration table further comprises:
fixing the header of the presented configuration table, marking the selected row with highlight color, and dynamically lengthening the cell through the focus to display the content of the presented configuration table.
36. The method of claim 19 or 20, wherein the result of the reloading the data of the online game is received from the game server and reloaded after reloading the data of the online game, and
And displaying the result.
37. a method for updating data to an online game, comprising:
by listening and waiting for a connection request through a listening port opened to the intermediate server in advance,
Establishing a connection with the intermediate server after receiving an allowed connection request, receiving data in a configuration table of a modified game sent by the intermediate server to the listening port through the connection, and
reloading the data of the online game according to the data in the modified configuration table of the game so as to update the data to the online game.
38. The method of claim 37, wherein reloading data for the online game comprises:
Locating a function module of the game according to the data in the modified configuration table of the game,
Calling a data reload function corresponding to the function module, or independently processing and adding a corresponding interface function, an
after changing the data, synchronizing to the online game.
39. The method of claim 38, wherein reloading data for the online game further comprises:
and according to the result of the data reloading function, closing the connection after sending the result of reloading the data of the online game.
40. the method of claim 39, wherein the result is success or failure.
41. An apparatus for updating data to an online game, comprising:
The configuration service module is used for providing configuration service, wherein the configuration service comprises the step of modifying data in a configuration table of a game, and the modified data in the configuration table of the game is used for reloading data of an online game so as to update the data to the online game; and
The communication module is used for sending the modified data in the configuration table of the game;
The device is further used for sending the modified data in the configuration table of the game to a monitoring port opened by a game server under the condition that the data in the configuration table of the game is modified by the configuration service, wherein the monitoring port is opened by the game server in advance.
42. An apparatus for updating data to an online game, comprising:
a port module for listening and waiting for a connection request through a listening port opened to the intermediate server in advance,
a communication module for establishing connection with the intermediate server after receiving the allowed connection request, receiving the data in the configuration table of the modified game sent by the intermediate server to the monitoring port through the connection, and
And the processing module is used for reloading the data of the online game according to the data in the modified game configuration table so as to update the data to the online game.
CN201611136030.0A 2016-12-09 2016-12-09 Game service system, method and device for updating data to online game Active CN106582013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611136030.0A CN106582013B (en) 2016-12-09 2016-12-09 Game service system, method and device for updating data to online game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611136030.0A CN106582013B (en) 2016-12-09 2016-12-09 Game service system, method and device for updating data to online game

Publications (2)

Publication Number Publication Date
CN106582013A CN106582013A (en) 2017-04-26
CN106582013B true CN106582013B (en) 2019-12-10

Family

ID=58598870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611136030.0A Active CN106582013B (en) 2016-12-09 2016-12-09 Game service system, method and device for updating data to online game

Country Status (1)

Country Link
CN (1) CN106582013B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107261501B (en) * 2017-06-06 2021-01-26 网易(杭州)网络有限公司 Game numerical environment construction method and device
CN109582726B (en) * 2018-12-18 2021-09-07 网易(杭州)网络有限公司 Data table processing method and device
CN110362338B (en) * 2019-07-14 2020-04-10 广州泳泳信息科技有限公司 Game resource packaging and resource quick access method under mobile platform
CN111475192B (en) * 2020-04-15 2023-11-10 上海莉莉丝科技股份有限公司 Method, device, storage medium and system for performing thermal augmentation on game server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594876A (en) * 2012-01-19 2012-07-18 网宿科技股份有限公司 Method and system for accelerating speed of mixing game real-time data and updated data
CN104573334A (en) * 2014-12-24 2015-04-29 珠海金山网络游戏科技有限公司 Playing system and method for triggering special effects and sound effects by using tag events
EP3187236A1 (en) * 2015-12-15 2017-07-05 Nintendo Co., Ltd. Game system, game process control method, and game apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594876A (en) * 2012-01-19 2012-07-18 网宿科技股份有限公司 Method and system for accelerating speed of mixing game real-time data and updated data
CN104573334A (en) * 2014-12-24 2015-04-29 珠海金山网络游戏科技有限公司 Playing system and method for triggering special effects and sound effects by using tag events
EP3187236A1 (en) * 2015-12-15 2017-07-05 Nintendo Co., Ltd. Game system, game process control method, and game apparatus

Also Published As

Publication number Publication date
CN106582013A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106582013B (en) Game service system, method and device for updating data to online game
US6119247A (en) Remote debugging of internet applications
Gundavaram CGI programming on the World Wide Web
US7526520B2 (en) Method and apparatus for providing a client by a server with an instruction data set in a predetermined format in response to a content data request message by a client
CN110020278A (en) Displaying, providing method, client and the server of page data
CN104219330A (en) Method and system for auditing screen record based on WEB proxy
US10372512B2 (en) Method and apparatus for automatic processing of service requests on an electronic device
CN108399072A (en) Five application page update method and device
US20190050376A1 (en) Automatic value formatting based on intrinsic structural semantics
WO2021093673A1 (en) E-mail sending method, apparatus and device, and computer-readable storage medium
JP2008293152A (en) Method and apparatus for coordinating web system
WO2014091257A2 (en) Web page variation
US20130097129A1 (en) Dynamic data transformations for network transmissions
CN115543479A (en) Interface calling analysis method and device suitable for dynamic parameters
US20100180205A1 (en) Method and apparatus to provide user interface as a service
CN104182402A (en) Browser interface address bar input control method and browser interface address bar input control system
US20060085492A1 (en) System and method for modifying process navigation
TW201401071A (en) System and method for enabling the styling and adornment of multiple, disparate web pages through remote method calls
CN113055348B (en) Cross-platform data request method and device and electronic equipment
CN105577620B (en) A kind of hypertext transfer protocol data restoration method and device
US20210004524A1 (en) Catalog file creation assistance device, catalog file creation assistance method, and catalog file creation assistance program
CN106648610B (en) Method and device for remotely calling and responding functional interface
US20100287292A1 (en) Method, apparatus and computer program product for generating a content website in a data communications network
WO2017084515A1 (en) Method and device for transmitting data code stream
CN114124766A (en) Test method and device based on simulation data

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
GR01 Patent grant
GR01 Patent grant