Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for dynamic loading configuration files and script in network game server

A dynamic loading and server technology, applied in instruments, multi-programming devices, special data processing applications, etc., can solve problems such as restarts, player offline, and consumption, so as to reduce the probability of errors, increase experience, and reduce cost effect

Active Publication Date: 2007-08-22
成都金山互动娱乐科技有限公司
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this method in the game development stage is that it takes a relatively long time, which brings the cost of manual waiting for the planners; the disadvantage in the operation stage is that the server program must be closed and restarted, and players are forced to go offline , bringing about a decline in player experience

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 dynamic loading configuration files and script in network game server
  • Method for dynamic loading configuration files and script in network game server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] A method of dynamically loading configuration files and scripts. First, the server monitors whether it receives the reload command sent by the client. When the main thread of the server receives the reload command sent by the client tool, it suspends the main loop and executes it again. load command to load configuration files and scripts.

[0022] The client side actively sends messages to the server process, and the inter-process communication between the game client side and the server side adopts the Socket mode.

[0023] The re-execution of the loading command refers to: for the configuration file, the system memory block data corresponding to the configuration file file before reloading is cleared, and then the configuration file file is re-read into the system memory; for the script, it is called by the script engine to read The special function interface of the script file is used to re-read and execute the script sequentially.

[0024] The main thread refers t...

Embodiment 2

[0031] As shown in Figure 2, when the server uses a single thread, the specific instance of the item price list in the game is dynamically loaded. The initial price of a certain item is a, and the price after reloading is b.

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

This invention provides a method for dynamically loading configuration steps and scripts characterizing that: first of all a server monitors if it receives a re-loading instruction sent by a customer end, when the main thread of the server receives the instruction of re-loading sent by the customer end tool, it pauses the main circulation and re-executes the load instruction to load the configuration steps and script, in which, the communication between processes of the customer end and the server end applies the Socket mode, and the re-loading method can reduce cost.

Description

technical field [0001] The invention relates to the field of network game servers, in particular to a method for dynamically loading configuration files and scripts in the network game server. Background technique [0002] With the development of online games, sometimes gamers are not satisfied with the single operation of the game itself, so some settings need to be changed. These are frequently changed parts, so some configuration files and related information are provided in the online game server. to logic processing scripts for gameplay. The configuration file includes numerical settings of monsters and props, etc., and the logic processing script includes event processing of npc (non-player role in the game), task system, etc. [0003] Configuration files and scripts are designed for game planners. These are frequently changed parts. If the configuration files and scripts are constantly changed, the server will need to be restarted and loaded, which will bring a lot o...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F19/00G06F9/52H04L29/06
Inventor 陈济忠何文辉周冠强
Owner 成都金山互动娱乐科技有限公司