Author Topic: Sprite Order - xcom agents  (Read 6213 times)

Offline luke83

  • Commander
  • *****
  • Posts: 1558
    • View Profile
    • openxcommods
Sprite Order - xcom agents
« on: April 09, 2012, 03:13:58 pm »
Anyone know exactly what sprite are use for what weapons & on what rotation each one is?

Anyone know of a link to this information ?
« Last Edit: April 09, 2012, 05:00:27 pm by luke83 »

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Sprite Order - xcom agents
« Reply #1 on: June 29, 2012, 12:03:04 pm »
okay, I figured out some of the usage... I'm pretty sure about most of them, but not so sure about the arms, especially the "something-in-hand" variants. okay, here goes:

this is for the xcom_1 part (personal armor), but I'm sure the rest will be almost identical... I guess the flying armor will have a second set of legs for "flying". I'll look into that later.

the "facing xyz" is derived from the first 5 sets of 8. the easiest way to look at the file is to make sure there are 8 pictures in a row. "facing 000" means "away from the screen to the right", from there it's clockwise, so "facing 003" means "looking at the screen" (towards the user, that is)

xcom_1000 - xcom_1007 left arm (nothing carried)
xcom_1008 - xcom_1015 right arm (nothing carried)
xcom_1016 - xcom_1023 legs (standing)
xcom_1024 - xcom_1031 legs (kneeling)
xcom_1032 - xcom_1039 torso+head male soldier
xcom_1040 - xcom_1047 left arm (walking animation facing 000)
xcom_1048 - xcom_1055 right arm (walking animation facing 000)
xcom_1056 - xcom_1063 legs (walking animation facing 000)
xcom_1064 - xcom_1071 left arm (walking animation facing 001)
xcom_1072 - xcom_1079 right arm (walking animation facing 001)
xcom_1080 - xcom_1087 legs (walking animation facing 001)
xcom_1088 - xcom_1095 left arm (walking animation facing 002)
xcom_1096 - xcom_1103 right arm (walking animation facing 002)
xcom_1104 - xcom_1111 legs (walking animation facing 002)
xcom_1112 - xcom_1119 left arm (walking animation facing 003)
xcom_1120 - xcom_1127 right arm (walking animation facing 003)
xcom_1128 - xcom_1135 legs (walking animation facing 003)
xcom_1136 - xcom_1143 left arm (walking animation facing 004)
xcom_1144 - xcom_1151 right arm (walking animation facing 004)
xcom_1152 - xcom_1159 legs (walking animation facing 004)
xcom_1160 - xcom_1167 left arm (walking animation facing 005)
xcom_1168 - xcom_1175 right arm (walking animation facing 005)
xcom_1176 - xcom_1183 legs (walking animation facing 005)
xcom_1184 - xcom_1191 left arm (walking animation facing 006)
xcom_1192 - xcom_1199 right arm (walking animation facing 006)
xcom_1200 - xcom_1207 legs (walking animation facing 006)
xcom_1208 - xcom_1215 left arm (walking animation facing 007)
xcom_1216 - xcom_1223 right arm (walking animation facing 007)
xcom_1224 - xcom_1231 legs (walking animation facing 007)
xcom_1232 - xcom_1239 right arm (one-handed weapon)
xcom_1240 - xcom_1247 left arm (holding two-handed weapon)
xcom_1248 - xcom_1255 right arm (holding two-handed weapon)
xcom_1256 - xcom_1263 right arm (holding item??)
xcom_1264 - xcom_1266 death animation
xcom_1267 - xcom_1274 torso+head female soldier


EDIT: updates in blue. I'm 99% sure about the "holding two handed weapon" part. hand positions match the "handob" rifles. when shooting the rifle, a different rifle sprite is used (probably two rotation-steps clockwise, that is 90° rotated), but with an offset, and I don't know how far x/y that offset is. anyone have an idea? died anybody ever look at the code? if not, someone will have to compare a screenshot to a generated composite and count the pixels by hand.
« Last Edit: June 29, 2012, 07:48:16 pm by moriarty »

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Sprite Order - xcom agents
« Reply #2 on: June 29, 2012, 12:08:46 pm »
if I am right, then you can safely disregard everything between 1040 and 1231 for designing new hand-held objects, because that's just the walking animations - arms that carry stuff are not animated, and legs don't carry weapons.

oh, btw, of course the "handob" sprites use the same order: 8 files for different rotations, starting with "away to the right" and then clockwise.

I'll see if I can whip up a layered GIMP graphics file (.xcf format) for the soldier sprite that will aid us in making new "handob" stuff

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Sprite Order - xcom agents
« Reply #3 on: June 29, 2012, 08:45:27 pm »
I made the eight different facings into separate layered xcf files. they are in the attached zip files. again, this is only the "xcom_1", that's the personal armor.

- layeres have the names of the corresponding sprites
- layers are arranged in an order that makes sense and appears to resemble the drawing order in-game
- each file contains the male and female torso/head sprite, two left arms, four right arms, legs in standing position as well as the corresponding "rifle" and "pistol" sprites (total of 12 layers)

here's the full rotations for a male soldier with a pistol, as an example:

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Sprite Order - xcom agents
« Reply #4 on: June 29, 2012, 09:06:32 pm »
here's the total sprite list for xcom soldiers
xcom_0 = unarmored soldiers
xcom_1 = personal armor
xcom_2 = power armor and flying armor

xcom_0000 - xcom_0007 left arm (nothing carried)
xcom_0008 - xcom_0015 right arm (nothing carried)
xcom_0016 - xcom_0023 legs (standing)
xcom_0024 - xcom_0031 legs (kneeling)
xcom_0032 - xcom_0039 torso+head male soldier
xcom_0040 - xcom_0047 left arm (walking animation facing 000)
xcom_0048 - xcom_0055 right arm (walking animation facing 000)
xcom_0056 - xcom_0063 legs (walking animation facing 000)
xcom_0064 - xcom_0071 left arm (walking animation facing 001)
xcom_0072 - xcom_0079 right arm (walking animation facing 001)
xcom_0080 - xcom_0087 legs (walking animation facing 001)
xcom_0088 - xcom_0095 left arm (walking animation facing 002)
xcom_0096 - xcom_0103 right arm (walking animation facing 002)
xcom_0104 - xcom_0111 legs (walking animation facing 002)
xcom_0112 - xcom_0119 left arm (walking animation facing 003)
xcom_0120 - xcom_0127 right arm (walking animation facing 003)
xcom_0128 - xcom_0135 legs (walking animation facing 003)
xcom_0136 - xcom_0143 left arm (walking animation facing 004)
xcom_0144 - xcom_0151 right arm (walking animation facing 004)
xcom_0152 - xcom_0159 legs (walking animation facing 004)
xcom_0160 - xcom_0167 left arm (walking animation facing 005)
xcom_0168 - xcom_0175 right arm (walking animation facing 005)
xcom_0176 - xcom_0183 legs (walking animation facing 005)
xcom_0184 - xcom_0191 left arm (walking animation facing 006)
xcom_0192 - xcom_0199 right arm (walking animation facing 006)
xcom_0200 - xcom_0207 legs (walking animation facing 006)
xcom_0208 - xcom_0215 left arm (walking animation facing 007)
xcom_0216 - xcom_0223 right arm (walking animation facing 007)
xcom_0224 - xcom_0231 legs (walking animation facing 007)
xcom_0232 - xcom_0239 right arm (one-handed weapon)
xcom_0240 - xcom_0247 left arm (two-handed weapon)
xcom_0248 - xcom_0255 right arm (two-handed weapon)
xcom_0256 - xcom_0263 right arm (firing weapon)
xcom_0264 - xcom_0266 death animation
xcom_0267 - xcom_0274 torso+head female soldier



xcom_1000 - xcom_1007 left arm (nothing carried)
xcom_1008 - xcom_1015 right arm (nothing carried)
xcom_1016 - xcom_1023 legs (standing)
xcom_1024 - xcom_1031 legs (kneeling)
xcom_1032 - xcom_1039 torso+head male soldier
xcom_1040 - xcom_1047 left arm (walking animation facing 000)
xcom_1048 - xcom_1055 right arm (walking animation facing 000)
xcom_1056 - xcom_1063 legs (walking animation facing 000)
xcom_1064 - xcom_1071 left arm (walking animation facing 001)
xcom_1072 - xcom_1079 right arm (walking animation facing 001)
xcom_1080 - xcom_1087 legs (walking animation facing 001)
xcom_1088 - xcom_1095 left arm (walking animation facing 002)
xcom_1096 - xcom_1103 right arm (walking animation facing 002)
xcom_1104 - xcom_1111 legs (walking animation facing 002)
xcom_1112 - xcom_1119 left arm (walking animation facing 003)
xcom_1120 - xcom_1127 right arm (walking animation facing 003)
xcom_1128 - xcom_1135 legs (walking animation facing 003)
xcom_1136 - xcom_1143 left arm (walking animation facing 004)
xcom_1144 - xcom_1151 right arm (walking animation facing 004)
xcom_1152 - xcom_1159 legs (walking animation facing 004)
xcom_1160 - xcom_1167 left arm (walking animation facing 005)
xcom_1168 - xcom_1175 right arm (walking animation facing 005)
xcom_1176 - xcom_1183 legs (walking animation facing 005)
xcom_1184 - xcom_1191 left arm (walking animation facing 006)
xcom_1192 - xcom_1199 right arm (walking animation facing 006)
xcom_1200 - xcom_1207 legs (walking animation facing 006)
xcom_1208 - xcom_1215 left arm (walking animation facing 007)
xcom_1216 - xcom_1223 right arm (walking animation facing 007)
xcom_1224 - xcom_1231 legs (walking animation facing 007)
xcom_1232 - xcom_1239 right arm (one-handed weapon)
xcom_1240 - xcom_1247 left arm (two-handed weapon)
xcom_1248 - xcom_1255 right arm (two-handed weapon)
xcom_1256 - xcom_1263 right arm (firing weapon)
xcom_1264 - xcom_1266 death animation
xcom_1267 - xcom_1274 torso+head female soldier



xcom_2000 - xcom_2007 left arm (nothing carried)
xcom_2008 - xcom_2015 right arm (nothing carried)
xcom_2016 - xcom_2023 legs (standing)
xcom_2024 - xcom_2031 legs (kneeling)
xcom_2032 - xcom_2039 torso+head male soldier
xcom_2040 - xcom_2047 left arm (walking animation facing 000)
xcom_2048 - xcom_2055 right arm (walking animation facing 000)
xcom_2056 - xcom_2063 legs (walking animation facing 000)
xcom_2064 - xcom_2071 left arm (walking animation facing 001)
xcom_2072 - xcom_2079 right arm (walking animation facing 001)
xcom_2080 - xcom_2087 legs (walking animation facing 001)
xcom_2088 - xcom_2095 left arm (walking animation facing 002)
xcom_2096 - xcom_2103 right arm (walking animation facing 002)
xcom_2104 - xcom_2111 legs (walking animation facing 002)
xcom_2112 - xcom_2119 left arm (walking animation facing 003)
xcom_2120 - xcom_2127 right arm (walking animation facing 003)
xcom_2128 - xcom_2135 legs (walking animation facing 003)
xcom_2136 - xcom_2143 left arm (walking animation facing 004)
xcom_2144 - xcom_2151 right arm (walking animation facing 004)
xcom_2152 - xcom_2159 legs (walking animation facing 004)
xcom_2160 - xcom_2167 left arm (walking animation facing 005)
xcom_2168 - xcom_2175 right arm (walking animation facing 005)
xcom_2176 - xcom_2183 legs (walking animation facing 005)
xcom_2184 - xcom_2191 left arm (walking animation facing 006)
xcom_2192 - xcom_2199 right arm (walking animation facing 006)
xcom_2200 - xcom_2207 legs (walking animation facing 006)
xcom_2208 - xcom_2215 left arm (walking animation facing 007)
xcom_2216 - xcom_2223 right arm (walking animation facing 007)
xcom_2224 - xcom_2231 legs (walking animation facing 007)
xcom_2232 - xcom_2239 right arm (one-handed weapon)
xcom_2240 - xcom_2247 left arm (two-handed weapon)
xcom_2248 - xcom_2255 right arm (two-handed weapon)
xcom_2256 - xcom_2263 right arm (firing weapon)
xcom_2264 - xcom_2266 death animation
xcom_2267 - xcom_2274 torso+head flying armor
xcom_2275 - xcom_2282 legs (flying)

Thank you Daiky for clearing the "right arm (firing weapon)" part up.
you can also get the list as .txt files at https://openxcommods.weebly.com/downloads1.html
« Last Edit: July 04, 2012, 05:29:16 pm by moriarty »

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Sprite Order - xcom agents
« Reply #5 on: July 04, 2012, 06:06:43 pm »
UPDATE: okay, for all you modders out there: look at https://openxcommods.weebly.com/downloads1.html

there's not only the lists, but also .xcf files with the xcom armor sprites. :) be aware that the rights remain with the original copyright holders, so only use it for modding purposes.