Author Topic: [SOLVED] New SPK files not recognized by RuleSet  (Read 3239 times)

Offline Amiga

  • Colonel
  • ****
  • Posts: 128
  • Amiga4ever....
    • View Profile
    • White Wolf Untold Story PL (my rpg game based on Witcher saga)
[SOLVED] New SPK files not recognized by RuleSet
« on: May 26, 2013, 08:16:42 pm »
I made new UP002a.SPK file with my picture  based on original UP002.SPK
I put it  to RuleSet:
- id: STR_INTERCEPTOR
    type_id: 1
    section: STR_XCOM_CRAFT_ARMAMENT
    image_id: UP002a.SPK

but game crash during entering to ufopedia. How to force game to load new SPK file? Any idea?
Of course i copy this file to UFO\GEOGRAPH\
« Last Edit: May 26, 2013, 10:10:41 pm by Amiga »

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: New SPK files not recognized by RuleSet
« Reply #1 on: May 26, 2013, 09:14:28 pm »
Try converting UP002a.SPK to UP002a.gif and put in ruleset

ufopaedia:
  - id: STR_INTERCEPTOR
    type_id: 1
    section: STR_XCOM_CRAFT_ARMAMENT
    image_id: UP002a
extraSprites:
  - type: UP002a
    singleImage: true
    width: 320
    height: 200
    files:
      0: Resources/UP0002a.gif

Offline Amiga

  • Colonel
  • ****
  • Posts: 128
  • Amiga4ever....
    • View Profile
    • White Wolf Untold Story PL (my rpg game based on Witcher saga)
Re: New SPK files not recognized by RuleSet
« Reply #2 on: May 26, 2013, 09:48:48 pm »
Yep, it's working fine. But what to do when I want to use the same file UP002a with two different item? For example to two different type of interceptor
[UPDATED]
Ok I solved the problem.
« Last Edit: May 26, 2013, 10:10:32 pm by Amiga »