Request for finding unit icon from IconIndex
-
I’m working on some tooling, and I’m having a hard time figuring out how to go from the IconIndex in the unit class data to an actual icon in some file somewhere. I’ve spent a fair amount of time searching the forums, the FreeFalcon source, and Lightning’s Tools, but am still having a hard time figuring out how it works.
For instance, I can read the .cam file to find out that unit 4339 is the 4th Towed Artillery Battalion, and has IconIndex 8704, but so far I’m stumped as to how to go and locate the image that would be used to render that unit on the 2D map.
Any pointers would be greatly appreciated. Thanks!
-
I’m working on some tooling, and I’m having a hard time figuring out how to go from the IconIndex in the unit class data to an actual icon in some file somewhere. I’ve spent a fair amount of time searching the forums, the FreeFalcon source, and Lightning’s Tools, but am still having a hard time figuring out how it works.
For instance, I can read the .cam file to find out that unit 4339 is the 4th Towed Artillery Battalion, and has IconIndex 8704, but so far I’m stumped as to how to go and locate the image that would be used to render that unit on the 2D map.
Any pointers would be greatly appreciated. Thanks!
Disregard. Figured it out, including the bug in my code that was reading the wrong IconIndex.