Can't attack garrisoned unit FIXED
Can't attack garrisoned unit FIXED
So, I'm playing a 4 player FFA match where 2 of the players were kicked (due to being afk for a week or maybe more), and I'm advancing against the remaining player, and in that match I encountered this situation:
Where I just can't attack what's inside the TC, even in the following turn:
My opponent can't make peasants yet (due to research), didn't have a priory, monastery, roman garrison nor any mines, so I don't think it's related to that random unit bug, and that TC got empty a few turns ago after a builder was produced in it, so I have no clue on what could be happening here...
Where I just can't attack what's inside the TC, even in the following turn:
My opponent can't make peasants yet (due to research), didn't have a priory, monastery, roman garrison nor any mines, so I don't think it's related to that random unit bug, and that TC got empty a few turns ago after a builder was produced in it, so I have no clue on what could be happening here...
Green is the correct color, other colors are "less correct".
Re: Can't attack garrisoned unit
I encountered the same with map editor unit (couldn't target enemy inside tc) - precisely trainee 2attack - and other 2 units in range didn't have any problems with targeting.
So I was trying to crack why this particular unit cannot attack.
Definitely nothing different with valid targets.
None of AoS units should have any limitations on what they can target (I only used valid targets field for effect applied property changer action jsons), so it's not very unexpected.
But I checked if maybe something could explain the difference.
I haven't found any differences in json.
So something with unit state in game must be the reason.
But I have no idea what.
It's best to find some way this bug could be replicated, because otherwise I have no idea if it could be fixed.
So I was trying to crack why this particular unit cannot attack.
Definitely nothing different with valid targets.
None of AoS units should have any limitations on what they can target (I only used valid targets field for effect applied property changer action jsons), so it's not very unexpected.
But I checked if maybe something could explain the difference.
I haven't found any differences in json.
So something with unit state in game must be the reason.
But I have no idea what.
It's best to find some way this bug could be replicated, because otherwise I have no idea if it could be fixed.
Age of Strategy design leader
- godOfKings
- Posts: 3302
- Joined: Fri Sep 22, 2017 4:50 pm
Re: Can't attack garrisoned unit
U can use a spy to search inside the tc and figure out the problem
There is no place for false kings here, only those who proves themselves to b the true kings of legend, or serves under me
For I watch over this world looking for those worthy to become kings, and on the way get rid of the fakes and rule over the fools
For I watch over this world looking for those worthy to become kings, and on the way get rid of the fakes and rule over the fools
Re: Can't attack garrisoned unit
But the problem occurs with the same unit inside TC only for one my units.godOfKings wrote: ↑Fri Jan 28, 2022 8:47 am U can use a spy to search inside the tc and figure out the problem
I'll try to create situation as identical as possible in map editor, but I am afraid it may be not related to what unit is inside, as two units - one capable of attacking and one not have identical valid targets (none specified, so all normal targets) and specs.
Age of Strategy design leader
- phoenixffyrnig
- Posts: 774
- Joined: Fri Nov 29, 2019 1:07 pm
- Location: It changes, frequently.
Re: Can't attack garrisoned unit
Cracked it. It's a stealth unit in the first slot. ie, we are seeing the TC is occupied, but not being able to see the unit to target it
https://ibb.co/QQWPgZs
In these TCs i put a spy, assassin, ranger and ninja inside. Curiously, as an experiment, I put a spearman in the second and fourth TCs behind the stealth unit (the pictured scenario), and it still wouldn't allow any targeting.
https://ibb.co/QQWPgZs
In these TCs i put a spy, assassin, ranger and ninja inside. Curiously, as an experiment, I put a spearman in the second and fourth TCs behind the stealth unit (the pictured scenario), and it still wouldn't allow any targeting.
I also play an RTS game called Life
And I also like drinking beer!
And I also like drinking beer!
- phoenixffyrnig
- Posts: 774
- Joined: Fri Nov 29, 2019 1:07 pm
- Location: It changes, frequently.
Re: Can't attack garrisoned unit
In fact, further testing shows a mêlée unit adjacent to a TC with a stealth unit in first slot cannot attack either, even though in open play this would reveal the stealth unit.
In other words, what an effective way of defending your TCs... who'd have thought a one turn spy could hold back an army
In other words, what an effective way of defending your TCs... who'd have thought a one turn spy could hold back an army
I also play an RTS game called Life
And I also like drinking beer!
And I also like drinking beer!
- phoenixffyrnig
- Posts: 774
- Joined: Fri Nov 29, 2019 1:07 pm
- Location: It changes, frequently.
Re: Can't attack garrisoned unit
But it seems that abilities (tested with Cretin archer) can target the stealth unit, so it's not a totally impossible situation to work around until fixed.
They also receive area damage for attacks focused on adjacent tile, so it seems purely to do with them not being registered as a valid target for actions
They also receive area damage for attacks focused on adjacent tile, so it seems purely to do with them not being registered as a valid target for actions
I also play an RTS game called Life
And I also like drinking beer!
And I also like drinking beer!
Re: Can't attack garrisoned unit
Oh, nice finding phoenix, I'll try that.
Green is the correct color, other colors are "less correct".
- godOfKings
- Posts: 3302
- Joined: Fri Sep 22, 2017 4:50 pm
Re: Can't attack garrisoned unit
Wat if there is enemy scout unit near tc? Will stealth unit still stay invisible and impossible to target inside tc?
There is no place for false kings here, only those who proves themselves to b the true kings of legend, or serves under me
For I watch over this world looking for those worthy to become kings, and on the way get rid of the fakes and rule over the fools
For I watch over this world looking for those worthy to become kings, and on the way get rid of the fakes and rule over the fools
- phoenixffyrnig
- Posts: 774
- Joined: Fri Nov 29, 2019 1:07 pm
- Location: It changes, frequently.
Re: Can't attack garrisoned unit
Nah, that makes no difference. I guess it needs a unit with the "sees into carriers" tag (or what used to be, it's now "lurks carriers" which isn't correct - to lurk is to hang around in a way that isn't completely hidden but isn't totally obvious either).
I also play an RTS game called Life
And I also like drinking beer!
And I also like drinking beer!
Re: Can't attack garrisoned unit
Don't be so harsh towards this poor guy.phoenixffyrnig wrote: ↑Fri Jan 28, 2022 12:24 pm But it seems that abilities (tested with Cretin archer) can target the stealth unit, so it's not a totally impossible situation to work around until fixed.
They also receive area damage for attacks focused on adjacent tile, so it seems purely to do with them not being registered as a valid target for actions
Endru1241 wrote: ↑Fri Jan 28, 2022 6:19 am I encountered the same with map editor unit (couldn't target enemy inside tc) - precisely trainee 2attack - and other 2 units in range didn't have any problems with targeting.
So I was trying to crack why this particular unit cannot attack.
Definitely nothing different with valid targets.
None of AoS units should have any limitations on what they can target (I only used valid targets field for effect applied property changer action jsons), so it's not very unexpected.
But I checked if maybe something could explain the difference.
I haven't found any differences in json.
So something with unit state in game must be the reason.
But I have no idea what.
It's best to find some way this bug could be replicated, because otherwise I have no idea if it could be fixed.
My mistake - what I experienced was leftovers from my own tests and actually was all in unit jsons.Endru1241 wrote: ↑Fri Jan 28, 2022 10:39 amBut the problem occurs with the same unit inside TC only for one my units.godOfKings wrote: ↑Fri Jan 28, 2022 8:47 am U can use a spy to search inside the tc and figure out the problem
I'll try to create situation as identical as possible in map editor, but I am afraid it may be not related to what unit is inside, as two units - one capable of attacking and one not have identical valid targets (none specified, so all normal targets) and specs.
Great find.phoenixffyrnig wrote: ↑Fri Jan 28, 2022 11:47 am Cracked it. It's a stealth unit in the first slot. ie, we are seeing the TC is occupied, but not being able to see the unit to target it
https://ibb.co/QQWPgZs
In these TCs i put a spy, assassin, ranger and ninja inside. Curiously, as an experiment, I put a spearman in the second and fourth TCs behind the stealth unit (the pictured scenario), and it still wouldn't allow any targeting.
We now know what to look for to fix it.
Age of Strategy design leader
- phoenixffyrnig
- Posts: 774
- Joined: Fri Nov 29, 2019 1:07 pm
- Location: It changes, frequently.
Re: Can't attack garrisoned unit
Haha, 10 points to Endru Eagle-eye. Auto-correct decided to go for the word I used the most, I decided to leave it that way to see if anyone would clock it... Of course he did!Don't be so harsh towards this poor guy.
I also play an RTS game called Life
And I also like drinking beer!
And I also like drinking beer!
-
- Site Admin
- Posts: 15752
- Joined: Fri Apr 25, 2014 9:28 pm
Re: Can't attack garrisoned unit
i have a possible fix on this.
earlier there was a report from AOW/AOMW that a plane on a bridge can not be targeted by AA guns and such problems.
so i made that the unit that is carried should only be checked by "targetability" but this affected TC-s too.
so now i made that change to work only for bridges nothing else (TC, vikingship and so on)
uos already
earlier there was a report from AOW/AOMW that a plane on a bridge can not be targeted by AA guns and such problems.
so i made that the unit that is carried should only be checked by "targetability" but this affected TC-s too.
so now i made that change to work only for bridges nothing else (TC, vikingship and so on)
uos already