游戏玩家信息查询方法及装置 Game player information inquiry method and device
技术领域 Technical field
本发明涉及网络游戏技术领域, 具体涉及查询游戏玩家信息的方法 及装置。 发明背景 The present invention relates to the field of network game technologies, and in particular, to a method and apparatus for querying game player information. Background of the invention
网络游戏是目前网络经济中的重要支柱, 参与网络游戏的玩家会有 各种信息, 例如 ID号码、 游戏形象、 等级、 积分、 在线状态等, 游戏 玩家或其他网络用户希望可以方便的获得这些信息, 但是, 现有技术中 这些信息一般只能从游戏客户端查询, 并且要求查询者拥有该游戏的帐 号。 Online games are an important pillar in the current network economy. Players participating in online games will have various information, such as ID numbers, game images, ratings, points, online status, etc. Gamers or other network users want to have easy access to this information. However, in the prior art, such information can generally only be queried from the game client, and the queryer is required to have the account of the game.
另外, 在将 IM ( Instant Messaging, 即时通讯)软件与网络游戏结 合的游戏服务平台中, 可以通过 IM软件客户端查询玩家的游戏状态。 以目前网络上主流的 IM集成游戏为例,用户可以通过 IM客户端软件查 询到好友的游戏状态信息, 包括在哪个房间、 正在进行什么游戏、 游戏 状态 (等待、 准备开始、 正在进行)等信息。 该查询过程包括: 1 )玩 家在进行游戏时, 游戏状态会实时传送到游戏服务器中; 2 ) IM服务器 定时到游戏服务器中查询玩家的游戏信息, 并保存到自己的服务器中; 的信息, 包括该用户的游戏信息, 获取后展示在 IM客户端界面上。 这 种查询方式的缺点是: 信息不开放, 局限性太强, 仅限于将玩家的游戏 信息展示在特定的 IM客户端, 无法展示在网页上, 也不能展示到其他 IM 软件或其他任何网络程序上; 而且, 展示的数据信息量有限, 只有 玩家在哪个房间, 玩哪个游戏的信息, 没有该玩家的每个游戏的等级,
游戏形象等更丰富的个人信息, 不能满足游戏用户的需求。 发明内容 In addition, in the game service platform that combines IM (Instant Messaging) software with online games, the game state of the player can be queried through the IM software client. Taking the mainstream IM integrated game on the network as an example, the user can query the game state information of the friend through the IM client software, including in which room, what game is going on, the game state (waiting, preparing to start, going on) and the like. . The query process includes: 1) when the player is playing the game, the game state is transmitted to the game server in real time; 2) the IM server periodically queries the game server to query the player's game information and saves it to the server; the information includes The user's game information is obtained and displayed on the IM client interface. The shortcomings of this kind of query method are: The information is not open, and the limitation is too strong. It is only limited to display the player's game information on a specific IM client, cannot be displayed on the webpage, and cannot display other IM software or any other network program. And; the amount of data displayed is limited, only the player is in which room, the information of which game is played, and the level of each game of the player, The richer personal information such as the game image cannot meet the needs of game users. Summary of the invention
本发明实施例公开了一种游戏玩家信息的查询方法及装置, 通过该 方法及装置, 可以全面、 实时的展示玩家的游戏状态和个人信息, 并可 以由任意 IM软件或其他第三方软件进行查询。 The embodiment of the invention discloses a method and a device for querying game player information. The method and device can display the game state and personal information of the player in a comprehensive and real-time manner, and can be queried by any IM software or other third-party software. .
本发明实施例公开了一种游戏玩家信息查询方法。 该方法包括: 将游戏玩家信息存储在信息数据库中; The embodiment of the invention discloses a game player information query method. The method includes: storing game player information in an information database;
由游戏信息查询客户端向游戏信息服务器发送查询请求, 所述查询 请求中包括游戏玩家的身份信息; Sending a query request to the game information server by the game information query client, where the query request includes identity information of the game player;
游戏信息服务器接收所述查询请求, 从信息数据库中读取与所述游 戏玩家的身份信息对应的游戏玩家信息, 并将所述与游戏玩家的身份信 息对应的游戏玩家信息发送给游戏信息查询客户端。 Receiving, by the game information server, the query request, reading game player information corresponding to the identity information of the game player from the information database, and transmitting the game player information corresponding to the identity information of the game player to the game information query client end.
本发明实施例还公开了一种游戏玩家信息查询装置。 该装置包括: 信息数据存储模块, 用于存储游戏玩家信息; The embodiment of the invention also discloses a game player information query device. The device includes: an information data storage module, configured to store game player information;
游戏信息查询客户端, 用于发送包含游戏玩家的身份信息的查询请 求; a game information query client, configured to send a query request including the identity information of the game player;
游戏信息服务器, 用于接收游戏信息查询客户端的查询请求, 从信 息数据存储模块中读取与所述游戏玩家的身份信息对应的游戏玩家信 息, 并将所述与游戏玩家的身份信息对应的游戏玩家信息发送给游戏信 息查询客户端。 a game information server, configured to receive a query request of the game information query client, read game player information corresponding to the identity information of the game player from the information data storage module, and play the game corresponding to the identity information of the game player The player information is sent to the game information query client.
利用本发明实施例公开的方案, 游戏服务商可以将玩家的游戏信息 公开出来, 为第三方软件提供查询接口, 由第三方调用游戏信息查询客 户端来查询游戏玩家的各种信息, 信息量大而丰富, 既有恒定的静态信 息, 又有实时更新的动态信息, 可以满足各种网络用户或游戏玩家的需
求。 本发明实施例中的数据可以基于现有技术中主流的 TCP/IP技术传 输, 可以非常容易的在互联网上进行传播和展现, 效率高, 兼容性好, 稳定性高。 附图简要说明 With the solution disclosed by the embodiment of the present invention, the game service provider can disclose the game information of the player, provide a query interface for the third party software, and the third party invokes the game information query client to query various information of the game player, and the information amount is large. Rich, both constant static information and dynamic information updated in real time, can meet the needs of various network users or game players. begging. The data in the embodiment of the present invention can be transmitted based on the mainstream TCP/IP technology in the prior art, and can be easily spread and displayed on the Internet, with high efficiency, good compatibility, and high stability. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明实施例的游戏玩家信息查询装置示意图。 FIG. 1 is a schematic diagram of a game player information inquiry apparatus according to an embodiment of the present invention.
图 2为本发明实施例的游戏玩家信息查询方法的的流程图。 FIG. 2 is a flowchart of a method for querying game player information according to an embodiment of the present invention.
图 3为本发明另一实施例的游戏玩家信息查询装置的示意图。 具体实施方式 FIG. 3 is a schematic diagram of a game player information inquiry apparatus according to another embodiment of the present invention. detailed description
以下举具体实施例并参照附图, 对本发明作进一步说明。 The invention will now be further described by way of specific examples and with reference to the accompanying drawings.
为了实现第三方软件 104对游戏玩家信息的查询, 本发明实施例公 开了一种游戏玩家信息查询装置。 如图 1所示, 该游戏玩家信息查询装 置包括: 信息数据存储模块 101 , 用于存储游戏玩家信息; 游戏信息服 务器 102, 用于接收游戏信息查询客户端 103的查询请求, 从信息数据 存储模块 101中读取所查询的游戏玩家信息, 并将该游戏玩家信息发送 给游戏信息查询客户端 103; 游戏信息查询客户端 103, 与游戏信息月良 务器建立连接, 用于向游戏信息服务器 102发送所述查询请求, 接收返 回的游戏玩家信息, 并将所述游戏玩家信息提供给游戏客户端或第三方 软件 104查询。 In order to implement the query of the game player information by the third party software 104, an embodiment of the present invention discloses a game player information inquiry device. As shown in FIG. 1 , the game player information querying apparatus includes: an information data storage module 101 for storing game player information; a game information server 102, configured to receive a query request of the game information query client 103, and the information data storage module. The game player information is read and sent to the game information query client 103. The game information query client 103 establishes a connection with the game information server for the game information server 102. The query request is sent, the returned game player information is received, and the game player information is provided to the game client or the third party software 104 for inquiry.
图 2示出了本发明实施例的游戏玩家信息查询方法的流程图。 在本 实施例中, 查询游戏玩家的方法如下: FIG. 2 is a flow chart showing a method for querying game player information according to an embodiment of the present invention. In this embodiment, the method of querying the game player is as follows:
步骤 201: 信息数据存储模块存储游戏玩家信息。 游戏玩家信息包 括玩家帐号、 游戏等级、 游戏形象、 性别和名称等不变或保持较长时间 不变的静态信息。 信息数据存储模块可以定期更新或根据请求更新静态
信息。 游戏玩家信息还包括玩家在线状态、 进行的游戏类别、 所在位置 及与该玩家相关的其他玩家的信息等实时改变的动态信息; Step 201: The information data storage module stores game player information. Game player information includes static information such as player account number, game level, game image, gender, and name that remain unchanged or remain unchanged for a long time. The information data storage module can be updated periodically or statically upon request Information. The game player information also includes dynamic information of real-time changes such as the player's online status, the type of game played, the location and other players' information related to the player;
步骤 202: 游戏客户端或第三方软件调用游戏信息查询客户端, 向 游戏信息查询客户端发送要查询的游戏玩家的身份信息, 由游戏信息查 询客户端生成包含有游戏玩家的身份信息的查询请求, 发送给游戏信息 服务器; Step 202: The game client or the third party software invokes the game information query client, sends the identity information of the game player to be queried to the game information query client, and generates a query request including the identity information of the game player by the game information query client. , sent to the game information server;
步骤 203: 游戏信息服务器接收到游戏信息查询客户端发送来的查 询请求后, 从信息数据存储模块中读取与所述游戏玩家的身份信息对应 的游戏玩家信息; Step 203: After receiving the query request sent by the game information query client, the game information server reads the game player information corresponding to the identity information of the game player from the information data storage module.
步骤 204: 游戏信息服务器将读取的游戏玩家信息发送给游戏信息 查询客户端; Step 204: The game information server sends the read game player information to the game information query client;
步骤 205: 游戏信息查询客户端将所得到的游戏玩家信息发送给游 戏客户端或第三方软件, 并在游戏客户端或第三方软件上展示出来。 Step 205: The game information query client sends the obtained game player information to the game client or third party software, and displays it on the game client or third party software.
上述过程中, 在执行步骤 204之前, 可以先将读取的游戏玩家信息 进行加密和压缩, 然后再将加密压缩后的游戏玩家信息发送给游戏信息 查询客户端, 游戏信息查询客户端接到经过加密压缩的游戏玩家信息后 对其进行解压和解密, 这样就保证了游戏玩家信息在传输过程中的安 全, 并可节约网络资源。 In the above process, before the step 204 is performed, the read game player information may be encrypted and compressed, and then the encrypted and compressed game player information is sent to the game information query client, and the game information query client receives the process. The compressed game player information is decompressed and decrypted, which ensures the security of the game player information during transmission and saves network resources.
作为本实施例的一个优选实施例, 游戏信息查询客户端为 ActiveX 组件, 第三方软件是任何可以调用 ActiveX组件的程序或脚本。 As a preferred embodiment of the embodiment, the game information query client is an ActiveX component, and the third party software is any program or script that can call the ActiveX component.
在本发明的另一实施例中, 以一种 IM集成游戏为例对本发明作更 为详细的说明。该 IM游戏是一款基于 internet的大型多人在线游戏平台, 包括各种主流的休闲游戏、竟技游戏以及中大型游戏,玩家在玩游戏时, 需要先进入游戏大厅里的房间, 在房间里找到合适的位置后与同桌的玩 家一同游戏, 一个房间一般可容纳数百名用户。 游戏玩家信息包括玩家
的各种游戏的等级、 积分、 胜率、 形象, 现在正在哪个房间、 哪个位置、 游戏状态, 是在玩还是在旁观, 还是在闲逛, 等等。 In another embodiment of the present invention, the present invention is described in more detail by taking an IM integrated game as an example. The IM game is a large-scale multiplayer online game platform based on the Internet, including all kinds of mainstream casual games, game games and medium and large games. When playing games, players need to enter the room in the game hall first, in the room. Find the right location and play with the players at the same table. A room can usually accommodate hundreds of users. Game player information including players The level, score, winning percentage, image of the various games, which room, location, game state, whether you are playing or watching, or hanging out, etc.
为了实现 IM游戏信息的开放式查询, 本实施例公开了另一种游戏 玩家信息查询装置的示意图。 如图 3所示, 在该游戏玩家信息查询装置 中包括位于信息数据存储模块 315上的信息数据库 314, 该信息数据库 314包括静态信息存储区域 312和动态信息存储区域 313 , 其中静态信 息存储区域 312用于存储固定不变的信息, 例如玩家的帐号、 性别和名 称等, 或者在较长时间 (例如 100小时在线时间) 内保持不变的信息, 例如游戏等级、 游戏形象等, 游戏等级在某一段时间内是不变的, 只有 分数积累到一定程度时,等级才会增加一级,然后再保持一段时间不变; 游戏形象只有在玩家更改设置后才会改变, 这些信息由游戏服务器写入 信息数据库的静态信息存储区域 312并定期更新或根据请求更新; 动态 信息存储区域 313用于存储实时改变的玩家信息, 例如玩家的积分、 在 线状态 (在线、 离线、 隐身等)、 正在玩的游戏、 所在的房间、 所在的 位置、 游戏的状态、 同桌的游戏玩家和参观者等信息, 这些信息是实时 变化的, 由游戏服务器实时的写入信息数据库的动态信息存储区域 313。 In order to realize an open query of IM game information, this embodiment discloses another schematic diagram of a game player information inquiry device. As shown in FIG. 3, the game player information inquiry means includes an information database 314 located on the information data storage module 315, the information database 314 including a static information storage area 312 and a dynamic information storage area 313, wherein the static information storage area 312 Used to store fixed information, such as the player's account number, gender, and name, or information that remains constant over a long period of time (for example, 100 hours of online time), such as game level, game image, etc. It is constant for a period of time. Only when the score accumulates to a certain level, the level will increase by one level and then remain unchanged for a while; the game image will only change after the player changes the settings. This information is written by the game server. The static information storage area 312 of the information database is periodically updated or updated according to the request; the dynamic information storage area 313 is used to store player information that changes in real time, such as player's points, online status (online, offline, stealth, etc.), the game being played. , the room where it is, where it is Dynamic information storage area, state of the game at the same table game players and visitors and other information that changes in real time, real-time database information is written by the game server 313.
在该游戏玩家信息查询装置中还包括游戏信息服务器和游戏信息查 询客户端。 游戏信息服务器包括: 查询请求接收模块 307, 用于接收游 戏信息查询客户端发送来的查询请求, 并将请求中的待查询玩家的身份 信息提取出来发送给读取模块 311 ;读取模块 311 ,用于根据查询请求接 收模块 307发送的游戏玩家的身份信息, 从信息数据库中读取所有游戏 玩家的身份信息对应的游戏玩家信息, 并将该游戏玩家信息传递给信息 发送模块 308; 信息发送模块 308, 用于将读取模块 311传递来的游戏 玩家信息发送给游戏信息查询客户端。 游戏信息查询客户端为 ActiveX 组件, 包括: 查询请求发送模块 302, 用于生成查询请求, 并将该查询
请求发送到游戏信息服务器, 查询请求中包含待查询玩家的身份信息; 信息接收模块 306, 用于接收游戏信息服务器发送来的待查询玩家的游 戏玩家信息, 并将该游戏玩家信息转发给接口模块 303; 接口模块 303, 用于为游戏客户端或第三方软件 301提供查询接口。 第三方软件可以是 第三方开发的 IM程序、 其他应用程序、 网页浏览器等。 Also included in the game player information inquiry device is a game information server and a game information inquiry client. The game information server includes: a query request receiving module 307, configured to receive a query request sent by the game information query client, and extract the identity information of the player to be queried in the request and send the information to the reading module 311; the reading module 311, For playing the identity information of the game player sent by the query request receiving module 307, reading the game player information corresponding to the identity information of all the game players from the information database, and transmitting the game player information to the information sending module 308; the information sending module 308. The game player information used for transmitting the reading module 311 is sent to the game information query client. The game information query client is an ActiveX component, and includes: a query request sending module 302, configured to generate a query request, and the query The request is sent to the game information server, where the query request includes the identity information of the player to be queried; the information receiving module 306 is configured to receive the game player information of the player to be queried sent by the game information server, and forward the game player information to the interface module. The interface module 303 is configured to provide a query interface for the game client or the third-party software 301. The third party software may be an IM program developed by a third party, another application, a web browser, or the like.
以网页浏览器为例: 网站开发者欲将游戏玩家 A的信息展示在网页 上, 只需在网页代码中调用游戏信息查询客户端的 ActiveX组件, 向游 戏信息查询客户端发出查询玩家 A的信息的请求,游戏信息查询客户端 的查询请求发送模块 302根据网页浏览器的请求生成带有玩家 A的身份 信息的查询请求, 并将该查询请求通过 TCP/IP协议发送到游戏信息服 务器; 游戏信息服务器的查询请求接收模块 307接收到游戏信息查询客 户端发送来的查询请求后,将查询请求中的玩家 A的身份信息提取出来 发送给读取模块 311 ; 读取模块 311根据玩家 A的身份信息从信息数据 库中读取出与玩家 A的身份信息对应的游戏玩家信息,并将该游戏玩家 信息发送给信息发送模块 308, 信息发送模块 308将读取模块 311传递 来的与玩家 A 的身份信息对应的游戏玩家信息发送给游戏信息查询客 户端; 游戏信息查询客户端的信息接收模块 306接收到游戏信息服务器 发送来的与玩家 A的身份信息对应的游戏玩家信息后,将该游戏玩家信 息转发给接口模块 303, 由接口模块 303提供给网页浏览器, 由网页浏 览器展示在网页上。 Taking a web browser as an example: The web developer wants to display the information of the game player A on the webpage, and only needs to call the game information query client's ActiveX component in the webpage code, and send the game information query client to query the player A's information. Requesting, the query request sending module 302 of the game information query client generates a query request with the identity information of the player A according to the request of the web browser, and sends the query request to the game information server through the TCP/IP protocol; the game information server After receiving the query request sent by the game information query client, the query request receiving module 307 extracts the identity information of the player A in the query request and sends it to the reading module 311; the reading module 311 receives the information from the player A according to the identity information of the player A. The game player information corresponding to the identity information of the player A is read in the database, and the game player information is sent to the information sending module 308, and the information sending module 308 corresponds to the identity information of the player A transmitted by the reading module 311. Game player information is sent to the game information queryer The information receiving module 306 of the game information query client receives the game player information corresponding to the identity information of the player A sent by the game information server, and then forwards the game player information to the interface module 303, and is provided by the interface module 303. A web browser, displayed on a web page by a web browser.
另外, 如图 3中虚线部分所示, 游戏信息服务器还可以包括加密模 块 310和压缩模块 309, 这两个模块位于读取模块 311和信息发送模块 308之间, 用于将读取模块 311读取的游戏玩家信息进行加密和压缩, 然后由信息发送模块 308发送到游戏信息查询客户端; 游戏信息查询客 户端还包括有位于信息接收模块 306和接口模块 303 之间的解压模块
305和解密模块 304, 用于对信息接收模块 306接收到的经过加密和压 缩的游戏玩家信息进行解压和解密。 压缩的目的是减小游戏玩家信息的 体积, 降低游戏玩家信息传输过程中对网络资源的占用率; 加密的目的 是保证游戏玩家信息传输过程中的数据安全, 避免游戏玩家信息在传输 过程中被修改。 In addition, as shown in the dotted line in FIG. 3, the game information server may further include an encryption module 310 and a compression module 309. The two modules are located between the reading module 311 and the information sending module 308, and are used to read the reading module 311. The game player information is encrypted and compressed, and then sent to the game information query client by the information sending module 308. The game information query client further includes a decompression module located between the information receiving module 306 and the interface module 303. The decryption module 304 is configured to decompress and decrypt the encrypted and compressed game player information received by the information receiving module 306. The purpose of compression is to reduce the volume of game player information and reduce the occupancy rate of network resources during game player information transmission. The purpose of encryption is to ensure data security during game player information transmission, and to avoid game player information being transmitted during transmission. modify.
以上只是本发明的较佳实施方式的举例, 本发明要求保护的范围不 限于上述实施例。 任何本技术领域的普通技术人员根据本发明所作出的 任何等效变换均属于本发明的保护范围。
The above is merely an example of a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above embodiment. Any equivalent transformation made by one of ordinary skill in the art in accordance with the present invention is within the scope of the present invention.