aliens

Author Topic: [WEAPON] Custom Grenades  (Read 25372 times)

Offline Simon-v

  • Sergeant
  • **
  • Posts: 11
    • View Profile
[WEAPON] Custom Grenades
« on: May 17, 2013, 10:19:34 pm »
Good day, commanders.

Incendiary Grenades

The Problem:

I like to burn things occasionally. Especially in forests and jungles, where those damn plants block your view and hide dangerous creatures, even more so at night time. Unfortunately, short of always keeping a spare auto-cannon with a few packs of incendiary ammo in the jet, there is little that can be done when you suddenly feel the urge to see the world burn.

The solution:

Enter the grenade mod, which creates a new, compact and convenient way to burn down the forest. Just pull the thing out of your shoulder pouch, prime it, throw it and step back. You can now bring some marshmallows to fry. You will need to research and manufacture it before it can be used, however.

Technical details:

The grenade mod comes in the form of a ruleset file that can be placed in your data/Ruleset/ directory and included in the config.cfg file. No external resources are necessary. It uses a grenade sprite from the original data files, which was, surprisingly, left unused for many years. Also included in the ruleset are the relevant translated strings for every language that i know, which is, admittedly, not that much. To make full use of this mod, an OpenXcom version no earlier than openxcom_git_master_2013_05_25_0747 must be used.

Stun Grenades

The Problem:

X-Com employs the brightest scientists on Earth. Can't they figure out a way to stun a room full of aliens without lugging around that awkward, single-purpose small launcher?

The solution:

Enter the grenade mod, which creates a refreshing new way to deploy stun bombs: by turning them into grenades. You see, by examining both the small launcher and the stun bomb, the scientists can figure out how the stun bomb is activated, which allows them to attach a trigger to it, after which it can be primed normally. The stun bombs themselves will still have to be modified to be used this way. Fortunately, you can always just manufacture more of them, right?

Technical details:

This grenade is included in the ruleset described above. Unfortunately, no free resources were available for this purpose, so the stun bomb sprite was reused a new one was made by combining the alien grenade and the stun grenade sprites. The sprite should be placed into a data/Resources/ directory (which can be acheived by unzipping the linked archive into the data/ directory. As above, make sure you have a fairly recent OpenXcom version.

Download links

CustomGrenades.zip

Additional notes

If you are fluent in one of the languages i am not, feel free to add the translation here for further inclusion in the mod. Your names will forever be remembered by the forum software.

Translations contributed by:
Nightwolf - Spanish, SpanishAL
« Last Edit: June 11, 2013, 08:23:18 pm by Simon-v »

Offline winterheart

  • Colonel
  • ****
  • Posts: 180
  • Fellow Squaddie
    • View Profile
Re: Custom Grenades
« Reply #1 on: May 23, 2013, 09:09:01 am »
Nice mod!
About custom strings I issued Feature Request for that: https://openxcom.org/bugs/openxcom/issues/43
« Last Edit: May 23, 2013, 09:26:03 am by winterheart »

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Custom Grenades
« Reply #2 on: May 24, 2013, 07:26:32 pm »
Nice mod!
About custom strings I issued Feature Request for that: https://openxcom.org/bugs/openxcom/issues/43
Better mod support is on the TODO list.

Offline Simon-v

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: Custom Grenades
« Reply #3 on: May 25, 2013, 11:04:19 am »
With the addition of custom sprites and custom strings support, the mod is now complete and comes in a handy zip file. No more patching, no more troubles, as long as you have a fairly recent version of OpenXcom.

If you are fluent in any of the languages i am not, consider posting the translations of the strings here. Your names will be forever remembered by the forum software.

Offline Nightwolf

  • Captain
  • ***
  • Posts: 70
    • View Profile
Re: Custom Grenades
« Reply #4 on: May 25, 2013, 01:19:36 pm »
Great Simon-v work. :) Also great for openXcom for be able to add new strings :)

I've just loaded the rul files with the translation for spanish, and latam spanish. Please, feel free to use it :)

Offline Simon-v

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: Custom Grenades
« Reply #5 on: May 25, 2013, 01:38:26 pm »
I'm not sure that "granada de gas" is the best possible translation for this object, seeing that the stun bomb is translated as "bomba aturdidora"; Seeing that the stun grenade is just a modified stun bomb, i feel it would be better to use "granada aturdidora" for this purpose, which is what i've used.

Translations updated, thank you!

Offline Nightwolf

  • Captain
  • ***
  • Posts: 70
    • View Profile
Re: Custom Grenades
« Reply #6 on: May 25, 2013, 02:00:43 pm »
Yes, you are right. Spanish translation should use "granada aturdidora". "Granada de gas" seems more imply the use of gas . Spanish Latam used "bomba" on the translation as im looking now. :)

EDIT: They is a typo error (twice on each language) "mencanismo" should be "mecanismo".
« Last Edit: May 25, 2013, 02:10:37 pm by Nightwolf »

Offline Simon-v

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: Custom Grenades
« Reply #7 on: May 25, 2013, 02:59:19 pm »
Fixed, thanks. Is the "normally" part conveying the "in the usual way" meaning, by the way?

Offline 54x

  • Colonel
  • ****
  • Posts: 208
    • View Profile
Re: Custom Grenades
« Reply #8 on: May 25, 2013, 11:21:21 pm »
Better mod support is on the TODO list.

Warboy also seems to be working on a lot of the stuff for that at the moment, btw, including extra strings which you can add through the ruleset. :)

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Custom Grenades
« Reply #9 on: June 10, 2013, 06:43:26 pm »
@Simon-v: hope you don't mind, i added the list weights to your grenades mod, and updated your post to point to the attachment instead of your dropbox

Offline pmprog

  • Commander
  • *****
  • Posts: 647
  • Contributor
    • View Profile
    • Polymath Programming
Re: Custom Grenades
« Reply #10 on: June 11, 2013, 12:13:05 pm »
Whooo, I need to update my copy of OXC and give this a whirl!
« Last Edit: June 11, 2013, 12:16:00 pm by pmprog »

Offline Simon-v

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: Custom Grenades
« Reply #11 on: June 11, 2013, 08:20:41 pm »
@Simon-v: hope you don't mind, i added the list weights to your grenades mod, and updated your post to point to the attachment instead of your dropbox

I linked it to my Dropbox to avoid needing to manually reattach the file every time i update some minor thing in it. I'm going to revert it, thank you very much. Next time, i would appreciate if you just send me a patch.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Custom Grenades
« Reply #12 on: June 12, 2013, 07:14:50 am »
yeah, i figured as much. that's a much better system, but i can't update your dropbox, and i didn't know if/when youd be back (people tend to come and go), so i figured easier just do it and notify you of exactly what i did.

didn't mean to piss you off, next time (if there is one) i'll just leave it be. :)

Offline Simon-v

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: Custom Grenades
« Reply #13 on: June 12, 2013, 07:17:22 pm »
Oh, i usually stick around. 'Sides, i'm notified of topic replies -- by the way, could the powers that be turn post preview on for reply notifications?

Oh, by all means, do contribute to my humble efforts. By attaching a patch file, as requested in the first post, so that i can at least review your contribution before integrating it. If it deviates too much from my the original idea, you're welcome to fork it and post as your own -- wait, i can't believe i have to explain the basics of collaborative source control to you of all people! :)

Offline Simon-v

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: Custom Grenades
« Reply #14 on: October 04, 2013, 11:01:39 am »
Updated the ruleset for GetLocalization (https://openxcom.org/forum/index.php/topic,1577).