Method and system for automatically generating behavior tree codes

An automatic generation and tree code technology, applied in the field of games, can solve the problems of automatic generation technology of behavior tree code not retrieved and cannot be used to describe artificial intelligence behavior, so as to reduce the writing work, facilitate upgrading and maintenance, and speed up the development progress. Effect

Inactive Publication Date: 2017-07-18
SHANGHAI SHINIAN INFORMATION TECH
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The above-mentioned patent application is aimed at the automatic generation of source code, but it cannot be used to describe t...

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 and system for automatically generating behavior tree codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The present invention will be described in detail below in conjunction with specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0041] The method for automatically generating behavior tree codes provided by the present invention comprises the following steps:

[0042] Step 1: Define the behavior tree nodes that need to be used; each behavior tree node has a list to store child nodes, each behavior tree node has a location description, and the location description indicates the location of the behavior tree node in the sibling node. The order of places; where, a behavior tree node refers to a set of codes that can be run accordin...

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 provides a method and system for automatically generating behavior tree codes. The method comprises the step of: S1: defining behavior tree nodes which need to be used; S2: configuring artificial intelligence data, and particularly, according to the behavior tree nodes defined in the step S1, constituting an artificial intelligence behavior tree; S3: loading an artificial intelligence configuration file, and according to various nodes and a relationship among the nodes, which are described in a data text, sequentially constructing operational behavior tree codes; S4: repeating the step S3 to carry out compiling, and after finishing traversing, returning an integral set of constructed behavior tree codes. According to the method and the system which are provided by the invention, the lua codes are automatically generated accoding to the lua data text, so that the writing work of a great quantity of codes is reduced, and the generation process of the behavior tree is simpler and easier to understand. Therefore, artificial intelligence behaviors in a game can be more effectively implemented, a game development progress is accelerated, and the method and the system are convenient to upgrade and maintain the codes.

Description

technical field [0001] The invention relates to the technical field of games, in particular to a method and system for automatically generating behavior tree codes. Background technique [0002] In order to facilitate the realization of artificial intelligence behavior in games, many games use behavior trees as artificial intelligence solutions. There are many ways how to describe the behavior tree, such as writing code directly to describe the behavior tree. The method of directly writing behavior tree code is not convenient for maintenance, and cannot clearly display the logic of artificial intelligence. [0003] After searching, the application number is: 201480033537.6, and the name is: automatic source code generation, which proposes to automatically generate source code statements from a profile including variable code elements and methods. The profile is built from an existing code base with identified variable code elements that differ when used in different versio...

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): G06F9/44
Inventor 刘斌程伟马吉峰林水香
Owner SHANGHAI SHINIAN INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products