Author Topic: How to create a big sprite?  (Read 3792 times)

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 676
    • View Profile
How to create a big sprite?
« on: August 15, 2015, 01:45:48 am »
I designed the "StunBlaster" simple mod there but couldn't come up with an original image, however I've found a picture on line that I think will do the job nicely-see first attachment but I'm unsure how to proceed further. At the moment my mod uses big and floor sprites which is 21. Per reading these: https://www.ufopaedia.org/index.php?title=FLOOROB.PCK, https://www.ufopaedia.org/index.php?title=HANDOB.PCK and https://www.ufopaedia.org/index.php?title=BIGOBS.PCK now I understand why in hand or on the battlescape the stunblaster gets a proximity grenade image but how do I get the above 3 OB's to show as the first attachment image. Do I just choose a number at random beyond the limits set by those 3 links ie 58 or higher for:

    bigSprite: 58
    floorSprite: 58
    handSprite: 58

and then in extra sprites section of my rul file have it:

  - type: BIGOBS.PCK
    files:
      58: Resources/StunBlaster/StunBlaster.gif
  - type: FLOOROB.PCK
    files:
      58: Resources/StunBlaster/floorob_StunBlaster.gif
  -type: HANDOBS.PCK
    files:
      58: Resourrces/StunBlaster/handob_StunBlaster.gif

The stunblaster works as intended but I would like to have a different image for it. Second attachment is current set up of STUNBLASTER mod.

Offline XOps

  • Colonel
  • ****
  • Posts: 193
  • Guy who drowns first
    • View Profile
Re: How to create a big sprite?
« Reply #1 on: August 15, 2015, 02:23:35 am »
Move the FLOOROB.PCK and BIGOBS.PCK to the extra sprites section. Also they need to read Resources/Stun_Blaster instead of Resources/StunBlaster for both FLOOROB.PCK and BIGOBS.PCK. See attached code for fixes. This should work.

Code: [Select]
items:
  - type: STR_STUN_BLASTER
    size: 0.2
    costSell: 18000
    weight: 8
    bigSprite: 106
    floorSprite: 86
    power: 110
    damageType: 6
    battleType: 5
    blastRadius: 7
research:
  - name: STR_ELERIUM_115
    cost: 450
    points: 60
    needItem: true
  - name: STR_STUN_BOMB
    cost: 180
    points: 10
    needItem: true
  - name: STR_STUN_BLASTER
    dependencies:
      - STR_ELERIUM_115
      - STR_STUN_BOMB 
    cost: 300
    points: 20
manufacture:
  - name: STR_STUN_BLASTER
    category: STR_WEAPON
    requires:
      - STR_STUN_BOMB
    space: 3
    time: 300
    cost: 10000
    requiredItems:
      STR_ELERIUM_115: 2
      STR_PROXIMITY_GRENADE: 1
      STR_STUN_BOMB: 1
ufopaedia:
  - id: STR_STUN_BLASTER
    type_id: 4
    section: STR_WEAPONS_AND_EQUIPMENT
    text: STR_STUN_BLASTER_UFOPEDIA
extraSprites:
  - type: SMOKE.PCK
    height: 40
    width: 384
    subX: 32
    subY: 40
    files:
      8: Resources/Stun_Blaster/SMOKE/smoke_cloud.gif
  - type: BIGOBS.PCK
    files:
      106: Resources/Stun_Blaster/StunBlaster.gif
  - type: FLOOROB.PCK
    files:
      106: Resources/Stun_Blaster/floorob_StunBlaster.gif
extraStrings:
  - type: en-US
    strings:     
      STR_STUN_BLASTER: STUNBLASTER
      STR_STUN_BLASTER_UFOPEDIA: One of our scientists became creative when he examined a stun bomb and proximity grenade. Using Elerium 115 he managed to combine all three into a proximity stun grenade of high power. This new grenade should be able to counter strong or stun resistant aliens better.

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 676
    • View Profile
Re: How to create a big sprite?
« Reply #2 on: August 15, 2015, 02:54:05 am »
Tried what you advised and it ended up like these two pictures.

Offline XOps

  • Colonel
  • ****
  • Posts: 193
  • Guy who drowns first
    • View Profile
Re: How to create a big sprite?
« Reply #3 on: August 15, 2015, 04:02:03 am »
Correction

Code: [Select]
 
 - type: BIGOBS.PCK
    files:
      106: Resources/Stun_Blaster/StunBlaster.gif
  - type: FLOOROB.PCK
    files:
      86: Resources/Stun_Blaster/floorob_StunBlaster.gif

Though to be honest, I'm not really sure what's wrong. It may be another conflict with an existing mod.

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 676
    • View Profile
Re: How to create a big sprite?
« Reply #4 on: August 15, 2015, 04:43:46 am »
Thanks for all the info, I have the original which works and has the images, though identical to a proximity grenade which it's a variation of, so it was just to see if I could give it a distinct image of its own.