GithubHelp home page GithubHelp logo

buildingaichanger's Introduction

Prefab AI Changer

Originally Building AI Changer, after merge of Snow_Cat's (D Lue Choy) additions and subsequent rewrite, generic Prefab AI changer.

This mod adds a drop down list to the Asset Property editor that lets you choose any AI for the asset you are editing.

Warning - WorksAsBuilding() and WorksAsNet() checks are not implemented.

Assigning wildly inappropriate AIs will break an asset, cause exceptions and other weird things. Broken assets will fail to load and cannot be fixed with the asset editor.

You can try to assign inappropriate AI types (a VehicleAI to a building, etc) but chances are something will break horribly. So if you do, backup your asset before you try.

If you want to create a custom Building AI, create a building and assign your new AI to, if you create a custom VehicleAI, start with a stock VehicleAI and change that, etc.

Purpose

The main intended use of this mod is to ease the creation of assets with custom AI classes.

Usage

Just select the name of the new AI class and click "Apply" after you have made your selection. When you click Apply the new AI will actually be applied to the asset and refresh the properties panel with the new set of options for the selected AI. If the previous and new AI share properties, their values will carry over.

Using custom AI classes

You can assign custom AI classes with this, mod. They will start with the namespace of your mod in the AI list.

Source code & Issues

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 if you can as I may not always read the steam workshop comments. I will read your comment eventually, but a Github issue will notify me right away.

buildingaichanger's People

Contributors

dluechoy avatar stkfd avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

buildingaichanger's Issues

Crashing Game on Start Screen

Both ItemClass Changer and AI Changer crash the game showing an error message saying file sources of many other mods (like Building Themes, Control Building, Environment Changer, RICO, etc) could not be found.
Game is updated to Natural Disasters
error

Not Working With Citizen Assets

It seems like changing the AI for citizens doesn't work. I tried changing a citizen's AI from a Tourist AI to a Resident AI, and the citizen never spawned ingame. Is this hard-coded behavior?

Broken by update 22-Dec

Was working though sometimes unstable until the most recent update, 22 December 2022, 1.16.0.f3 (Financial Districts).

Now causes freeze when attempting to apply change (clicking the button); does not recover and game requires kill through task manager.

Broken by Campus DLC update

Hey. The Campus update seems to have broken the PrefabAI dropdown menu in Asset Editor. Haven been unsuccessful at trying to unsubscribe/resubscribe, and others have noted the same issue on the workshop comments. Hoping it can get fixed โ€“ must have mod!

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.