aliens

Author Topic: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.4  (Read 32738 times)

Offline Sectoid_Soldier

  • Sergeant
  • **
  • Posts: 43
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.2
« Reply #15 on: May 11, 2014, 08:02:27 pm »
I'm asking for a change of color for the flak jackets. I don't like the horrible green color.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.2
« Reply #16 on: May 12, 2014, 08:50:13 pm »
Robin, I find it hard to argue against your points, because they're quite valid. :)

In the ideal world, there would be more varied enemies, so that bulletproof vests would still be useful. The MiB project is a step in that direction, we'll see how it goes from there.

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.2
« Reply #17 on: May 14, 2014, 11:29:15 pm »
Warning

Regarding french translation, (perhaps other), beware to encode your file in "UTF-8 (without BOM)"

And I think it should be (works for me)
  - type: fr
not (does not work for me as is)
  - type: fr-FR

;)
« Last Edit: May 14, 2014, 11:35:53 pm by Aldorn »

Offline eL5haD

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.2u
« Reply #18 on: June 18, 2014, 01:07:35 am »
How I can to translate this string [STR_ARMORED_VEST_UC]? Please, help! 
ps - type: ru [Бронежилет]

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.2u
« Reply #19 on: June 18, 2014, 03:20:15 am »
How I can to translate this string [STR_ARMORED_VEST_UC]? Please, help! 
ps - type: ru [Бронежилет]

I suppose you downloaded the armored_vest_1.2u_OpenXcomMOD.zip archive from Mod Site, then installed it

You have to update armored_vest.rul (on Windows, look under subfolder Data\Ruleset)

Look for section extratrings:
Spoiler:
extraStrings:
  - type: en-US
    strings:
      STR_ARMORED_VEST: Armored Vest
      STR_ARMORED_VEST_UC: ARMORED VEST
      STR_XCOM4_CORPSE: Corpse
      STR_ARMORED_VEST_UFOPAEDIA: Ceramic ballistic vest, offers protection against projectiles and explosions.
...

then add your own translation (Russian should be ru) as below
Code: [Select]
  - type: ru
    strings:
      STR_ARMORED_VEST: <YourRussianTranslation>
      STR_ARMORED_VEST_UC: <YourRussianTranslation>
      STR_XCOM4_CORPSE: <YourRussianTranslation>
      STR_ARMORED_VEST_UFOPAEDIA: <YourRussianTranslation>

Beware to use only spaces (I mean : no tab anywhere in the file or it will corrupt the mod) and respect number of needed spaces (2 before - type: ru, 4 before strings:, 6 before STR_COMBAT_XXX, ...) and this should work
 
« Last Edit: June 18, 2014, 03:33:51 am by Aldorn »

Offline eL5haD

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.2u
« Reply #20 on: June 18, 2014, 06:02:38 am »
Dear Aldorn, I'm sincerely grateful to you that you didn't left my message without your attention and agreed to help me! Thank you very much)

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.2u
« Reply #21 on: June 18, 2014, 05:15:09 pm »
Dear Aldorn, I'm sincerely grateful to you that you didn't left my message without your attention and agreed to help me! Thank you very much)
You're welcome

Next time, do not let me make suppositions of what you did already (and possibly be wrong), give us some more information  ;)

Offline rewkha

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.2u
« Reply #22 on: June 22, 2014, 07:28:52 pm »
Can you add russian and ukrainian translations?

Quote
  - type: ru
    strings:
      STR_ARMORED_VEST: Бронежилет
      STR_ARMORED_VEST_UC: БРОНЕЖИЛЕТ
      STR_XCOM4_CORPSE: Труп
      STR_ARMORED_VEST_UFOPAEDIA: Керамический баллистический жилет, обеспечивающий защиту от снарядов и взрывов.

Quote
  - type: uk
    strings:
      STR_ARMORED_VEST: Бронежилет
      STR_ARMORED_VEST_UC: БРОНЕЖИЛЕТ
      STR_XCOM4_CORPSE: Труп
      STR_ARMORED_VEST_UFOPAEDIA: Керамічний балістичний жилет, що забезпечує захист від снарядів і вибухів.

Offline robin

  • Commander
  • *****
  • Posts: 1203
  • ULTIMATE ROOKIE
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.2u
« Reply #23 on: June 22, 2014, 07:34:22 pm »
I'll add them when I can

niculinux

  • Guest
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.3
« Reply #24 on: July 11, 2014, 08:57:47 pm »
Armored vest 1.2 deos actualy works under linux, but there are some problems in rendering sprites in battlescape:


(click to enlarge)

warboy1982 suggested:

fix should be to replace colour 0 in the sprite palettes with transparency, i get the feeling the problem is something to do with the palette recolouring for skin/hair, but i've no clue what it is.

anyone may want to try? thanks!
« Last Edit: July 11, 2014, 08:59:52 pm by niculinux »

Offline sterbond

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.3
« Reply #25 on: July 15, 2014, 07:45:37 pm »
Armored vest 1.2 deos actualy works under linux, but there are some problems in rendering sprites in battlescape:


(click to enlarge)

warboy1982 suggested:
fix should be to replace colour 0 in the sprite palettes with transparency, i get the feeling the problem is something to do with the palette recolouring for skin/hair, but i've no clue what it is.

anyone may want to try? thanks!

As mentioned in that other thread this is some issue with sprites in folder under Linux.  When they are in one indexed file it works fine.

niculinux

  • Guest
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.3
« Reply #26 on: July 15, 2014, 08:55:21 pm »
As mentioned in that other thread this is some issue with sprites in folder under Linux.  When they are in one indexed file it works fine.

Please sterbo, coul you explain in simple fool-proof words? Im a very linux , and in general pc newbie  :'(

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.3
« Reply #27 on: July 15, 2014, 10:42:58 pm »
Please sterbo, coul you explain in simple fool-proof words? Im a very linux , and in general pc newbie  :'(

I guess he is speaking about "handSprite" and "spriteSheet" features.

In this case, he is speaking about spriteSheet, also not about handSprite, but behaviour is same so I will try to explain for both :
- Handob (or handSprite) is set of pics used for weapons in hands (8 pics for the 8 directions) on battlescape, referenced as "handSprite:" under "items:" section
- spriteSheet is used for units in different positions (128 for tanks, 288 for soldiers, ...) on battlescape, referenced as "spriteSheet:" under "armors:" section
But both are described under "extraSprites:" section

Then, they are two ways to provide these pics :
- either as a set of separate pics under a subfolder (also with 8 pics, 128 pics, 288 pics, ... see above) : subfolder will be directly indicated in settings (ruleset)
- or as a unique image file including all pics : image will be indicated in settings, with both parameters subX and subY to explain how to split the file to access the different pics it contains

As an example :
First the reference is given under "armors:" section
Spoiler:
armors:
  - type: STR_ARMORED_VEST_UC
    spriteSheet: ArmoredVest_SpriteSheet
Then
- if you provide a folder (e.g. subfolder ArmoredVestSpriteSheet) containing the 288 small pictures files, you will write in ruleset something like
Spoiler:
extraSprites:
  - type: ArmoredVest_SpriteSheet
    width: 32
    height: 40
    files:
      0: Resources/.../ArmoredVest/ArmoredVestSpriteSheet/
- if you provide a unique image (e.g. ArmoredVestSpriteSheet.PNG) including the 288 pictures, you will write instead in ruleset something like
Spoiler:
extraSprites:
  - type: ArmoredVest_SpriteSheet
    width: 1024
    height: 360
    subX: 32
    subY: 40
    files:
      0: Resources/.../ArmoredVest/ArmoredVestSpriteSheet.PNG

And if I well understand, having a unique pic (2nd case) works better under Linux than having to deal with 288 pics (1st case)

As a conclusion, if you are able to merge all the small pics to a unique image, it will be better for performance and should apparently avoid some Linux issues

Hope it is clear, and hope it was the right answer  :-\
« Last Edit: July 15, 2014, 11:09:50 pm by Aldorn »

niculinux

  • Guest
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.3
« Reply #28 on: July 15, 2014, 11:05:33 pm »
Thanks Aldorn!!! If it's not already, that should be placed in the wiki  8)

Offline sterbond

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: [WEAPON][ARMOR] Small Rocket Small 1.0 | Armored Vest 1.3
« Reply #29 on: July 16, 2014, 10:48:09 am »
I guess he is speaking about "handSprite" and "spriteSheet" features.

...

And if I well understand, having a unique pic (2nd case) works better under Linux than having to deal with 288 pics (1st case)

As a conclusion, if you are able to merge all the small pics to a unique image, it will be better for performance and should apparently avoid some Linux issues

Hope it is clear, and hope it was the right answer  :-\

Exactly, very nice description.  Thanks!

I should just note that this is a bug on Linux as 'a set of separate pics under a subfolder' should work on Linux as well.  I will file bug regarding this.