Page 1 of 1

Warning GetUnitID invalid side index 12(max is 12)

Posted: Sat Jun 17, 2023 2:14 pm
by locustmustdie
Everything goes fine,but there're such warnings in log.
what is invalid side index 12,isn't it 0 or 1?

Re: Warning GetUnitID invalid side index 12(max is 12)

Posted: Mon Jun 19, 2023 8:19 am
by rbodleyscott
locustmustdie wrote: Sat Jun 17, 2023 2:14 pm Everything goes fine,but there're such warnings in log.
what is invalid side index 12,isn't it 0 or 1?
Somehow you must have sent an invalid value into the first parameter of GetUnitID(side, index)

As for the function accepting values up to 12, Archon is a system that is used for other games, where perhaps such values might be required. For FOG only 0 and 1 are used.

Re: Warning GetUnitID invalid side index 12(max is 12)

Posted: Thu Jun 22, 2023 2:07 pm
by locustmustdie
Thanks,Richard!