OpenXcom Forum

Modding => Released Mods => XPiratez => Topic started by: Hazard on April 18, 2016, 01:05:14 am

Title: Can I remove the fist weapon from Mercenary Commando?
Post by: Hazard on April 18, 2016, 01:05:14 am
The question is in the title. Merc Commandos cost a pretty penny, and I was thinking about freeing their inventory and removing the inbuilt weapons to make them more versatile. Making the inventory accessible and getting rid of the Boom Gun are easy edits, but the fist is not. Based on a quick look through the ruleset, it kinda seems like it might not even be possible to remove. I could simply change "fixedweapon" to false and move the fist item into another slot, but if a cleaner solution is possible, I'd gladly take it.
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Dioxine on April 18, 2016, 02:33:14 am
You cannot have a weaponless HWP. If you want to play them, why not make them a soldier race instead. I'd suggest a hefty price, though, if you want to keep them balanced. An example how to do it below, you can figure out the rest by yourself:

Code: [Select]
  - type: STR_MUTON_MERCENARY_SOLDIER
    costBuy: 300000
    costSalary: 100000
    minStats:
      tu: 70
      stamina: 100
      health: 110
      bravery: 110
      reactions: 60
      firing: 70
      throwing: 60
      strength: 70
      psiStrength: 30
      psiSkill: 0
      melee: 80
    maxStats:
      tu: 80
      stamina: 110
      health: 130
      bravery: 110
      reactions: 70
      firing: 80
      throwing: 70
      strength: 80
      psiStrength: 35
      psiSkill: 0
      melee: 110
    statCaps:
      tu: 90
      stamina: 130
      health: 140
      bravery: 110
      reactions: 90
      firing: 120
      throwing: 90
      strength: 100
      psiStrength: 35
      psiSkill: 0
      melee: 150
    armor: MUTON_MERCENARY_ARMOR
    armorForAvatar: MUTON_MERCENARY_ARMOR
    avatarOffsetX: 66
    avatarOffsetY: 43
    standHeight: 22
    kneelHeight: 14
    femaleFrequency: 0
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Hazard on April 18, 2016, 03:41:35 am
Thank you for the reply. That looks like a good solution; I had no idea adding new soldier types was so trivial.
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Arthanor on April 18, 2016, 06:47:50 am
Being able to hire Mercs (and pay a hefty price every month instead of only once) could be a cool feature for when you really need something mean to join your team and money isn't much of an issue.

Which brings the question: Are we going to see male Ubers, hybrids or other types of soldiers eventually?
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Hazard on April 18, 2016, 02:06:53 pm
I admit, I started looking into the mercenary commando ruleset settings because I wanted to incorporate a bit of "serious male warfighting ability" to my squads (and I bet the gals would also like a couple of guys around... or perhaps not), but don't really like shotguns. :D

Male hands is obviously something I'd also like to see in the mod, although I understand making the assets would be a massive amount of work. It crossed my mind to try making one male variant of all the inventory images myself, but with the artistic skills I have, hell would probably freeze over in the time it would take to finish that job properly.
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Yglorba on April 18, 2016, 03:46:11 pm
Being able to hire Mercs (and pay a hefty price every month instead of only once) could be a cool feature for when you really need something mean to join your team and money isn't much of an issue.

Which brings the question: Are we going to see male Ubers, hybrids or other types of soldiers eventually?

Well, technically there's the superheroes...  I'm not sure they count, though.

The fact that the pirates are all-female is sort of a plot point at this point (and referenced constantly throughout the game), so I can't imagine the core definition of the team is going to change.
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Dioxine on April 18, 2016, 04:12:54 pm
Male hands is obviously something I'd also like to see in the mod, although I understand making the assets would be a massive amount of work. It crossed my mind to try making one male variant of all the inventory images myself, but with the artistic skills I have, hell would probably freeze over in the time it would take to finish that job properly.

This is basically the only problem. Graphic assets. It is a huge problem though. If it's somehow resolved, I plan to add male hands as well, somehow.

The inability to change Merc's weapon or look into his equipment is quite important. The message is, they're not YOUR people, you're only hiring them. Otherwise it would be the "MERCs" mod, not "Piratez" mod :) That's why I'm not changing how the mercs work (but, if someone wants to mod a game for themselves, it's their choice).
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Hazard on April 18, 2016, 05:03:45 pm
Yeah, I understand there's a good reason for the inventory restriction. And now that you mentioned it, I'd gladly play a Mercenary-themed mod in the Piratez setting. :)
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Arthanor on April 18, 2016, 06:10:27 pm
You know your master mod is mainstream when people start modding it..!

I understand why the crew is female (simplicity/theme of the mod/much nicer pixels to look at), but it does seem like there is potential in adding new soldier type with all the mutant variants there are.

Maybe one day. As it is, loading Piratez already takes forever on my computer, so I can't really ask for more content ;)
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: AncientSion on April 18, 2016, 10:26:51 pm
I can do gfx.
What exactly is the "huge problem" that is being referred to ?
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Arthanor on April 18, 2016, 10:42:29 pm
Take the large number of female avatars currently in Piratez, let's say to be fair we want as many male avatars. Then take the huge number of armors in Piratez, and multiply the two. That's the number of new inventory pictures you have to make.

Then, of course, you'd expect the battlescape representation of male piratez to be different. So you need to remake every playable armor sprites in order to show that. (each sprite sheet is made up of many tiny images, each of which would probably have to be tweaked)

There's also the corpse images, which need to be redone for men.

So you end up with a number of graphics needing to be redone that one could indeed qualify as huge ;) Of course, once you've setup properly you can save some time (many armors are variants of each others, making it easier to change graphics once you have done the base one, etc), but it's still a punishing amount of work, all "just" to add men to the game when, let's be honest, especially with the many skimpy outfits, female pixel piratez are better to look at.
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: AncientSion on April 18, 2016, 10:48:02 pm
Yeah, i did see the sprite sheets. I can do very good 2d pixel art, but in reality its way too much of a time-investment for me to even consider doing it.
Thanks for clarifying.
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Hazard on April 18, 2016, 11:28:07 pm
I just now got around to testing this and the game crashes as soon as I try opening an inventory screen with one of the soldier-style mercs. It's something to do with the "MUTON_MERCENARY_ARMOR" entry, since the new soldier type works fine with any other armor. Unfortunately it's somewhat beyond me to decipher what exactly the MUTON_MERCENARY_ARMOR lacks that the game needs to make it work properly for soldier-type units. Any further help would be greatly appreciated.

Edit: Nevermind, I got it working. Yay!
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: ivandogovich on April 19, 2016, 12:47:13 am
I just now got around to testing this and the game crashes as soon as I try opening an inventory screen with one of the soldier-style mercs. It's something to do with the "MUTON_MERCENARY_ARMOR" entry, since the new soldier type works fine with any other armor. Unfortunately it's somewhat beyond me to decipher what exactly the MUTON_MERCENARY_ARMOR lacks that the game needs to make it work properly for soldier-type units. Any further help would be greatly appreciated.

    allowInv: false

^^
from Piratez.rul line 22998. 
This means you aren't allowed to open inventory with that armor.  If you are serious about it, clone out the armor and rename it, and redefine this setting.
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Hazard on April 19, 2016, 01:13:40 am
I tried that, but the game still crashed on inventory.

In any case, I set up a proper submod using the Naughty mod as a template (thanks for that too, Dioxine), and now it seems to be working fine. For some reason the game refused to start with an error message when the corpse bigSprite was named EMC0_b, but launched just fine when I changed it to EMC_0_b.  :o I guess there's something obvious I'm missing about the file naming system...
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Dioxine on April 19, 2016, 02:53:17 am
I can do gfx.
What exactly is the "huge problem" that is being referred to ?

Yeah, i did see the sprite sheets. I can do very good 2d pixel art, but in reality its way too much of a time-investment for me to even consider doing it.

Haven't you just answered your own question better than anyone could? The problem is so huge no-one is even considering tackling it :P
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: AncientSion on April 19, 2016, 09:44:01 am
Yeah, but i asked the question and then answered it myself based on the reply i got :p

Considering there are spritesheets and one wouldnt Need to draw new sprites entirely, but just alter a few existing ones, i believe the effort wouldnt be thaaat big after all. After all, you would just take a female sprite sheet and make it appear a bit more bulky, i.e. add some Pixels to each Frame of the sprite.
However, ist still too much time for a rather "minor" Thing gameplay-wise.
However, creating only 2 to 3 new male sprites with inventory Icons wouldnt really be a "huge" Problem unless im missing a vital part of the effort. Creating 20 of them, sure, would be a big Job, but still if you have 2 or 3 done, every one after will just require minor alterations. Some new Color here, some new bulky mass there.
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Dioxine on April 19, 2016, 10:13:27 am
Well, talk is cheap. Maybe it is so, maybe it isn't. No point in discussing how hard would it objectively be.
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Solarius Scorch on April 19, 2016, 10:23:09 am
Battlesprites aren't that much of an issue, since in most cases you only need to alter the torso and head part - 8 tiny pics per armour.
Inventory and corpses, on the other hand...
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: AncientSion on April 19, 2016, 10:36:04 am
Inventory and corpses are EASY, Hands down. Im not just bloating, im serious.

If there was some Kind of incentive, i would do it, no questions asked. I know i can and i believe this mod is truly amazing all things considered.
However i dont see a very strong reason to get males into the game. Of course some male mercs would be interesting, after all the Mutant Alliance does sell you Advisors, why wouldnt they also sell true Mutant Mercs. But would it really be worth it ? I dont know tbh.
Title: Re: Can I remove the fist weapon from Mercenary Commando?
Post by: Hazard on April 19, 2016, 04:28:08 pm
If you're looking for some other incentive than the standard "nice to have for a bit of variety and because you can", then I agree there probably won't be any. That said, I'm sure many people would still appreciate it a lot, for what it's worth. I know I would. :)