OpenXcom Forum
Modding => Resources => Topic started by: Arthanor on October 23, 2014, 06:47:54 pm
-
Hello!
I am not sure if I remember it from EU or TftD, but I do remember stun explosions looking purplish in some XCom I played and I liked that. Similarly, having big fiery explosions when you throw a smoke grenade seems weird. Since I just managed to get the nightly going and I thought it allowed customization of explosions, I went to work.
Problem is, it crashes my game as soon as the explosion goes off :/ I have attached the sprite I use and this is my test mod ruleset:
items:
- type: STR_STUN_BOMB
hitAnimation: 8
- type: STR_STUN_GRENADE
hitAnimation: 8
extraSprites:
- type: X1.PCK
width: 1024
height: 64
subX: 128
subY: 64
files:
8: Resources/Stun_Explosion/XStun.png
If I replace all the "8" by "0", it uses the stun sprite for every explosion just fine, which seems to imply that there is nothing wrong with the way I import it. I used index 8, since the normal explosion is 8 frames so should be 0 to 7 (and indeed is called using hitAnimation: 0). Any ideas?
Thanks in advance! Once this one works, I'll do one for smoke as well and combine them into a single mod.
-
Looks very neat, to differentiate between a regular explosion and a stun.
No idea why it would crash :(
-
It prevents some unneeded heart attacks when a medic/engineer fires a stun bomb at you and you think it's a blaster bomb ;) Would be good, if only it worked!
-
Are you sure that additional explosion sprites are supported already?
See my thread here, I also made some sprites, but all I could do was replace the original one. I'd be delighted if we could add additional ones but so far I have not heard that it's possible yet.
https://openxcom.org/forum/index.php?topic=2927.0
https://openxcom.org/forum/index.php?topic=2151.0
-
i have my original ufo-files folder (in ~/documents) separated from the mod folder (=data folder in the exe folder)
to get multiple explosion types i need to replace the original X1.PCK
but thats ugly
i cant get it to run just with adding UFOGRAPH/X1.* in (mod) data folder or adding extrasprites :(
it seems a lot of special graphic files are not replaceable via extrasprites
-
Oh, that's weird. After reading the topics you linked, Ran, I was convinced that in the nightly version you could extend X1.PCK to more than 8 frames. I guess I'll have to wait a bit longer for the stuff Warboy is doing for TftD explosions!
Whenever it does happen, I can finally make the mod.
Thanks :)
-
you CAN, it just isn't getting indexed properly.
try replacing 8 with 80.
i could go into more detail as to why this is the case, but it doesn't really matter as the indexing needs adjustment anyway so any information i give you will soon be rendered inaccurate.
for the time being (and into the forseeable future), though, this should work.
-
Sweet! Thanks a lot! I'll fix it when it breaks, but for now this works exactly as I hoped :D
A simple mod: Extra Explosion
For when you want smoky and stunny graphics! Already compatible with the Stun Grenade mod, grenade launcher from either XAE_Utility or GunsNGadgets, and Smoke Bombs from XAE_Bombs.
Contains 2 versions of both new explosions, lighter or darker variants. (I prefer the darker ones, but the lighter ones are more in keeping with the original graphics, just adjust the ruleset.)
Note: This mod needs to be loaded AFTER the above mods, since it modifies their graphics.
Note2: This only works with the nightly. On 1.0, it will do absolutely nothing since explosions have hardcoded graphics.
Enjoy!
-
Looking gorgeous... <drools> ...
Unfortunately, I'm not quite read to step into the realm of the nightlies. XD
Cheers, Ivan :D
-
If you're using windows, I think it's pretty straightforward. And the added functionality is awesome! On linux, it was a bit more of a challenge, but with good instructions it's straightforward enough.
Either way, I strongly recommend taking the step.
-
Looking gorgeous... <drools> ...
Unfortunately, I'm not quite read to step into the realm of the nightlies. XD
That's funny, I would be too scared to use the 1.0 myself. :D
But seriously, these are really nice sprites. Just saying.