Warning GetUnitID invalid side index 12(max is 12)

Moderator: rbodleyscott

Post Reply
locustmustdie
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 117
Joined: Fri Mar 05, 2021 11:33 am

Warning GetUnitID invalid side index 12(max is 12)

Post by locustmustdie »

Everything goes fine,but there're such warnings in log.
what is invalid side index 12,isn't it 0 or 1?
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28294
Joined: Sun Dec 04, 2005 6:25 pm

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

Post 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.
Richard Bodley Scott

Image
locustmustdie
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 117
Joined: Fri Mar 05, 2021 11:33 am

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

Post by locustmustdie »

Thanks,Richard!
Post Reply

Return to “Field of Glory II: Medieval - Scenario Design”