aliens

Author Topic: [DONE][Suggestion] Add {0} reference in mod title to mod version in metadata.  (Read 143 times)

Offline CrazedHarpooner

  • Colonel
  • ****
  • Posts: 186
    • View Profile
Basically allow the STR_OPENXCOM language string to include {0} that points to the version number found in the mod's metadata file. This way we can mitigate cases where an incorrect mod version is displayed due to a translation or any other possible error like https://openxcom.org/forum/index.php?topic=5047.msg170816#msg170816

Code: [Select]
STR_OPENXCOM: "My Mod Name: {0}"

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11909
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
No idea how viable this is, but seconded so much.

Offline Yankes

  • Commander
  • Global Moderator
  • Commander
  • *****
  • Posts: 3462
  • Posts: 421
    • View Profile
`versionDisplay:` or `version:`?

[ps]

I pushed some "trash" changes to `test` branch, soon should be available at http://108.61.157.159/versions/win/ where this `{0}` should be supported.
As bonus test branch had some refactors with AI, I would be thankful if someone check if I did not break it.
« Last Edit: March 29, 2025, 02:48:54 am by Yankes »

Offline CrazedHarpooner

  • Colonel
  • ****
  • Posts: 186
    • View Profile
A quick look at some of the big mods around (40K, XCF, Chronicles, etc...) they all use 'version' and haven't seen 'versionDisplay'. If there has to be a choice I would propose 'version'. Alternatively, if someone would rather use 'versionDisplay' perhaps use {0} for one, {1} for the other and let the modders pick the one they want to show.