yes- the little number above the sprite is a decimal number.
the action a reqires this number in hexidecimal in little endian format i believe.
in the wiki-on the actionA page- it says in the table that the element- <first-sprite>, which is the number of the first sprite in the set, has size w.
size w means that
This parameter is a two-byte word, specified in little-endian byte order
from this page-
http://wiki.ttdpatch.net/tiki-index.php ... nsDetailed
so you take the decimal sprite number from the trg1r.pcx file and convert this do hexidecimal. the windows calculator can do this.
taking an example i have done- to replace the fences on the railway tracks.
first sprite number is 1301 in decimal
convert to hexidecimal - giving 515.
make this a two byte word- 05 15
put in little endian- 15 05
and that is what you use in the actionA
i hope this is what you mean. and that im explaining it ok!
edit- you may be confused- the first sprite for the farm is 2106 not 2108. which in hexidecimal put in little endian is 3A 08