The embodiment of the invention discloses a system and a game reconnection method, the method includes: the game server detects the game server and game player is disconnected from the network, beginning with the close game player game session and timing; the game server receives the game player on the line between the request and receiving the on-line request time and close time of the game session time is in the timing threshold; if yes, the game server from the game server memory to extract the game game player game data; if not, the game server from the physical database the game server to extract data of the game player of the game; the game server according to the game scene the game the game session data recovery. The embodiment of the invention can effectively guarantee the game player's storage of the game data and the reduction of the game scene when he logs in again when the game player is in bad condition.
【技术实现步骤摘要】
游戏进程断线重连的方法和系统
本专利技术涉及计算机网络游戏领域,尤其涉及一种游戏进程断线重连的方法和系统。
技术介绍
随着电子科技和网络的快速发展,用户可以不受时间空间制约在移动设备上进行网络游戏,而且因为网络游戏丰富有趣,所以网络游戏吸引了越来越多的用户。为了给用户更好的游戏体验,游戏开发商一直在研发对客户端网络状态要求不高的网游,以满足用户在网络状态一般的时候游戏过程也没有受到干扰。但是在客户端网络状态非常不好,或者网络在波动的时候,用户玩游戏不仅会出现卡顿的情况,还可能造成游戏过程中某些信息的丢失,这样即使网络恢复正常也会因为信息的缺失而无法继续正常游戏,极大的影响了用户的游戏体验。
技术实现思路
本专利技术实施例提出的一种游戏进程断线重连的方法和系统,可以保障当服务器和客户端之间的网络连接断开或者不稳定之后,玩家重新登录游戏时可以根据保存的游戏数据恢复游戏现场,游戏正常业务逻辑不遭受影响和损失。第一方面,本专利技术实施例提供一种游戏进程断线重连的方法,包括:游戏服务器当检测到游戏服务器与游戏玩家断开网络连接时,关闭所述游戏服务器与所述游戏玩家的游戏会话,并开始 ...
【技术保护点】
一种游戏进程断线重连的方法,其特征在于,包括:所述游戏服务器当检测到游戏服务器与游戏玩家断开网络连接时,关闭所述游戏服务器与所述游戏玩家的游戏会话,并开始计时;其中,在所述游戏会话过程中所生成的游戏数据是实时存储在所述游戏服务器的内存中的;所述游戏服务器接收所述游戏玩家的上线请求;所述游戏服务器判断接收到所述上线请求的时间与关闭所述游戏会话的时间之间的时间是否在计时阈值内;若是,则所述游戏服务器从所述游戏服务器的内存中提取所述游戏玩家的游戏数据;若否,则所述游戏服务器从所述游戏服务器的物理数据库中提取所述游戏玩家的游戏数据;其中,所述物理数据库用于存储当计时值达到所述计时阈 ...
【技术特征摘要】
1.一种游戏进程断线重连的方法,其特征在于,包括:所述游戏服务器当检测到游戏服务器与游戏玩家断开网络连接时,关闭所述游戏服务器与所述游戏玩家的游戏会话,并开始计时;其中,在所述游戏会话过程中所生成的游戏数据是实时存储在所述游戏服务器的内存中的;所述游戏服务器接收所述游戏玩家的上线请求;所述游戏服务器判断接收到所述上线请求的时间与关闭所述游戏会话的时间之间的时间是否在计时阈值内;若是,则所述游戏服务器从所述游戏服务器的内存中提取所述游戏玩家的游戏数据;若否,则所述游戏服务器从所述游戏服务器的物理数据库中提取所述游戏玩家的游戏数据;其中,所述物理数据库用于存储当计时值达到所述计时阈值且未接收到所述游戏玩家的上线请求时从所述内存中删除的所述游戏玩家的游戏数据;所述游戏服务器根据所述游戏数据恢复所述游戏会话的游戏场景。2.如权利要求1所述的游戏进程断线重连的方法,其特征在于,在所述检测到游戏服务器与游戏玩家断开网络连接之前,还包括:所述游戏服务器根据建立所述游戏会话的网络协议底层,检测所述游戏服务器与所述游戏玩家是否断开网络连接。3.如权利要求2所述的游戏进程断线重连的方法,其特征在于,所述游戏玩家是通过游戏客户端与所述游戏服务器建立网络连接的,则所述游戏进程断线重连的方法还包括:当所述游戏客户端连续发出N个心跳报文给所述游戏服务器但均没接收到所述游戏服务器反馈的心跳反馈时,所述游戏客户端生成提示信息并进行显示;所述提示信息用于提示所述游戏玩家当前网络连接处理网络状态异常的状态;当所述游戏客户端接收到所述游戏玩家的断开网络连接请求时,所述游戏客户端断开与所述服务器的网络连接;其中,所述网络协议底层用于更新记载所述游戏客户端与所述服务器的网络连接处于断开状态的信息。4.如权利要求1所述的游戏进程断线重连的方法,其特征在于,所述游戏数据包括所述游戏玩家的基本账号信息和所述游戏玩家的游戏状态数据。5...
【专利技术属性】
技术研发人员:陈大伟,徐洁,
申请(专利权)人:广州市雷军游乐设备有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。