Author Topic: [SOLVED] female power suit  (Read 2660 times)

Offline Pony

  • Squaddie
  • *
  • Posts: 7
    • View Profile
[SOLVED] female power suit
« on: September 27, 2018, 07:40:25 am »
Hello, I'm trying to make a male and female version of power and flying suit in UFO. How do I write the armor.rul and extrasprites.rul to use one image for male and another one for female in the inventory (like the armors in tftd that have different inventory image for male and female).

How does the game make the difference between the armor 0 & 1 which have different images for gender and ethnic groups, to other armors that have only one inventory image. In armor.rul they just write man_0 and hop, it's possible to imput different images.

Thank you for any help you could provide, I really tried to find the information before asking.
« Last Edit: September 27, 2018, 06:21:39 pm by Pony »

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 676
    • View Profile
Re: female power suit
« Reply #1 on: September 27, 2018, 01:09:56 pm »
hey pony let me try to help

armors:
  - type: STR_NAMEARMOR
    spriteSheet: NAME.PCK
    spriteInv: MAN_X    (this will use all  the manx sprites... manxF0, manxF1..... etc )
    spriteFaceGroup: 6
    spriteFaceColor: [96, 96, 96, 96, 160, 160, 163, 163, 96, 96, 96, 96] #M0 F0 M1 F1 M2 F2 M3 F3 M4 F4 M5 F5 (colors of hair and face)
    spriteHairGroup: 9
    spriteHairColor: [144, 144, 164, 164, 245, 245, 166, 166, 96, 164, 96, 96] #M0 F0 M1 F1 M2 F2 M3 F3 M4 F4 M5 F5 (colors of hair and face)
    corpseBattle:
      - STR_ITEMARMOR_CORPSE
    frontArmor: 90
    sideArmor: 70
    rearArmor: 60
    underArmor: 60
    drawingRoutine: 0
    damageModifier:
      - 1.0 #none
      - 1.0 #AP
      - 0.8 #FLAMES
      - 1.0 #HE
      - 0.8 #Laser
      - 1.1 #PLASMA
      - 1.1 #STUN
      - 1.1 #MELEE
      - 1.0 #ACID
      - 0.0 #SMOKE
    loftempsSet: [ 3 ]
    forcedTorso: 1   (this forces armor to use the female part of the drawing routine/spritesheet )

items:
  - type: STR_NAMEARMOR             #6400
    size: 0.8
    costSell: 10000
    listOrder: 6400
  - type: STR_ITEMARMOR_CORPSE
    name: STR_ARMORCORPSE
    weight: 40
    bigSprite: 2000
    floorSprite: 1000
    invWidth: 2
    invHeight: 3
    armor: 80
    recover: false


extraSprites:
  - type: MAN_XF0.SPK
    singleImage: true
    files:
      0: Resources/Armor/man_Xf0.gif
  - type: MAN_XF1.SPK
    singleImage: true
    files:
      0: Resources/Armor/man_Xf1.gif  ........... etc till go to manxM8
  - type: NAME.PCK  (drawing routing 0)
    width: 512
    height: 720
    subX: 32
    subY: 40
    files:
      0: Resources/Armor/spritesheet.png
  - type: BIGOBS.PCK 
    files:
     2000: Resources/Armor/2000.png
  - type: FLOOROB.PCK
    files:
      1000: Resources/Armor/1000.png

Offline Pony

  • Squaddie
  • *
  • Posts: 7
    • View Profile
Re: female power suit
« Reply #2 on: September 27, 2018, 04:49:39 pm »
Holy carrot, it works !!!
Thank you very much  ;D

So I have to put 8 entries (2 genders and 4 ethnic groups) in extrasprites each time I make a new MAN armor, else if there is one missing it shows the original armor that is replaced,  or crash if it's a new item ?

Here is what I've done so far, now I have to draw the animations. (see attachement, I don't know how to post an image).
 
It's my first attempt at drawing pixel art. I'm not entirely satisfied with the results, and the indexed color thing is infuriating... but I will improve !

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 676
    • View Profile
Re: female power suit
« Reply #3 on: September 27, 2018, 05:14:36 pm »
you can put how many gender/paperdools as you want , but you have to put the minimum of the basic 8 or else it will crash fetching that inventory paperdool

 spriteFaceGroup: 6
    spriteFaceColor: [96, 96, 96, 96, 160, 160, 163, 163, 96, 96, 96, 96] #M0 F0 M1 F1 M2 F2 M3 F3 M4 F4 M5 F5 (colors of hair and face)
    spriteHairGroup: 9
    spriteHairColor: [144, 144, 164, 164, 245, 245, 166, 166, 96, 164, 96, 96] #M0 F0 M1 F1 M2 F2 M3 F3 M4 F4 M5 F5 (colors of hair and face)

as you can see that code as 4 extra paperdools, m4 f4 m5 and f5 and they are white people (96 color on face)
« Last Edit: September 27, 2018, 06:37:57 pm by bulletdesigner »

Offline Pony

  • Squaddie
  • *
  • Posts: 7
    • View Profile
Re: female power suit
« Reply #4 on: September 27, 2018, 06:18:25 pm »
Got it ! You have been really helpful, I'm not into faces yet and the game rewriting the sprites and stuff is a little bit scary, when I see what it does to a simple png. I have to go through animations now and grab a spritesheet example from the forum because pckview crash with big files, and a MEDIBORD.PCK because the image on the ufopaedia is a .jpg

I think I need to download more mods, even if I don't play them, to look at their ruleset,  as the exemple you provided really helped me understand what the game was looking for.

I will add SOLVED to the title of this thread now, maybe?