OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: Scamps on August 08, 2022, 06:30:35 pm
-
Can weapon ranges (auto/snap/aimed) be extracted into pedia article?
Also could you please direct me to documentation on paedia templates in general? Or which files in mods contain examples?
Sorry if answered before, I have poor google skills.
-
There is no more space to display anything in the pedia articles.
But you can see the weapon ranges under the INFO button (if you're using OXCE).
Documentation here: https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#UFOpaedia_Article
-
Thank you for the answer. After some more research I think I answered my question myself.
The mod which led me to the question is 40k. Weapon articles in this mod have unusual composition, by the time of writing I did not recognize TFTD style. So there are only two paedia temlates - UFO and TFTD.
Problem is there are like 20 bolters in mod, wich share very similar characteristics (and half of them share the same picture, which TFTD allows). Comparing these without a spreadsheet is a pain. I was thinking of making a submod for my own use. Ranges could be displayed for example like that:
Auto (x3)/5 35% 50%
Snap/11 50% 40%
Hence the question.
Looking in localization files there are strings like STR_SHOT_TYPE_SNAP: "Snap (x{0})". Was wondering if it is possible to change into something like "Snap (x{0})/{1}", where {1} is optional. Looking into the code, they are hardcoded. Another option would be adding to STATS FOR NERDS, but it seems more confusing than helping. And the string is also hardcoded.
So the question turns into suggestion with tiny chances to implement. Ranges do not boter me that bad to make a fork of OXCE ))
-
Mods often have their own ranges, but the default range in the original game is infinite, and the default range with UFO Extender accuracy is 7 for auto shot, 15 for snap shot, 200 for aimed shot, and a dropoff of 2.
-
Was wondering if it is possible to change into something like "Snap (x{0})/{1}", where {1} is optional.
Done.
-
Thank you, kind sir! You made the life of gun collector a bit easier.
It works wonderfully. It can be configured per language. If strings are too long, they do not hide accuracy. They even show default ranges, that are not displayed in INFO. Only tiny issue is that default aimed range of 200 unexpectedly turned to be three-digit. I thought it was 20. But that is not a problem.
-
Done.
Thanks Mer- How can we use that new feature now?
-
Here is an example mod https://openxcom.org/forum/index.php/topic,10723.0.html
Range replaces {1} in corresponding strings.
-
While fiddling with this functionality (yup ... curiosity again) i noticed something unexpected.
If a mod only uses the ``maxRange`` variable in order to limit weapon range (and thus does not bother with ``aimRange``, ``snapRange`` and/or ``autoRange``) the default values for each shot type are shown
even if ``maxRange`` is lower.
Is this intended?
-
Here is an example mod https://openxcom.org/forum/index.php/topic,10723.0.html
Range replaces {1} in corresponding strings.
Using it now. AmaZing. TY.
-
While fiddling with this functionality (yup ... curiosity again) i noticed something unexpected.
If a mod only uses the ``maxRange`` variable in order to limit weapon range (and thus does not bother with ``aimRange``, ``snapRange`` and/or ``autoRange``) the default values for each shot type are shown
even if ``maxRange`` is lower.
Is this intended?
can't answer yes or no, it was not specified
-
Totally missed that case. I am not that familiar with OpenXcom modding )
Would be good to account for max range, though, please.
I guess, the lowest of two should be displayed?
-
Totally missed that case. I am not that familiar with OpenXcom modding )
Would be good to account for max range, though, please.
I guess, the lowest of two should be displayed?
Great mod!
Perhaps this is the thing that should go by default in OXCE.
And definitely need to limit the maximum range
-
Totally missed that case. I am not that familiar with OpenXcom modding )
Would be good to account for max range, though, please.
I guess, the lowest of two should be displayed?
done
-
done
How do I enable this feature in OXCE v7.8?
-
Same as before, you need a mod. See the link above for example.
That one was made for personal use, I am too lazy to support it. But it is simple enough.
-
Done.
Thank you ! This is so useful. Had same issue , tons of similar guns , hassle to go to INFO to check max range for each to compare them.
Only needed to change Scamps mod ; this parts in metadata.yml :
"master: x-com-files" - from w40k ;
"#requiredExtendedVersion: "7.6.5" - and just commented out required version. Maybe it would've worked anyway.
And it not only shows ranges , but even 3 digit range too(switching to smaller font) ! Some thinking ahead here. +10
And thanks to @Scamps for example mod. Apparently no need to go through each weapon article in pedia. Just modifying 3 strings in en-us.yml file in language dir is enough.