OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: g5-freemen on April 14, 2016, 10:29:34 pm

Title: Inventory stats bug
Post by: g5-freemen on April 14, 2016, 10:29:34 pm
There is a small bug - soldier have 100 p.strenght, but in inventory it looks like 10 (zero is cropped)
Title: Re: Inventory stats bug
Post by: Countdown on April 15, 2016, 01:55:19 am
I'm pretty sure it's because the word for p.strength makes the string longer than optimal and it pushes it too far. On my computer in English part of the zero is cut off, but it's still clear that it's 100 and not 10.

You could do a string replacement (https://www.ufopaedia.org/index.php?title=Ruleset_Reference_Nightly_(OpenXcom)#Extra_Strings) and abbreviate p.strength to be something shorter.

Looks like the appropriate string is "STR_PSIONIC_STRENGTH_SHORT"

I haven't tested this, but I think it would go:

Code: [Select]
- type: ru
  strings:
    STR_PSIONIC_STRENGTH_SHORT: "P.S>{ALT}{0}"
Title: Re: Inventory stats bug
Post by: g5-freemen on April 15, 2016, 08:16:13 am
I'm pretty sure it's because the word for p.strength makes the string longer than optimal and it pushes it too far. On my computer in English part of the zero is cut off, but it's still clear that it's 100 and not 10.

You could do a string replacement (https://www.ufopaedia.org/index.php?title=Ruleset_Reference_Nightly_(OpenXcom)#Extra_Strings) and abbreviate p.strength to be something shorter.

Looks like the appropriate string is "STR_PSIONIC_STRENGTH_SHORT"

I haven't tested this, but I think it would go:

Code: [Select]
- type: ru
  strings:
    STR_PSIONIC_STRENGTH_SHORT: "P.S>{ALT}{0}"
replace
  STR_PSIONIC_STRENGTH_SHORT: "П.Cила>{ALT}{0}"
with
  STR_PSIONIC_STRENGTH_SHORT: "П.Cила{ALT}{0}"
works, but look like "P.S100", not very beautiful
Title: Re: Inventory stats bug
Post by: SupSuper on April 16, 2016, 12:22:20 am
Fixed.
Title: Re: Inventory stats bug
Post by: g5-freemen on April 16, 2016, 10:12:08 pm
Fixed.
Thanks )