aliens

Author Topic: TFTD armor spritesheet. Help needed.  (Read 2939 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
TFTD armor spritesheet. Help needed.
« on: November 23, 2016, 04:57:04 pm »
Well, i have a nev tftd spritesheet (unfinished), and want to try to set him as none armor.  So, i take code from xcom2 core and change spritename:
Code: [Select]
armors: #done
  - type: STR_NONE_UC
    spriteSheet: TDXCOM1.PCK #here it is
    spriteInv: MAN_0
    storeItem: STR_NONE
    corpseItem: STR_CORPSE
    frontArmor: 12
    sideArmor: 8
    rearArmor: 5
    underArmor: 2
    damageModifier:
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.6
      - 1.5
      - 1.0
    loftemps: 3
    drawingRoutine: 13
    spriteFaceGroup: 14
    spriteFaceColor: [160, 160, 64, 160, 160, 64, 160, 160] #M0 F0 M1 F1 M2 F2 M3 F3
    spriteHairGroup: 4
    spriteHairColor: [130, 160, 201, 130, 64, 198, 160, 64] #M0 F0 M1 F1 M2 F2 M3 F3
After that, i add in extrasprites rulfile:
Code: [Select]
  - type: TDXCOM1.PCK
    width: 256
    height: 1520
    subX: 32
    subY: 40
    files:
      0: Resources/TDXCOM1.png
Then try to load tactical game with that mod, and got a crash.
Question: what am i doing wrong?

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: TFTD armor spritesheet. Help needed.
« Reply #1 on: November 24, 2016, 05:04:23 pm »
does the comment actually exist in your ruleset or did you only add that for the post?

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Re: TFTD armor spritesheet. Help needed.
« Reply #2 on: November 24, 2016, 05:33:55 pm »
You mean (#here it is)? Yes, i added it only in post.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: TFTD armor spritesheet. Help needed.
« Reply #3 on: November 24, 2016, 06:11:16 pm »
i'm not sure then, as far as i can see, the code is clean.
check your log file, see if it has any light to shed on the subject.

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Re: TFTD armor spritesheet. Help needed.
« Reply #4 on: November 27, 2016, 07:59:10 pm »
Strange, but when i create new armor set (not a replacement), all works fine.

Offline Starving Poet

  • Colonel
  • ****
  • Posts: 265
    • View Profile
Re: TFTD armor spritesheet. Help needed.
« Reply #5 on: November 27, 2016, 08:28:45 pm »
Have you tried deleting the origonal armor before remaking it?

Code: [Select]
armors:
  - delete: STR_NONE_UC
  - type: STR_NONE_UC
    spriteSheet: TDXCOM1.PCK #here it is
    spriteInv: MAN_0
    storeItem: STR_NONE
    corpseItem: STR_CORPSE
    frontArmor: 12
    sideArmor: 8
    rearArmor: 5
    underArmor: 2
    damageModifier:
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.6
      - 1.5
      - 1.0
    loftemps: 3
    drawingRoutine: 13
    spriteFaceGroup: 14
    spriteFaceColor: [160, 160, 64, 160, 160, 64, 160, 160] #M0 F0 M1 F1 M2 F2 M3 F3
    spriteHairGroup: 4
    spriteHairColor: [130, 160, 201, 130, 64, 198, 160, 64] #M0 F0 M1 F1 M2 F2 M3 F3