Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
that's the main issue, I agree, although I use some workaround within mod, it is still not perfect and other mods giving commands indeed will break it
Regarding AI General mod - as I remember it puts units under script control (or ai control), right? So may be I just miss one little check to ignore such units. I'll have to test it
Not familiar with other mods, though, lets think how to make them compatible
During the battle, it uses the Script AI Planner[chadvandy.github.io]. When the phase becomes Victory Countdown, it switches to unit controllers like Just Good Babysitter.
I don't think it will be enough to know which units my mods control, because I think the command handler will still notify your script. But if it helps, all of my mods use modder_API_uc_manager. So you can ask which units are controlled by any of my mods using something like this.
Here are the steps to reproduce the problem, with a video to show it:
1. In your mod manager, enable both "Just Good Babysitter" and "Attack Move and Counter-charge"
2. Start any battle
3. Give some of your units a counter-charge order. (In the video, I give the infantry a counter-charge order.)
4. Select some units that don't have a counter-charge order (in the video, I select the flying units). You can move them if you want, but don't give them any attack orders.
5. When the infantry starts to counter-charge, your selected units will attack that unit also. But we never told the selected units to attack, so that is a bug.
This bug doesn't happen if only one of the mods is enabled in the mod manager. It only happens if both mods are enabled.
Here is a video showing the selection problem: https://youtu.be/EbomY4KCTgA
You are right we can use ignore_targets, will make it global and let you know
in contrary to "command_handler" this event gives you attacking unit, and target you can get through "current_target" method
one problem still remains though, if script make some movement orders and we have units selected - they will be removed from JGB, don't see a solution yet