Author Topic: Adding New Image Files  (Read 13598 times)

Offline tyran_nick

  • Captain
  • ***
  • Posts: 59
    • View Profile
Re: Adding New Image Files
« Reply #15 on: August 06, 2013, 10:29:07 pm »
I was going through Github and in DogfightState.ccp I found the following:

https:// Draw weapon icon
frame = set->getFrame(w->getRules()->getSprite() + 5);

I am using sprite 6 in the ruleset, so I load the following:
  - type: BASEBITS.PCK
    files:
      54: Resources/RailGun/Basebits/railcraft.gif   <- This works ok (strangely!) and I get the correct icon in the equip screen

  - type: INTICON.PCK
    files:
      11: Resources/RailGun/Basebits/railcraft.gif    <- 6 + 5 from above, but it doesn't work. When the dogfight starts the game crashes

I have also tried numbers 5, 6, 9, 10, 11, 12, 15, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 43 for INTICON, but no lack

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Adding New Image Files
« Reply #16 on: August 07, 2013, 07:43:29 am »
try using 11 for the sprite, insert it into inticon at 16, and in basebits at 59

reason: inticon is already 16 images (0-15) by inserting it at 11 you are overwriting an existing image (the skyranger)

Offline tyran_nick

  • Captain
  • ***
  • Posts: 59
    • View Profile
Re: Adding New Image Files
« Reply #17 on: August 07, 2013, 10:28:18 am »
That did the trick! Thanks