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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 