Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for processing endless loop of game server

A technology of online games and processing methods, which is applied in the field of computer software, can solve problems that cannot be solved, and can only restart the server program, so as to achieve the effect of server stability

Active Publication Date: 2014-05-21
FUJIAN TQ DIGITAL
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, servers in the game industry prevent endless loops by improving code quality and conducting a large number of tests. Once an infinite loop occurs, the server program can only be restarted.
It is impossible for the person maintaining the server to stay next to the server 24 hours a day, so it often happens that after the server fails, it takes a long time to restart the server
This has a very bad impact on the operation of the game.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for processing endless loop of game server
  • Method for processing endless loop of game server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] Once a program falls into an infinite loop, it is basically impossible to recover unless the process is restarted, especially for programs developed in low- and middle-level languages ​​like C / C++. Because the logic of the game server is more complicated, it is generally connected to the script for development. What is used in the project of the present invention is exactly the Lua script. In addition to the framework code, all game logic functions are developed using Lua language. A scripting language like Lua has a feature, that is, if an error occurs during runtime, it will jump to the initial place where it was transferred from C / C++ to Lua, instead of crashing and exiting directly when encountering a running error like C / C++. The core idea of ​​the technical solution of the present invention is exactly after the Lua language program falls into an infinite loop, actively triggers its runtime error, makes it stop running, and then jumps back in C / C++, so that it is f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A method for processing an endless loop of a game server includes the steps of firstly, detecting the endless loop, after judging that a main thread enters the endless loop, hanging up the main thread through a monitoring thread, and temporarily stopping running of the main thread; secondly, after a Lua language program of the main thread enters the endless loop, actively triggering errors in the running process of the Lua language program by processing the monitoring thread, and stopping running of the Lua language program, then jumping back to C / C++, relieving from the endless loop, preventing the same codes from running again through subsequent processing, and preventing the game server from entering the endless loop again. The method for processing the endless loop of the game server is stable and effective.

Description

【Technical field】 [0001] The invention belongs to the technical field of computer software, and specifically refers to a processing method for a network game server using a script to fall into an infinite loop. 【Background technique】 [0002] In the software architecture, a very basic mode is the Client / Server mode. The Client is used to display data and respond to operations, and the Server is responsible for all Client servers: sending data and responding to uploaded messages. The realization of online games is also such a typical architecture. The Client is the game client. Players play games in the virtual world displayed on the client. The Server is the game server, which is responsible for delivering player information and synchronizing with other players. [0003] If there is a problem with the game server code and an infinite loop occurs during the running of the program, then it will no longer be able to process the connection and message packets of the client, and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/07
Inventor 刘德建陈宏展郭锐陈南
Owner FUJIAN TQ DIGITAL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products