CN105704166A - Robot system and realization method, client sides and servers thereof and game system - Google Patents

Robot system and realization method, client sides and servers thereof and game system Download PDF

Info

Publication number
CN105704166A
CN105704166A CN201610273513.9A CN201610273513A CN105704166A CN 105704166 A CN105704166 A CN 105704166A CN 201610273513 A CN201610273513 A CN 201610273513A CN 105704166 A CN105704166 A CN 105704166A
Authority
CN
China
Prior art keywords
robot
client
player
server
instruction
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
Application number
CN201610273513.9A
Other languages
Chinese (zh)
Other versions
CN105704166B (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 CN201610273513.9A priority Critical patent/CN105704166B/en
Publication of CN105704166A publication Critical patent/CN105704166A/en
Application granted granted Critical
Publication of CN105704166B publication Critical patent/CN105704166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a robot system comprising a robot server management center, at least one robot server which is connected with the robot server management center and at least one robot client side which is connected with each robot server. Each robot server is connected with a game server through the robot server management center. At least one robot player is created by the robot client sides so as to realize communication with the game server. The robot players are used for logging in the game and performing specified operation. The embodiment of the invention also discloses a realization method of the robot system, the robot client sides, the robot servers and a game system.

Description

Robot system and its implementation, client, server and games system
Technical field
The present invention relates to game object control field, particularly relate to a kind of robot system and its implementation, robot client, robot server and games system。
Background technology
Game master (GM), also known as network manager, is preside over game or supervision player's behavior in online game and safeguard the director of game environment。Game master, when implementing management, is typically all and is operated by specific GM order。It addition, game is on stream, game can also be carried out various test by GM order by tester。
GM instruction refers to some quick instructions that object game manager develops, and its essence is exactly some functions being available for calling, and generally can write some conventional GM instructions in advance, it is necessary to directly call in order line when using。GM instruction can be divided into service end GM instruction and client GM instruction according to effect target。
In existing games system, by setting up an account monitoring (GM instruction instrument) in game server, the various actions of player on server during for monitoring actual play operation。Concrete, it is simply that in this account monitoring, a newly-built sightless role enters game server, the speech of true player on monitor in real time server, and this role can be controlled move to the various actions of the map diverse location true player of observation。
It addition, in existing games system, in order to ensure the properly functioning of game, game server is carried out stress test by needs。Stress test refers to the hardware environment of simulation practical application and the system loading of user's use procedure, long-time or super large load ground running game, tests the performance of system under test (SUT), reliability, stability etc.。
Traditional method for testing pressure is that the true player account of manual creation is logined same station server and carries out a certain operation, or uses script simulant-client to send the operations such as logging request to server, thus testing the ability of this server corresponding operating。
Summary of the invention
Finding through engineering test research, existing games system monitors behavior and the game process of true player by arranging a sightless game role, can only revise an item data, it is impossible to batch modification data every time, inefficient;And this game role is invisible, it is impossible to realize the operation that true player can do, for instance attack, use stage property etc., also cannot test client/server end performance under the more scene of player。Additionally, existing games system manually operates and realizes stress test, can not well simulate multiple client and send the situation of request simultaneously to server, and script batch request can not be reduced completely, and player logs in really, move, fight etc. operates, causing pressure testing results and untrue, accuracy is not high。
For realizing better GM instruction implementation effect and stress test effect, we have proposed a kind of robot system, create multiple robot players by this robot system, and make the game server that each robot player connects existing games system, to enter, game perform operation automatically。So, the AI performing to preset by robot player operates or/and perform the operation corresponding to GM instruction so that game server to carry out the stress test of correspondence, and the game data that can not only realize batch is revised, and improves efficiency;And can reduce completely player log in really, move, the operation such as fight, test result is true and accurately。
For achieving the above object, the present invention provides a kind of robot system and its implementation, robot client, robot server and games system, can be operated by the AI that robot player performs to preset or/and perform the operation corresponding to GM instruction game server to be carried out the stress test of correspondence, improve testing efficiency and accuracy。。
Embodiments provide a kind of robot system, including:
Robot server administrative center;
At least one robot server being connected with described robot server administrative center, each described robot server connects game server by described robot server administrative center;
At least one the robot client being connected with each described robot server, at least one robot player creates to realize and described game server communication by described robot client;The operation that described robot player specifies for entering game to perform。
What the embodiment of the present invention additionally provided a kind of robot system realizes method, including:
Configuration of robotic server admin center;
At least one robot server that configuration is connected with described robot server administrative center, each described robot server connects game server by described robot server administrative center;
At least one robot client that configuration is connected with each described robot server, at least one robot player creates to realize and described game server communication by described robot client;The operation that described robot player specifies for entering game to perform。
The embodiment of the present invention additionally provides a kind of robot client, including:
Communication module, is used for connecting robot server;Wherein, each described robot server connects game server by robot server administrative center;
Robot player's creation module, is used for creating at least one robot player to realize and described game server communication;The operation that described robot player specifies for entering game to perform。
The embodiment of the present invention also provides for a kind of robot server, including first communication module and second communication module, wherein:
First communication module, is used for connecting robot server administrative center, the downlink data of game server that will send via described robot server administrative center, is sent to robot client by described second communication module;Wherein, described robot server administrative center connects game server;
Second communication module, for connecting at least one robot client, data by the robot player of described robot client upload, it is sent to described robot server administrative center by described first communication module, described robot server administrative center is uploaded to the game server of corresponding connection;Wherein, each described robot client creates at least one robot player to realize and described game server communication;The operation that described robot player specifies for entering game to perform。
The embodiment of the present invention additionally provides a kind of games system, the game server being connected with described robot system including robot system as above and at least one game client connecting described game server, true player logs in game server to play together with described robot player by described game client。
Compared with prior art, robot system disclosed in the embodiment of the present invention and its implementation, robot client, robot server and games system, the visible robot player of multiple role is created by robot system, and enable the game server of robot player and games system to communicate to enter execution operation automatically in game, with true player's common game。So, the AI performing to preset by robot player operates or/and perform the operation corresponding to GM instruction so that game server to carry out the stress test of correspondence, and the game data that can not only realize batch is revised, and improves efficiency;And can reduce completely player log in really, move, the operation such as fight, test result is true and accurately。
Accompanying drawing explanation
Fig. 1 is the structured flowchart of a kind of robot system of the embodiment of the present invention。
The robot player that Fig. 2 is a kind of robot system of the embodiment of the present invention starts and initialization flowchart。
Fig. 3 is the schematic diagram that the robot player of a kind of robot system of the embodiment of the present invention initiates data communication to game server。
Fig. 4 is the schematic diagram that the game server of a kind of robot system of the embodiment of the present invention initiates data communication to robot player。
Fig. 5 is the schematic diagram of the fight synopsis that a kind of robot system of the embodiment of the present invention creates。
Fig. 6 is the schematic diagram of the GM instruction set by a kind of robot system of the embodiment of the present invention and the corresponding relation between robot player exercises。
Fig. 7 is the schematic diagram being carried out typing GM instruction in a kind of robot system of the embodiment of the present invention by UI interface。
Fig. 8 is the preparation work flow chart before a kind of robot system utilizing the embodiment of the present invention to provide carries out stress test。
Fig. 9 is the flow chart that the robot server in a kind of robot system of the embodiment of the present invention increases robot client connection number。
Figure 10 is the flow chart that the robot server in a kind of robot system of the embodiment of the present invention deletes robot client connection number。
Figure 11 is the flow chart that a kind of robot system of the embodiment of the present invention performs disconnection reconnecting mechanism。
Figure 12 is the example flow chart utilizing the user that a kind of robot system of the embodiment of the present invention carries out game server to log in stress test。
Figure 13 be utilize a kind of robot system of the embodiment of the present invention carry out game server user other operation stress tests example flow chart。
Figure 14 is the flow chart of the method that realizes of a kind of robot system of the embodiment of the present invention。
Figure 15 is the structured flowchart of a kind of robot of embodiment of the present invention client。
Figure 16 is the structured flowchart of a kind of robot server of the embodiment of the present invention。
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments。Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention。
Referring to Fig. 1, it it is the structural representation of a kind of robot system that the embodiment of the present invention provides。The robot system (Qarobot system) of the present embodiment by create robot player (Qarobot player) to communicate with real game server, thus with true player's common game。Wherein, can entering game by the robot player of the Qarobot system creation of the present embodiment, the AI operation performing to preset is or/and perform the operation corresponding to GM instruction。
Needing illustratively, in the present embodiment, robot player refers to and can use simple command control, it is achieved automatically into game, the simulation role being automatically performed some actions in gaming, it is relative with true player。But, it is all visible for game server, robot player and true player, which game server can not distinguish is robot player, and which is true player, and game server can according to real flow process and robot player's interaction data。GM instruction refers specifically to game master (GameManager) instruction。AI operation refers specifically to artificial intelligence (ArtificialIntelligence) operation。
As shown in Figure 1, Qarobot system 1 disclosed in the present embodiment includes at least one robot server 12 that robot server administrative center 11 is connected and at least one the robot client 13 being connected with each described robot server 12 with described robot server administrative center 11, wherein, each described robot server 12 connects the game server 21 in real games system 2 by described robot server administrative center 11;And at least one robot player 14 creates to realize communicating with described game server 21 by described robot client 13。
The Qarobot system of the present embodiment connects real game server (GameServer) 21 by robot server administrative center (QaServerManager) 11, it is to be selected to there is multiple game server in the game of general networking version, the Qarobot system of the present embodiment can specify among one, or heavy duty server connection protocol, by strategy choosing clothes。The Qarobot system of the present embodiment is docked with game server 21 by robot server (QarobotServer) 12, and robot server 12 meets the procotol interface of game server, it is possible to the proper communication without hindrance with game server 21。
Concrete, the robot server (QarobotServer) 12 of the present embodiment has following functions:
1) netinit: set up tcp and connect and monitor socket;
2) safeguard client side list, be added to or remove robot client according to situation;
3) for robot client maintenance lua data stream list, set up and turn-off data stream in good time;
4) set up client reconnection and connect pond, use queueing theory to be added to connecting object periodic maintenance connection pool capacity。
Corresponding with robot server (QarobotServer) 12 is robot client (QarobotClient) 13, robot client 13 achieves client protocol, this agreement is corresponding with robot server 12, in most cases heavily loaded, and in game, real client protocol relation is little。Robot client 13 has following functions:
1) also maintaining robot player unit's table (Qarobot unit table) is set up。Preserving IP and the port of each robot player (Qarobot player) 14 and Chat queue in unit's table, namely can read each IP and port by reading unit's table, Chat queue is for storing the instruction sent to Qarobot player;
Wherein, IP and port are network IP and the ports at robot player 14 place machine (i.e. robot client 13)。
2) read the ID of the current account of Qarobot player, with instruction control robot client 13 log in time, can send to robot client 13 and log in instruction;
Wherein, account ID is the account in game, and Qarobot player uses this account ID logging in game。Can there is multiple Qarobot player (i.e. multiple ID) under one IP (robot client ip), but an ID can only a corresponding IP。
3) current server information is read;
4) resolve according to instruction format or encapsulate chat content。
Each robot client can produce multiple robot player (Qarobot player) 14 for 13 times, and they are corresponding with true player。Robot player 14 is essence is an application program that can be automatically obtained true player respective operations/function, and can perform corresponding function according to the Automatic Program set after startup;Meanwhile, robot player 14 can also accept robot instruction's (that is, GM instruction) of being sent by game master in real time。
Qarobot player is divided into two kinds of scenes, a kind of by local client (QarobotClient) 131 control, a kind of telnet client (TelnetClient) 132 controls, Qarobot player all can be helped under both of which to complete simple AI function, and the GM instruction that real-time reception game master issues, it is achieved the function that game master controls in real time。Both scenes are all subject to a public robot client 13 to manage。Robot server 12, robot client 13 are together with robot player 14, it is achieved that the function that the simple AI of robot player 14 is operated。Qarobot player 14 completes following functions:
1) a game server list (ServerList) is maintained, this table definition, in the configuration file (config) of robot server administrative center (QaServerManager) 11, can initialize this game server list to arrange game server name, host quantity, the IP of game server and port before robot player starts;
It should be noted that owing to each robot has safeguarded such a server list, if there being multiple game server name in server list, robot player just can link each game server in lists。It is to say, multiple robot players that same robot client creates can connect different game servers。
2) the QarobotServer function sending the message of instruction is read and responds。
Below, by the detailed robot server administrative center 11 described in the Qarobot system to further illustrate the present embodiment, robot server 12, robot client 13 and the respective function of robot player 14 and relation each other。
(1) Qarobot system start-up initialize robot player
Show that robot player sets up, with game server, the process being connected with reference to Fig. 2, Fig. 2。In order to normal and game server mutual, Qarobot system needs reading server protocol code。After Qarobot system start-up, load required file, Run Script according to configuration file, initialize each side's data。Start robot server admin center 11 and robot server 12 afterwards, it is possible to all kinds of instructions that response game server pushes。Robot client 13 (including QarobotClient and TelnetClient) subsequent start-up, and create robot player 14 and (initialize each robot player after creation and simultaneously, AI module including starting each robot player successively) make all kinds of instruction have recipient, and for monitoring the GM instruction that game master sends。So far, Qarobot system has built up completely。Robot player 14 can complete simple AI according to setting, as, robot player 14 is by mixed-media network modules mixed-media Connection Service device, complete to log in flow process by log-in module, get module by award to complete to log in getting of award every day, these AI modules have highly scalable, and user can according to the different AI module of the game customization of self。
After robot player starts, manager can pass through game master interactive module (being located at robot server 12 or robot client 13) and intervene, GM instruction is sent, to control robot player to robot player that is all or that specify。
(2) data communication between Qarobot player and game server
(1) Qarobot player is to game server communication
As it is shown on figure 3, be that Qarobot player 14 initiates the flow process of data communication to game server 21。When Qarobot player 14 sends upstream data to game server 21, Qarobot player 14 according to setting or instruction, robot client 13 is informed in request, robot client 13 after this request being carried out finish message, be uploaded to robot server 12。Robot server 12 obtains the data uploaded by described robot client 13 by socket mode, described data are packed by it according to server protocol, then pass through robot server administrative center 11 and send to robot player 14 game server 21 connected, carried out data by described game server 21 according to server protocol to unpack, obtain this request of robot player 14。
Such as, Qarobot player wishes to get award, and then the request getting award is informed that QarobotClient, QarobotClient arrange the information of Qarobot player by Qarobot player, is uploaded to QarobotServer。QarobotServer puts it in order packet according to service end agreement, is uploaded to, by QaServerManager, the game server that Qarobot player connects。Game server unpacks it is known that player wishes to get award according to service end agreement。
(2) game server is to Qarobot player communications
As shown in Figure 4, it is that game server 21 initiates the flow process of data communication to Qarobot player 14。When game server 21 sends downlink data to Qarobot player 14, generated corresponding control instruction by game server 21 or reply instruction and carry out data packing according to server protocol, and being pushed to, by robot server administrative center 11, the robot server 12 specified。Carried out after data unpack, being sent to the robot player 14 of correspondence by robot client 13 according to server protocol by robot server 12。For the instruction of the request of replying, if the request that local client 131 sends, then feed back to corresponding robot player 14 by local client 131;If the request that telnet client 132 sends, then send back corresponding robot player 14 by telnet client 132。
Such as, connecting literary composition, if game server 21 is through verification, decision agreement robot player gets the request Concurrency of award puts award。So, game server 21 drafts reply according to service end agreement, is pushed to the QarobotServer specified by QaServerManager。If the request that QarobotClient sends, then feed back to corresponding Qarobot player by QarobotClient。If the request that TelnetClient sends, then send back corresponding Qarobot player by TelnetClient。
(3) the AI operation of robot player
The robot player 14 that the robot system of the embodiment of the present invention creates, upon actuation can according to setting or GM order execution corresponding AI operation。Concrete, robot client 13 according to setting or GM order, each described robot player after creating is performed corresponding AI and operate, and will ask to be sent to by robot server 12 game server 21 of correspondence accordingly。
Wherein, in robot client 13, the AI operation module of correspondence is set for each robot player 14。The AI operation of the robot player of the present embodiment mainly includes the following aspects:
1, register
1) inside the robot list of players URS_TABLE={} in configuration file (config), content is subscriber data, and for connecting client with the next robot, the user which position cur is from logs in;
2) define disconnection reconnecting, can pass through to perform to disconnect function call client network link block and disconnect the connection with server, and perform to reconnect, in reconnecting table, add reconnecting plan;
3) top login mode is defined, it is possible to the repeat logon test top function when account is logged;
4) the multiple login modes such as login mode has RC4 verification to log in, RSA verification logs in, general order verification login, it is possible to the password of multiple cipher mode is decoded。
2, automatic chatting operation
1) chat window information: preserve the Chinese of chat channel and corresponding ID with two tables (table);Chat channel name and ID conversion can be realized by the index of table。
2) chat window state: set up unit's table (metatable) and preserve the either on or off state of each chat channel, whenever a newly-built channel, namely set up the index of this channel ID and this channel open mode, inquiry, amendment channel state can be realized by the index of table。
3) chat message is sent: define the Chat queue of a first in first out, and define a parameter for recording the length of current queue。When having information to need to input, message can be stored in queue, and queue length adds up, when end of input needs to send, send the message being stored in queue at first, and queue length is successively decreased。Thus can ensure that the information inputted is transmitted with correct order。The way emptying the information inputted empties queue exactly, and queue length is reset。This parameter of queue length is just read when whether inquiry chat message is empty and chat message length。
3, mobile operation
Robot system safeguards Path table, wherein deposits 9999 mobile routes, when robot player receives move, if the command checksum received is correct, then can first move to the random starting point pre-set, then to server sync objective, and move to objective。
4, fight operation
Control robot player by the fight synopsis pre-build and perform operate corresponding with GM instruction;Wherein, described fight synopsis prestores the mapping relations between GM instruction and robot player exercises。
Wherein, fight synopsis is as it is shown in figure 5, Fig. 5 only show the part mapping relation in fight synopsis。
Such as, when robot client 13 receives GM instruction, first can send, at chat window, the information receiving instruction, then change combat situation parameter。The reception of GM instruction and the transmission of chat message define in user's chat feature。Then when robot player obtains current combat situation, corresponding combat action is performed according to combat situation parameter。The executive mode definition of these combat actions is fought in command process module user。
(4) execution of GM instruction
The robot player 14 that the robot system of the embodiment of the present invention creates can perform GM instruction。Concrete, game master can send GM instruction to realize the effect of control robot player to Qarobot player by the robot system of the present embodiment (specifically can pass through robot server or manager's interactive module that robot client is preset)。Robot player accepts GM instruction in gaming, and carries out chatting according to GM instruction, goes on patrol and the operation such as fight。After robot player enters game, acquiescence enter automatic combat situation, by instruction can also control robot player perform correspondence fight operation, it is achieved instruction as shown in Figure 6。
Described GM instruction is used for controlling robot player and performs respective operations or obtain robot player's current state;Wherein, the instruction performing respective operations for controlling robot player includes logging in instruction in instruction and game, log in instruction and at least include one of: selecting account, delete account, login service device or instruction of logging off, in game, instruction at least includes one of: mobile, chat, fight instruction;Obtain robot player's current state and at least include one of: obtain state in the IP of robot client, port, robot player ID, current logged-on status or going game。
Concrete, Qarobot system can send GM instruction by two ways to Qarobot player, and one is QarobotClient, and one is TelnetClient。The former is by UI interface (as shown in Figure 7) typing and performs GM instruction, and the latter, by setting up the Telnet mode connected, receives and performs GM instruction。UI client man-machine interaction is more friendly, and Telnet application scenarios has generality。
And described robot client is when receiving described GM instruction, performs to act on the corresponding operating of robot player according to described GM instruction, and will ask to be sent to by robot server the game server of correspondence accordingly。When being embodied as, automatically reading GM instruction by robot player at chat channel, this GM instruction can be broadcasting instructions, performs the operation of correspondence for that control to specify or whole robot players。
(5) stress test
The Qarobot system of the embodiment of the present invention can create numerous controlled Qarobot player, carries out stress test very convenient。First, Qarobot system can create multiple QarobotClient/TelnetClient, each QarobotClient/TelnetClient can create again multiple Qarobot player。
After You Liao robot player, control robot player as much as possible logs in same game server, such that it is able to game server is carried out various stress test。
The Qarobot system of the embodiment of the present invention can control robot by GM instruction batch and complete to select account, log in the operations such as same station server, gets final product the login pressure that testing service device can bear when the robot quantity controlled is sufficiently large simultaneously。Additionally, Qarobot system is also with disconnection reconnecting technology, it is ensured that server pressure is surveyed reliable and stable。
The Qarobot system of the embodiment of the present invention can not also control Qarobot player according to the AI operation set in logging in and playing by GM instruction, then utilizes server protocol to carry out the stress test of game server。
It is, for example possible to use the Qarobot system of the embodiment of the present invention carries out all player's number equipressure surveys that could support up if any message server maximum number of connections, a screen。
It should be noted that game server is game server in general sense, it is not necessary to special handling。For game server, which it can not distinguish is robot player, and which is true player。Game server can according to normal flow process and robot player's interaction data。This is also able to create robot player by QarobotClient, completes the theoretical basis of game server stress test。In robot client, it is necessary to the configuration ip of game server, port, so which game server clear and definite robot player connects。
Generally, the stress test in game needs a clean environment to ensure the accuracy of test result。Therefore, when the Qarobot system utilizing the embodiment of the present invention carries out the stress test of game server, it is necessary to configure in Qarobot system and specify unique login service device, and associating pure test database。During configuration target game server, it is necessary to the maximum connection number of given server port numbers, ip, client。In the present embodiment, in order to facilitate many game servers to operate, each robot player has the ID of oneself under different game servers。When a selected game server does pressure survey, it is necessary to first cancel the association of each robot player (urs) and many game servers, and re-create the contingency table between robot player and the game server specified。After completing these work, just start robot system to carry out corresponding stress test。The preparatory function flow process of stress test is as shown in Figure 8。
After starting robot system (namely starting robot player), it is possible to simulate a large amount of player's normal operations by following two ways:
1) robot player operates automatically: robot player AI is from modules such as Tape movement, chat, automatic fights, as long as sufficient amount of robot players log is to same station server, just can simulate general player normal operations in gaming, the number of players that the game server same time can bear can be tested;
2) GM instruction controls: use GM instruction control robot player carry out chatting simultaneously, go on patrol, fight, flat cut, the operation such as magic arts attack, can receive and process client number of requests testing the game server same time。
In order to ensure the reliable and stable of stress test, the robot system of the embodiment of the present invention safeguards connection pool by queue scheduling, and provides the function of disconnection reconnecting。The two function is described below in detail:
(1), queue scheduling and connection pool
QarobotServer maintains client side list (client_list) and lua data streams (luafd_list)。In client_list, each robot client can have corresponding data receiver stream in luafd_list, for depositing this robot client by the socket data sent。Client_list act as the effect of a connection pool, wherein contains the visible all clients of QarobotServer。Robot client can pass through Client.clientfd.fd, in the time of O (1) spends, and the connection of unique location client end in client side list。
The flow process of newly-increased robot client (client entity) is as shown in Figure 9, if QarobotClient request connects game server, robot server can add this robot client (represent and connect game server success) in client side list, creates corresponding data stream for described robot client and is stored in lua data streams。Can by the socket robot client connected unique location client end and data stream thereof in client_list and luafd_list。
Figure 10 shows the flow process removing robot client (client entity) in client side list, if robot client disconnects request to game server, then robot server can first travel through lua data streams and find out the data stream that this robot client is corresponding, lua data streams removes the data stream of this client, in described client side list, deletes described robot client afterwards。
(2) disconnection reconnecting technology
Each robot server in the robot system of the embodiment of the present invention has preset maximum client and has connected quantity CLIENT_CNT, when log on request (be specially robot player requests and the log in game server) number that each robot server receives robot client transmission connects quantity more than described maximum client, by starting, the disconnection reconnecting preset is machine-processed to be reconnected the robot client that first connection is failed。
When each robot server receives the log on request number of robot client transmission more than CLIENT_CNT, client connection resource is in short supply, necessarily the robot client first connection failure of some, it is necessary to reconnect client。
As shown in figure 11, the robot server in Qarobot system maintains one and reconnects table (re_conn_list) flow process of disconnection reconnecting mechanism。Robot server reconnects in table by what robot client addition failed for first connection was preset, and record the game server of each requested connection of robot client needing and reconnecting and next Connection Time, described Connection Time next time calculates according to below equation:
TEven=N*T0
Wherein, TEvenFor the next Connection Time of robot client, N be described in reconnect in table robot client number, T0For default interval, for instance 30 seconds;
If current time arrives described Connection Time next time (that is, reconnecting the time), then undertaken corresponding robot client reconnecting (namely only connecting a robot client);
If current time arrives described Connection Time next time, it is judged that whether the presently described robot client number reconnected in table, more than default threshold value, if so, then reconnects the robot client of threshold value number simultaneously;Otherwise only reconnect the current robot client arriving described Connection Time next time。
Additionally, the disconnection reconnecting mechanism of the present embodiment also includes: failed for first connection robot client is added preset reconnect table before, reconnect described in judgement the robot client number in table whether reach described in reconnect the greatest length of table, if, then give up, namely abandon this robot client is reconnected。
Especially, when utilizing GM instruction to carry out the stress test of game server, the robot system of the present invention can preset a robotic user list USR_TABLE, USR_TABLE deposits the user data of pressure survey needs (namely, robot player's data), in table, each item is all user's cluster, and each user's cluster includes at least one user, and each user has the ID of oneself。It addition, the robot player ID in each user's cluster is continuous, each cluster can define minima and the maximum of ID, it is possible to calculate the number of users in this cluster by the two data。The number of users of all user's clusters is added, it is possible to obtain the total number of users of the whole table of USR_TABLE。
Each robot player connection needs a robot client and connects support, and in Qarobot system, each Qarobotserver both defines CLIENT_CNT, represents that the maximum robot client created connects number。
When utilizing GM instruction to test, Qarobotserver sends described GM instruction according to the robotic user list USR_TABLE set to each robot client。Concrete, according to described robotic user's list order from back to front, send corresponding described GM instruction to the robot client corresponding to each user's cluster successively。That is, the using according to USR_TABLE order from back to front of CLIENT_CNT, be first that in USR_TABLE, last user's cluster creates connection, then is item second from the bottom ... by that analogy, until being finished CLIENT_CNT。
When the number of users in USR_TABLE is more than CLIENT_CNT, client connection resource is in short supply, necessarily the robot client first connection failure of some, it is necessary to reconnect。In this time, the robot client that first connection is failed is reconnected by available above-mentioned disconnection reconnecting mechanism。
Queue scheduling in stress test mentioned above, connection pool and disconnection reconnecting technology。At this, to control robot player's logon operation and other operations to test game server by GM instruction, the situation that the game server pressure that large-scale consumer is asked is surveyed is described。
Test case 1: user logs in stress test
With reference to Figure 12, starting and initializing robot player (the Qarobot player that the robot system of the present embodiment creates, it is called for short Qarobot) after, need first one robotic user list USR_TABLE of establishment, robot player logs in game server, the strategy of de-registration request needs to formulate according to actual test target, can be set to herein, robot player sends log on request to game server successively according to ID sequencing, log in after successfully, have probability to publish after keeping a random time span。Along with the user (that is, robot player) in USR_TABLE one by one send log on request to game server, client_list preset in robot server also by dummy status gradually close to saturated。In this process, user's landfall process being applied for, connection request can successfully create connection Client entity in systems, is saved in client_list。User is after server is nullified, disconnected, and the Client entity of its correspondence can be destroyed from client_list, and the user to be logged in for other concedes resource。
If the speed that user logs in is more than the speed of user's cancellation, then the number that game server logs in can reach the maximum number of connections CLIENT_CNT set。After reaching CLIENT_CNT, user to be logged in cannot add entity at client_list again, and being reacted to Qarobot client is exactly login failure, and these users will reconnect according to disconnection reconnecting mechanism mentioned above。In theory, unless having user log off in client_list, disconnecting, the user otherwise having more will cannot log in successfully always。
Queue scheduling herein, connection pool and disconnection reconnecting are the Qarobot system management and control modes to real game server robot player's log on request, rather than game server itself processes the strategy that user logs in。By the number of users that adjusts the interval published, set USR_TABLE with use strategy, it is possible at least simulate following two situation: in CLIENT_CNT user's short time continuation requests log in, CLIENT_CNT user while online。So, by observing the performance under different CLIENT_CNT numerical value of the real game server, it is known that game server maximum supported while online number, and, game server logs in steadiness when pressure exceedes supported level user, completes stress test with this。
Due to test connection is real game server, tester can in the process using Qarobot system, and normal other modes of use connect game server and test, as, use real physical equipment log in and play, use PC game client to log in game server etc.。Tester can pass through these modes and experience the performance suppressing lower game server more intuitively。
Test case 2: the client request processing pressure tests such as chat, movement and fight
Game server process chatted by the present embodiment in a large number, move, the method for testing pressure of the request of fighting is closer to, and is all etc., after the players log game of a large amount of robots, use GM instruction to control designated robot player and perform respective operations。Robot player, after receiving instruction, can be sent to game server to be tested the client request of corresponding robot when performing operation, then just can test the game server disposal ability to various requests。Concrete operating process is as shown in figure 13。
Visible, compared with prior art, utilize the stress test that the robot system of the embodiment of the present invention carries out game server to have following advantage:
1) utilize batch to log in and disconnection reconnects technology, it is possible to simulating various login mode, test the feasibility of various mode login service device, and can be simultaneously emitted by a large amount of logging request, testing service device is for the disposal ability of a large amount of logging request。
2) utilizing robot automatic chatting module, it is possible to emulating server reads a large amount of player's chat data, testing service device reads the pressure of player's chat, can test the discrimination capabilities to sensitive word simultaneously。
3) utilize robot to automatically move module, it is possible to the simulation a large amount of player in peak period runs map, carry the quantity of player and the pressure of server under high capacity in a period of time with testing service device in peak period;
4) ROBOT COMBAT's correlation module is utilized, it is possible to control robot and perform the ability that combat action is asked in gaming with a large amount of clients of testing service device acceptance simultaneously, and designated robot can do the fight operation specified, it is simple to orientation problem place;
5) GM instruction is used can to control to specify a robot, it is also possible to batch controls all test machine people, it is to avoid manual operation multiple account wastes time and energy
6) according to server protocol, it is possible to heavy duty protocol contents in Qarobot system, it is possible to achieve almost all of robot player's AI function, great extensibility。
To sum up, the robot system of the present embodiment is by creating the visible robot player of multiple roles, and enables the game server of robot player and games system to communicate to enter execution operation automatically in game, with true player's common game。So, the AI performing to preset by robot player operates or/and perform the operation corresponding to GM instruction so that game server to carry out the stress test of correspondence, and the game data that can not only realize batch is revised, and improves efficiency;And can reduce completely player log in really, move, the operation such as fight, test result is true and accurately。
With reference to Figure 14, what the embodiment of the invention discloses a kind of robot system realizes method, the method comprising the steps of S141~S143:
S141, configuration of robotic server admin center。
At least one robot server that S142, configuration are connected with described robot server administrative center, each described robot server connects game server by described robot server administrative center;
At least one robot client that S143, configuration are connected with each described robot server, at least one robot player creates to realize and described game server communication by described robot client;The operation that described robot player specifies for entering game to perform。
Wherein, described robot client includes local client or telnet client。
Concrete, described step S142 specifically includes following operation:
Configure described robot server, it is passed to socket mode and obtains the data of the robot player by described robot client upload, and be uploaded to the corresponding game server connected by described robot server administrative center after described data being packed according to server protocol, described game server carry out data according to server protocol and unpack。
Configure described robot server so that it is undertaken the packet of the game server sent via described robot server administrative center after data unpack, being sent to corresponding robot player by robot client。
Configure described robot server end so that it is when receiving the connection request of the robot client newly increased, create corresponding data stream for described robot client and be stored in data streams, and in client side list, adding described robot client。
Configure described robot server end so that it is receiving when disconnecting request of robot client, deleted by data stream corresponding in described data streams according to described robot client, and in described client side list, delete described robot client。
Configure described robot server end, make it when receiving GM instruction to control robot player and carry out logon operation, according to the robot client corresponding to each robot player of robotic user's list controls set, making each robot client is that each robot player sends the log on request connecting game server;Wherein, each Xiang Weiyi the user's cluster in described robotic user's list, each user's cluster includes at least one user, the corresponding robot player ID of each user。
Configuration of robotic server so that it is according to described robotic user's list order from back to front, controls each robot client corresponding to user's cluster successively and sends corresponding log on request。
Configuration of robotic server, when making its total number of users in described robotic user's list connect quantity more than the maximum client that described robot server sets, start the disconnection reconnecting mechanism preset and the robot client that first connection is failed is reconnected。Wherein, the robot player ID in each user's cluster is continuous, by limiting the maximum of the robot player ID in each user's cluster and minima to obtain the number of users in this user's cluster, thus the total number of users obtained in described robotic user's list。
It addition, the execution process of disconnection reconnecting mechanism refer to above concerning description, do not repeat them here。
Concrete, above-mentioned steps S143 specifically includes following operation:
Configuration of robotic client so that it is each described robot player after creating is performed corresponding AI operation according to setting, and will ask to be sent to by robot server the game server of correspondence accordingly。Wherein, described AI operation at least includes one of: logon operation, chatting operation, mobile operation and fight operation。
Configuration of robotic client so that it is according to default game server list creating and initialization robot player, described game server list at least includes one of: game server name, IP and the port that each robot player connects。
Configuration of robotic client so that it is receive the GM instruction logged in or according to set AI operation robot player is performed logon operation time, according to described game server list to record all game server log on request。
Configure described robot client so that it is after creating each robot player, player unit of the robot table set up is updated, player unit of described robot table records ID, IP and the port of each robot player of establishment。
Preferably, player unit of described robot table also records the index between each chat channel Chinese and chat channel ID;Described step S143 also includes: configure described robot client so that it is according to described search index or amendment chat channel state。
Preferably, player unit of described robot table is also Chat queue and the Chat queue length of each chat channel record first in first out;Described step S143 also includes: configure described robot client so that it is sent by each chat channel and read chat message。Wherein, described chat message includes GM instruction。
Configure described robot client so that it is when receiving described GM instruction, perform to act on the corresponding operating of robot player according to described GM instruction, and will ask to be sent to by robot server the game server of correspondence accordingly。
Wherein, described GM instruction is used for controlling robot player and performs respective operations or obtain robot player's current state;Wherein, the instruction performing respective operations for controlling robot player includes logging in instruction in instruction and game, log in instruction and at least include one of: selecting account, delete account, login service device or instruction of logging off, in game, instruction at least includes one of: mobile, chat, fight instruction;Obtain robot player's current state and at least include one of: obtain state in the IP of robot client, port, robot player ID, current logged-on status or going game。Preferably, described GM instruction is broadcasting instructions。
Configure described robot client so that it is control robot player by the fight synopsis pre-build and perform operate corresponding with GM instruction;Wherein, described fight synopsis prestores the mapping relations between GM instruction and robot player exercises。
Also include it addition, the robot system of the present embodiment realizes method:
Same game server is connected, thus realizing the user of this game server is logged in stress test by setting different maximum client connection quantity and setting robot player。
Perform different operations, thus realizing described game server is responded the stress test of the ability of different operating by generating broadcast GM instruction control robot player simultaneously。
Visible, the method that realizes of robot system disclosed in the present embodiment is by creating the visible robot player of multiple roles, and enable the game server of robot player and games system to communicate to enter execution operation automatically in game, with true player's common game。So, the AI performing to preset by robot player operates or/and perform the operation corresponding to GM instruction so that game server to carry out the stress test of correspondence, and the game data that can not only realize batch is revised, and improves efficiency;And can reduce completely player log in really, move, the operation such as fight, test result is true and accurately。
With reference to Figure 15, the embodiment of the invention discloses a kind of robot client, this robot client includes communication module 151, robot player's creation module 152, execution module 153, player unit of robot table more new module 154, chat channel query modification module 155 and chat message and sends and read module 156, wherein:
Communication module 151, is used for connecting robot server;Wherein, each described robot server connects game server by robot server administrative center。Concrete, described communication module 151 is used for: by socket mode, the upstream data of robot player is uploaded to robot server, by described robot server according to server protocol will described data pack after be uploaded to the corresponding game server connected by described robot server administrative center, and carried out data by described game server according to server protocol and unpack。Described communication module 151 is additionally operable to: receives described robot server and forwards by the game server downlink data to robot player, wherein, described downlink data is sent to robot server by robot server administrative center after being packed according to server protocol by described game server, and is carried out sending after data unpack according to server protocol by described robot server。
Robot player's creation module 152, is used for creating at least one robot player to realize and described game server communication。Concrete, described robot player's creation module 152 is according to default game server list creating and initializes robot player, and described game server list includes game server name, IP and the port that each robot player connects。
Perform module 153, for each described robot player after creating being performed corresponding AI operation or/and perform to act on the corresponding operating of robot player according to the GM instruction received according to setting, and will ask to be sent to by robot server by described communication module the game server of correspondence accordingly。Wherein, described AI operation at least includes one of: logon operation, chatting operation, mobile operation and fight operation;Described GM instruction at least includes one of: log in instruction and instruction in game。
Described GM instruction is used for controlling robot player and performs respective operations or obtain robot player's current state;Wherein, the instruction performing respective operations for controlling robot player includes logging in instruction in instruction and game, log in instruction and at least include one of: selecting account, delete account, login service device or instruction of logging off, in game, instruction at least includes one of: mobile, chat, fight instruction;Obtain robot player's current state and at least include one of: obtain state in the IP of robot client, port, robot player ID, current logged-on status or going game。Preferably, described GM instruction is broadcasting instructions。
Concrete, when described execution module 153 according to set each described robot player after creating is performed logon operation or performs, according to the GM instruction that receives, the logon operation acting on robot player time, generate the log on request of all game server to record according to above-mentioned game server list。
It addition, when described execution module 153 performs, according to the GM instruction received, the fight operation acting on robot player, control robot player by the fight synopsis pre-build and perform operate corresponding with GM instruction;Wherein, described fight synopsis prestores the mapping relations between GM instruction and robot player exercises。
It should be understood that the AI functional module that described execution module also includes other for 153 times performs corresponding AI operation。
Player unit of robot table more new module 154, for after creating each robot player, player unit of the robot table set up is updated, player unit of described robot table records ID, IP and the port of each robot player of establishment, player unit of described robot table also records the index between each chat channel Chinese and chat channel ID, and is Chat queue and the Chat queue length of each chat channel record first in first out。
Chat channel query modification module 155, for described according in player unit of described robot table record each chat channel Chinese and chat channel ID between search index or amendment chat channel state。
Chat message sends and read module 156, for being sent by the Chat queue of each described chat channel and reading chat message。
Preferably, the robot client of the present embodiment includes local client or telnet client。
Visible, robot client disclosed in the present embodiment is by creating the visible robot player of multiple roles, and enables the game server of robot player and games system to communicate to enter execution operation automatically in game, with true player's common game。So, the AI performing to preset by robot player operates or/and perform the operation corresponding to GM instruction so that game server to carry out the stress test of correspondence, and the game data that can not only realize batch is revised, and improves efficiency;And can reduce completely player log in really, move, the operation such as fight, test result is true and accurately。
With reference to Figure 16, the embodiment of the invention discloses a kind of robot server, this robot server includes first communication module 161, second communication module 162, connection request management module 163, broadcast GM command process module 164 and disconnection reconnecting module 165, wherein:
First communication module 161, for connecting robot server administrative center, according to server protocol, the downlink data of the game server sent via described robot server administrative center is carried out data unpack, be sent to robot client by described second communication module;Wherein, described robot server administrative center connects game server;Concrete, described first communication module is used for: carry out after data unpack, described second communication module being sent to the corresponding robot player of robot client by socket mode according to server protocol by the downlink data of the game server sent via described robot server administrative center。Wherein, described downlink data includes GM instruction。
Described GM instruction is used for controlling robot player and performs respective operations or obtain robot player's current state;Wherein, the instruction performing respective operations for controlling robot player includes logging in instruction in instruction and game, log in instruction and at least include one of: selecting account, delete account, login service device or instruction of logging off, in game, instruction at least includes one of: mobile, chat, fight instruction;Obtain robot player's current state and at least include one of: obtain state in the IP of robot client, port, robot player ID, current logged-on status or going game。
Preferably, described GM instruction is broadcasting instructions。
Second communication module 162, for connecting at least one robot client (including local client or telnet client), data by the robot player of described robot client upload, and be sent to described robot server administrative center by described first communication module after described data being packed according to server protocol, described robot server administrative center it is uploaded to the game server of corresponding connection;Wherein, each described robot client creates at least one robot player to realize and described game server communication。Concrete, described second communication module 162 obtains the data of robot player by described robot client upload by socket mode, and it is sent to described robot server administrative center by described first communication module 161 after described data being packed according to server protocol, it is uploaded to the game server of corresponding connection by described robot server administrative center, described game server carries out data according to server protocol and unpack。
Connection request management module 163, during for receiving the connection request of the robot client newly increased when described second communication module 162, create corresponding data stream for described robot client and be stored in data streams, and in client side list, add described robot client, and be used for receiving when disconnecting request of robot client when described second communication module, according to described robot client, data stream corresponding in described data streams is deleted, and in described client side list, delete described robot client。
Broadcast GM command process module 164, during for receiving broadcast GM instruction to control robot player and carry out logon operation, this broadcast GM instruction is processed by the robotic user's list according to setting, and it is sent to the robot client corresponding to each robot player by described second communication module 162, making each robot client is that each robot player sends the connection request logging in game server;Wherein, each Xiang Weiyi the user's cluster in described robotic user's list, each user's cluster includes at least one user, the corresponding robot player ID of each user。Robot player ID in each user's cluster is continuous, by limiting the maximum of the robot player ID in each user's cluster and minima to obtain the number of users in this user's cluster, thus the total number of users obtained in described robotic user's list。
Described broadcast GM command process module 164 is further used for: according to described robotic user's list order from back to front, send corresponding described broadcast GM instruction to the robot client corresponding to each user's cluster successively。
Disconnection reconnecting module 165, for when the total number of users in described robotic user's list connects quantity more than the maximum client that described robot server sets, starting the disconnection reconnecting mechanism preset and the robot client that first connection is failed reconnected。
Wherein, disconnection reconnecting mechanism refer to foregoing description, does not repeat them here。
The robot server of the embodiment of the present invention also includes:
Same game server is connected, thus realizing the user of this game server is logged in stress test by setting different maximum client connection quantity and setting robot player。And
Perform the operation of correspondence, thus realizing described game server is responded the stress test of the ability of this operation by generating or send the broadcast GM instruction whole robot players of control simultaneously。
Visible, robot server disclosed in the present embodiment is capable of the visible robot player of multiple roles that robot client creates and can communicate with the game server of games system, enable each robot player to enter and game perform automatically operation, thus with true player's common game。So, the AI performing to preset by robot player operates or/and perform the operation corresponding to GM instruction so that game server to carry out the stress test of correspondence, and the game data that can not only realize batch is revised, and improves efficiency;And can reduce completely player log in really, move, the operation such as fight, test result is true and accurately。
Referring back to Fig. 1, the embodiment of the invention also discloses a kind of games system, this games system includes the game server 21 that robot system as above is connected and at least one game client 22 connecting described game server 21 with described robot system, and true player 23 logs in game server 21 to play together with described robot player 14 by described game client 22。
Owing to the games system of the embodiment of the present invention adds robot system, the visible robot player of multiple role is created by robot system, and enable the game server of robot player and games system to communicate to enter execution operation automatically in game, with true player's common game。So, the AI performing to preset by robot player operates or/and perform the operation corresponding to GM instruction so that game server to carry out the stress test of correspondence, and the game data that can not only realize batch is revised, and improves efficiency;And can reduce completely player log in really, move, the operation such as fight, test result is true and accurately。
The above is the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention。

Claims (63)

1. a robot system, it is characterised in that including:
Robot server administrative center;
At least one robot server being connected with described robot server administrative center, each described robot server connects game server by described robot server administrative center;
At least one the robot client being connected with each described robot server, at least one robot player creates to realize and described game server communication by described robot client;The operation that described robot player specifies for entering game to perform。
2. robot system as claimed in claim 1, it is characterised in that the described operation specified includes the AI operation preset or/and operation corresponding to GM instruction。
3. robot system as claimed in claim 1, it is characterised in that described robot player is true visible in gaming。
4. robot system as claimed in claim 1, it is characterised in that described robot client includes local client or telnet client。
5. robot system as claimed in claim 1, it is characterized in that, described robot server is used for, the data of robot player by described robot client upload are obtained by socket mode, and be uploaded to the corresponding game server connected by described robot server administrative center after described data being packed according to server protocol, described game server carry out data according to server protocol and unpack。
6. robot system as claimed in claim 5, it is characterized in that, described robot server is additionally operable to, and is undertaken the packet of the game server sent via described robot server administrative center after data unpack, being sent to corresponding robot player by robot client。
7. robot system as claimed in claim 1, it is characterized in that, described robot client is used for, and according to setting, each described robot player after creating performs corresponding AI operation, and will ask to be sent to by robot server the game server of correspondence accordingly。
8. robot system as claimed in claim 7, it is characterised in that described AI operation at least includes one of: logon operation, chatting operation, mobile operation and fight operation。
9. robot system as claimed in claim 1, it is characterized in that, described robot client is used for, receive the GM instruction generated by described robot system, perform to act on the corresponding operating of robot player according to described GM instruction, and will ask to be sent to by robot server the game server of correspondence accordingly。
10. robot system as claimed in claim 9, it is characterised in that described GM instruction at least includes one of: log in instruction and instruction in game。
11. robot system as claimed in claim 1, it is characterized in that, described robot client is according to the game server list creating preset and initializes robot player, and described game server list at least includes one of: game server name, IP and the port that each robot player connects。
12. robot system as claimed in claim 11, it is characterized in that, when described robot client receive the GM instruction logged in or according to set AI operation robot player is performed logon operation time, according to described game server list to record all game server log on request。
13. the robot system as described in claim 1 or 11, it is characterized in that, player unit of the robot table set up, after creating each robot player, is updated, records ID, IP and the port of each robot player of establishment in player unit of described robot table by described robot client。
14. robot system as claimed in claim 13, it is characterized in that, also recording the index between each chat channel Chinese, channel state and chat channel ID in player unit of described robot table, described robot client is according to described search index or amendment chat channel state。
15. robot system as claimed in claim 14, it is characterized in that, being also Chat queue and the Chat queue length of each chat channel record first in first out in player unit of described robot table, described robot client is sent by each chat channel and reads chat message。
16. robot system as claimed in claim 15, it is characterised in that described chat message includes GM instruction。
17. robot system as claimed in claim 16, it is characterised in that described GM instruction is broadcasting instructions。
18. robot system as claimed in claim 16, it is characterised in that described GM instruction is used for controlling robot player and performs respective operations or obtain robot player's current state;Wherein, the instruction performing respective operations for controlling robot player includes logging in instruction in instruction and game, log in instruction and at least include one of: selecting account, delete account, login service device or instruction of logging off, in game, instruction at least includes one of: mobile, chat, fight instruction;Obtain robot player's current state and at least include one of: obtain state in the IP of robot client, port, robot player ID, current logged-on status or going game。
19. robot system as claimed in claim 18, it is characterised in that described robot client is used for, control robot player by the fight synopsis pre-build and perform operate corresponding with GM instruction;Wherein, described fight synopsis prestores the mapping relations between GM instruction and robot player exercises。
20. robot system as claimed in claim 1, it is characterized in that, described robot server is used for, when receiving the connection request of the robot client newly increased, create corresponding data stream for described robot client and be stored in data streams, and in client side list, adding described robot client。
21. robot system as claimed in claim 20, it is characterized in that, described robot server is additionally operable to, when receiving when disconnecting request of robot client, according to described robot client, data stream corresponding in described data streams is deleted, and in described client side list, delete described robot client。
22. robot system as claimed in claim 20, it is characterized in that, described robot server is additionally operable to, when receiving broadcast GM instruction to control robot player and carry out logon operation, according to the robot client corresponding to each robot player of robotic user's list controls set, making each robot client is that each robot player sends the log on request connecting game server;Wherein, each Xiang Weiyi the user's cluster in described robotic user's list, each user's cluster includes at least one user, the corresponding robot player ID of each user。
23. robot system as claimed in claim 22, it is characterised in that described robot server, according to described robotic user's list order from back to front, controls each robot client corresponding to user's cluster successively and sends corresponding log on request。
24. robot system as claimed in claim 23, it is characterized in that, when the total number of users in described robotic user's list connects quantity more than the maximum client that described robot server sets, described robot server starts the disconnection reconnecting mechanism preset and the robot client that first connection is failed is reconnected。
25. robot system as claimed in claim 24, it is characterized in that, robot player ID in each user's cluster is continuous, by limiting the maximum of the robot player ID in each user's cluster and minima to obtain the number of users in this user's cluster, thus the total number of users obtained in described robotic user's list。
26. robot system as claimed in claim 24, it is characterised in that described disconnection reconnecting mechanism includes:
Robot client failed for first connection adding default reconnecting in table, and records the game server of each requested connection of robot client needing and reconnecting and next Connection Time, described Connection Time next time is according to below equation calculating:
TEven=N*T0
Wherein, TEvenFor the next Connection Time of robot client, N be described in reconnect in table robot client number, T0For default interval;
If current time arrives described Connection Time next time, then corresponding robot client is reconnected。
27. robot system as claimed in claim 26, it is characterised in that described disconnection reconnecting mechanism also includes:
If current time arrives described Connection Time next time, it is judged that whether the presently described robot client number reconnected in table, more than default threshold value, if so, then reconnects the robot client of threshold value number simultaneously;Otherwise only reconnect the current robot client arriving described Connection Time next time。
28. robot system as claimed in claim 26, it is characterised in that described disconnection reconnecting mechanism also includes:
Failed for first connection robot client is added preset reconnect table before, it is judged that described in reconnect the robot client number in table whether reach described in reconnect the greatest length of table, if so, then abandon this robot client is reconnected。
29. robot system as claimed in claim 24, it is characterised in that connect same game server by setting different maximum client connection quantity and setting robot player, thus realizing the user of this game server is logged in stress test。
30. robot system as claimed in claim 29, it is characterised in that simultaneously perform the operation of correspondence by generating the broadcast GM instruction whole robot players of control, thus realizing described game server is responded the stress test of the ability of this operation。
31. a robot system realize method, it is characterised in that including:
Configuration of robotic server admin center;
At least one robot server that configuration is connected with described robot server administrative center, each described robot server connects game server by described robot server administrative center;
At least one robot client that configuration is connected with each described robot server, at least one robot player creates to realize and described game server communication by described robot client;The operation that described robot player specifies for entering game to perform。
32. robot system as claimed in claim 31 realize method, it is characterised in that the described operation specified includes the AI operation preset or/and operation corresponding to GM instruction。
33. robot system as claimed in claim 31 realize method, it is characterised in that described robot player is true visible in gaming。
34. robot system as claimed in claim 31 realize method, it is characterised in that described robot client includes local client or telnet client。
35. robot system as claimed in claim 31 realize method, it is characterized in that, configure described robot server, it is passed to socket mode and obtains the data of the robot player by described robot client upload, and be uploaded to the corresponding game server connected by described robot server administrative center after described data being packed according to server protocol, described game server carry out data according to server protocol and unpack。
36. robot system as claimed in claim 35 realize method, it is characterized in that, configure described robot server, make it be carried out by packet of the game server sent via described robot server administrative center after data unpack, be sent to corresponding robot player by robot client。
37. robot system as claimed in claim 31 realize method, it is characterized in that, configuration of robotic client so that it is each described robot player after creating is performed corresponding AI operation according to setting, and will ask to be sent to by robot server the game server of correspondence accordingly。
38. robot system as claimed in claim 37 realize method, it is characterised in that described AI operation at least includes one of: logon operation, chatting operation, mobile operation and fight operation。
39. robot system as claimed in claim 1 realize method, it is characterized in that, configure described robot client, it is made to receive the GM instruction generated by described robot system, perform to act on the corresponding operating of robot player according to described GM instruction, and will ask to be sent to by robot server the game server of correspondence accordingly。
40. robot system as claimed in claim 39 realize method, it is characterised in that described GM instruction at least includes one of: log in instruction and instruction in game。
41. robot system as claimed in claim 31 realize method, it is characterized in that, configuration of robotic client, making it according to the game server list creating preset and initialize robot player, described game server list at least includes one of: game server name, IP and the port that each robot player connects。
42. robot system as claimed in claim 41 realize method, it is characterized in that, configuration of robotic client, make its receive the GM instruction logged in or according to set AI operation robot player is performed logon operation time, according to described game server list to record all game server log on request。
43. the robot system as described in claim 31 or 41 realize method, it is characterized in that, configure described robot client, make it after creating each robot player, player unit of the robot table set up is updated, player unit of described robot table records ID, IP and the port of each robot player of establishment。
44. robot system as claimed in claim 43 realize method, it is characterised in that player unit of described robot table also records the index between each chat channel Chinese, channel state and chat channel ID;Described method also includes: configure described robot client so that it is according to described search index or amendment chat channel state。
45. robot system as claimed in claim 44 realize method, it is characterised in that player unit of described robot table is also Chat queue and the Chat queue length of each chat channel record first in first out;Described method also includes: configure described robot client so that it is sent by each chat channel and read chat message。
46. robot system as claimed in claim 45 realize method, it is characterised in that described chat message includes GM instruction。
47. robot system as claimed in claim 46 realize method, it is characterised in that described GM instruction is broadcasting instructions。
48. robot system as claimed in claim 46 realize method, it is characterised in that described GM instruction is used for controlling robot player and performs respective operations or obtain robot player's current state;Wherein, the instruction performing respective operations for controlling robot player includes logging in instruction in instruction and game, logging in instruction and at least include one of: select account, delete account, login service device or instruction of logging off, in game, instruction includes mobile, chat, fight instruction;Obtain robot player's current state and at least include one of: obtain state in the IP of robot client, port, robot player ID, current logged-on status or going game。
49. robot system as claimed in claim 48 realize method, it is characterised in that configure described robot client so that it is control robot player by the fight synopsis pre-build and perform operate corresponding with GM instruction;Wherein, described fight synopsis prestores the mapping relations between GM instruction and robot player exercises。
50. robot system as claimed in claim 31 realize method, it is characterized in that, configure described robot server end, make it when receiving the connection request of the robot client newly increased, create corresponding data stream for described robot client and be stored in data streams, and in client side list, adding described robot client。
51. robot system as claimed in claim 50 realize method, it is characterized in that, configure described robot server end, make it receiving when disconnecting request of robot client, according to described robot client, data stream corresponding in described data streams is deleted, and in described client side list, delete described robot client。
52. robot system as claimed in claim 50 realize method, it is characterized in that, configure described robot server end, make it when receiving GM instruction to control robot player and carry out logon operation, according to the robot client corresponding to each robot player of robotic user's list controls set, making each robot client is that each robot player sends the log on request connecting game server;Wherein, each Xiang Weiyi the user's cluster in described robotic user's list, each user's cluster includes at least one user, the corresponding robot player ID of each user。
53. robot system as claimed in claim 52 realize method, it is characterized in that, configuration of robotic server so that it is according to described robotic user's list order from back to front, controls each robot client corresponding to user's cluster successively and sends corresponding log on request。
54. robot system as claimed in claim 53 realize method, it is characterized in that, configuration of robotic server, when making its total number of users in described robotic user's list connect quantity more than the maximum client that described robot server sets, start the disconnection reconnecting mechanism preset and the robot client that first connection is failed is reconnected。
55. robot system as claimed in claim 54 realize method, it is characterized in that, robot player ID in each user's cluster is continuous, by limiting the maximum of the robot player ID in each user's cluster and minima to obtain the number of users in this user's cluster, thus the total number of users obtained in described robotic user's list。
56. robot system as claimed in claim 54 realize method, it is characterised in that described disconnection reconnecting mechanism includes:
Robot client failed for first connection adding default reconnecting in table, and records the game server of each requested connection of robot client needing and reconnecting and next Connection Time, described Connection Time next time is according to below equation calculating:
TEven=N*T0
Wherein, TEvenFor the next Connection Time of robot client, N be described in reconnect in table robot client number, T0For default interval;
If current time arrives described Connection Time next time, then corresponding robot client is reconnected。
57. robot system as claimed in claim 56 realize method, it is characterised in that described disconnection reconnecting mechanism also includes:
If current time arrives described Connection Time next time, it is judged that whether the presently described robot client number reconnected in table, more than default threshold value, if so, then reconnects the robot client of threshold value number simultaneously;Otherwise only reconnect the current robot client arriving described Connection Time next time。
58. robot system as claimed in claim 56 realize method, it is characterised in that described disconnection reconnecting mechanism also includes:
Failed for first connection robot client is added preset reconnect table before, it is judged that described in reconnect the robot client number in table whether reach described in reconnect the greatest length of table, if so, then abandon this robot client is reconnected。
59. robot system as claimed in claim 54 realize method, it is characterized in that, same game server is connected, thus realizing the user of this game server is logged in stress test by setting different maximum client connection quantity and setting robot player。
60. robot system as claimed in claim 59 realize method, it is characterised in that control robot player perform different operations simultaneously by generating broadcast GM instruction, thus realizing described game server is responded the stress test of the ability of different operating。
61. a robot client, it is characterised in that including:
Communication module, is used for connecting robot server;Wherein, each described robot server connects game server by robot server administrative center;
Robot player's creation module, is used for creating at least one robot player to realize and described game server communication;The operation that described robot player specifies for entering game to perform。
62. a robot server, it is characterised in that include first communication module and second communication module, wherein:
First communication module, is used for connecting robot server administrative center, and by described second communication module, the downlink data of the game server sent via described robot server administrative center is sent to robot client;Wherein, described robot server administrative center connects game server;
Second communication module, for connecting at least one robot client, data by the robot player of described robot client upload, it is sent to described robot server administrative center by described first communication module, described robot server administrative center is uploaded to the game server of corresponding connection;Wherein, each described robot client creates at least one robot player to realize and described game server communication;The operation that described robot player specifies for entering game to perform。
63. a games system, it is characterized in that, including the robot system as described in claims 1 to 30 with as described at least one game client of the game server that is connected of robot system and game server as described in connecting, true player logs in game server to play together with described robot player by described game client。
CN201610273513.9A 2016-04-27 2016-04-27 Robot system, realization method thereof, client, server and game system Active CN105704166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610273513.9A CN105704166B (en) 2016-04-27 2016-04-27 Robot system, realization method thereof, client, server and game system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610273513.9A CN105704166B (en) 2016-04-27 2016-04-27 Robot system, realization method thereof, client, server and game system

Publications (2)

Publication Number Publication Date
CN105704166A true CN105704166A (en) 2016-06-22
CN105704166B CN105704166B (en) 2019-12-31

Family

ID=56217778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610273513.9A Active CN105704166B (en) 2016-04-27 2016-04-27 Robot system, realization method thereof, client, server and game system

Country Status (1)

Country Link
CN (1) CN105704166B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120530A (en) * 2018-07-17 2019-01-01 杭州为诺智能科技有限公司 Robot multi-stage scheduling method and system based on WIFI networking
CN109121128A (en) * 2018-08-23 2019-01-01 顺德职业技术学院 The method and system that more industrial robot group user informations off the net update
CN109359003A (en) * 2018-10-29 2019-02-19 网易(杭州)网络有限公司 Game server method for testing pressure, device and equipment
CN109510882A (en) * 2018-11-19 2019-03-22 网易(杭州)网络有限公司 Communication means, device, storage medium and electronic device between game client
CN109641152A (en) * 2016-06-30 2019-04-16 索尼互动娱乐股份有限公司 For running the control model of particular task during game application
CN109857567A (en) * 2019-01-30 2019-06-07 网易(杭州)网络有限公司 A kind of synchronous method and device of AI status information
CN110465081A (en) * 2018-05-10 2019-11-19 休欧奇环球有限公司 System and method for playing online game
CN110532484A (en) * 2019-09-12 2019-12-03 网易(杭州)网络有限公司 Methods of exhibiting, device and the electric terminal of data are injured in game
CN110575667A (en) * 2019-08-28 2019-12-17 深圳市瑞立视多媒体科技有限公司 control method, device and equipment based on UI (user interface) and storage medium
CN110580119A (en) * 2019-08-28 2019-12-17 深圳市瑞立视多媒体科技有限公司 Control system based on user interface
CN111400184A (en) * 2020-03-17 2020-07-10 腾讯科技(深圳)有限公司 Game testing method, device, system, equipment and cloud platform
CN111464422A (en) * 2020-03-27 2020-07-28 北京海益同展信息科技有限公司 Interaction method, interaction device, electronic equipment and storage medium
CN113827974A (en) * 2021-09-27 2021-12-24 网易(杭州)网络有限公司 AI role control method and device in game
CN115842750A (en) * 2022-11-24 2023-03-24 上海安博通信息科技有限公司 Pressure testing method and system for AD domain server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855108A (en) * 2005-04-25 2006-11-01 华为技术有限公司 Method and system for realizing virtual person in on-line Internet programm
US20080139317A1 (en) * 2006-12-07 2008-06-12 Humayun Sheikh Electronic game
EP2116287A1 (en) * 2006-12-12 2009-11-11 Konami Digital Entertainment Co., Ltd. Game system
CN103593294A (en) * 2013-11-21 2014-02-19 福建天晴数码有限公司 Method and system for testing network game performance

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855108A (en) * 2005-04-25 2006-11-01 华为技术有限公司 Method and system for realizing virtual person in on-line Internet programm
US20080139317A1 (en) * 2006-12-07 2008-06-12 Humayun Sheikh Electronic game
EP2116287A1 (en) * 2006-12-12 2009-11-11 Konami Digital Entertainment Co., Ltd. Game system
CN103593294A (en) * 2013-11-21 2014-02-19 福建天晴数码有限公司 Method and system for testing network game performance

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈明霞: "某网络游戏自动化测试工具的设计与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109641152A (en) * 2016-06-30 2019-04-16 索尼互动娱乐股份有限公司 For running the control model of particular task during game application
CN110465081A (en) * 2018-05-10 2019-11-19 休欧奇环球有限公司 System and method for playing online game
CN109120530A (en) * 2018-07-17 2019-01-01 杭州为诺智能科技有限公司 Robot multi-stage scheduling method and system based on WIFI networking
CN109121128B (en) * 2018-08-23 2021-08-17 顺德职业技术学院 Method and system for updating user information under multi-task robot networking
CN109121128A (en) * 2018-08-23 2019-01-01 顺德职业技术学院 The method and system that more industrial robot group user informations off the net update
CN109359003A (en) * 2018-10-29 2019-02-19 网易(杭州)网络有限公司 Game server method for testing pressure, device and equipment
CN109359003B (en) * 2018-10-29 2022-05-20 网易(杭州)网络有限公司 Game server pressure testing method, device and equipment
CN109510882A (en) * 2018-11-19 2019-03-22 网易(杭州)网络有限公司 Communication means, device, storage medium and electronic device between game client
CN109510882B (en) * 2018-11-19 2022-05-03 网易(杭州)网络有限公司 Communication method and device between game clients, storage medium and electronic device
CN109857567A (en) * 2019-01-30 2019-06-07 网易(杭州)网络有限公司 A kind of synchronous method and device of AI status information
CN110575667A (en) * 2019-08-28 2019-12-17 深圳市瑞立视多媒体科技有限公司 control method, device and equipment based on UI (user interface) and storage medium
CN110580119B (en) * 2019-08-28 2021-03-02 深圳市瑞立视多媒体科技有限公司 Control system based on user interface
CN110580119A (en) * 2019-08-28 2019-12-17 深圳市瑞立视多媒体科技有限公司 Control system based on user interface
CN110575667B (en) * 2019-08-28 2023-05-26 深圳市瑞立视多媒体科技有限公司 Control method, device, equipment and storage medium based on UI (user interface)
CN110532484A (en) * 2019-09-12 2019-12-03 网易(杭州)网络有限公司 Methods of exhibiting, device and the electric terminal of data are injured in game
CN111400184A (en) * 2020-03-17 2020-07-10 腾讯科技(深圳)有限公司 Game testing method, device, system, equipment and cloud platform
CN111464422A (en) * 2020-03-27 2020-07-28 北京海益同展信息科技有限公司 Interaction method, interaction device, electronic equipment and storage medium
CN113827974A (en) * 2021-09-27 2021-12-24 网易(杭州)网络有限公司 AI role control method and device in game
CN115842750A (en) * 2022-11-24 2023-03-24 上海安博通信息科技有限公司 Pressure testing method and system for AD domain server

Also Published As

Publication number Publication date
CN105704166B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN105704166A (en) Robot system and realization method, client sides and servers thereof and game system
US11075821B2 (en) Method and apparatus for managing field device based on cloud server
JP4324199B2 (en) Violations in peer-to-peer relay networks
JP4374022B2 (en) Peer-to-peer relay network
CN103916311B (en) A kind of information transmission and control method, Apparatus and system
JP4691502B2 (en) Redundancy list in peer-to-peer relay networks
JP4970039B2 (en) Island recovery in peer-to-peer relay networks
JP2008544684A (en) User log information management method and system using location servers belonging to a plurality of groups
CN105245596A (en) Remote control method, server and network attached storage device
CN113300955B (en) Method, system and equipment for determining paths between nodes in content distribution network
CN111917562B (en) Broadcast message forwarding method, device, equipment and storage medium
JP2023508061A (en) ACCOUNT ACCESS METHOD AND DEVICE, STORAGE MEDIUM, AND ELECTRONIC DEVICE
CN110213298B (en) Method, apparatus, device and medium for providing online room
CN114244602B (en) Multi-user online network service system, method, device and medium
CN109862127A (en) A kind of method and relevant apparatus of message transmissions
CN115664989A (en) Monitoring system and method of cloud desktop
US9808714B2 (en) Network enabled game controller
CN103428070B (en) instant group communication method, session management server and client
US11196686B2 (en) Chatbot context setting using packet capture
CN111800491A (en) Data transmission method, system, computing device and storage medium
CN114172815B (en) Behavior traffic transmission method, device, computer equipment and computer readable storage medium
CN109086123A (en) Moving method, device, terminal, server and the storage medium of utility cession
KR101406852B1 (en) Relay communication system and relay servers
CN113765745A (en) Service performance testing method and device, terminal equipment and storage medium
CN112260942A (en) Application acceleration method and device based on gateway equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant