aliens

Author Topic: Additional soldier sprites  (Read 66216 times)

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Additional soldier sprites
« on: July 16, 2012, 06:23:40 pm »
quick question to the battlescape gurus, while you're obviously looking here right this moment: if I wanted to provide additional soldier sprites (you know the problem about having only one male and one female battlescape sprite), how difficult would it be at the moment to include them in the game?
would it be a lot of work for you to:
- include a check for the soldier type in the battlescape sprite selection
- make the game search for a sprite file that actually fits the inventory image (idk, maybe xcom_0ma.pck/.tab, xcom_0mb.pck/.tab... and xcom_0fa.pck/.tab, xcom_0fb.pck/.tab... and so on)
- if it doesn't find one, just use the "default" sprite
?
because that would allow us to add more sprites one at a time, just throw them in when they're finished, and still be able to play in the meantime without having to worry about crashing the game...
« Last Edit: July 17, 2012, 12:53:24 pm by michal »

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: Additional soldier sprites
« Reply #1 on: July 17, 2012, 12:54:37 pm »
I've moved this topic out of "Battlescape development" thread as it was probably lost there.

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Additional soldier sprites
« Reply #2 on: July 18, 2012, 12:52:18 pm »
thank you :)


I've already started splitting the male and female xcom_0 sprites (that's the "basic coverall" type), giving the girls their own death animation. next thing I will try is implementing some different hair styles/colors and then I'll try doing some skin colors... :)

so it would be really nice if someone with programming skills would implement some easy way of including these in the game. as suggested above, perhaps :)

Offline luke83

  • Commander
  • *****
  • Posts: 1559
    • View Profile
    • openxcommods
Re: Additional soldier sprites
« Reply #3 on: July 18, 2012, 02:36:36 pm »
I subscribe to the attitude that " IF you build it they will come".

As for the Skin colours , i too had this desire but i was holding off to see if Yanks got his skin changing code working :P

 Dont forget the Inventory Pics on any new Hair styles, i have seen some of the STYLES getting around these days, some are Bizarre so could be good for in game.
« Last Edit: July 18, 2012, 02:40:50 pm by luke83 »

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: Additional soldier sprites
« Reply #4 on: July 18, 2012, 04:00:08 pm »
Currently all the filenames of the resources (graphics etc) are hardcoded and there is no such mechanic that says: if a certain file doesn't exist, just give me another. It has very little to do with the battlescape itself. It's the engine that does a "static" loading of all resources at game starting, if a file is missing, the game doesn't start.
I'm not sure what the plans are, but I think there will be more flexibility in the future.
For the battlescape itself it doesn't change a lot, after all it's all the same routines etc, it's more a matter of resource management.

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Additional soldier sprites
« Reply #5 on: July 18, 2012, 04:37:14 pm »
Dont forget the Inventory Pics on any new Hair styles, i have seen some of the STYLES getting around these days, some are Bizarre so could be good for in game.
LOL at weird hair styles... he reminds me of Chun-Li, for some reason...
actually, my first step would be the other way around: I'll try to make battlescape sprites for the existing inventory images :)

Quote from: Daiky
Currently all the filenames of the resources (graphics etc) are hardcoded

but... but... that's terrible!  :P
okay, I understand that for now it is the easiest way. I'll place my hopes on future versions, then... just for the record: it would probably also make sense to split the xcom_2.pck in two files, one for the "power armour" and one for the "flying suit". because later somebody might be tempted to make helmetless versions of those, and that won't work if it's in one file. :)

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Additional soldier sprites
« Reply #6 on: July 18, 2012, 09:23:02 pm »
based on the existing inventory image, this is xcom_0f1:

Offline Zharik1999

  • Colonel
  • ****
  • Posts: 133
    • View Profile
Re: Additional soldier sprites
« Reply #7 on: July 18, 2012, 09:27:12 pm »
This one looks good, and the whole idea is really great, moriarty! :D

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Additional soldier sprites
« Reply #8 on: July 18, 2012, 10:20:45 pm »
Thank you, Zharik1999!

here's the first new male sprite, xcom_0m1:

Offline Zharik1999

  • Colonel
  • ****
  • Posts: 133
    • View Profile
Re: Additional soldier sprites
« Reply #9 on: July 19, 2012, 08:19:49 am »
You should definitely go on, moriarty :)

Offline hsbckb

  • Colonel
  • ****
  • Posts: 275
  • Gill Man
    • View Profile
Re: Additional soldier sprites
« Reply #10 on: July 19, 2012, 10:21:21 am »
Excellent pixel work. Yes, please go on.

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Additional soldier sprites
« Reply #11 on: July 23, 2012, 04:42:13 pm »
(busy with RL at the moment... next update hopefully around July 30th, I'll have a bit of time then - 24h on-call shift, lots of time in between actually being called, perfect for pixel work)

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Additional soldier sprites
« Reply #12 on: July 31, 2012, 12:35:13 am »
this one is new: basic soldier with short-cropped hair. he's not perfect, but right now I can't improve anything without mangling him. do you have suggestions?

the head with very short hair is a real problem (I am trying to make a completely bald guy next) - with a width of four pixels, he's too slim. with six pixels,he's too wide. and with five, he's off-center. I still used five - we'll have to see if it looks weird in-game, I guess.


I have yet to make an inventory picture for him.

Offline Templayer

  • Sergeant
  • **
  • Posts: 12
    • View Profile
Re: Additional soldier sprites
« Reply #13 on: October 12, 2012, 07:41:53 pm »
YAY !

Please, continue your work !

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Additional soldier sprites
« Reply #14 on: October 12, 2012, 10:41:59 pm »
thanks for the bump :)

I'll see when I can find some more time for this. ;)