Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Suspicious commander category

Open rlcevg opened this issue 9 years ago • 5 comments

Commanders have next category: land, mobile, terraform, stupidtarget, mine

Can someone explain what terraform, stupidtarget, mine is doing here? Why not give those categories to any heavy unit?

I'm interested because it breaks CircuitAI logic, by making commanders look stupidtargets.

rlcevg avatar Jun 11 '17 22:06 rlcevg

Which commanders? Any?

sprunk avatar Jun 11 '17 22:06 sprunk

I'll make few tests... Yes, all playable comms. dyntrainer_support_base, dyntrainer_strike_base, dyntrainer_assault_base, dyntrainer_recon_base.

rlcevg avatar Jun 11 '17 22:06 rlcevg

What is a 'next category'? Have you checked that all units do not have that category according to the AI interface? I can't see anything that would set those categories for commanders.

GoogleFrog avatar Jun 12 '17 04:06 GoogleFrog

I ran this code:

for id, ud in pairs(UnitDefs) do
	Spring.Echo(ud.name)
	for cat, value in pairs(ud.springCategories) do
		Spring.Echo("\t" .. cat)
	end
end

and commanders are listed as having LAND and MOBILE. Only terraunit has TERRAFORM, only Claw has MINE.

Possibly engine sends them wrong to AI somehow?

sprunk avatar Jun 12 '17 08:06 sprunk

Now i look stupid. Sorry. I shouldn't work with code so late and I misinterpreted call to CircuitAI function as engine API call. The bug is in CircuitAI.

rlcevg avatar Jun 12 '17 08:06 rlcevg