Total War: WARHAMMER II

Total War: WARHAMMER II

AI General II: Spectator Mode Advanced
 This topic has been pinned, so it's probably important
paperpancake  [developer] Feb 18, 2020 @ 2:32pm
How do I use the configuration options?
You can continue to use the text file configuration described below, and/or you can use Vandy's new version of the Mod Configuration Tool. You do not need either MCT or the text file for this mod to work, but I recommend using at least one.

Advantages of MCT 2: See and update your options from within the game. Keep options for all your mods in one place. Easier to see what the allowed settings are.

Advantages of the text file below: Doesn't require another mod, so you don't have to worry about both MCT and this mod both being up to date and playing nicely with each other.


If you want to use the text file for configuration, use the steps below.

  1. On your computer, go to the folder wher your game is installed (the main folder, not the data folder). This will vary based on where you installed the game and what kind of computer you have, but a common place for it is
    C:\Program Files (x86)\Steam\steamapps\common\Total War WARHAMMER II
  2. Add a new folder called mod_config (if you haven't already for another mod). If you don't create this folder, this mod will just use default values and not read or write any config files.
  3. You now need to create the config file. Choose the way to create it that you think is easiest:
    • In the mod_config folder, create a new text file called ai_general_config.txt. Copy and paste the default file contents into your new file. You can find the default file contents at the end of this post.

    • - OR - With this mod enabled, start TW Warhammer II. Once you're at the main menu, minimize or exit the game. You'll now see a new file called ai_general_config.txt in the mod_config folder that you created for step #2. Open that text file.
  4. In your new text file you will see examples and default values that you can change and save.

Notes:
- This mod reads this file during the battle loading screen, so any changes you save to the config file will be used in the next battle you play. No need to restart the whole game to see your changes.
- This config file is a way that you can customize the mod without having to redo your work every time the mod updates.

Eww. Text files? Why doesn't this use the Mod Configuration Tool?

It now can! You can use Vandy's new version of the Mod Configuration Tool (currently in beta) if you want.

The original Mod Configuration Tool only worked in a campaign. I wanted these mods to be configurable in custom battles, too. This works for now.



---------DEFAULT CONFIG FILE CONTENTS------------

-- Here is what is in the configuration file by default.

-- Anything that starts with a -- is a comment.
-- Comments are just notes to yourself. They don't do anything.
-- You can add, change, or delete comments all you'd like.
-- I put my comments above or on the line they refer to.

----------------------------------------------------------------------------------------------
-- How many seconds should the advisor be visible before being dismissed?
-- You can set this to false or 0 if you don't want it to appear at all.

popup_msg_duration = 1.3


----------------------------------------------------------------------------------------------
-- By default, you have to press a hotkey to turn on auto-controlled summons and rallied units
-- Change any of the following to true if you want the setting to be on at
-- the beginning of each battle. (You can still use the hotkey to turn it off again and on again.)

start_with_auto_controlled_summons = false
start_with_auto_controlled_rallying = false


----------------------------------------------------------------------------------------------

-- If you give everything you currently have to the AI, should this mod assume you want to
-- give your reinforcements and summoned units to the AI as well?
-- Yes? Set this to true. No? Set this to false.

extend_control_if_all_selected = true


-- If you use the hotkey that gives everything except your selected units to the AI, should
-- this mod assume you want to give your reinforcements and summoned units to the AI as well?
-- Yes? Set this to true. No? Set this to false.

extend_control_if_reverse_selected = false


----------------------------------------------------------------------------------------------
-- Change the following to true if you want a button that will
-- allow you to add or remove AI control for selected units

add_button_to_enable_ai = false

-- To use "Save Camera Bookmark 6" as a shortcut for adding or removing
-- selected units from AI control, set use_hotkey_to_enable_ai = true
-- Then in the game's Controls menu you can
-- bind Save Camera Bookmark 6 to whatever key you want.
-- If that creates a conflict for you, there are other options for this
-- in the configuration discussion on Steam.

use_hotkey_to_enable_ai = false


----------------------------------------------------------------------------------------------
-- If you never want to automatically give spellcasters to the AI, even if you turn on
-- extend_control_if_reverse selected or auto-controlled rallying units, then
-- set the following to true. You will still be able to give units to the AI manually.

prevent_AUTOMATIC_control_of_spellcasters = false

-- If you never, never, *NEVER* want spellcasters to be given to the AI, even if you
-- try to manually give them to the AI, then set this to true. If you set this to true
-- then no spellcaster will be given to the AI even if you select your whole army and try
-- to give it to the AI.

never_control_spellcasters = false

----------------------------------------------------------------------------------------------
-- These options allow you to change this mod's primary hotkeys or get rid of them altogether
-- You probably don't need to edit these unless you need them for another mod or you need
-- a lot of camera bookmark hotkeys and wish this mod didn't use so many.
-- Set these to true to use the hotkeys in the mods description ("Save Camera Bookmark 1" through 5)
-- Set any or all of these to false to not use it at all
-- Or you can set these to one of the allowed modding hotkeys (F2 to F4) like "script_shift_F2"

hotkey_for_set_ai_selection = true
hotkey_for_set_reverse_selection = true
hotkey_for_unit_responses = true
hotkey_for_controlled_summons = true
hotkey_for_controlled_rallying = true

--------------------------------------------------------------------------------------------
-- That's the end of the file.
-- If you want to see other options available for use_hotkey_to_enable_ai, you can
-- use the same "script_F2", "script_shift_F2", etc. options that are described
-- in the last May 24 post in this Steam discussion. Feel free to ask if you have questions.
Last edited by paperpancake; Aug 3, 2021 @ 11:16pm
Showing 1-2 of 2 comments
paperpancake  [developer] Apr 7, 2020 @ 11:08am 
@Just4Fun Sadly, there are no settings in this mod for changing the behavior of characters like that. The only advice I can offer is to keep manual control over any important units like lords and heroes that you are concerned about.

If you have many units that you need to manually control, the "Find Idle Units" mod can help you keep track of which ones need orders. It's not the same as the AI controlling all their actions for you, though. I'm sorry that I don't have a better solution to offer.
paperpancake  [developer] Apr 8, 2020 @ 5:49pm 
@Just4Fun If another mod changes values for a unit in the database, it's likely that it will affect how AI General II treats that unit. I've just added the FAQs discussion, which might help explain further.
Showing 1-2 of 2 comments
Per page: 1530 50