GithubHelp home page GithubHelp logo

dluechoy / buildingaichanger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stkfd/buildingaichanger

0.0 1.0 1.0 1.24 MB

Choose any building AI in the Asset Editor

License: Other

C# 100.00%

buildingaichanger's Introduction

BuildingAIChanger

This mod adds a field to the Asset Property editor that lets you choose any building AI for the building you're editing.

The main intended use of this mod is to ease the creation of buildings with custom AI classes. Currently, you do need to know the exact name of the AI class, there is no auto-complete or anything like that. If you enter a class that doesn't exist or isn't a PrefabAI, you won't do any harm.

Take care: This mod is mostly intended as a tool for people who know what they are doing. You can mess an asset up easily by choosing the wrong AI class. Usually if you break something by doing that, the change is not irreversable, but if you're not sure, make a backup!

Existing properties on the current AI instance are carried over to the new AI as far as possible, but it's probably still a good idea to select the proper AI as early as possible to avoid problems.

Using custom AI classes

If you intend to use a custom Building AI, make sure to include the namespace of your mod. For example, use MySuperMod.SuperAI. This is not neccessary for the stock AIs as they all seem to be in the root namespace.

Source code, Issues, contributing

The source code of this mod is available at https://github.com/cerebellum42/BuildingAIChanger

If you want to report an issue, please use the Github issues instead of telling me about problems in the steam workshop comments if possible. I read the comments, but creating an issue will probably get it resolved faster.

Thanks to Snow_Cat for contributing!

If you have modified this mod and think your update should be in it, feel free to send a pull request :)

buildingaichanger's People

Contributors

stkfd avatar dluechoy avatar

Watchers

 avatar

Forkers

son-of-cronus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.