OpenXcom Forum
Modding => Help => Topic started by: Amiga on February 28, 2018, 09:35:10 pm
-
Hi,
Im rookie in X-com moddin but I know how to edit weapons ect but still I'm struggling with replacing Craft sprite in hangar. Looking on BASEBIT.PCK
https://www.ufopaedia.org/images/5/57/BASEBITSPCK.png I'm confused becasue sprite number which is used is 3.
- type: STR_INTERCEPTOR
sprite: 3
So how to add new sprite and use it?
For weapons in tactical fight I'm doing somthing like that:
- type: BIGOBS.PCK
files:
59: Resources/napalm.gif
60: Resources/sniper.gif
and it's working fine....
Appreciate any help!
-
Interceptor sprites are a special case, you have to know about the offsets for them. The sprite that matches index 3 is found in INTICON.PCK (https://www.ufopaedia.org/index.php/INTICON.PCK) (remember that numbering starts at 0) - this one is used in the geoscape when you minimize an interception. There's another sprite here for the Interceptor - index 14, 3 plus an offset of 11, is the icon for drawing damage on the craft during interception. The interceptor in BASEBITS.PCK is index 36, an offset from the ruleset of 33. That means to change the basebit sprite, you'd use this ruleset:
extraSprites:
- type: BASEBITS.PCK
files:
36: Resources/new_interceptor_basebit_sprite.gif
If you forget what the offsets are, they're documented in the online ruleset reference (https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Crafts).
-
Great. Thanks for answer. One more thing...If interceptor is tricky what about sprite for new added crafts?? Honestly this is more important for me that playing with Interceptor :)
-
Just start your craft sprite index well enough past the vanilla values that you don't run into offsets overlapping each other.
-
Just start your craft sprite index well enough past the vanilla values that you don't run into offsets overlapping each other.
I set to 55 which is next in the set free but I getting error.
- type: BASEBITS.PCK
files:
55: Resources/ship.gif
Maybe it's problem with my image..is there any limitation?
-
You're missing the point of the offsets; the sprite: 55 in your craft definition points to the INTICON.PCK sprites, not the BASEBITS.PCK sprite. You need the BASEBITS.PCK index to be 55+33=88, not 55 as you have it defined.
-
You're missing the point of the offsets; the sprite: 55 in your craft definition points to the INTICON.PCK sprites, not the BASEBITS.PCK sprite. You need the BASEBITS.PCK index to be 55+33=88, not 55 as you have it defined.
Finally I get it:)
- type: INTICON.PCK
files:
26: Resources/minimized.png + 33 = 59 which is sprite in hangar
37: Resources/dogfight_icon.png
- type: BASEBITS.PCK
files:
59: Resources/ship_in_hangar.png
26 + 11 = 37 which is dogfight icon
and at the end 59-33 = 21 which is number of SPRITE
Thank you for explanation! It was little confused....
(http://www.marcinkrupinski.pl/img/craft.jpg)
-
Finally I get it:)
(http://www.marcinkrupinski.pl/img/craft.jpg)
That's a nice Interceptor sprite! Is that a MiG-29 Fulcrum?
Enviado desde mi Blade A510 mediante Tapatalk
-
Hi,
That Craft wasn't perfect.
Here's my latest..
(http://www.marcinkrupinski.pl/img/crafts.jpg)
-
Hi,
That Craft wasn't perfect.
Here's my latest..
(http://www.marcinkrupinski.pl/img/crafts.jpg)
I like them very much!
Could you adjunt your sprites? It would be nice to use them in my game! :D
Enviado desde mi Blade A510 mediante Tapatalk
-
I like them very much!
Could you adjunt your sprites? It would be nice to use them in my game! :D
Enviado desde mi Blade A510 mediante Tapatalk
Sure. I will put .zip package with asset and .rul files ect.