ImageIds.id file can be opened via notepad and possibly is the answer to your question.
The number is calculated in which order you put in the IRC file.
The imageids.id file, in the art folder (of your campaign of course) should be like:
_101TR_ 70001
_111TR_ 70002
_112TR_ 70003
Remember, there are maximum 58 indexes you can use as squadron index. The others, are being searched by their name, if the given index is none.
Correct me someone if I'm wrong please.
Extract art\patches.idx with perl,
then delete the old patches, then put in your own patches to the folder, with the same names as you state in the imageids.id file, like
[LOADTRANSIMAGE] _101ST_ "_101ST_.tga" 48 48
[LOADTRANSIMAGE] _111ST_ "_111ST_.tga" 48 48
[LOADTRANSIMAGE] _112ND_ "_112ND_.tga" 48 48
And compress it back using Perl.
command
This way, you can use TACEdit to give squadrons their patches. For this scenario (which is in fact first three squadron patches for Aegean)
0 is used for 101 st TUAF squadron
1 is used for 111 st TUAF squadron
2 is used for 112 st TUAF squadron
Writing a tool for this is somewhat hard, since it includes idx, rsc formats together with TAC file which should be edited.
After some work, you will see that perl is easy to use. In fact it is just commands.
Regards.
Note: I think you already know this. But since we have no tool for this, maybe someone can get use of this info.