CN109857439A - A kind of update method and device of game version - Google Patents
A kind of update method and device of game version Download PDFInfo
- Publication number
- CN109857439A CN109857439A CN201910094186.4A CN201910094186A CN109857439A CN 109857439 A CN109857439 A CN 109857439A CN 201910094186 A CN201910094186 A CN 201910094186A CN 109857439 A CN109857439 A CN 109857439A
- Authority
- CN
- China
- Prior art keywords
- game
- version
- client
- legacy version
- 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.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to Internet technical fields more particularly to the update method and device of a kind of game version to complete the purpose of the update of game version for realizing in the case where not stopping the service of game server, to promote user experience.The method includes the determining legacy version game clients that connection is established with legacy version game server, and determine the game state that the legacy version game client is presently in;If the game state is the busy state of role, when monitoring that the game state is updated to role's idle state from the busy state of role, Xiang Suoshu legacy version game client sends reconnection instruction;Wherein, the reconnection instruction disconnects the connection with the legacy version game server for the legacy version game client, and establishes the connection with new version game server.
Description
Technical field
The present invention relates to Internet technical field more particularly to the update methods and device of a kind of game version.
Background technique
Online game attracts player, network as a kind of immediately online network service, in order to release new content faster
The update of game version is more frequent, currently, needing to interrupt trip provided by game server in online game version updating
Play network service, in order to reduce the influence to player during online game version updating, when being usually chosen in specific
Between be updated such as midnight, however, being updated in the specific time to online game version, when not only updating game version
Between not flexible, and the service due to needing to stop game server, so still inevitably will affect the physical examination of player.
Summary of the invention
The embodiment of the present invention provides the update method and device of a kind of game version, for realizing game services are not being stopped
In the case where the service of device, the purpose of the update of game version is completed, to promote user experience.
On the one hand, the embodiment of the invention provides a kind of update methods of game version, comprising:
The determining legacy version game client that connection is established with legacy version game server, and
Determine the game state that the legacy version game client is presently in;
If the game state is the busy state of role, monitoring the game state from the busy state of role
When being updated to role's idle state, Xiang Suoshu legacy version game client sends reconnection instruction;
Wherein, the reconnection instruction disconnects and the legacy version game server for the legacy version game client
Connection, and establish the connection with new version game server.
On the other hand, the embodiment of the invention also provides a kind of update methods of game version, comprising:
The request that the foundation that game client is sent is connect with new version game server is obtained, the request carries institute
State the game version information of game client;
If determining that the game client is legacy version game client, then Xiang Suoshu according to the game version information
Game client sends game data corresponding with legacy version game.
On the other hand, the embodiment of the invention also provides a kind of updating devices of game version, comprising:
Obtaining unit, the request that the foundation for obtaining game client transmission is connect with new version game server,
The request carries the game version information of the game client;
Transmission unit, if determining that the game client is legacy version game visitor for according to the game version information
Family end then sends game data corresponding with legacy version game to the game client.
On the other hand, the embodiment of the invention also provides a kind of computing devices, including at least one processor and at least
One memory, wherein the memory is stored with computer program, when described program is executed by the processor, so that
The processor executes the step of update method of the game version in the embodiment of the present invention.
The embodiment of the present invention provides a kind of update method of game version, and this method is in determining and legacy version game server
It establishes after the legacy version game client of connection, it is also necessary to further determine that the game that legacy version game client is presently in
State that is, in game fight, is then monitored game state, and supervising if game state is the busy state of role
When measuring the game state of legacy version game client and being updated to role's idle state from the busy state of role, i.e. game is fought
Terminate, just send reconnection instruction to legacy version game client, so that legacy version game client disconnects and legacy version game garment
The connection of business device, and the connection with new version game server is established, to complete the update of game version.So realizing
In the case where not stopping the service of game server, the purpose of the update of game version is completed.So improving user's body
Test, simultaneously because this method do not need have to specific time carry out game version update, so, also increase game version
Renewal time flexibility.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, embodiment will be described below
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment.
Figure 1A is a kind of application scenarios schematic diagram provided in an embodiment of the present invention;
Figure 1B is game server structural schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of game version update method flow chart provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram that game server provided in an embodiment of the present invention and game client establish connection;
Fig. 4 is another game version update method flow chart provided in an embodiment of the present invention;
Fig. 5 is storage game data schematic diagram provided in an embodiment of the present invention;
Fig. 6 is that game server provided in an embodiment of the present invention competes distributed lock schematic diagram;
Fig. 7 is distributed lock competing method flow chart provided in an embodiment of the present invention;
Fig. 8 provides a kind of game version updating device schematic diagram for the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical solution of the present invention is clearly and completely described, it is clear that described embodiment is skill of the present invention
A part of the embodiment of art scheme, instead of all the embodiments.Based on the embodiment recorded in present specification, this field is general
Logical technical staff every other embodiment obtained without creative efforts, belongs to the technology of the present invention side
The range of case protection.
Part concept involved in the embodiment of the present invention is introduced below.
UE4: i.e. Unreal Engine 4, be it is a set of specially be supplied to development of games design, building, simulation collection
At tool.
DS: i.e. Dedicated Server, it is the private server generated based on UE4 compiling, is responsible for war in gaming
The server for the logic that struggles against.
TGW: i.e. Tencent Gateway, it is that a set of more nets of realization are uniformly accessed into, the system for supporting automatic load balancing.
GameServer: i.e. game server provides the server of game services, for interacting completion with game client
The game operation of game player.
RS: i.e. Real Server, it is the host of real offer game services, in gaming, RS is generally referred to
GameServer。
LVS: i.e. Linux Virtual Server provides the function of load balancer Directory, itself is not provided
Specific request is only transmitted to corresponding RS, to realize the load balancing in cluster environment by service.
TCP: i.e. Transmission Control Protocol, transmission control protocol, be it is a kind of it is connection-oriented, can
Transport layer communication protocol lean on, based on byte stream.
UDP: i.e. User Datagram Protocol, User Datagram Protocol are OSI (i.e. Open System
Interconnection, open system interconnection) a kind of connectionless transport layer protocol in reference model, it provides towards affairs
Simple unreliable information transmission service.
ZooKeeper: being a software project of Apache Software Foundation, he provides open source for large-scale distributed calculating
Decentralized configuration service, synchronous service and name registration.
Game version: refer to the set for the content experienced constructed by development of games to certain phase.
As stated above, in the prior art, in order to reduce the shadow to player during online game version updating
It ringing, selection is updated in specific time such as midnight, however even at midnight, the online player for playing game is also had, if
The service for stopping game server, will necessarily inevitably will affect the physical examination of player.For this purpose, the present inventor considers
It arrives, different game states require difference to the timeliness of game operation, and usual game state includes the shape of the busy state of role
State and role's idle state, role here refer to the role of game player in gaming.It wherein, is angle in game state
When the state of the busy state of color, game player is in game fight, at this point, game player needs to carry out reality in gaming
When operate, game fight related content needs real-time update, so game client needs to carry out high timeliness with game server
Game data exchange, so that newest Combat Condition is presented in game client, guidance game player continues game fight.
If being at this time switched to game client in new edition book server from old edition book server, inevitably results in game player and fall
Line, game player can not continue game fight, i.e. game fight terminates, so that the experience of game player can be seriously affected.
And being in role's idle state in game, i.e. game player is not in game fight, as game player is swimming
Play hall carries out the operations such as game article selection, scene of game selection, at this point, operation clock synchronization of the game player in Games Lobby
Effect property is of less demanding, for example Games Lobby is presented game article and browses to game player, arrives game player's final choice playsuit
In this standby stage, have a regular hour buffering, time buffering can be used to completely by game client from legacy version service
New edition book server is switched in device, it is difficult to allow game player to discover, so will not influence game player's experience.
Based on this, the embodiment of the present invention provides a kind of update method of game version, and this method is swum determining with legacy version
Play server is established after the legacy version game client of connection, it is also necessary to further determine that the current institute of legacy version game client
The game state at place that is, in game fight, is then monitored game state if game state is the busy state of role, and
When the game state for monitoring legacy version game client is updated to role's idle state from the busy state of role, i.e. game
Fight terminates, and just sends reconnection instruction to legacy version game client, swims so that legacy version game client is disconnected with legacy version
The connection of play server, and the connection with new version game server is established, to complete the update of game version.So real
The purpose that the update of game version is completed in the case where not stopping the service of game server is showed.So improving user
Experience, simultaneously because this method do not need have to specific time carry out game version update, so, also increase game version
The flexibility of this renewal time.
Game version update method in the embodiment of the present invention can be applied to application scenarios as shown in Figure 1A, the application
It include game player 10, terminal device 11, game server 12 and game server 13 in scene, wherein terminal device 11
In the client of legacy version game is installed, legacy version game refers to, game version to be updated.Game server 12 is to support
The server of legacy version game, game server 13 is the server for supporting new version game, while also taking into account legacy version game
Service, i.e. game server 13 can also support the service of legacy version game.New version game refers to recent development or publication
The game version being updated, usual new version game is the product after the function renewal to legacy version game, function renewal packet
The Bug () for solving the problems, such as legacy version game is included, increase some functions, or delete some functions etc..
Game server 12 and game server 13 can be respectively a server, can also be respectively several services
The server cluster or cloud computing center of device composition.In application scenarios shown in figure 1A, game server 12 is serviced by more
The server cluster of device composition, game server 13 are also the server cluster of multiple servers composition.
In practical applications, it is contemplated that the logic of network game on line is complex, leads in corresponding game server
It is often made of multiple functional modules, these functional modules can be the server or multiple servers branch in game server
It holds, is as shown in Figure 1B one of the game server 13 in application scenarios shown in Figure 1A structural schematic diagram, including realize trip
The lobby Service module for lobby Service function of playing, i.e. lobby Service in Figure 1B realize that the matching of game matching service services mould
Block, i.e. matching service in Figure 1B realize that game begins the service module of beginning of service, i.e. the service of beginning in Figure 1B is used for
The dsagent module of the fight server DS in game, i.e. dsagenty in Figure 1B are managed, and realizes the war of game fight
Struggle against server DS, wherein DS includes the DS1 for supporting legacy version game, and supports the DS2 of new version game.Likewise, game
It may also comprise lobby Service module in server 12, match service module function, the service that begins, dsagent module, and support
The DS (not including the DS for supporting new version game) of legacy version game.
In application scenarios shown in figure 1A, by network connection, network can be with for terminal device 11 and game server 12
For any one in the communication networks such as local area network, wide area network or mobile Internet.Game player 10 passes through in terminal device 11
Legacy version game client, log in game server 12 carry out game operation can when needing to be updated to game version
In the method provided according to embodiments of the present invention, the legacy version game client i.e. Figure 1A connecting with game server 12 is first determined
In terminal device 11, then, it is determined that the game state that the legacy version game client is presently in, if the legacy version game
The game state that client is presently in is the busy state of role, that is, is in the busy state combat situation of role, then, just
The game state of the legacy version game client can be monitored, when monitoring its game state from the busy state of role
When being updated to role's idle state, both it can send reconnection to the terminal device 11 in legacy version game client, that is, Figure 1A and refer to
It enables, so that legacy version game client disconnects the connection with game server 12, and establishes the connection with game server 13, into
And realize in the case where stopping the service of game server, the update of game version is completed, so, it reduces to game player
Influence, improve the physical examination of game player.
It should be noted that application scenarios mentioned above are merely for convenience of understanding spirit and principles of the present invention and showing
Out, the embodiment of the present invention is unrestricted in this regard.On the contrary, the embodiment of the present invention can be applied to applicable any field
Scape.
It should be noted that the method in the embodiment of the present invention can apply the trip in any kind of network game on line
In version updating scene of playing, it is especially suitable for applying in the game version more new scene for the online games edited based on UE4.
Below with reference to the application scenarios being described above, game version update method provided in an embodiment of the present invention is said
It is bright.
As shown in Fig. 2, the game version update method provided in the embodiment of the present invention includes:
Step 201: the determining legacy version game client that connection is established with legacy version game server.
Legacy version game client in above-mentioned steps 201 can be considered the terminal device 11 in application scenarios shown in figure 1A
In the client for being equipped with legacy version game, legacy version game server can be considered the game in application scenarios shown in figure 1A
Server 12.
In embodiments of the present invention, when needing to be updated game version, legacy version game server can first really
The legacy version game client established a connection before settled establishes connection with legacy version game server in practical applications
Legacy version game client may be one or multiple, it is corresponding to determine that the legacy version established a connection is swum
Client of playing may be one or more.
Step 202: the routing address of legacy version game client is changed to newly by the address of legacy version game server
The address of version game server.
In embodiments of the present invention, as shown in figure 3, game client is usually required through access layer realization and game services
The connection of device, game server can be described as Business Logic, the routing of access layer recording game client to game server again
Information, in Fig. 3, access layer, which can be further divided into, to be responsible for legacy version game client being routed to legacy version game server
In the first access device, and be responsible for by new version game client be routed in new version game server second access
Equipment, corresponding, the routing address that legacy version game client is just had recorded in the first access device is legacy version game services
The address of device, the routing address that new version game client is just had recorded in the second access device is new version game server
Address.
In practical applications, the first access device and the second access device can be gateway TGW, or other types
Responsible game client be routed to the pass-through proxy equipment of game server, such as the LVS of open source.Therefore, in the present invention
In embodiment, after determining and legacy version game server establishes the legacy version game client of connection, first can be connect
The routing address for entering the legacy version game client in equipment is changed to new version game by the address of legacy version game server
The address of server, such as when the address of legacy version game server are as follows: a.qq.com, the address of new version game server
Are as follows: b.qq.com, it is possible to which the a.qq.com in the first access device is changed b.qq.com.
Although being swum it should be noted that changing routing iinformation in the first access device for established legacy version
The connection for the client and legacy version game server of playing, game data, that is, game request packet still can flow to legacy version game services
Device.So in embodiments of the present invention, it is also necessary to the step of execution will hereafter be introduced, to close currently-established old edition
The connection of this game client and legacy version game server, the connection of creation and new version game server.
Step 203: determining the game state that legacy version game client is presently in.
In embodiments of the present invention, game state locating for game client refers to that game player passes through game client
Game progress when game server carries out game operation is logged in, for example, game state includes the busy state of role and angle
Color idle state.
Wherein, the busy state of role refers to, game player is being in game fight, and game fight refers to, can be with
It is the interaction attacked and formed using game resource, wherein game fight includes PVP (Player versus player, player
Fight player) mode, i.e. player races mutually and PVE (Player VS Environment, player fight environment) mode,
In some network games on line, the busy state of role can be described as single innings of state of game again, i.e. game player is in one innings of trip
It plays militant state.
Role's idle state refers to that other states except the busy state of role, such as role are in Games Lobby
State, role are in the state etc. formed a team, and the state of Games Lobby refers to the state prepared for one innings of game fight, this
When, information relevant to game can be shown in Games Lobby, equipment of such as fighting selection, scene of fighting selection, fight companion
The information such as matching.
In embodiments of the present invention, it is contemplated that in the case where not stopping the service of game server, by different game shapes
Game client under state is switched in new version game services, and the influence to game client is different, in order to reduce the influence,
Different switching modes is carried out to the legacy version game client under different game states in the embodiment of the present invention, to complete
While game version updates, the influence to game player is reduced, the physical examination of game player is promoted, for this purpose, in determining and old edition
This game server is established after the legacy version game client of connection, it is also necessary to determine the current institute of legacy version game client
The game state at place.
It should be noted that above-mentioned steps 203 can execute after above-mentioned steps 202, it can also be before step 202
It executes, or is performed simultaneously with step 202.
Step 204: if game state is the busy state of role, in the game shape for monitoring legacy version game client
When state is updated to role's idle state from the busy state of role, reconnection instruction is sent to legacy version game client;
Wherein, reconnection instruction disconnects the connection with legacy version game server for legacy version game client, and establishes
With the connection of new version game server.
In embodiments of the present invention, new version game server can be considered as the game services in application scenarios shown in Figure 1A
Device 13, which is the server for supporting new version game, while also taking into account the service of legacy version game i.e.
It can also support the service of legacy version game, then, it include the DS1, Yi Jizhi for supporting legacy version game in game server
Hold the DS2 of new version game.
In embodiments of the present invention, it is contemplated that game player is in the busy state of role in combat situation, game
Information interchange timeliness between client and game server is higher, and game player needs to carry out real-time operation in gaming,
Game fight related content needs real-time update, so game client needs to carry out the game number of high timeliness with game server
According to exchange, so that newest Combat Condition is presented in game client, guidance game player continues game fight.If at this time will
Game client is switched in new edition book server from old edition book server, results in game player to go offline after certainty, game
Player can not continue game fight, i.e., game fight terminate, and lead to not game client can not receive game fight knot
Information is calculated, this will greatly affect the experience of game player.
Therefore, in embodiments of the present invention, when the game state that determining legacy version game client is presently in is angle
The busy state of color, i.e. game player are in game combat situation, can't carry out cutting for new version game server at once
It changes, but the game state of the legacy version game client in game combat situation is monitored.When monitoring legacy version
The game state of game client is updated to role's idle state from the busy state of role, i.e. after one innings of game over, just meeting
Reconnection instruction is sent to legacy version game client, meanwhile, the settlement information of this innings of game can be carried in reconnection instruction,
So that legacy version game client is after receiving reconnection instruction, the war of this innings of game is presented according to its settlement information carried
Bucket is as a result, and according to reconnection instruction, disconnect the connection with current old edition book server, and foundation and new edition book server
Connection.
In embodiments of the present invention, reconnection instruction can be specially silent reconnection instruction, or the use regenerated
The connection with legacy version game server is disconnected in legacy version game client, and establishes the connection with new version game server
Instruction.
Step 205: if game state is role's idle state, sending reconnection instruction to legacy version game client.
In embodiments of the present invention, it is contemplated that game player such as chats above in non-combat situation, that is, role's idle state
The state in Games Lobby stated, at this point, game player is not high to the timeliness of the operation of game, corresponding, game client
The timeliness of information interchange between end and game server is of less demanding, that is, does not need game player's real-time operation, therefore,
When the game state for detecting legacy version client is role's idle state, legacy version game server can be directly to legacy version
Game client sends reconnection instruction, to disconnect the connection with current old edition book server, and establishes and new edition book server
Connection, due to of less demanding to timeliness in role's idle state, so, process will not influence game player again for this
Experience.
So in embodiments of the present invention, this method is established determining with legacy version game server by the above method
After the legacy version game client of connection, it is also necessary to further determine that the game shape that legacy version game client is presently in
State, if game state is the busy state of role, i.e. one innings of game is then monitored game state, and monitoring in fighting
When being updated to role's idle state from the busy state of role to the game state of legacy version game client, i.e. single innings of game knot
Beam just sends reconnection instruction to legacy version game client, so that legacy version game client disconnects and legacy version game services
The connection of device, and the connection with new version game server is established, to complete the update of game version.So realizing
In the case where the service for not stopping game server, the purpose of the update of game version is completed.So the user experience is improved,
Simultaneously because this method do not need have to specific time carry out game version update, so, also increase game version
The flexibility of renewal time.
As a kind of optional mode, in embodiments of the present invention, establishes in legacy version game client and swum with new version
It plays after the connection of server, new version game server can execute process as shown in Figure 4:
Process shown in Fig. 4 includes:
Step 401: obtaining the request that the foundation that game client is sent is connect with new version game server, request is taken
Game version information with game client.
Step 402: according to game version information, determining that game client is legacy version game client.
In embodiments of the present invention, as mentioned above, it is contemplated that the compatible problem of game version, in new version game garment
It is still deployed with fight server i.e. DS corresponding with old edition game in business device, such as shown in figure 1 above B, in new version
Fight server in game server includes the fight server DS1 for supporting legacy version game, and supports new version game
Fight server DS2.
Therefore, legacy version game client as stated above, after disconnecting the connection with legacy version game server,
The request of connection can be established to new version game server, can also carry the game version of game client in the request
Information after new version game server receives the request, can first establish the TCP connection with legacy version game client, so
Afterwards according to the game version information carried in the request, after determining that game client is legacy version game client, obtain with
The corresponding game data of legacy version game, is sent to the legacy version game client, wherein obtains and the legacy version game pair
The process following steps 403 for the game data answered are to shown in step 407.
Step 403: obtaining new version game data.
Step 404: deleting the newly-increased data of new version game data;Wherein, increasing data newly is new version game data phase
Compared with the increased data of legacy version game data institute.
Step 405: the new version game data after deleting newly-increased data is sent to game client.
In embodiments of the present invention, new version game server establish with the TCP connection of legacy version game client it
Afterwards, it usually needs Games Lobby data are first obtained, so that legacy version game client logs on to Games Lobby, i.e., in game client
Games Lobby is presented in end, at this point, the new version game data in step 403 can be specially new version Games Lobby data,
In the embodiment of the present invention, in the lobby Service in new version game server, deployment is new version Games Lobby data, is such as schemed
The process of reading data shown in 5, the Games Lobby data of legacy version game include: A field, B field and C field, new edition
The Games Lobby data of this game include A field, B field, C field and D field, then, D field be just describe above it is new
Increase data.
Therefore, new version game server needs to delete after obtaining the new version Games Lobby data in lobby Service
Except newly-increased data, then, the new version Games Lobby data for deleting newly-increased data are sent to legacy version game client.
In practical applications, after new version game server establishes the TCP connection with legacy version game client, also
The case where writing data to new version game server there are legacy version game client, for example, it is big in game client presentation game
After the Room, game player can operate in Games Lobby, such as selection fighting equipment, combat model, then game is played
Family can feed back in new version game server in the generated data of these operations that hall carries out, i.e., data shown in fig. 5
The process of write-in, due in the data memory format of new version game server being deposited according to new version game corresponding field
Storage, and feed back these data be is generated based on legacy version Games Lobby, so, will lack new version game increase newly word
Section, at this point it is possible to which the new field uses as default, storage is at binary stream.
Step 406: determining fight service corresponding with game version information.
Step 407: the address information of fight service being sent to game client, makes game client foundation and fighting uniform
The connection of business, with busy state of getting inside the character that one is playing.
In embodiments of the present invention, game player can enter after game client presentation Games Lobby operates
It to next play stage, such as forms a team the stage, matching can be called to service at this time, complete game player in gaming and other players
Form a team, further new version game server calls the service of beginning to be prepared to enter into single innings of game, at this point, new version game garment
Being engaged in device can be based on dsagent management module, and according to the version information of legacy version game client such as game version number, starting is corresponded to
Legacy version game fight service DS, that is, Figure 1B shown in DS1, and to legacy version game client send DS1 IP and port
Number, legacy version game client passes through the IP and port numbers of DS1, may be coupled to correctly fight server based on udp protocol
On DS, and then the busy state that can get inside the character that one is playing enters game fight.
As a kind of optional method, in embodiments of the present invention, disconnects in legacy version game client and being swum with legacy version
It plays before the connection of server, following steps can also be performed in legacy version game server: first from game database, obtaining
Effective game data corresponding with legacy version game client of storage;Then by effective game data and legacy version game client
Newly generated game data is held to merge, and game database is arrived in storage again.
I.e. in embodiments of the present invention, it is contemplated that after access layer changes routing iinformation, legacy version game client
Before connection with legacy version game server disconnects, new game data, and the new game data generated still can be generated
Still legacy version game server can be flowed to, in order to guarantee the consistency of data mode, is avoided in game version renewal process,
There is error in data situation, so, before the connection of legacy version game client and legacy version game server disconnects, old edition
This game server is also needed from game database, obtains stored effective game corresponding with legacy version game client
Data.Effective game data refers to that storage duration can flexibly be set in practical applications in the game data of effective period of time
The effective period of time in game database is set, such as one week, three days etc..
In embodiments of the present invention, obtain stored effective game data corresponding with legacy version game client it
It afterwards, can be by effective game data and the newly generated game data of legacy version game client, in legacy version game server
It merges, is then stored the game data after merging in game database again by legacy version game server, in turn
Avoid error in data situation occur in game version renewal process.
Wherein, game database is used to store the game data that game client carries out generation when game, it is contemplated that game
Data are typically more huge, game database can be DB storage equipment, the equipment can respectively with legacy version game server,
The communication connection of new version game server.
As a kind of optional mode, in embodiments of the present invention, it is contemplated that legacy version game client disconnect with it is old
Before the connection of version game server, it is understood that there may be the game player of legacy version game client and new version game client
Game player the case where playing game simultaneously, then, in addition to legacy version game server can in the manner described above, by the new of generation
Except game data storage is in game database, also data can be written to game database in new version game server, at this time
In order to guarantee the consistency of data mode, existing error in data situation, new version game server and legacy version game services are avoided
Device can obtain distributed lock by way of competition distributed lock as shown in FIG. 6, be swum with obtaining in game database
The permission of play reading and writing data, obtains a side of distributed lock, the effective game data for pulling existing DB is closed with local data
And be finally written back in DB, OldServer indicates that legacy version game server, NewServer indicate new version trip in Fig. 6
Play server.
Wherein, distributed lock can use Zookeeper, below with reference to Fig. 7, to new version game server and legacy version
The mode of game server competition Zookeeper distributed lock is introduced:
The first step, when game is written in new version game server and legacy version game server needs in game database
When data, new version game server and legacy version game server can be pressed under the Lock catalogue in Zookeeper respectively
According to creation sequential node Nodeldx.
Further, new version game server and legacy version game server are respectively set respective counting iCount and are
Zero, for example, new version game server creation sequential node Nodeldx is 1, and it is zero that it, which is arranged, to count iCount, legacy version
Game server creation sequential node Nodeldx is 2 (because new version game server has created sequential node Nodeldx
Be 1, thus legacy version game server can only create in order node Nodeldx be 2), and be arranged its count iCount be
Zero.
Step 2: new version game server and legacy version game server, judge the sequential node respectively created respectively
Whether the value of Nodeldx is identical as the value of the smallest sequential node Nodeldx of current value under Lock catalogue.
In embodiments of the present invention, the sequential node that new version game server and legacy version game server respectively create
It can be stored in Lock catalogue, therefore, the sequential node that new version game server and legacy version game server respectively create
It can be compared with the value of the smallest sequential node Nodeldx of current value under Lock catalogue.
Third step determines game services identical with the value of the smallest sequential node Nodeldx of current value under Lock catalogue
Device competition obtains distributed lock, and pulls effective game data and locally generated new data progress to game database DB
After merging, it is stored in game database again.
For example, the value of the smallest sequential node Nodeldx of current value is 1 under current Lock catalogue, then, new version game
Server will judge the value and the value of the smallest sequential node Nodeldx of current value under current Lock catalogue of its Nodeldx
It is identical, at this point, the competition of new version game server obtains distributed lock, new version game server, as stated above, from game
Pulling data (effective game data) in database D B, the new data locally generated with it merge and are stored in trip again
In play database D B.Then, it then deletes the sequential node and unlocks the sequential node (Nodeldx that value is 1).
4th step determines the game services different from the value of the smallest sequential node Nodeldx of current value under Lock catalogue
Device, the new data of generation is cached in local cache, be then arranged the game server iCount value add 1 after, monitoring
The node that the value of game server Nodeldx subtracts iCount value under Lock catalogue whether there is, and if it does not exist, return to second
Step competes distributed lock again, and if it exists, the variation that then value of game server Nodeldx subtracts the node of iCount value is led to
Know.
Example in undertaking, since current value is the smallest suitable under the value 2 and Lock catalogue of the Nodeldx of legacy version game server
The value 1 of sequence node Nodeldx is different, so legacy version game server does not compete distributed lock, at this point, legacy version game
The new data that server can be generated is cached in local cache, its iCount value is then arranged and adds 1, corresponding iCount value
The value 2 for just becoming 1, and monitoring the Nodeldx of legacy version game server under Lock catalogue subtracts iCount value 1, i.e. value is 1
Sequential node whether there is, and (shows that value is that 1 sequential node has unlocked) if it does not exist, then returns to above step two, weight
New competition distributed lock (shows that value is that 1 sequential node does not unlock) if it exists, waits the sequence that the value is 1 under Lock catalogue
The change notification of node.
Based on the same inventive concept, a kind of updating device of game version is provided in the embodiment of the present invention, comprising:
Determination unit, for the determining legacy version game client for establishing connection with legacy version game server, and really
Determine the game state that legacy version game client is presently in;
Transmission unit is then monitoring game state from role's non-empty for being the busy state of role in game state
When not busy state is updated to role's idle state, reconnection instruction is sent to legacy version game client;
Wherein, reconnection instruction disconnects the connection with legacy version game server for legacy version game client, and establishes
With the connection of new version game server.
Optionally, if game state is role's idle state, transmission unit is also used to:
Reconnection instruction is sent to legacy version game client.
Optionally, device further includes changing unit, is used for:
By the routing address of legacy version game client, new version game is changed to by the address of legacy version game server
The address of server.
Optionally, device further includes acquiring unit, is used for:
From game database, stored effective game data corresponding with legacy version game client is obtained;
Effective game data and the newly generated game data of legacy version game client are merged, and storage is arrived again
Game database.
Based on the same inventive concept, a kind of updating device of game version is provided in the embodiment of the present invention, comprising:
Obtaining unit, the request that the foundation for obtaining game client transmission is connect with new version game server,
Request carries the game version information of game client;
Transmission unit, if for according to game version information, determining that game client is legacy version game client, then to
Game client sends game data corresponding with legacy version game.
Optionally, transmission unit is also used to:
Obtain new version game data;
Delete the newly-increased data of new version game data;
The new version game data after deleting newly-increased data is sent to game client;
Newly-increased data are new version game data compared to the increased data of legacy version game data.
Optionally, device further includes determination unit, is used for:
Determine fight service corresponding with game version information;
The address information of fight service is sent to game client, game client is made to establish the company with fight service
It connects, with busy state of getting inside the character that one is playing.
Based on the same inventive concept, a kind of computing device is provided in the embodiment of the present invention, as shown in figure 8, including at least
One processor 80 and at least one processor 81, wherein memory 81 is stored with computer program, when program is processed
When device 80 executes, so that the step of processor 80 executes the game version service update method as provided in the embodiment of the present invention.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of update method of game version characterized by comprising
The determining legacy version game client that connection is established with legacy version game server, and
Determine the game state that the legacy version game client is presently in;
If the game state is the busy state of role, monitoring the game state from the busy state update of role
When for role's idle state, Xiang Suoshu legacy version game client sends reconnection instruction;
Wherein, the reconnection instruction disconnects the company with the legacy version game server for the legacy version game client
It connects, and establishes the connection with new version game server.
2. the method as described in claim 1, which is characterized in that if the game state is role's idle state, Xiang Suoshu
Legacy version game client sends the reconnection instruction.
3. method according to claim 1 or 2, which is characterized in that the determination and legacy version game server establish connection
Legacy version game client after, the method also includes:
By the routing address of the legacy version game client, it is changed to by the address of the legacy version game server described new
The address of version game server.
4. method as claimed in claim 3, which is characterized in that established and the new version in the legacy version game client
Before the connection of game server, the method also includes:
From game database, stored effective game data corresponding with the legacy version game client is obtained;
Effective game data and the newly generated game data of legacy version game client are merged, and deposited again
Store up the game database.
5. a kind of update method of game version characterized by comprising
The request that the foundation that game client is sent is connect with new version game server is obtained, the request carries the trip
The game version information for client of playing;
If determining that the game client is legacy version game client, then to the game according to the game version information
Client sends game data corresponding with legacy version game.
6. method as claimed in claim 5, which is characterized in that described to be sent and legacy version game pair to the game client
The game data answered, specifically includes:
Obtain new version game data;
Delete the newly-increased data of the new version game data;
The new version game data after deleting the newly-increased data is sent to the game client;
The newly-increased data are the new version game data compared to the increased data of legacy version game data.
7. method as claimed in claim 6, which is characterized in that described send to the game client deletes the newly-increased number
After the new version game data after, the method also includes:
Determine fight service corresponding with the game version information;
The address information of the fight service is sent to the game client, establishes the game client and the war
Struggle against the connection serviced, with busy state of getting inside the character that one is playing.
8. a kind of updating device of game version characterized by comprising
Determination unit for the determining legacy version game client for establishing connection with legacy version game server, and determines institute
State the game state that legacy version game client is presently in;
Transmission unit is then monitoring the game state from role for being the busy state of role in the game state
When busy state is updated to role's idle state, Xiang Suoshu legacy version game client sends reconnection instruction;
Wherein, the reconnection instruction disconnects the company with the legacy version game server for the legacy version game client
It connects, and establishes the connection with new version game server.
9. a kind of updating device of game version characterized by comprising
Obtaining unit, the request that the foundation for obtaining game client transmission is connect with new version game server are described
Request carries the game version information of the game client;
Transmission unit, if determining that the game client is legacy version game client for according to the game version information,
Then game data corresponding with legacy version game is sent to the game client.
10. a kind of computing device, which is characterized in that including at least one processor and at least one processor, wherein institute
It states memory and is stored with computer program, when described program is executed by the processor, so that the processor perform claim
It is required that the step of any one of 1~7 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910094186.4A CN109857439B (en) | 2019-01-30 | 2019-01-30 | Game version updating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910094186.4A CN109857439B (en) | 2019-01-30 | 2019-01-30 | Game version updating method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109857439A true CN109857439A (en) | 2019-06-07 |
CN109857439B CN109857439B (en) | 2020-11-20 |
Family
ID=66896951
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910094186.4A Active CN109857439B (en) | 2019-01-30 | 2019-01-30 | Game version updating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109857439B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110221878A (en) * | 2019-06-17 | 2019-09-10 | 北京金山安全软件有限公司 | Game service updating method and device, electronic equipment and storage medium |
CN110585725A (en) * | 2019-09-08 | 2019-12-20 | 北京智明星通科技股份有限公司 | Mobile game user feedback information request method, device and server |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101739263A (en) * | 2008-11-11 | 2010-06-16 | 英业达股份有限公司 | Method and device for realizing operating system update in multi-computer cluster system |
US20110092275A1 (en) * | 2008-06-12 | 2011-04-21 | Wms Gaming, Inc. | Living wagering games |
CN103888523A (en) * | 2014-03-11 | 2014-06-25 | 北京京东尚科信息技术有限公司 | Method, device and system for confirming download link of software version upgrade file |
CN105045636A (en) * | 2015-08-11 | 2015-11-11 | 广东欧珀移动通信有限公司 | Method and apparatus for updating software |
CN105100232A (en) * | 2015-07-14 | 2015-11-25 | 焦点科技股份有限公司 | Smooth upgrade method for server end program without interrupting service |
CN105897744A (en) * | 2016-05-26 | 2016-08-24 | 广州多益网络股份有限公司 | Game server updating method and system thereof |
CN106528225A (en) * | 2016-11-03 | 2017-03-22 | 北京像素软件科技股份有限公司 | Hot update method and apparatus for game server |
CN106815083A (en) * | 2016-12-20 | 2017-06-09 | 微梦创科网络科技(中国)有限公司 | A kind of client asynchronous processing method and client based on Memcache agreements |
CN107153560A (en) * | 2017-05-25 | 2017-09-12 | 微梦创科网络科技(中国)有限公司 | Version upgrading method, server and system |
CN107158705A (en) * | 2017-05-18 | 2017-09-15 | 腾讯科技(深圳)有限公司 | The update method and device of service |
CN107637052A (en) * | 2017-08-02 | 2018-01-26 | 福建联迪商用设备有限公司 | A kind of business data processing method, client, service end and system |
-
2019
- 2019-01-30 CN CN201910094186.4A patent/CN109857439B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110092275A1 (en) * | 2008-06-12 | 2011-04-21 | Wms Gaming, Inc. | Living wagering games |
CN101739263A (en) * | 2008-11-11 | 2010-06-16 | 英业达股份有限公司 | Method and device for realizing operating system update in multi-computer cluster system |
CN103888523A (en) * | 2014-03-11 | 2014-06-25 | 北京京东尚科信息技术有限公司 | Method, device and system for confirming download link of software version upgrade file |
CN105100232A (en) * | 2015-07-14 | 2015-11-25 | 焦点科技股份有限公司 | Smooth upgrade method for server end program without interrupting service |
CN105045636A (en) * | 2015-08-11 | 2015-11-11 | 广东欧珀移动通信有限公司 | Method and apparatus for updating software |
CN105897744A (en) * | 2016-05-26 | 2016-08-24 | 广州多益网络股份有限公司 | Game server updating method and system thereof |
CN106528225A (en) * | 2016-11-03 | 2017-03-22 | 北京像素软件科技股份有限公司 | Hot update method and apparatus for game server |
CN106815083A (en) * | 2016-12-20 | 2017-06-09 | 微梦创科网络科技(中国)有限公司 | A kind of client asynchronous processing method and client based on Memcache agreements |
CN107158705A (en) * | 2017-05-18 | 2017-09-15 | 腾讯科技(深圳)有限公司 | The update method and device of service |
CN107153560A (en) * | 2017-05-25 | 2017-09-12 | 微梦创科网络科技(中国)有限公司 | Version upgrading method, server and system |
CN107637052A (en) * | 2017-08-02 | 2018-01-26 | 福建联迪商用设备有限公司 | A kind of business data processing method, client, service end and system |
Non-Patent Citations (2)
Title |
---|
唐海娜等: "《基于移动指针的数据流冗余消除算法》", 《通信学报》 * |
王宏远等: "《云存储中支持数据去重的群组数据持有性证明》", 《软件学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110221878A (en) * | 2019-06-17 | 2019-09-10 | 北京金山安全软件有限公司 | Game service updating method and device, electronic equipment and storage medium |
CN110585725A (en) * | 2019-09-08 | 2019-12-20 | 北京智明星通科技股份有限公司 | Mobile game user feedback information request method, device and server |
Also Published As
Publication number | Publication date |
---|---|
CN109857439B (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11882165B2 (en) | Realtime kernel | |
CN104780071B (en) | The upgrade method and device of virtual switch | |
US8764567B2 (en) | System and method for implementing turn-based online games | |
CN107005567B (en) | Implementing communication events | |
US20120311036A1 (en) | Friend recommendation system and method | |
JP4125762B2 (en) | Online video game control server | |
US9792311B2 (en) | System and method for managing a partitioned database of user relationship data | |
CN106656846B (en) | The construction method of cooperation layer in a kind of SDN architectural framework | |
CN101604358B (en) | Method, device and system for updating resources | |
JP2003502729A (en) | Communication between software elements | |
CN102104600A (en) | Distributed pluggable game server platform and cooperative working method thereof | |
US20120310956A1 (en) | System and method for processing graphs of user relationships in an online service | |
CN106534345B (en) | A kind of message forwarding method and device | |
CN106953848B (en) | Software defined network implementation method based on ForCES | |
CN110413595A (en) | A kind of data migration method and relevant apparatus applied to distributed data base | |
CN110034972A (en) | Server stress test method and device | |
CN109857439A (en) | A kind of update method and device of game version | |
CN109617932A (en) | Method and apparatus for handling data | |
US10051084B2 (en) | Methods and systems for bandwidth-efficient remote procedure calls | |
CN110086640A (en) | The enabled method and apparatus of business | |
CN109831523A (en) | The method at game server framework and game server customer in response end | |
US20140115144A1 (en) | Online game system, method, and computer-readable medium | |
CN113992590A (en) | Link load balancing method based on software defined network | |
TWI510040B (en) | Translated session information to provision a network path | |
CN114363402A (en) | Target range interconnection method, system and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information | ||
CB03 | Change of inventor or designer information |
Inventor after: Lin Guohua Inventor after: Chen Weizhe Inventor after: Cheng Yongyuan Inventor before: Lin Guohua Inventor before: Chen Weizhe |
|
GR01 | Patent grant | ||
GR01 | Patent grant |