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

Game protocol parsing and hot update method and system based on LUA

A protocol analysis and hot update technology, applied in transmission systems, electrical components, etc., can solve problems such as low development efficiency and large coding time, and achieve the effect of reducing communication costs and reducing the time for repeated analysis

Inactive Publication Date: 2018-11-06
武汉灵动在线科技有限公司
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this compilation process can only be completed on the PC platform, not on the mobile platform. Whenever we modify the logic and ui of the game, resulting in a change in the code structure, the developer needs to recompile, repackage, and recompile. For newer versions, developers need to spend a lot of repetitive coding time to complete protocol analysis, resulting in low development efficiency

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
  • Game protocol parsing and hot update method and system based on LUA
  • Game protocol parsing and hot update method and system based on LUA

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0020] On the one hand, the present invention provides a kind of LUA-based game protocol parsing and hot update method, such as figure 1 shown, including the following steps:

[0021] Step 1, the server side generates the protocol format file, and sends the protocol format file to the client according to the client request;

[0022] In step 2, the underlying protocol parsing library of the client automatically parses the protocol data into a specified data structure according to the protocol format file, and sends it to the corresponding function module for direct use.

[0023] Further, the step 1 also includes that the developer sends a request to the server to obtain the protocol format file every time he logs in...

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

The invention relates to a game protocol parsing and hot update method and system based on LUA. The method comprises the following steps that: a server side generates a protocol format file, and sendsthe protocol format file to a client according to a client request; and an underlying protocol parsing library of the client automatically parses protocol data into a specified data structure according to the protocol format file, and sending the specified data structure to a corresponding functional module for direct use. The server side generates a protocol format file which contains all the protocol structures needed by a game, and the protocol format file can be modified and updated at any time without the need of a communication process between a server and the client, thereby reducing the communication cost. The data structure is automatically parsed, and a developer can directly use the data structure without the need of writing codes by hand or parsing a protocol one field after another, thereby greatly reducing the time of repeated parsing and the generation of human errors during the period, and also directly realizing hot update of the protocol.

Description

technical field [0001] The invention relates to the technical field of computer applications, in particular to a method and system for game protocol analysis and hot update based on LUA. Background technique [0002] With more and more mobile games and more and more frequent iterations of game functions, it is increasingly important for developers to quickly analyze and update game function protocols. [0003] Now most of the unity mobile game companies basically use C# as the scripting language. When the C# script is written, the compiler needs to compile the dll executable file. However, this compilation process can only be completed on the PC platform, not on the mobile platform. Whenever we modify the logic and ui of the game, resulting in a change in the code structure, the developer needs to recompile, repackage, and recompile. For newer versions, developers need to spend a lot of repetitive coding time to complete protocol analysis, resulting in low development effic...

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): H04L29/08H04L29/06
CPCH04L69/06H04L67/5682H04L67/131
Inventor 张强张威殷国平
Owner 武汉灵动在线科技有限公司
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